netbird/management/server
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
..
activity Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
http Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
idp Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
jwtclaims Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
metrics Account ephemeral setup keys metrics (#1128) 2023-09-05 23:04:14 +02:00
mock_server Remove unused methods from AccountManager interface (#1149) 2023-09-18 12:25:12 +02:00
status Move Login business logic from gRPC API to Accountmanager (#713) 2023-03-03 18:35:38 +01:00
telemetry Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
testdata switch PATs to map and add deletion 2023-03-20 16:14:55 +01:00
account_test.go Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
account.go Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
config.go Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
dns_test.go Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
dns.go Prevent sending nameserver configuration when peer is set as NS (#962) 2023-06-28 17:29:02 +02:00
ephemeral_test.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
ephemeral.go Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
event_test.go use UTC everywhere in server 2023-04-03 15:09:35 +02:00
event.go use UTC everywhere in server 2023-04-03 15:09:35 +02:00
file_store_test.go JWT Groups support (#966) 2023-06-27 18:51:05 +04:00
file_store.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
group_test.go Check links of groups before delete it (#1010) 2023-07-14 20:45:40 +02:00
group.go Remove unused methods from AccountManager interface (#1149) 2023-09-18 12:25:12 +02:00
grpcserver.go Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
management_proto_test.go Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
management_suite_test.go Move management server to a separate directory (#67) 2021-07-24 16:14:29 +02:00
management_test.go Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
nameserver_test.go Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
nameserver.go Remove unused methods from AccountManager interface (#1149) 2023-09-18 12:25:12 +02:00
network_test.go Exclude second last IP from allocation to use it in the Fake DNS (#912) 2023-05-30 18:26:44 +04:00
network.go Exclude second last IP from allocation to use it in the Fake DNS (#912) 2023-05-30 18:26:44 +04:00
peer_test.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
peer.go Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
personal_access_token_test.go move into separate package 2023-05-16 12:57:56 +02:00
personal_access_token.go Improve account copying (#1069) 2023-08-22 17:56:39 +02:00
policy_test.go Optimize ACL performance (#994) 2023-07-18 13:12:50 +04:00
policy.go Improve account copying (#1069) 2023-08-22 17:56:39 +02:00
route_test.go Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
route.go Remove unused methods from AccountManager interface (#1149) 2023-09-18 12:25:12 +02:00
rule.go Improve account copying (#1069) 2023-08-22 17:56:39 +02:00
scheduler_test.go Proactively expire peers' login per account (#698) 2023-02-27 16:44:26 +01:00
scheduler.go Proactively expire peers' login per account (#698) 2023-02-27 16:44:26 +01:00
setupkey_test.go Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
setupkey.go Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
store.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
turncredentials_test.go Rename module to netbirdio/netbird (#288) 2022-03-26 12:08:54 +01:00
turncredentials.go remove UTC from some not store related operations 2023-04-10 10:54:23 +02:00
updatechannel_test.go Use select for turn credentials and peers update (#443) 2022-08-27 12:57:03 +02:00
updatechannel.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
user_test.go Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
user.go Handle user delete (#1113) 2023-09-19 18:08:40 +02:00