Abhishek K
6c2582651c
Net-137: Node relays ( #2401 )
...
* revert relays
* initial relay commit
* get relayed allowed ips
* add more relay validation checks, peer logic cleanup
* rm relayed nodes from relay node when relayed node is deleted
* fix egress updates for relayed nodes
* rm unused func
* remove debug logs
* avoid adding egress ranges on the relayed gw node
---------
Co-authored-by: Matthew R Kasun <mkasun@nusak.ca>
2023-06-19 12:26:14 -04:00
Tobias Cudnik
723375b334
NET-152 enrollment keys for non admins ( #2346 )
...
* return 401 instead of 403
* fixed http.StatusForbidden
* Tagged build version (temp)
* Unauthorized_Err when applicable
* untagged version
* fixed PUT /api/users/networks/user1
* - expired token redirs to login
- added `/api/enrollment_keys` for non-admins
- unit test for enrollment keys for non-admins
* handle user perms in `/hosts`
* removed debug
* misc
* - support masteradmin
- return hosts with partial access
* added `ismaster` to middleware
2023-05-31 13:11:54 +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
dcarns
249cf5f474
Merge pull request #2205 from gravitl/GRA-1529n-key-update
...
Gra 1529n key update
2023-04-18 17:06:35 -04:00
Matthew R Kasun
34eb699752
deprecated ability to edit networks
2023-04-14 10:39:36 -04:00
Matthew R Kasun
7d8aeb66c1
correct api path
2023-04-13 17:36:27 -04:00
Matthew R Kasun
12004aa09a
refactor key updates on host basis vice node
2023-04-13 16:08:39 -04:00
0xdcarns
0b7df753f7
removed references to AccessKey model
2023-03-13 16:02:44 -04:00
Anish Mukherjee
8e09684def
add json format output alternative to tables
2023-03-06 12:08:46 +05:30
Anish Mukherjee
9e8f41f491
remove [--args] from definition
2023-03-02 17:45:10 +05:30
Anish Mukherjee
c5311c0cd5
add enrollment key to nmctl
2023-03-02 17:40:31 +05:30
Matthew R Kasun
828b3f7162
remove local network/range
2023-02-26 16:28:16 -05:00
Anish Mukherjee
6a03947384
update host network modification endpoints
2023-02-14 17:25:22 +05:30
Abhishek Kondur
98c70e8a20
pr comments
2023-02-06 22:46:50 +04:00
Matthew R Kasun
77cfae41ff
remove postup/down
2023-02-02 11:16:54 -05:00
Matthew R Kasun
92af578ab1
remove point to site from nmctl
2023-01-30 11:04:22 -05:00
dcarns
d22a38a4d0
Merge pull request #1972 from gravitl/bugfix_nmctl_host_default
...
Fix nmctl host update
2023-01-25 12:48:00 -05:00
Anish Mukherjee
ebb1349228
fix nmctl node update
2023-01-25 18:02:30 +05:30
Anish Mukherjee
5c1d91ad72
fix host update
2023-01-25 16:34:48 +05:30
Anish Mukherjee
02ba1ce6ae
move relay logic to hosts
2023-01-24 16:00:12 +05:30
Matthew R Kasun
9edb541388
remove localrange
2023-01-20 05:42:05 -05:00
Anish Mukherjee
f04828f1d4
update node models to ApiNode
2023-01-16 10:32:26 +05:30
Anish Mukherjee
905f5ef5e2
add flags for host update
2023-01-06 10:28:08 +05:30
Anish Mukherjee
e600fe32ed
remove toggle flag
2023-01-06 10:09:35 +05:30
Anish Mukherjee
46f4f4f4c6
minor refactor
2023-01-05 19:27:42 +05:30
Anish Mukherjee
90ef4fd168
use new node structs
2023-01-05 19:25:47 +05:30
Anish Mukherjee
016e7fd2f9
cleanup comments
2023-01-05 18:53:12 +05:30
Anish Mukherjee
8b5eb0cbd4
add host endpoints to cli
2023-01-05 18:53:12 +05:30
dcarns
ae6a12b16b
Merge pull request #1887 from gravitl/feature_cli_sso
...
Add headless oauth login endpoint for CLI
2023-01-03 13:27:18 -05:00
Matthew R. Kasun
66723bf0e4
change cli name to nmctl
2023-01-03 10:36:58 -05:00
Anish Mukherjee
fd21d960fc
minor refactor
2023-01-02 16:06:14 +05:30
Anish Mukherjee
93fdf359b3
add callback for headless sso
2023-01-02 14:48:39 +05:30
Anish Mukherjee
289bb3e5ec
add headless sso login
2023-01-02 13:18:40 +05:30
Anish Mukherjee
2a5b973144
fix grammatical error
2022-12-09 22:28:03 +05:30
Anish Mukherjee
9f2def1808
add master_key check on JWT refresh
2022-12-09 20:56:43 +05:30
Anish Mukherjee
79f318e0c5
deny/allow bi-directional
2022-12-09 20:35:29 +05:30
Anish Mukherjee
98e60edb19
retry only once for refreshing JWT
2022-12-09 19:55:27 +05:30
Anish Mukherjee
94dc0d9c8a
add a simple get request function
2022-12-08 19:04:23 +05:30
Anish Mukherjee
b2d0a6dfe9
use cached JWT token and refresh on expiry
2022-12-08 18:53:57 +05:30
Anish Mukherjee
87f560f0ac
add function comment
2022-12-08 18:07:45 +05:30
Anish Mukherjee
8b62bdec62
add acl allow/deny subcommands
2022-12-06 21:10:18 +05:30
Anish Mukherjee
a98a116bf7
add network users subcommand
2022-11-29 19:23:39 +05:30
Anish Mukherjee
683fe7abb1
add metrics and usergroup subcommands
2022-11-28 19:27:17 +05:30
Anish Mukherjee
d999f7b86e
add comments to exported functions
2022-11-28 18:16:56 +05:30
Anish Mukherjee
da2d143e39
add user subcommand
2022-11-28 18:16:56 +05:30
Anish Mukherjee
db014c93bd
add external client config fetch subcommand
2022-11-28 18:16:56 +05:30
Anish Mukherjee
9061c2f26c
use tables for displaying list command output
2022-11-28 18:16:56 +05:30
Anish Mukherjee
9d37f068b2
add more flags for create/update operations
2022-11-28 18:16:56 +05:30
Anish Mukherjee
b58040b9b8
add user create and list
2022-11-28 18:16:56 +05:30
Anish Mukherjee
7004c8dd3e
add ext_client create, get, delete and list commands
2022-11-28 18:16:56 +05:30