Commit graph

12 commits

Author SHA1 Message Date
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 33249f37ac if -- else to determine type 2023-05-08 06:42:16 -04:00
Matthew R Kasun 3567811aab add type to enrollement key 2023-05-05 11:03:59 -04:00
Matthew R Kasun 6d6ba3aa7d random string
update algorithm
consolidate MakeRandomString, RandomString & GenerateCrytoString into
one function
2023-05-02 13:28:00 -04:00
0xdcarns 596de6b9e3 shortened name 2023-02-16 18:56:45 -05:00
0xdcarns d8c7ab980e fixed nil pointer from dereference in loop 2023-02-16 15:41:23 -05:00
0xdcarns 9078608bd1 fix initial map allocation 2023-02-16 15:13:40 -05:00
0xdcarns 607198d563 added host registration endpoint 2023-02-16 14:27:57 -05:00
walkerwmanuel 442b32e0d9 Wrote test to test Enrolment Keys 2023-02-16 10:56:13 -05:00
0xdcarns 71ce2caabd added tokenization + detokenization 2023-02-15 16:32:16 -05:00
0xdcarns 0e5e34ef0c added try to use func and edited tests 2023-02-15 15:52:58 -05:00
0xdcarns db4ea9faa4 completed crud unit tests 2023-02-15 15:27:26 -05:00
Renamed from logic/enrollment_key.go (Browse further)