Set absolute expiration time instead of time elapsed #1435

Open
opened 2025-11-20 05:30:16 -05:00 by saavagebueno · 4 comments
Owner

Originally created by @bryanjuho on GitHub (Nov 20, 2024).

Is your feature request related to a problem? Please describe.

Our team use netbird on a daily basis, but netbird's expiration of 24 hours frequently interrupts VPN connection during work hours.
For instance I connect at 10:00am on Monday, but on Tuesday I start 1 hour earlier, then it's guaranteed my connection will disconnect mid-development after an hour.

Describe the solution you'd like
Would be great if we could set an expiration time (like at 12:00 AM everyday instead of every 24 Hours).
This way, though everybody needs to re-login every day in the morning, significantly less people be interrupted during active usage.

Describe alternatives you've considered
Of course it would be best if there would be a feature to alert user around 30 minutes prior to expiration whether to extend the session but I assume it would be a major update?

Additional context
Thank you.

Originally created by @bryanjuho on GitHub (Nov 20, 2024). **Is your feature request related to a problem? Please describe.** Our team use netbird on a daily basis, but netbird's expiration of 24 hours frequently interrupts VPN connection during work hours. For instance I connect at 10:00am on Monday, but on Tuesday I start 1 hour earlier, then it's guaranteed my connection will disconnect mid-development after an hour. **Describe the solution you'd like** Would be great if we could set an expiration time (like `at 12:00 AM everyday` instead of `every 24 Hours`). This way, though everybody needs to re-login every day in the morning, significantly less people be interrupted during active usage. **Describe alternatives you've considered** Of course it would be best if there would be a feature to alert user around 30 minutes prior to expiration whether to extend the session but I assume it would be a major update? **Additional context** Thank you.
saavagebueno added the feature-request label 2025-11-20 05:30:16 -05:00
Author
Owner

@gecube commented on GitHub (Nov 21, 2024):

Hi!

Interesting thing. Never thought about it. Maybe 25h would help? Or probably the logic of netbird should be rewritten? What do I mean? Usually you don't leave laptop or computer in active mode. When you stop work, you put it to sleep mode. And then strange thing occurs. Like netbird could not connect and return 403 Okta error. I think the relogin should occur right after getting out of sleep mode, so the session would not be interrupted during the day work. And yes, I totally agree that it is annoying when the session is closed in the middle of your work. Let's say you was downloading file over ssh... and it is not always when you can download only remaining part so you are forced to start from the very beginning.

@gecube commented on GitHub (Nov 21, 2024): Hi! Interesting thing. Never thought about it. Maybe 25h would help? Or probably the logic of netbird should be rewritten? What do I mean? Usually you don't leave laptop or computer in active mode. When you stop work, you put it to sleep mode. And then strange thing occurs. Like netbird could not connect and return 403 Okta error. I think the relogin should occur right after getting out of sleep mode, so the session would not be interrupted during the day work. And yes, I totally agree that it is annoying when the session is closed in the middle of your work. Let's say you was downloading file over ssh... and it is not always when you can download only remaining part so you are forced to start from the very beginning.
Author
Owner

@samroweemployinc commented on GitHub (Nov 27, 2024):

Ideally there would be a way to force re-authentication to start a new session. I don't use a laptop and I run into this problem every single day.

@samroweemployinc commented on GitHub (Nov 27, 2024): Ideally there would be a way to force re-authentication to start a new session. I don't use a laptop and I run into this problem every single day.
Author
Owner

@fenykep commented on GitHub (Mar 6, 2025):

Could it be that this is not a Netbird configuration, but rather of the identity/auth service?
I currently don't manage our identity service nor Netbird, so I don't understand the problem good enough.

If I simply disconnect-connect the netbird client inside the authenticated 24h window I am not promted to authenticate, the connection is simply reestabilished.

@fenykep commented on GitHub (Mar 6, 2025): Could it be that this is not a Netbird configuration, but rather of the identity/auth service? I currently don't manage our identity service nor Netbird, so I don't understand the problem good enough. If I simply disconnect-connect the netbird client inside the authenticated 24h window I am not promted to authenticate, the connection is simply reestabilished.
Author
Owner

@bryanjuho commented on GitHub (Mar 6, 2025):

Could it be that this is not a Netbird configuration, but rather of the identity/auth service? I currently don't manage our identity service nor Netbird, so I don't understand the problem good enough.

If I simply disconnect-connect the netbird client inside the authenticated 24h window I am not promted to authenticate, the connection is simply reestabilished.

I'm currently using Auth0. When I disconnect-connect the client during the 24h window, it does reconnect without authentication but the 24h window is not resetted. Thus it is impossible to extend the expiration, which may cause interruptions

@bryanjuho commented on GitHub (Mar 6, 2025): > Could it be that this is not a Netbird configuration, but rather of the identity/auth service? I currently don't manage our identity service nor Netbird, so I don't understand the problem good enough. > > If I simply disconnect-connect the netbird client inside the authenticated 24h window I am not promted to authenticate, the connection is simply reestabilished. I'm currently using Auth0. When I disconnect-connect the client during the 24h window, it does reconnect without authentication but the 24h window is not resetted. Thus it is impossible to extend the expiration, which may cause interruptions
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1435