IPv6 Support is an optional feature, in that when you create an interface, you can disable IPv6 support with a checkbox. This greys out the ipv6 options, which means when the form is submitted on the front-end, it only hands IPv4 information to the back-end. This is a problem, as the database was created with the v6_subnet column set to `NOT NULL`
A more elegant fix would be to have the front-end submit dummy data for the IPv6 subnet, this way existing users would not be required to manually modify their database (as SQLite does not support altering tables to remove the `NOT NULL` property) to either recreate the table and all of its triggers/keys, or (and this is more reasonable) have the backend make a new database and then have the existing user manually import data from their old database.
Unfortunately, I'm unfamiliar with Angular, however if I were a betting man I'd say you could probably insert something into the following spot to override the value submitted despite the field being disabled.
e70ba4bdc2/wg-manager-frontend/src/app/page/dashboard/add-server/add-server.component.ts (L84)
If the builtin authentication fails, checks the username and password
against a LDAP server
Allow to create user without password since we don't store the user
password inside the database.
Every function that has the middleware.authengine
decorator will be used as authentication engine.
The order of the engines is based on the value of sequence,
lower sequences go first
I switched the position of ADMIN_USERNAME and ADMIN_PASSWORD.
For once it took me 2h to figure out that I changed the username and not the password.
For second it is now in the same schema as the other section where a compose file is shown.
Set the default nodejs version to 12 as per https://github.com/perara/wg-manager/issues/31
Also set the pip install to pip3 as we are using python3.
This was causing some issues with the wheel setup
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Failed building wheel for python-multipart
ERROR: Failed building wheel for sqlalchemy-utils
ERROR: Failed building wheel for Tempita
Also set these as being used by sudo otherwise the venv has an issue with the permissions
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/opt/wg-manager/wg_dashboard_backend/venv/lib/python3.8/site-packages/typing_extensions.py'
Consider using the `--user` option or check the permissions.
Attempting to use the --user flag does not work
This works (once the requirements.txt file has been edited to set the sqlalchemy version to < 1.4.0 due to a versioning issues with API calls)
ImportError: cannot import name '_ColumnEntity' from 'sqlalchemy.orm.query' (/opt/wg-manager/wg_dashboard_backend/venv/lib/python3.8/site-packages/sqlalchemy/orm/query.py)
https://stackoverflow.com/questions/66644975/importerror-cannot-import-name-columnentity-from-sqlalchemy-orm-query
Working as below
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)