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
3e0d7720c8
return {} if no records found for acls/metrics
2023-05-04 16:50:03 -04:00
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
dcarns
700147e3ca
Merge pull request #2171 from walkerwmanuel/GRA-1336-sort-before-sending
...
GRA-1336: sort before sending
2023-04-19 13:08:08 -04:00
Matthew R Kasun
920590b651
fix build issue
2023-04-19 09:58:16 -04:00
Matthew R Kasun
754ab44a48
Merge remote-tracking branch 'origin/develop' into GRA-1529-key-update
2023-04-19 09:48:04 -04:00
Matthew R Kasun
34eb699752
deprecated ability to edit networks
2023-04-14 10:39:36 -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
0xdcarns
0b7df753f7
removed references to AccessKey model
2023-03-13 16:02:44 -04:00
0xdcarns
6643c9a401
adapt createNetwork + default host addition
2023-02-13 15:17:13 -05:00
0xdcarns
81d9954f37
added logic to add default hosts to networks upon network creation
2023-02-10 13:45:57 -05:00
Matthew R Kasun
77cfae41ff
remove postup/down
2023-02-02 11:16:54 -05:00
dcarns
94108e0007
Merge pull request #1962 from gravitl/GRA-1024/mq_dyn_sec_refactor
...
Gra 1024/mq dyn sec refactor
2023-01-23 15:00:33 -05:00
Abhishek Kondur
a33338fa99
remove adding,modifying roles
2023-01-22 17:57:49 +04:00
Matthew R Kasun
9edb541388
remove localrange
2023-01-20 05:42:05 -05:00
Abhishek Kondur
9b1d8b1d89
remove parameters from mq peer msg
2023-01-10 10:49:15 +05:30
Matthew R. Kasun
8bfe255eab
Merge remote-tracking branch 'origin/develop' into netclient_refactor_latest
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2023-01-04 14:16:12 -05:00
0xdcarns
8c92308ccf
made mq functions a little easier to read and re-use
2022-12-28 12:10:03 -05:00
0xdcarns
875718d824
consolidated add default hosts to net function
2022-12-27 10:15:00 -05:00
0xdcarns
82479863f1
added default node association with networks
2022-12-23 16:14:45 -05:00
walkerwmanuel
6611941ca2
Replaced string methods with HTTP consts
2022-12-23 09:49:08 -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
kayos@tcp.direct
e878e4820a
Fixes+Chores: avoid de-referencing nil ptrs + lint
...
- Avoid referencing conditions we know are false/true
- Avoid using name of imported package as variable
- Avoid broken (see list item 1) if else statement in `ipservice.go` by refactoring to switch statement
- When assigning a pointer value to a variable along with an error, check that error before referencing that pointer. Thus avoiding de-referencing a nil and causing a panic.
*** This item is the most important ***
- Standard gofmt package sorting + linting; This includes fixing comment starts for go doc
- Explicit non-handling of unhandled errors where appropriate (assigning errs to _ to reduce linter screaming)
- Export ErrExpired in `netcache` package so that we can properly reference it using `errors.Is` instead of using `strings.Contains` against an `error.Error()` value
2022-12-06 20:11:20 -08:00
Anish Mukherjee
fb84ddc6f1
remove unused endpoints
2022-11-30 16:20:05 +05:30
0xdcarns
ea854a6b98
fixed admin issue and potential panics
2022-11-10 14:54:53 -05:00
Abhishek Kondur
677d9fcc8d
added comments
2022-09-29 23:59:18 +05:30
Abhishek Kondur
a95468111d
added roles,acls for clients
2022-09-29 22:54:41 +05:30
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
cameronts
661290c84d
Update swagger docs
2022-09-10 21:51:59 -07:00
cameronts
cb23b871dd
Added swagger for API docs.
2022-09-06 05:20:24 -07:00
cameronts
459e7956cd
Add swagger base
2022-09-02 13:42:51 -07:00
Matthew R. Kasun
184e5a66d9
refactor server routing
2022-08-19 11:25:39 -04:00
Abhishek Kondur
63708e6e36
GRA-414: added additional logs for acl controllers
2022-07-13 14:53:37 +04:00
Abhishek Kondur
5ff30d3ca8
GRA-414: added additional logs for extclient controllers
2022-07-13 10:01:25 +04:00
Abhishek Kondur
5163f77e1f
GRA-414: added additional logs for network controllers
2022-07-12 18:50:32 +04:00
Matthew R. Kasun
e5a59d7081
add bool to control update to node
2022-07-07 05:52:43 -04:00
afeiszli
d63bae351d
fixing rangeupdate for ipv6, setting ipv4 assignment
2022-05-12 19:35:46 -04:00
0xdcarns
7654556a3a
bugfix tweaks
2022-04-25 13:10:55 -04:00
0xdcarns
3ca9843328
small bug fixes
2022-04-25 13:10:55 -04:00
0xdcarns
99abd9666d
removed required status for ipv6 and added check on create network
2022-04-25 13:10:55 -04:00
0xdcarns
8e976d1f55
removed isdualstack references
2022-04-25 13:09:23 -04:00
Matthew R. Kasun
747d6bc692
remove comms network leftovers
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-22 05:21:35 -04:00
Matthew R. Kasun
7152f6ccd4
remove references to grpc/comms net
2022-04-21 15:53:44 -04:00
Matthew R. Kasun
886ec31553
remove grpc
2022-04-21 15:04:44 -04:00
0xdcarns
ffbc0db33f
send created network back in response to net create
2022-03-17 10:08:28 -04:00