Commit graph

19 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
Abhishek Kondur 423abf0fe4 add use_turn option to config,check if server is using turn 2023-04-28 14:06:28 +05:30
Abhishek Kondur 9f5239ec79 re-register host with turn 2023-04-26 13:12:16 +04:00
0xdcarns 18c9bcc58f adapted sso to host registration 2023-04-17 22:23:17 -04:00
Anish Mukherjee 8a9f569c4f add emqx acls 2023-03-21 17:47:57 +05:30
afeiszli 0bbf1dbe54 hotfixing logging and model issues found during IoT testing 2023-03-16 13:41:56 -04:00
0xdcarns ee9df20b05 changed register response, simplified host port check dereference 2023-03-10 11:43:26 -05:00
0xdcarns 9a7407f635 updated logic to add new nodes 2023-02-27 19:18:41 -05:00
0xdcarns 977c9c8c19 send peer update after request + fix pass update issue 2023-02-27 12:32:07 -05:00
0xdcarns 0335e258ad added TODO comment and allowed using enrollment key more than once 2023-02-24 12:08:32 -05:00
0xdcarns 541e232ad7 update comments 2023-02-17 12:09:18 -05:00
0xdcarns 9103efa88f added request ack on register 2023-02-17 11:54:25 -05:00
0xdcarns 6b30cef968 handled node additions in more elegant manner 2023-02-17 11:32:02 -05:00
0xdcarns 08248e1b35 added log 2023-02-16 19:34:25 -05:00
0xdcarns 6e1db0bb3f removed admin security check 2023-02-16 16:42:08 -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
0xdcarns 71ce2caabd added tokenization + detokenization 2023-02-15 16:32:16 -05:00