Commit Graph

6 Commits

Author SHA1 Message Date
Jocay c013a389fe feat: Implement directory validation and shell command quoting
- Added is_valid_directory function to validate directory paths, ensuring they do not contain control characters and are within a specified length.
- Introduced quote_shell_arg to safely quote shell arguments, preventing command injection.
- Created build_cd_command to generate a command for changing directories in a shell.
- Enhanced the LoginHandler to utilize a login rate limiter, preventing brute-force attacks by tracking failed login attempts.
- Implemented an EncodingCache to optimize encoding detection for SSH connections.
- Updated the UI to include an input field for specifying an initial directory upon login, with appropriate validation and hints.
- Added a quickbar in the terminal interface for easy access to copy and paste functionality.
- Introduced a toast notification system to provide feedback on copy actions.
- Refactored connection storage to encrypt passwords at rest, improving security.
- Updated various templates and styles to accommodate new features and improve user experience.
2026-08-10 00:07:52 +08:00
jocayn a7d435e59e Allow overriding Docker base image 2026-06-13 12:22:13 +08:00
jocayn 845c3dece3 Prepare WebSSH for self-hosted deployment 2026-06-13 12:11:36 +08:00
Kenson Man 309d912985 Change the Docker base image from python:3-slim to python:3-alpine.
The final image will be ~79.6MB instead of 163MB. It has 48% smaller.
2022-05-27 12:47:19 +01:00
Sven Gottwald 8238a49554 Update Dockerfile
For security reasons, run the Docker container as an unprivileged user
2021-03-10 15:11:20 +01:00
Sheng 46d1e5b091 Added docker support 2019-04-18 19:39:14 +08:00