Commit graph

103 commits

Author SHA1 Message Date
abhishek9686 f00e45251f don't bind coredns to publicip 2024-01-23 18:02:15 +05:30
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
Matthew R. Kasun 2b1f20e94b changes from code review
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-18 18:21:55 -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
afeiszli 1c06cfc8f7 modified getpeers for hub network 2022-02-18 11:43:49 -05:00
afeiszli 8cd19c20c6 removed unnecessary variables from network, added IsHubAndSpoke 2022-02-18 09:49:58 -05:00
afeiszli 2cbf08ad1e adding logic for key checks, OS on server 2022-02-04 14:19:26 -05:00
dcarns a50755fb0e
Merge pull request #651 from zc2638/fix/dns-dir
fix create dnsconfig dir
2022-01-28 08:42:50 -05:00
zc e8ce07be8c fix create dnsconfig dir 2022-01-28 11:07:56 +08:00
0xdcarns aebe39e46b testing continued 2022-01-18 09:51:45 -05:00
0xdcarns 0c6c09caa9 organized http logic, renamed files 2021-12-07 12:46:55 -05:00
afeiszli 932712619a remade server logs 2021-12-06 15:31:08 -05:00
0xdcarns 7ddf36520a rebased on develop 2021-10-26 12:58:50 -04:00
0xdcarns 8f72ecbaa0 refactored logic 2021-10-26 12:50:34 -04:00
0xdcarns 51c1973b21 added ability to remove local instance of netmaker 2021-10-20 09:22:05 -04:00
0xdcarns d7cafbbc4c code linting 2021-10-08 15:07:12 -04:00
0xdcarns 989676e77f Combined client + server code, Added HA ability, minor bug fixes 2021-10-06 17:48:54 -04:00
afeiszli 21ba362eca allowing IsServer to be modified, configurable checkin time, single checkin for linux, moved cfg files 2021-10-02 12:28:17 -04:00
afeiszli 99c8c6b31d Merge remote-tracking branch 'origin/feature_v0.8_housekeeping' into feature_v0.8.1_coredns 2021-09-28 14:08:37 -04:00
afeiszli 70afe33246 one time CoreDNS file 2021-09-28 13:16:41 -04:00
0xdcarns 90d941854b made some more efficient images and added set defaults for node reads 2021-09-27 17:51:20 -04:00
0xdcarns 6418378b07 fixed window bug? removed binaries 2021-09-21 16:43:05 -04:00
afeiszli 8056f024e2 client mode enablement 2021-08-19 13:41:04 -04:00
afeiszli f42f81243f adding some rqlite vars 2021-08-18 14:55:41 -04:00
worker-9 47fe905438 added dualstack default from parent net 2021-08-10 13:32:35 -04:00
worker-9 c799df59ce edited auth for deleted nodes 2021-08-09 22:31:01 -04:00
afeiszli e333d04e72 removing vulnerability 2021-08-09 17:57:40 -04:00
afeiszli 6a91bed0bb static configs 2021-08-09 17:07:43 -04:00
worker-9 31e81342fb user security bug fixed 2021-08-09 16:18:24 -04:00
afeiszli aae89cbaca static configs 2021-08-09 14:13:19 -04:00
afeiszli 382901b124 changed logs 2021-08-09 12:43:09 -04:00
worker-9 095ff2fbfc added egress as pull change 2021-08-06 13:47:39 -04:00
worker-9 94cf8bfbc6 added egress action 2021-08-06 13:39:14 -04:00
worker-9 256c194081 fixed removing peers 2021-08-06 12:15:44 -04:00
worker-9 72db9424a5 bug squashin 2021-08-05 15:02:18 -04:00
worker-9 736bcc3e55 Fixed nil err in isempty record 2 2021-08-05 13:11:21 -04:00
worker-9 8337daf007 Fixed node count err 2021-08-05 13:03:05 -04:00
worker-9 0b2a830e4d Fixed unique db checks 2021-08-05 12:52:50 -04:00
worker-9 44d03f6805 began refactoring of client 2021-08-05 12:24:16 -04:00
afeiszli 4385131bc6 added netmaker check on checkin 2021-08-02 14:50:01 -04:00
afeiszli 10cd3e371c adding logs to server join 2021-07-26 14:31:41 -04:00
afeiszli e929e43406 adding logs to server join 2021-07-26 14:15:58 -04:00
afeiszli 037271f0aa removing pubkey update 2021-07-26 17:57:50 +00:00