mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-24 09:03:14 +01:00
d4b6d7646c
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.
16 lines
373 B
Bash
Executable File
16 lines
373 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if ! which realpath > /dev/null 2>&1
|
|
then
|
|
echo realpath is not installed
|
|
echo run: brew install coreutils
|
|
exit 1
|
|
fi
|
|
|
|
old_pwd=$(pwd)
|
|
script_path=$(dirname $(realpath "$0"))
|
|
cd "$script_path"
|
|
go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@4a1477f6a8ba6ca8115cc23bb2fb67f0b9fca18e
|
|
oapi-codegen --config cfg.yaml openapi.yml
|
|
cd "$old_pwd" |