netbird icon indicating copy to clipboard operation
netbird copied to clipboard

Add a logout parameter to the netbird client AND/OR allow users to configure the ephemeral timer

Open roonodz opened this issue 10 months ago • 2 comments

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

  1. 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.
  2. 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:

  1. Configure the ephemeral timer at key setup. So we can setup a longer delay like 24h.
  2. Add a parameter to signoff/logout from the netbird client command line.

Additional context None

roonodz avatar Apr 10 '24 08:04 roonodz

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 avatar May 29 '24 21:05 b100dian

@b100dian will this clean up the peer for the server as well?

enyachoke avatar May 30 '24 06:05 enyachoke

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.

roonodz avatar May 30 '24 09:05 roonodz

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.

b100dian avatar Jun 01 '24 08:06 b100dian