Commit graph

9 commits

Author SHA1 Message Date
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
Matthew R Kasun
78640f1342
Extclient NET-63x (#2286)
* model changes

* additional fields for extclient create

* add DNS to extclient config

* extclient name checks

* update extclient

* nmctl extclient

* final tweaks

* review comments

* add extclientdns to node on ingress creation

* fix to add ingress dns to api (#2296)

---------

Co-authored-by: Aceix <aceixsmartX@gmail.com>
2023-05-17 10:58:03 -04:00
Matthew R Kasun
bd40915451 review comments 2023-02-27 13:26:23 -05:00
Matthew R Kasun
a39fa7e065 fix helper tests 2023-02-25 11:06:55 -05:00
Matthew R Kasun
3836bd1d36 update TestMain 2023-02-25 10:48:36 -05:00
Matthew R Kasun
65b31c1c04 fix tests 2023-02-14 07:58:54 -05:00
Matthew R Kasun
82cac8fa30 use channels for sync 2023-02-14 07:01:38 -05:00
afeiszli
b670755cce refactoring for ee 2022-09-14 13:26:31 -04:00
John Sahhar
e086cee9f2 functions/helpers: Add DB tests.
Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-27 12:11:17 -06:00