netmaker/models
Abhishek K 719e0c254d
NET-551: User Mgmt Re-Design (#2547)
* add superadmin role, apis to create superadmin user

* apis to attach and remove user from remote access gateways

* add api to list user's remote client has gateway clients

* remove code related user groups

* remove networks and groups from user model

* refactor user CRUD operations

* fix network permission test

* add superadmin to authorize func

* remove user network and groups from cli

* api to transfer superadmin role

* add api to list users on a ingress gw

* restrict user access to resources on server

* deny request from remote access client if extclient is already created

* fix user tests

* fix static checks

* fix static checks

* add limits to extclient create handler

* set username to superadmin on if masterkey is used

* allow creation of extclients using masterkey

* add migration func to assign superadmin role for existing admin user

* check for superadmin on migration if users are present

* allowe masterkey to extcleint apis

* check ownerid

* format error, on jwt token verification failure return unauthorized rather than forbidden

* user update fix

* move user remote functionality to ee

* fix update user api

* security patch

* initalise ee user handlers

* allow user to use master key to update any user

* use slog

* fix auth user test

* table headers

* remove user role, it's covered in middleware

* setuser defaults fix
2023-09-01 14:27:08 +05:30
..
accessToken.go remove localrange 2023-01-20 05:42:05 -05:00
api_host.go prune(NET-483): remove defunct host.internetgateway field (#2487) 2023-08-02 17:26:44 +05:30
api_node.go Net-137: Node relays (#2401) 2023-06-19 12:26:14 -04:00
dnsEntry.go validate dns entry does not contain whitespace (#2512) 2023-08-22 11:50:28 +05:30
enrollment_key.go review comments 2023-05-08 13:44:32 -04:00
error.go adding security fixes 2022-08-31 11:38:29 -04:00
extclient.go NET-551: User Mgmt Re-Design (#2547) 2023-09-01 14:27:08 +05:30
host.go feat(NET-449): add sync feature to request a host pull from server (#2491) 2023-08-04 13:22:47 +05:30
intclient.go remove references to grpc/comms net 2022-04-21 15:53:44 -04:00
metrics.go NET-528: add host static info to peer update (#2550) 2023-08-31 00:33:37 +05:30
migrate.go migration (#2509) 2023-08-14 23:14:10 +05:30
mqtt.go NET-433: Only Set Routes for NAT enabled egress GW (#2469) 2023-07-28 19:44:51 +05:30
names.go initial commit 2022-09-13 15:25:56 -04:00
network.go NET-551: User Mgmt Re-Design (#2547) 2023-09-01 14:27:08 +05:30
network_test.go use channels for sync 2023-02-14 07:01:38 -05:00
node.go [NET-546] Move ee code to ee package, unify ee status and terminology (#2538) 2023-09-01 07:42:05 +05:30
ssocache.go added better state management to make OAuth sign-ins HA 2022-08-04 10:03:39 -04:00
structs.go NET-551: User Mgmt Re-Design (#2547) 2023-09-01 14:27:08 +05:30