Commit Graph

11 Commits

Author SHA1 Message Date
Master3395
daa64d9100 Add container management features: implement update, delete with data, and delete while preserving data functionalities. Update views, URLs, and templates for enhanced user interaction and data safety. Introduce modals for container updates and deletion options, improving overall user experience. 2025-09-18 22:16:42 +02:00
usmannasir
6b2f718631 debian 13 ols fix 2025-09-18 01:29:38 +05:00
usmannasir
6eedea1254 debian 13 ols fix 2025-09-18 01:15:38 +05:00
Master3395
989249e1f4 Improve container management and Docker Compose generation
- Enhanced port validation in ContainerManager to check for valid port numbers and handle errors gracefully.
- Updated volume handling to ensure proper structure and existence checks.
- Added a new helper function to generate Docker Compose YAML, consolidating logic for service configuration, including ports, volumes, and environment variables.
- Removed duplicate Docker Compose generation code to streamline functionality.
2025-09-15 22:57:49 +02:00
Master3395
a829b41938 Add pull image functionality and enhance error handling
- Implemented a new `pullImage` method in `ContainerManager` to pull Docker images with validation and error handling.
- Added a corresponding URL route for the `pullImage` view.
- Updated the `views.py` to handle user permissions and session management for the new feature.
- Improved error handling across the codebase by replacing `BaseException` with `Exception`.
- Enhanced rate limiting logic to support JSON format for tracking timestamps.
- Updated UI styles in `manageImages.html` for consistency in gradient backgrounds.
2025-09-12 22:35:02 +02:00
Master3395
b765f34b34 Enhance environment variable management with advanced mode and import/export features
- Implement advanced environment variable mode for bulk editing and easier management.
- Add functionality to import environment variables from existing Docker containers.
- Introduce export options for environment variables to .env files.
- Update UI to toggle between simple and advanced modes, with corresponding input fields.
- Enhance Docker Compose integration with environment variable handling and user guidance.
2025-09-12 21:10:06 +02:00
usmannasir
73adcd541a Implement comprehensive security for Docker container command execution
- Add command whitelist validation with 60+ safe commands
- Implement multi-layer security: whitelist + blacklist + specific rules
- Add rate limiting: max 10 commands per minute per user-container
- Enable comprehensive logging for all command executions
- Add input validation for container names and command syntax
- Implement output size limits to prevent memory exhaustion
- Allow privileged mode but restrict through command validation
- Add specific validation rules for systemctl, kill, wget/curl commands
- Block dangerous patterns: command injection, path traversal, destructive operations
- Maintain ACL-based container ownership verification
2025-09-10 14:23:40 +05:00
Master3395
05c441bd2b improve docs, fix links, and add container console support
This update improves documentation clarity, fixes broken documentation links, and introduces a new feature that allows you to access and use the console directly inside containers from CyberPanel.
2025-09-05 01:14:04 +02:00
usmannasir
4550a07693 add/delete records 2025-08-05 21:08:51 +05:00
usmannasir
4f1541814f dark mode 2025-08-03 01:59:50 +05:00
usmannasir
6dd7114f6d Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00