netmaker/controllers
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
..
config remove agentbackend 2023-02-20 02:22:00 -07:00
controller.go [NET-404] Run in limited mode when ee checks fail (#2474) 2023-08-03 12:16:58 +05:30
debug.go memory issue work 2021-12-08 16:52:32 -05:00
dns.go NET-551: User Mgmt Re-Design (#2547) 2023-09-01 14:27:08 +05:30
dns_test.go Net 503 - use NewHosts to init hostfile (#2473) 2023-08-25 10:55:47 +05:30
docs.go update develop to 0.20.7 (#2522) 2023-08-18 11:55:12 +05:30
enrollmentkeys.go NET-551: User Mgmt Re-Design (#2547) 2023-09-01 14:27:08 +05:30
ext_client.go NET-551: User Mgmt Re-Design (#2547) 2023-09-01 14:27:08 +05:30
files.go Update swagger docs 2022-09-10 21:51:59 -07:00
hosts.go NET-551: User Mgmt Re-Design (#2547) 2023-09-01 14:27:08 +05:30
ipservice.go Replaced string methods with HTTP consts 2022-12-23 09:49:08 -05:00
legacy.go added ability to remove legacy nodes 2023-03-07 11:02:51 -05:00
limits.go [NET-494 / ACC-322] New free tier limits (#2495) 2023-08-08 23:17:49 +05:30
logger.go Replaced string methods with HTTP consts 2022-12-23 09:49:08 -05:00
migrate.go [NET-546] Move ee code to ee package, unify ee status and terminology (#2538) 2023-09-01 07:42:05 +05:30
network.go NET-551: User Mgmt Re-Design (#2547) 2023-09-01 14:27:08 +05:30
network_test.go NET-551: User Mgmt Re-Design (#2547) 2023-09-01 14:27:08 +05:30
node.go NET-551: User Mgmt Re-Design (#2547) 2023-09-01 14:27:08 +05:30
node_test.go db cache nodes and hosts 2023-06-27 16:10:04 +05:30
regex.go fix(NET-486): change client name length validation (#2498) 2023-08-08 15:59:02 +05:30
regex_test.go fix(NET-486): change client name length validation (#2498) 2023-08-08 15:59:02 +05:30
response_test.go refactoring for ee 2022-09-14 13:26:31 -04:00
server.go [NET-546] Move ee code to ee package, unify ee status and terminology (#2538) 2023-09-01 07:42:05 +05:30
test.db renamed integration test to *_test.go.bak until they can be fixed. Should enable the workflow action to run successfully 2021-09-06 15:36:53 -04:00
user.go NET-551: User Mgmt Re-Design (#2547) 2023-09-01 14:27:08 +05:30
user_test.go NET-551: User Mgmt Re-Design (#2547) 2023-09-01 14:27:08 +05:30