netmaker/cli/functions
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
..
acl.go add comments to exported functions 2022-11-28 18:16:56 +05:30
dns.go add comments to exported functions 2022-11-28 18:16:56 +05:30
enrollment_keys.go add enrollment key to nmctl 2023-03-02 17:40:31 +05:30
ext_client.go Extclient NET-63x (#2286) 2023-05-17 10:58:03 -04:00
host.go Net-137: Node relays (#2401) 2023-06-19 12:26:14 -04:00
http_client.go NET-152 enrollment keys for non admins (#2346) 2023-05-31 13:11:54 +05:30
metrics.go add network users subcommand 2022-11-29 19:23:39 +05:30
network.go refactor key updates on host basis vice node 2023-04-13 16:08:39 -04:00
node.go move relay logic to hosts 2023-01-24 16:00:12 +05:30
pretty_print.go add function comment 2022-12-08 18:07:45 +05:30
server.go add a simple get request function 2022-12-08 19:04:23 +05:30
user.go add comments to exported functions 2022-11-28 18:16:56 +05:30