Commit Graph

1621 Commits (d7f699d376f8d625b95d32b23fd235b9e4f08466)

Author SHA1 Message Date
Aidaho d7f699d376 v8.1.0.1: Fix method ordering in cred_views.py error handling
Reorder `_is_editing_shared_ssh` and `_check_is_correct_group` calls to ensure correct error handling sequence. This change improves code readability and maintains the intended error-checking flow in the credential edit process.
2024-10-22 12:18:52 +03:00
Aidaho 96f9f71a2b v8.1.0.1: Refactor SSH and WAF modules for improved logic and readability
Refactored SSH credential handling to better support shared credentials and improve code readability. Simplified WAF mode changes by switching from hostname to server ID, enhancing reliability. Updated various templates and functions to align with these changes.
2024-10-22 11:13:16 +03:00
Aidaho aa4016d40c v8.1.0.1: Refactor server creation to use kwargs
Updated the server creation functions to utilize keyword arguments, simplifying the code and making it more maintainable. Additionally, improved the handling of VIP updates and error logging for HA clusters.
2024-10-21 15:52:29 +03:00
Aidaho 98fb3fb288 v8.1.0.1: Refactor SSH permission checks and streamline database connection
Implement additional checks for shared SSH credential editing and deletion. Refactored database connection logic to use keyword arguments for improved readability and maintainability.
2024-10-21 09:35:25 +03:00
Aidaho 2fa880578a v8.1.0.1: Fix numeration and refactor code for consistency
Correct feature list numeration in README.md and improve JavaScript variable naming and data type consistency. Also enhance HAProxy section handling in templates and API endpoints to ensure better error handling and data processing.
2024-10-20 12:13:37 +03:00
Aidaho 3f9722bcea v8.1: Add new dependencies for async messaging and nmap.
This commit updates the requirements.txt file to include aio-pika, pika, websockets, and python3-nmap. These additions are necessary to support asynchronous messaging and nmap functionality within the application.
2024-10-16 08:23:02 +03:00
Aidaho 7173ed8357 v8.2: Add return statements and enhance response handling
Add return statements to `insert_*` methods for consistency. Introduce a `delete_section` method and implement it in the view. Enhance response handling with new `IdDataStrResponse` and update OpenAPI spec to better reflect data structures.
2024-10-15 10:16:14 +03:00
Aidaho 3a9c18392b v8.2: Update service settings, backup models, and DB schema
Added support for managing Docker settings and improved the handling of service-specific configurations. Updated various backup methods and database columns to ensure consistency and clarity. Included new database migration scripts to handle renamed columns.
2024-10-12 08:43:32 +03:00
Aidaho 1677f49b4a v8.2: Refactor delete_server function for clarity and efficiency
Updated delete_server to use get_server_by_id instead of select_servers. Simplified the backup check logic by directly accessing server attributes. Improved maintainability and readability by removing unnecessary loops and redundant variables.
2024-10-10 21:38:36 +03:00
Aidaho bf242a8eb2 v8.2: Rework backup handling to use server_id instead of server
Refactored code to use `server_id` in place of `server` across various modules to improve clarity and consistency. Updated database migrations, schema definitions, API documentation, and templates accordingly. Additionally, fixed related issues in the backup creation and management logic.
2024-10-10 15:54:22 +03:00
Aidaho ddaa3bf2dd v8.2: Refactor ServiceInstall API validation.
Replaced `ServiceInstallFromApi` with `ServiceInstall` for API validation in installation views and function parameters. Simplified the `ServiceInstall` class by removing duplicate attributes and making list and dict attributes optional.
2024-10-09 21:08:06 +03:00
Aidaho 7fdc977bc2 v8.2: Fix typo in section name for HAProxy configuration
Correct the section name from 'default' to 'defaults' in the HAProxy configuration insert function. This ensures that the settings are applied to the correct section and improves the accuracy of the configuration process.
2024-10-09 18:07:44 +03:00
Aidaho df048c50ac v8.2: Add PUT and DELETE methods to InstallView and update schemas
Extended InstallView with PUT and DELETE methods to allow updating service settings and deleting installations. Made adjustments to the request and response schemas, including using ServiceInstallFromApi and adding IdStrResponse.
2024-10-09 18:03:00 +03:00
Aidaho ca1a39ed96 v8.2: Refactor log handling and cleanup unused code
Convert WAF parameter from string to integer for consistency. Update JavaScript comparison operators for strict equality checks. Remove unused functions and intro.js library to streamline and simplify the codebase.
2024-10-08 15:56:13 +03:00
Aidaho b3b6f7f596 v8.2: Fix strict equality check and remove unused intro.js template
Updated script.js to use strict equality for empty string checks and removed an obsolete inclusion of intro.js in admin.html. These changes enhance code accuracy and reduce unnecessary clutter in the project.
2024-10-03 19:53:05 +03:00
Aidaho 82662042e3 v8.2: Remove unused intro.js templates and mappings
Deleted the admin introduction script and associated source map since they are no longer required. This cleanup helps to reduce clutter and improve maintainability of the project.
2024-10-03 14:37:04 +03:00
Aidaho f6298cd911 v8.2: Fix formatting and enhance logging error handling
Adjusted line formatting in `runtime.py` and `waf.py` for consistency and readability. Added exception handling for logging in `auth.py` to prevent crashes and provide error feedback.
2024-10-03 11:19:50 +03:00
Aidaho a9aa9f2436 v8.2: Remove unnecessary blank lines and exception handling
Removed multiple unnecessary blank lines across various files to maintain code cleanliness and readability. Simplified exception handling in the `roxywi/auth.py` module and updated the import statements in `ha/routes.py`. Added a timeout parameter to the requests call in `alerting.py` for better error management.
2024-10-03 10:11:39 +03:00
Aidaho 18f9b11f35 v8.2: Remove statAgriment function and improve variable declarations.
Commented out the unused statAgriment function and its associated event listener. Replaced var with let in various parts of the script for better scope handling and used triple equals for strict comparison. Also added a new script to the add.html template.
2024-10-02 17:10:32 +03:00
Aidaho 7ec162244f v8.2: Fix whitespace inconsistencies across various modules
Refactor multiple files to correct spacing issues, including extra blank lines, misaligned parameters, and inconsistent indentation. These changes improve code readability and maintain coding standards without altering functionality.
2024-10-02 12:33:20 +03:00
Aidaho 292ca51cc7 v8.1.0
https://roxy-wi.org/changelog#8_1
2024-10-02 11:51:26 +03:00
Aidaho 9c961cf6cf v8.0.2: Fix keepalived process grep command
Update the keepalived process check to properly filter processes by adding a space after 'keepalived'. This ensures that similar process names do not cause false positives in the check.
2024-09-27 09:57:46 +03:00
Aidaho 5acebf62bd v8.0.2: Refactor service addition logic in HA cluster creation
Re-order the insertion of services to occur earlier in the HA cluster creation process. This ensures that services are added to the database right after the cluster is created, improving the sequence and readability of operations.
2024-09-26 17:43:56 +03:00
Aidaho 34907769e6 v8.0.2: Refactor and optimize code handling in multiple files
Removed unused imports, improved error handling in JavaScript, and refactored server command construction for better reliability. Enhanced type checking and streamlined list processing to improve code readability and efficiency.
2024-09-26 17:38:35 +03:00
Aidaho 3e849e75fe v8.0.2: Refactor conditional checks and remove unused import
Streamlined conditional checks using 'in' for better readability in `show_services_ovw.html`. Additionally, removed an unused import in `cred_views.py` and updated database creation script for efficiency.
2024-09-18 22:31:07 +03:00
Aidaho 1dbbf54986 v8.0.2: Remove Grafana integration
Deleted the Grafana role from Ansible playbooks and related references in various files. This includes updates to HTML templates, route definitions, and database entries to ensure no remnants of Grafana configuration remain.
2024-09-17 08:52:36 +03:00
Aidaho 94e7a23383 v8.0.2: Exclude localhost from SSH configuration
Updated the logic to skip setting SSH configuration for localhost. This change ensures that SSH settings are only applied to remote servers, preventing potential conflicts or unnecessary configurations for the local machine. Additionally, simplified the SSH key name without including the group name in the UI for better clarity.
2024-09-16 16:08:53 +03:00
Aidaho 85d745f7dd v8.0.2
https://roxy-wi.org/changelog#8_0_2
2024-09-16 10:56:24 +03:00
Aidaho 71ed2cc756 v8.0.1: Set user_group_id from Flask global object
Added logic to set user_group_id based on Flask global object `g`, with a fallback to default value if an exception occurs. This enhances the flexibility of `user_group_id` assignment based on runtime context.
2024-09-14 11:58:47 +03:00
Aidaho 202513fcfd v8.0.1: Refactor password handling and integrate group_id
Enhance function signatures to include group_id parameter for fetching settings in a multi-group context. Additionally, improve password handling by cleaning up special characters to ensure proper authentication.
2024-09-13 13:11:10 +03:00
Aidaho 6004147073 v8.0.1: Add group_id to service-related functions utilizing user params
Enhance various service functions to accept and process group_id from user parameters. This update ensures that settings and actions are correctly scoped to the user's group, improving access control and accuracy of the returned data.
2024-09-13 12:39:54 +03:00
Aidaho 902f94d052 v8.0.1: Change forbidden error to unauthorized for subscription check
Updated the error code returned when a user's subscription is either inactive or on a Home plan from 403 (Forbidden) to 401 (Unauthorized). This makes the response more semantically accurate, indicating that authentication is required and has failed.
2024-09-12 10:11:39 +03:00
Aidaho 8964652375 v8.0.1: Fix SSL cert upload and improve error handling
Replaced single quotes in cert input and updated error handling to raise exceptions instead of returning error messages. This change ensures better logging and clear error propagation.
2024-09-11 09:41:29 +03:00
Aidaho 720616da95 v8.0.1: Implement cluster reconfiguration after creation and update
Add support for reconfiguring clusters by calling `_install_service` method within both the `create` and `update` operations. Enhanced `install_service` method to handle `HAClusterRequest` data, and introduced `reconfigure` flag within the `HAClusterRequest` model.
2024-09-10 11:14:34 +03:00
Aidaho f66b3b70bd v8.0.1: Handle missing services and improve error handling
Enhanced error handling for missing NGINX and Keepalived services. Updated JavaScript to handle 404 errors and provide clearer messages in UI if services are not installed.
2024-09-09 22:15:05 +03:00
Aidaho 8ef721d72c v8.0.1: Handle missing services and improve error handling
Enhanced error handling for missing NGINX and Keepalived services. Updated JavaScript to handle 404 errors and provide clearer messages in UI if services are not installed.
2024-09-09 22:02:00 +03:00
Aidaho 1f9942aa7d v8.0.1: Refactor variable types and names for clarity
Updated variable types from `var` to `let` in script.js for block scope. Renamed `file_name` to `file_path` for consistency across templates and models. Added additional error conditions for alert handling in the JavaScript code.
2024-09-09 09:52:33 +03:00
Aidaho 2b96fefba1 v8.0.1: Update database version and fix minor formatting issue
This commit updates the database version from 8.0 to 8.0.1 to reflect recent changes. Additionally, a minor formatting adjustment was made by adding a newline for better code readability.
2024-09-07 13:31:09 +03:00
Aidaho 77701e1d9f v8.0.1: Update NGINX service handling and fix template service lookup
Refactor NGINX service command execution for dockerized environments, improving status and process parsing. Fix an issue in the service template by correcting session storage key handling and ensure correct directory ownership initialization.
2024-09-06 11:38:39 +03:00
Aidaho c421b9c437 v8.0.1: Add ServiceConfigList to retrieve service config files
Introduced a new `ServiceConfigList` MethodView to fetch configuration files for specified services. Updated route definitions to include new endpoints for this functionality, enhancing service configuration management.
2024-09-05 11:57:56 +03:00
Aidaho 3423595d9b v8.0.1: Remove keepalived service and improve service status handling
Removed all references and functionality related to keepalived service. Added detailed status handling for various services including nginx, haproxy, and apache, improving the accuracy of the status checks and error handling for each service. Adjusted user interface elements to reflect the service status changes more clearly.
2024-09-04 21:16:22 +03:00
Aidaho 52cafa9013 v8.0.1: Add retry package to requirements
This commit includes the addition of the 'retry' package with a minimum version of 0.9.2 to the requirements.txt file. This change ensures that retry logic can be used in the project, improving error handling in operations prone to transient failures.
2024-09-03 17:25:26 +03:00
Aidaho 6d11d04577 v8.0.1
https://roxy-wi.org/changelog#8_0_1
2024-09-03 12:09:03 +03:00
Aidaho 69e5c2cca9 v8.0: Log exceptions and add DB update to version 8
Added logging for exceptions in user login and authentication processes. Enhanced `update_db.py` to include error handling for database migration and added a new database update version 8 function.
2024-09-02 10:46:50 +03:00
Aidaho 0727c2979f v8.0: Optimize AJAX call and unify button styling in templates
Updated the AJAX call to send JSON data with proper content type and handle the response more robustly. Also standardized the button styling across delver.html and configver.html templates for a consistent user experience.
2024-09-02 00:37:08 +03:00
Aidaho cde708065b v8.0: Refactor config logic to streamline cfg retrieval
Moved `cfg` retrieval inside the `if` block to ensure it is only fetched when `serv`, `edit`, and other conditions are met. Also, removed an unnecessary hidden input from the HTML template.
2024-09-01 22:39:57 +03:00
Aidaho 4e5f4b2bd1 v8.0: Add new icons and update HA view validation
Added new icons for Keepalived and Roxy services in the static images and integrated them into the main menu. Updated HA view validation to use `eth` instead of `ip` and changed certain property types from string to integer. Enhanced error handling and data processing for the configuration routes and improved JSON data handling in the script.js file.
2024-09-01 20:51:12 +03:00
Aidaho bf7469cc3f v8.0: Refactor and simplify config upload and restart logic.
Consolidate user and server queries, remove redundant code, and streamline logging actions. Enhance function readability and efficiency by eliminating unnecessary variables and try-except blocks. The refactor ensures service consistency and maintains error handling robustness.
2024-09-01 09:03:53 +03:00
Aidaho c6e6988209 v8.0: Update credential endpoints and proxy settings
Replaced hostname lookups with unified server object retrieval in metrics and credential management endpoints. Added proxy environment variables to ModSecurity download tasks and improved error handling across various modules.
2024-08-30 17:25:31 +03:00
Aidaho 03597fbeb5 v8.0: Update requests library to version 2.32.3
This commit updates the requests library from version 2.27.1 to 2.32.3 in the requirements.txt file. The new version includes bug fixes and performance improvements, ensuring better compatibility and security for our project.
2024-08-29 10:08:03 +03:00