netmaker/models
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
..
acl.go NET-1910: Acl controls for Egress Traffic (#3377) 2025-03-18 13:25:55 +04:00
api_host.go move tags to node model 2024-09-22 13:37:58 +04:00
api_node.go validate egress ranges with metric 2025-03-03 11:33:46 +04:00
dnsEntry.go NET-1603: Manage DNS NM changes (#3124) 2024-10-29 13:53:45 +04:00
enrollment_key.go NET-2000: Api access tokens (#3418) 2025-04-23 20:21:42 +04:00
error.go
extclient.go Merge pull request #3396 from gravitl/release-v0.30.0 2025-03-25 17:02:34 +04:00
gateway.go NET-1914: add gw apis, move relays into CE (#3309) 2025-01-28 11:28:31 +05:30
host.go NET-1906: Add endpoints for Sync All Hosts and Upgrade All Hosts. (#3302) 2025-01-28 11:33:38 +05:30
intclient.go
metrics.go NET-1923: Add Metric Port to server config (#3306) 2025-02-04 08:44:24 +04:00
migrate.go migration (#2509) 2023-08-14 23:14:10 +05:30
mqtt.go NET-1990: add peerkey to network egress routes model (#3379) 2025-03-24 15:33:39 +04:00
names.go use name generator 2024-10-24 14:02:39 +04:00
network.go add nameservers to network settings 2025-02-28 21:27:18 +04:00
network_test.go use channels for sync 2023-02-14 07:01:38 -05:00
node.go resolve merge conflicts 2025-02-28 12:18:38 +04:00
settings.go NET-1950: Persist Server Settings in the DB (#3419) 2025-04-30 02:34:10 +04:00
ssocache.go
structs.go NET-2000: Api access tokens (#3418) 2025-04-23 20:21:42 +04:00
tags.go migrate remote access gw tags 2025-03-11 00:50:44 +04:00
user_mgmt.go NET-2000: Api access tokens (#3418) 2025-04-23 20:21:42 +04:00