Commit Graph

1643 Commits (90283cf3a5f3c818289d0ddef59da1347397cad1)

Author SHA1 Message Date
dependabot[bot] 90283cf3a5
build(deps): bump ansible-core from 2.16.3 to 2.17.7
Bumps [ansible-core](https://github.com/ansible/ansible) from 2.16.3 to 2.17.7.
- [Release notes](https://github.com/ansible/ansible/releases)
- [Commits](https://github.com/ansible/ansible/compare/v2.16.3...v2.17.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-03 22:03:38 +00:00
Aidaho 91802b3cd6 v8.1.3: Add dark theme support and update HAProxy management.
Introduce a dark theme for the web interface, enabling users to switch between themes seamlessly. Additionally, enhance HAProxy management by updating available versions and streamlining API routes for list management, ensuring smoother operations and integration.
2024-12-03 15:28:55 +03:00
Aidaho 5bf719ef1c v8.1.2: Refactor endpoints for direct server_ip usage
Convert POST methods to GET with direct server_ip parameter, improving clarity and conformity. Removed unused imports and fixed a typo in the `overview.py` module. Validations are added for better input handling, enhancing security and error management.
2024-12-01 17:34:16 +03:00
Aidaho 6cfaf90743 v8.1.2: Refactor metric insertion and selection logic
Consolidated multiple metric insertion and deletion functions into more generic and reusable functions using dictionaries and typing literals. This refactoring reduces code duplication and improves maintainability. Additionally, flask route functions have been updated to use type validation, ensuring stronger typing and input verification.
2024-12-01 14:43:39 +03:00
Aidaho ddd9a1b92d v8.1.2: Refactor IP validation and type annotations in routes
Replaced common.is_ip_or_dns() with pydantic type validation in various route functions to ensure input consistency and clarity. Updated several methods to use Union[IPvAnyAddress, DomainName] for typing and added necessary imports. Also refined templates and helper functions for better readability.
2024-11-30 10:21:03 +03:00
Aidaho ac5a6093a5 v8.1.2: Refactor IP validation and type annotations in routes
Replaced common.is_ip_or_dns() with pydantic type validation in various route functions to ensure input consistency and clarity. Updated several methods to use Union[IPvAnyAddress, DomainName] for typing and added necessary imports. Also refined templates and helper functions for better readability.
2024-11-19 15:34:14 +03:00
Aidaho b49edeb8d1 v8.1.2: Update log file check to include 'waf' condition
Previously, the check for a selected log file didn't account for the 'waf' variable. This update adds a condition to ensure that the warning is triggered only if 'waf' is also an empty string.
2024-11-19 11:03:54 +03:00
Aidaho 5c28a47cae v8.1.2: Add IP calculator and improve nettools forms
Implemented an IP calculator feature using the netaddr library and added corresponding JS and HTML form elements. Enhanced existing nettools forms by utilizing Flask-Pydantic for validation and AJAX request improvements. Removed deprecated alert selection methods in the database checker module. Updated language translations and incremented version to 8.1.2.
2024-11-18 11:34:25 +03:00
Aidaho 95cd8be699 v8.1.1.1: Refactor service alert checks and update version.
Consolidated service-specific alert checks into a single function for better maintainability. Deprecated outdated functions with markers for future deletion. Also, updated the database version to '8.1.1.1'.
2024-11-15 15:41:36 +03:00
Aidaho 8e5228c3d4 v8.1.1: Pin websockets version to 13.1
Updated the `websockets` library version to be pinned at 13.1 for better compatibility and to avoid potential issues with future releases. This change ensures a more stable and predictable environment.
2024-11-14 09:07:13 +03:00
Aidaho 5e542caf4a v8.1.1: Fix incorrect IP retrieval for cluster slaves
Replaces a method call with direct attribute access for retrieving the IP address of cluster slaves. This simplifies the code and improves performance by eliminating unnecessary database queries.
2024-11-13 22:27:06 +03:00
Aidaho a8dfe6e2c4 v8.1.1: Refactor server SQL function names
Replaced multiple SQL function calls with consistent `get_server` naming. Consolidated and streamlined the function calls to `get_server` and `get_server_by_ip` to ensure consistency and improve maintainability across the codebase. Removed obsolete and redundant function definitions that were no longer in use.
2024-11-13 21:52:41 +03:00
Aidaho 9548ac6d9a v8.1.1: Update WAF overview and simplify service ID handling
Removed redundant service checks for 'haproxy' and 'nginx' in WAF routes. Simplified action confirmation logic by using hidden input to fetch server names dynamically. Updated database operation calls to be concise for deleting and updating group settings.
2024-11-10 11:09:07 +03:00
Aidaho e240b673fd v8.1.2: Update JS regex, un-comment CSS, and refactor metrics JS
Modified regex in ha.js to include uppercase letters. Un-commented and removed unused CSS code. Refactored the structure of options in metrics.js for readability and consistency.
2024-11-07 10:57:41 +03:00
Aidaho 3d642a61c4 v8.1.2: Change get_user_status to select_user_status
Renamed get_user_status to select_user_status in roxy.py and db.py for better clarity and consistency. This modification ensures alignment in method naming conventions across the codebase, improving readability and maintainability.
2024-11-04 19:54:27 +03:00
Aidaho 61ed3e92c3 v8.1.2: Remove unused imports and simplify user status checks
Removed the unused 'distro' and 'Union' imports for code cleanliness. Simplified the user status check mechanism by introducing a direct method, `get_user_status`, and modified the service control flow accordingly. Simplified 'update_plan' function to only insert a default username.
2024-11-04 17:27:51 +03:00
Aidaho 0128321642 v8.1.2: Refactor database interactions and cleanup unused code
Refactor multiple functions to call `get_group` instead of `get_group_name_by_id`. Remove the `ApiToken` class and related database table operations. Simplify the template logic in `show_sub_ovw.html` by removing unnecessary loop and context variables. Cleanup unused imports and streamline several function implementations across the codebase.
2024-11-04 16:46:54 +03:00
Aidaho e9473088d5 v8.1.2: Enhance server status checks and exception handling logic
Improved the server status check by adding sessionStorage management and handling responses for better UI feedback. Changed some function signatures for consistency and better error handling. Updated routes and database initialization to reflect new functions and database versions.
2024-11-04 11:19:00 +03:00
Aidaho d2cc32f984 v8.1.2: Rename `group` to `group_id` in settings and related files.
Updated the `group` attribute to `group_id` in the Settings model and all related instances in the codebase to improve clarity and consistency. This change affects model definitions, setting initialization, and queries throughout the project.
2024-11-04 09:26:32 +03:00
Aidaho 2dccbd0220 v8.1.2: Enhance HA VIP deletion and cleanup waf.py
Add extra validation and logging for HA VIP deletion. Clean up waf.py by removing commented-out code and fixing server status assignment. Simplify maxconn command execution in runtime.py.
2024-11-03 15:45:06 +03:00
Aidaho c437274cfe v8.1.2: Switch to retrieving server data by IP and hostname
Updated multiple functions across the codebase to use the `get_server_by_ip` method instead of iterating over server lists. This change simplifies the code, improves readability, and reduces potential errors. Adjusted SQL queries to remove unnecessary conditions and parameters related to master servers.
2024-11-03 13:00:43 +03:00
Aidaho 8ebf934f06 v8.1.2: Delete letsencrypt.sh script and add LetsEncrypt API endpoints
Remove the letsencrypt.sh script and integrate LetsEncrypt functionality directly into the web application via new API endpoints. This includes creating, updating, retrieving, and deleting LetsEncrypt configurations, improving maintainability and user interaction with the LetsEncrypt feature.
2024-11-03 10:12:08 +03:00
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