netmaker/pro
Abhishek K 309e4795a1
NET-1950: Persist Server Settings in the DB (#3419)
* feat: api access tokens

* revoke all user tokens

* redefine access token api routes, add auto egress option to enrollment keys

* add server settings apis, add db table for settigs

* handle server settings updates

* switch to using settings from DB

* fix sever settings migration

* revet force migration for settings

* fix server settings database write

* fix revoked tokens to be unauthorized

* remove unused functions

* convert access token to sql schema

* switch access token to sql schema

* fix merge conflicts

* fix server settings types

* bypass basic auth setting for super admin

* add TODO comment

* publish peer update on settings update

* chore(go): import style changes from migration branch;

1. Singular file names for table schema.
2. No table name method.
3. Use .Model instead of .Table.
4. No unnecessary tagging.

* remove nat check on egress gateway request

* Revert "remove nat check on egress gateway request"

This reverts commit 0aff12a189.

* feat(go): add db middleware;

* feat(go): restore method;

* feat(go): add user access token schema;

* fix user auth api:

* re initalise oauth and email config

* set verbosity

* sync auto update settings with hosts

* sync auto update settings with hosts

* mask secret and convert jwt duration to minutes

* convert jwt duration to minutes

* notify peers after settings update

* compare with curr settings before updating

* send host update to devices on auto update

---------

Co-authored-by: Vishal Dalwadi <dalwadivishal26@gmail.com>
2025-04-30 02:34:10 +04:00
..
auth NET-1950: Persist Server Settings in the DB (#3419) 2025-04-30 02:34:10 +04:00
controllers NET-1990: add peerkey to network egress routes model (#3379) 2025-03-24 15:33:39 +04:00
email NET-1950: Persist Server Settings in the DB (#3419) 2025-04-30 02:34:10 +04:00
logic NET-2000: Api access tokens (#3418) 2025-04-23 20:21:42 +04:00
initialize.go NET-1950: Persist Server Settings in the DB (#3419) 2025-04-30 02:34:10 +04:00
LICENSE patch pro LICENSE broken link (#3364) 2025-03-17 18:50:47 +04:00
license.go NET-1950: Persist Server Settings in the DB (#3419) 2025-04-30 02:34:10 +04:00
license_test.go handle invite link for saas tenants 2024-08-16 15:32:23 +05:30
remote_access_client.go NET-1950: Persist Server Settings in the DB (#3419) 2025-04-30 02:34:10 +04:00
trial.go fix(NET-1175): use default trial end date 2024-05-03 12:52:55 +00:00
types.go add format int64 for swagger doc (#3247) 2024-12-12 09:52:52 +04:00
util.go NET-1986: Only report online hosts. (#3370) 2025-03-14 17:16:31 +04:00