netbird/management/server/http
Givi Khojanashvili d4b6d7646c
Handle user delete (#1113)
Implement user deletion across all IDP-ss. Expires all user peers
when the user is deleted. Users are permanently removed from a local
store, but in IDP, we remove Netbird attributes for the user
untilUserDeleteFromIDPEnabled setting is not enabled.

To test, an admin user should remove any additional users.

Until the UI incorporates this feature, use a curl DELETE request
targeting the /users/<USER_ID> management endpoint. Note that this
request only removes user attributes and doesn't trigger a delete
from the IDP.

To enable user removal from the IdP, set UserDeleteFromIDPEnabled
to true in account settings. Until we have a UI for this, make this
change directly in the store file.

Store the deleted email addresses in encrypted in activity store.
2023-09-19 18:08:40 +02:00
..
api Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
middleware Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
util Check links of groups before delete it (#1010) 2023-07-14 20:45:40 +02:00
accounts_handler_test.go Autopropagate peers by JWT groups (#1037) 2023-08-07 19:44:51 +04:00
accounts_handler.go Autopropagate peers by JWT groups (#1037) 2023-08-07 19:44:51 +04:00
dns_settings_handler_test.go changed the naming convention for all handling objects and methods to have unified way 2023-02-28 15:01:24 +01:00
dns_settings_handler.go changed the naming convention for all handling objects and methods to have unified way 2023-02-28 15:01:24 +01:00
events_handler_test.go Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
events_handler.go Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
groups_handler_test.go Remove unused methods from AccountManager interface (#1149) 2023-09-18 12:25:12 +02:00
groups_handler.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
handler.go Fix api Auth with PAT when a custom UserIDClaim is configured in management.json (#1120) 2023-09-01 18:09:59 +02:00
nameservers_handler_test.go Remove unused methods from AccountManager interface (#1149) 2023-09-18 12:25:12 +02:00
nameservers_handler.go API cleanup (#824) 2023-05-03 00:15:25 +02:00
pat_handler_test.go Block user through HTTP API (#846) 2023-05-11 18:09:36 +02:00
pat_handler.go move validation into account manager + func for get requests 2023-03-30 13:58:44 +02:00
peers_handler_test.go API cleanup (#824) 2023-05-03 00:15:25 +02:00
peers_handler.go merge openapi with version from docs repo 2023-05-26 15:32:52 +02:00
policies_handler_test.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
policies_handler.go Fix validation for ACL policy rules ports (#938) 2023-06-07 08:57:43 +02:00
routes_handler_test.go Remove unused methods from AccountManager interface (#1149) 2023-09-18 12:25:12 +02:00
routes_handler.go API cleanup (#824) 2023-05-03 00:15:25 +02:00
rules_handler_test.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
rules_handler.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
setupkeys_handler_test.go Update ephemeral field on the API response (#1129) 2023-09-06 10:40:45 +02:00
setupkeys_handler.go Update ephemeral field on the API response (#1129) 2023-09-06 10:40:45 +02:00
users_handler_test.go Add API Endpoint for Resending User Invitations in Auth0 (#989) 2023-07-03 12:20:19 +02:00
users_handler.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00