Commit Graph

1617 Commits (2fa880578a90b75c168de71c2805600e06984c5e)

Author SHA1 Message Date
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
Aidaho 81d28536f6 v8.0: https://roxy-wi.org/changelog#8 2024-08-02 18:48:11 +03:00
Aidaho 178116b9c1 v8.0
https://roxy-wi.org/changelog#8
2024-08-02 13:00:17 +03:00
Aidaho 8f50e1b8bf v8.0: https://roxy-wi.org/changelog#8 2024-08-02 12:50:02 +03:00
Aidaho 9e6405aaa5 v7.3.2.0: Update libevent-devel package source URL
The source URL for the libevent-devel package in the Ansible task file has been updated. This change ensures that the installation fetches the package from the updated URL, thereby enhancing the reliability of the package installation process.
2024-07-24 10:53:47 +03:00
Aidaho dd86feb32f v7.3.2.0: Refactor server.js for improved readability and logic correction
The changes include better indentation for increased clarity. A sleep function with random duration was inserted into `serverIsUp` function for pacing. Additional changes include uncommenting server status messages and updating the attribute setting for 'slavefor' to reflect accurate data. Lastly, instead of removing the server_div on an error in the EventSource, the source itself is now closed.
2024-07-20 08:56:11 +03:00
Aidaho 74562243f3 v7.3.2.0: Update AJAX request parameter in add.js
This commit changes the element ID fetched to set the 'serv' parameter in an AJAX request. The 'serv' value source has been altered from '#serv_for_vars' to '#serv_for_lets'. This update ensures that the correct data is passed when making the request.
2024-07-18 15:32:51 +03:00
Aidaho 051234b0f4 v7.3.2.0: Update WSGI configurations and Ansible version
Updated the WSGIDaemonProcess for roxy-wi-app to include a request timeout. The WSGIApplicationGroup was also added to the httpd configurations. Additionally, the Ansible galaxy command in the installation.py script has been updated to use nginxinc.nginx version 0.24.3 instead of 0.24.1.
2024-07-17 09:24:21 +03:00
Aidaho 730e145ab8 v7.3.2.0: Update WSGI configurations and Ansible version
Updated the WSGIDaemonProcess for roxy-wi-app to include a request timeout. The WSGIApplicationGroup was also added to the httpd configurations. Additionally, the Ansible galaxy command in the installation.py script has been updated to use nginxinc.nginx version 0.24.3 instead of 0.24.1.
2024-07-17 08:42:11 +03:00
Aidaho 5033cc9667 v7.3.3.0
https://roxy-wi.org/changelog#7_3_3
2024-07-16 12:33:36 +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 45b964d341 v7.3.2.0: Refactor action_service method in roxy module
Refactoring of the function 'action_service' has been completed in the roxywi module. The function for different actions ('start', 'stop', and 'restart') has been replaced by a dictionary for more clean and efficient code. This change also enhances code readability and maintainability.
2024-07-13 11:04:16 +03:00
Aidaho 508f7d4cc1 v7.3.2.0: Refactor javascript code and update error handling in API
This commit includes two major changes. Javascript code in udp.js has been refactored to fix the sequence of operations. We have moved the getScript function inside the bracket to ensure smoother operation. Also, error handling in api_funct.py has been simplified and made more consistent by passing json.loads instead of raw strings to install_service method, and by directly setting 'e' as a value in case of exceptions. A minor style change has also been added on ha_cluster.html.
2024-07-10 09:57:11 +03:00
Aidaho 9a193e43f9 v7.3.2.0: Enhance user parameter handling in various routes
Added decorator `@get_user_params()` to various route handlers in `routes.py`. Adjusted user handling in `config.py` by eliminating checks for 'login' and directly accessing user parameters from Flask's global variable `g`. Also moved user retrieval process from `routes.py` to lower level operations allowing for better abstraction and less redundancy.
2024-07-08 15:53:05 +03:00
Aidaho 9119787aa1 v7.3.2.0: Add user parameter to save_config route
Imported user module to the routes module and added a user parameter decorator to the save_config route. This parameter fetches the user ID, which is then used to fetch the username. This username is passed to the upload_and_restart functions as a login argument.
2024-07-08 11:35:13 +03:00
Aidaho 8dedc459e1 v7.3.2.0: Refactor user_id retrieval function call
The user id retrieval function, get_user_id_by_username, in the config module was refactored. The changes included the removal of unnecessary use of keyword argument on a function call. This change simplifies the code, making it more readable and easier to understand.
2024-07-08 10:17:28 +03:00
Aidaho 04e2edf517 v7.3.2.0: Refactor auth.py and rollback version in installation.py
In auth.py, removed an unnecessary pass statement and reassigned unused bind variables. Also, added a check to assign a default value to 'session_ttl' if it is None. In installation.py, rolled back the nginxinc.nginx version used during ansible galaxy installation from 0.24.2 to 0.24.1.
2024-07-07 21:03:47 +03:00
Aidaho 60bc04d5af v7.3.2.0: Update nginx version in ansible-galaxy install command
The version of nginx being installed via the ansible-galaxy command in the installation.py file has been updated. The version number has been changed from 0.23.2 to 0.24.2, adhering to up-to-date libraries and compatibility improvements that the new version provides.
2024-07-06 13:08:59 +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 6b24e8d39e v7.3.1.0: Remove OpenVPN code and update error handling in alert system
This commit removes unneeded OpenVPN related code and improves error handling in the alert system. All OpenVPN related functions and html files have been removed. Also, changes are made in the alerting module to raise exceptions instead of returning error messages, which provides a more pythonic way of error handling.
2024-06-17 16:09:34 +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 70765749b9 v7.3.1.0: Refactor and optimize server applications for better error handling and accuracy
The code changes focus on enhancing the server application's functionality by improving the error handling mechanism and streamlining the logic. Modifications include refining how servers get created, updated, and deleted, optimizing how ssh related actions are performed, and ensuring more accurate server scanning. The changes help reduce potential errors and make the application more efficient.
2024-06-16 22:54:52 +03:00
Aidaho 112ecd5ce6 v7.3.1.0: Refactor and optimize server applications for better error handling and accuracy
The code changes focus on enhancing the server application's functionality by improving the error handling mechanism and streamlining the logic. Modifications include refining how servers get created, updated, and deleted, optimizing how ssh related actions are performed, and ensuring more accurate server scanning. The changes help reduce potential errors and make the application more efficient.
2024-06-16 22:54:41 +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 9c5bc5ca4b v7.3.1.0: Refactor error handling and improve README.md readability
The error handling has been refactored in the Roxywi overview and routes files to raise and return more comprehensive exceptions. Unnecessary commented out JSON parsing code in the service installation file has been removed for better code clarity. Aside from these, various minor grammar and formatting fixes have been made to the README.md to improve readability.
2024-06-16 12:27:47 +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 e3ad7e86ae v7.3.0.0: Update UDP terminology in language templates
This commit changes the term "UDP balancers" to "UDP listeners" across all language templates. This adjustment ensures consistency and correctness in how we refer to this network entity in different languages.
2024-06-12 20:49:37 +03:00
Aidaho ce1995bbb9 v7.3.0.0: Update CSS styles, HTML templates, and Ansible tasks
The code adjustments primarily focus on improving layout management and enhancing backend functionality. Specifically, the CSS styles have been modified to adjust the alignment and width of certain elements. Additionally, new HTML templates have been created to refine the display of server details and a new link has been added. In the ansible tasks, logic has been added to handle the installation of packages and modification of NGINX version retrieval. In the logs module, an exception has been added to handle cases where the syslog server IP is not defined.
2024-06-12 09:47:14 +03:00
Aidaho f049daeb3c v7.3.0.0: Refactor user and group id retrieval in Roxy-WI module
The method `check_user_group_for_flask` has been updated to first check for 'user_uuid' and 'user_group_id' within the given kwargs. If these are not available, it will fall back to retrieve 'uuid' and 'group' from the cookies. This change makes the method more flexible in terms of data source it can utilize, and improves the module's usability when parameters are directly provided.
2024-06-07 07:50:49 +03:00
Aidaho 923727b7b7 v7.3.0.0: Simplify haproxy rsyslog configuration
Removed a specific condition from the rsyslog configuration for haproxy. The condition was initially checking if the input was UDP which was unnecessary. The new configuration continues to correctly categorize logs into access, error, and status files based on their syslog severity.
2024-06-06 17:26:34 +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