Abhishek K
a9a237cafc
check if new network is overlapping ( #2655 )
2023-11-08 17:43:20 +04:00
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
Gabriel de Souza Seibel
7e8b66e03d
[NET-353] Solve race condition with "unique" ips ( #2461 )
...
* Use a lock for getting unique ips
* Make getting & setting unique ips atomic
* Remove some blank lines
* Set addressLock to &sync.Mutex on declaration
2023-07-27 11:34:15 +05:30
Abhishek Kondur
50e093b456
cache ext clients
2023-06-27 20:48:53 +05:30
Abhishek Kondur
27ac920069
cache acls
2023-06-27 16:12:06 +05:30
Abhishek Kondur
4071bb2bac
db cache nodes and hosts
2023-06-27 16:10:04 +05:30
Matthew R Kasun
de111181bf
restore sortNetworks
2023-04-19 14:06:39 -04:00
Matthew R Kasun
57723b7aae
merge conflicts
2023-04-19 13:18:03 -04:00
Matthew R Kasun
c510846444
Merge branch 'develop' into GRA-1529-key-update
2023-04-19 13:16:09 -04:00
Matthew R Kasun
63552891ee
refactor key updates on host basis vice node
2023-04-13 15:02:14 -04:00
walkerwmanuel
9e56135424
Added user sorting and fixed error
2023-04-03 14:36:38 -04:00
walkerwmanuel
09872e9ec5
added sort logic
2023-03-30 16:04:12 -04:00
dcarns
3119170797
Merge pull request #2071 from gravitl/GRA-1277-public-keys
...
skip legacy nodes when setting node.Action
2023-03-20 15:03:58 -04:00
0xdcarns
578609ff78
added legacy update
2023-03-20 15:03:12 -04:00
0xdcarns
0b7df753f7
removed references to AccessKey model
2023-03-13 16:02:44 -04:00
Matthew R Kasun
8255643ddf
skip legacy nodes when setting node.Action
2023-02-25 09:49:04 -05:00
Abhishek Kondur
051f60343b
reset ingress to older way
2023-01-25 15:35:45 +04:00
Matthew R Kasun
9edb541388
remove localrange
2023-01-20 05:42:05 -05:00
Abhishek Kondur
e9dd9ac0a4
fix fetching uniqueIp
2023-01-13 19:11:40 +05:30
Matthew R. Kasun
319193c18a
update IsIPUnique
...
also:
- remove unnecessary call to UpertHost in create node
- remove debugging logs
2022-12-23 18:06:59 -05:00
Matthew R. Kasun
38cd4d7700
refactor join
...
also removes server node
suspect there may be issues with proxy
and UI interactions with nodes
2022-12-20 15:29:09 -05:00
Matthew R. Kasun
c086e9499d
rebase
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-12-19 15:15:35 -05:00
Anish Mukherjee
0dcc54dc49
fix ipv6 addressing bug
2022-11-29 10:11:47 -05:00
Matthew R. Kasun
4df672de68
refactor node deletion
2022-11-15 09:52:17 -05:00
Abhishek Kondur
f632bec11d
merge conflicts resolved
2022-09-26 17:47:20 +05:30
afeiszli
b5a3ad7dbd
add * to allowed groups by default
2022-09-14 14:33:08 -04:00
afeiszli
b670755cce
refactoring for ee
2022-09-14 13:26:31 -04:00
0xdcarns
88cd0a6497
initial commit
2022-09-13 15:25:56 -04:00
Alex Feiszli
6a6b55623a
Merge pull request #1514 from gravitl/feature_v0.15.1_normalize_networks
...
normalize cidr on network/egress gateway creation
2022-09-12 11:51:35 -04:00
Matthew R. Kasun
7ec8c4be2a
use RunCmd for postup/postdown
2022-09-09 14:15:10 -04:00
Matthew R. Kasun
6b42cbe120
normalize cidr on network/egress gateway creation
2022-09-03 08:55:49 -04:00
Matthew R. Kasun
3a1dd8dc1e
remove func NetworkNodesUpdatePullChanges
2022-08-18 04:49:35 -04:00
dcarns
3f2a56d03e
Merge pull request #1266 from gravitl/bugfix_v0.14.5_static_checks
...
eliminate static check warnings
2022-06-30 10:24:09 -04:00
Matthew R. Kasun
075a0aafd4
don't allow . in network name
2022-06-27 14:08:59 -04:00
Matthew R. Kasun
f65925c70c
remove unused function
2022-06-27 12:50:28 -04:00
Matthew R. Kasun
b217d526fa
fix network validation tests
2022-06-27 10:23:11 -04:00
Matthew R. Kasun
c2e22926a4
do not permit uppercase in Network names
2022-06-06 17:28:00 -04:00
Matthew R. Kasun
c37fa49096
switch to smaller ip lib
2022-05-26 16:14:52 -04:00
afeiszli
3f038ab951
isStatic now only represents whether the Endpoint var is static
2022-05-23 15:24:09 -04:00
afeiszli
d63bae351d
fixing rangeupdate for ipv6, setting ipv4 assignment
2022-05-12 19:35:46 -04:00
0xdcarns
bcfc96ddd4
tidied go mod, fixed bug with last ipv6 addr
2022-04-25 13:10:55 -04:00
0xdcarns
c39f2fed84
bugfix for reverse unique address
2022-04-25 13:10:55 -04:00
0xdcarns
8e976d1f55
removed isdualstack references
2022-04-25 13:09:23 -04:00
0xdcarns
ca1c75b620
set addresses appropriately based on if network is using ipv6/4
2022-04-25 13:08:45 -04:00
0xdcarns
611a425852
added more uniform unique address checks
2022-04-25 13:08:45 -04:00
0xdcarns
ffbc0db33f
send created network back in response to net create
2022-03-17 10:08:28 -04:00
0xdcarns
112f03cf1f
changed dir name and added to gitignore, removed log
2022-03-11 08:46:01 -05:00
0xdcarns
aefc8b090b
added basic api endpoints
2022-03-10 14:55:40 -05:00
afeiszli
1c06cfc8f7
modified getpeers for hub network
2022-02-18 11:43:49 -05:00
afeiszli
be1763bb74
removing old node logic
2022-02-18 10:15:21 -05:00