netbird
netbird copied to clipboard
Add a logout parameter to the netbird client AND/OR allow users to configure the ephemeral timer
Is your feature request related to a problem? Please describe. We use ansible to automatically enroll our servers in Netbird.
But sometimes we want to remove them. We do have an ansible code that will properly clear the server before it will be destroy so it would be nice to have a logout feature in the netbird client.
The problem is as follows
- We can't use the ephemeral option because 10min is too short. Not all our servers should be deleted for such a short period of downtime.
- We can't use the netbird client because there's no option to signoff/logout.
Describe the solution you'd like Ideally, it would be great to have both options:
- Configure the ephemeral timer at key setup. So we can setup a longer delay like 24h.
- Add a parameter to signoff/logout from the netbird client command line.
Additional context None
There is an /etc/netbird/config.json or /var/snap/netbird/common/config.json that can be moved away (deleted if you know what you're doing) to achieve this in my experience
@b100dian will this clean up the peer for the server as well?
Yes, my goal was to clean up the NetBird server database. The server is being decommissioned anyway. And remove the configuration file does not achieve this goal.
No, it doesn't remove the peer registration. This type of logout by removing configuration was useful for me when I cloned a VM that was already logged in.