Commit Graph

109 Commits (8e5228c3d41bdc7e2a534ad057d70590eb0a2028)

Author SHA1 Message Date
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 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 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 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 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 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 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 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 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 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 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 6d11d04577 v8.0.1
https://roxy-wi.org/changelog#8_0_1
2024-09-03 12:09:03 +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 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 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 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 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 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 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 81d28536f6 v8.0: https://roxy-wi.org/changelog#8 2024-08-02 18:48:11 +03:00
Aidaho 8f50e1b8bf v8.0: https://roxy-wi.org/changelog#8 2024-08-02 12:50:02 +03:00
Aidaho e09103de7d v7.3.3.0
https://roxy-wi.org/changelog#7_3_3
2024-07-16 08:45:28 +03:00
Aidaho 61dc21c822 v7.3.2.0
https://roxy-wi.org/changelog#7_3_2
2024-07-06 11:14:01 +03:00
Aidaho 811255ba0b v7.3.1.0: Improve error handling and streamline data formatting
This update reviews and adjusts multiple code segments across the project. The improvements are mainly focused on error handling with more informative exceptions and error messages. Additionally, data formatting and retrieval have been streamlined, mainly regarding JSON data preparation and use in several functions, which should expedite the data processing and enhance the code maintainability. Minor changes were also done on the front-end logic for error handling and improved user interaction.
2024-06-19 20:52:24 +03:00
Aidaho 64d0475df6 v7.3.1.0: Return insert result in db module
Modified the cred module in the db modules package. The insert statement under the try block was updated to return the result of the .execute() method. This will allow for better handling and control of the execution flow depending on the result of the insert operation.
2024-06-17 07:46:01 +03:00
Aidaho ea8e51ee29 v7.3.1.0: Refactor server-side code to use JSON-based APIs
The commit refactors the server-side modules of the Roxy-WI web interface to use JSON-based APIs for improved data exchange. Specifically, methods for user, group and SSH management have been updated to accept and return JSON data. Simultaneously, error handling is improved to give more informative responses instead of plain strings. The client-side JavaScript code is also refactored to accommodate these changes. Additionally, some minor corrections are made in the UI templates.
2024-06-16 19:20:18 +03:00
Aidaho 4e16398f2a v7.3.0.1
https://roxy-wi.org/changelog#7_3_1
2024-06-16 08:02:08 +03:00
Aidaho be262b0e88 v7.3.0.0: Refactor check_user_group_for_flask function and improve error handling
Introduced an optional parameter in check_user_group_for_flask function to accept API tokens and return if it is provided. Enhanced error handling in get_all_statuses function in api_funct.py to catch and inform specific exceptions instead of returning a generic error message. Minor cleanups and import optimizations in other modules.
2024-06-06 08:53:11 +03:00
Aidaho 7d47e94160 v7.3.0.0
https://roxy-wi.org/changelog#7_3
2024-06-05 10:20:43 +03:00
Aidaho c56d105ef5 v7.2.5.0: Refactor execution of group changes in user settings
This commit streamlines the way user group data is handled, both in scripts and server-side logic. The group settings URL has been simplified and the logic for updating user groups also has been optimized. Eliminated unnecessary checks in the user.py module, and updated the routing logic for group data to utilize a single route with HTTP GET and PUT methods. Removed unsuccessful group changing errors.
2024-05-15 21:35:38 +03:00
Aidaho 88471af613 v7.2.6.0
https://roxy-wi.org/changelog#7_2_6
2024-05-15 15:38:05 +03:00
Aidaho a5174a152d v7.2.5.0
Fix interface bugs
2024-05-13 12:08:51 +03:00
Aidaho b66c4d0793 v7.2.5.0
https://roxy-wi.org/changelog#7_2_5
2024-05-03 15:22:58 +03:00
Aidaho 04e39325c8 v7.2.4.0: Update date calculation to use UTC and increase version number
The commit modifies the date calculation in the database time_range checks to use the UTC timezone instead of the system's local time. This makes the time range checks more uniform and independent of the server's configuration. Additionally, it increases the version number in 'create_db.py' from '7.2.3.0' to '7.2.4.0'.
2024-04-17 17:03:42 +03:00
Aidaho b205d47372 v7.2.4.0
https://roxy-wi.org/changelog#7_2_4
2024-04-17 11:06:29 +03:00
Aidaho 8c28c5128c v7.2.2.0
https://roxy-wi.org/changelog#7_2_2
2024-04-04 14:30:07 +03:00
Aidaho 2448b04426 v7.2.1.0
https://roxy-wi.org/changelog#7_2_1
2024-03-13 13:06:02 +03:00
Aidaho 534916b1c8 v7.2.1.0
Add opening VRRP for Keepalived
2024-03-06 09:32:34 +03:00