Commit Graph

1598 Commits (34907769e666c5d8529481c25136e0a82d70ffe7)

Author SHA1 Message Date
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
Aidaho 791cd1ed57 v8.0: Handle missing system info and refactor server installation
Introduce a custom exception `RoxywiResourceNotFound` to manage cases where system information cannot be found. Refactor the server installation process to use server IDs instead of IPs, improving data consistency and reliability.
2024-08-28 15:25:27 +03:00
Aidaho a0866b9e88 v8.0: Refactor slave routes and clean up redundant code
Removed unused variable `req_method` and refactored URL assignment logic in `ha.js` for clarity. Updated route in `routes.py` to use defaults for `vip_id` and adjusted method checks accordingly. Removed unnecessary print statement in `ha_cluster.py`.
2024-08-28 15:10:39 +03:00
Aidaho 3ca7ca86a1 v8.0: Increase menu font size and streamline server IP handling
Updated the menu font size from 1.1em to 1.2em for better readability. Refactored JavaScript and Python code to consistently retrieve server IPs using server IDs, improving code clarity and maintainability.
2024-08-28 14:03:27 +03:00
Aidaho 975a49d818 v8.0: Handle exceptions and update data structure
Added try-except blocks for better exception handling and updated VIP retrieval logic. Changed the structure from using server names and IPs to using IDs in both backend and frontend code. Updated template selections and introduced new expected version options.
2024-08-28 11:30:05 +03:00
Aidaho c54f42f65b v8.0: Refactor HA cluster master selection logic
Remove obsolete HTML template and streamline server selection to use JSON. Enhanced server selection and error handling in AJAX calls, fixed minor syntax issues, and updated various routes for consistency.
2024-08-28 09:18:38 +03:00
Aidaho 5b71fb257e v8.0: Refactor HA cluster master selection logic
Remove obsolete HTML template and streamline server selection to use JSON. Enhanced server selection and error handling in AJAX calls, fixed minor syntax issues, and updated various routes for consistency.
2024-08-27 15:57:45 +03:00
Aidaho 0391dff9eb v8.0: Remove redundant requirement files and update VIP handling
Removed outdated Debian, EL7, EL8, and EL9 requirement files. Improved various VIP handling and validation functionalities, including changes to VIP endpoints and associated JavaScript functions. Minor enhancements and bug fixes across multiple modules and views.
2024-08-27 12:40:15 +03:00
Aidaho 9148a31143 v8.0: Fix section value in admin settings and correct alert message
Removed the unnecessary section reassignment in admin_settings.js to ensure the correct section value is used. Also, corrected a minor formatting issue in the alert message within alerting.py for better readability.
2024-08-21 09:25:56 +03:00
Aidaho 41a8c90556 v8.0: Add DELETE endpoint for version deletion in ServiceConfigView
Added support for deleting configuration file versions via the DELETE method in ServiceConfigVersionsView. Updated corresponding routes, templates, and scripts to handle this functionality.
2024-08-20 10:39:40 +03:00
Aidaho 89022e59be v8.0: Add port scanner functionality and refactor codebase
Integrated port scanner endpoints to manage and retrieve scanner configurations. Removed unused imports and redundant code blocks across multiple files for better performance and readability. Simplified error handling and consolidated port scanner settings operations.
2024-08-19 11:49:19 +03:00
Aidaho a1ed81b0a2 v8.0: Comment out duplicate HAProxy installation task
Disabled a redundant HAProxy installation section in the Ansible playbook by commenting it out. Also removed the unnecessary `distro` library import and standardized the Python interpreter path in the service installation module for cleanup and consistency.
2024-08-13 00:21:42 +03:00
Aidaho a7a8b4b10d v8.0: Delete check_version.html and refactor version checking logic
Removed the `check_version.html` template and moved version checking to `script.js`. This refactoring simplifies the codebase by consolidating version check handling into JavaScript, removing deprecated HTML templates, and enhancing the backend logic and API routes.
2024-08-12 23:41:31 +03:00
Aidaho 7fb1ad4b69 v8.0: Remove python-ldap and update route handling
Removed the python-ldap dependency from requirements.txt and updated route handling to use JSON request data instead of form data. Additionally, responses are now wrapped using DataStrResponse for consistency.
2024-08-05 10:29:46 +03:00
Aidaho 41764ad4ca v8.0: Refactor admin views and JS scripts
Simplified imports and cleaned up unused functionalities in `admin/views.py`. Switched `var` to `let` in `script.js` for better scope management. Adjusted `showOverviewWaf` function for consistency. Removed `check_services` decorator from `ServiceActionView`. Enhanced `Checker` class model and improved error handling in `CheckerView`. Added `update_checker_setting_for_server` method in `checker.py`.
2024-08-04 19:24:23 +03:00
Aidaho 075d2b935b v8.0: Refactor code and fix various issues across modules
Added return_master setting, removed unnecessary code, and improved exception handling throughout the project. Key updates include enabling return_master by default, simplifying database update methods, handling empty IP exceptions more appropriately, and refining JavaScript validations.
2024-08-04 17:44:11 +03:00
Aidaho 108773c564 v8.0: Refactor user module and simplify server status check
Refactor user-related modules, updating data handling, roles, and methods. Simplify server status check process by removing event-based handling and replacing it with straightforward AJAX requests.
2024-08-03 09:25:02 +03:00
Aidaho 2022681847 v8.0: Refactor installation process feedback and retries
Commented out the JSON parsing function and added success notifications for service installations, consolidated "nice_service_name" object to variables.js, and reduced retry attempts and delay intervals in the Ansible Playbook for HAProxy installation tasks.
2024-08-02 21:54:16 +03:00
Pavel Loginov 1a77266611
Merge pull request #390 from roxy-wi/dependabot/pip/ansible-core-2.16.3
build(deps): bump ansible-core from 2.16 to 2.16.3
2024-08-02 21:25:10 +03:00
Aidaho cac743fea6 v8.0: Refactor installation process feedback and retries
Commented out the JSON parsing function and added success notifications for service installations, consolidated "nice_service_name" object to variables.js, and reduced retry attempts and delay intervals in the Ansible Playbook for HAProxy installation tasks.
2024-08-02 21:21:18 +03:00
dependabot[bot] 8fa8778358
build(deps): bump ansible-core from 2.16 to 2.16.3
Bumps [ansible-core](https://github.com/ansible/ansible) from 2.16 to 2.16.3.
- [Release notes](https://github.com/ansible/ansible/releases)
- [Commits](https://github.com/ansible/ansible/compare/v2.16.0...v2.16.3)

---
updated-dependencies:
- dependency-name: ansible-core
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-02 18:13:10 +00:00
Aidaho 7559530ca2 v8.0: Fix several bugs and update API
Corrected JavaScript methods to properly store language settings and trigger events. Fixed error handling in multiple scripts, and improved handling of keepalived version checks. Updated the requirements to use a specific ansible-core version for better compatibility.
2024-08-02 21:12:14 +03:00
Aidaho e095a88b2e v8.0: https://roxy-wi.org/changelog#8 2024-08-02 19:30:33 +03:00
Aidaho 62bce859cf v8.0: https://roxy-wi.org/changelog#8 2024-08-02 19:06:31 +03:00