When the session expires (because of peer login expiration settings) the client looks like it's connected but it's not #959

Open
opened 2025-11-20 05:20:38 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @andresemartinez on GitHub (Jun 8, 2024).

Describe the problem

I'm using Netbird Selfhosted with Google as IDP. I have peer login expiration set to 24hs. When the time comes the session expires and I lose connection and DNS resolution but the client icon is still orange and if I right click it offers to "disconnect". I could reproduce this on Mac and Windows laptops.

To Reproduce

Steps to reproduce the behavior:

  1. Have an instance of Netbird Control Plane with Google as IDP
  2. Configure Peer login expiration to 1h
  3. Connect with a Windows or Mac client using Google SSO
  4. Put the laptop in sleep mode (not sure if necessary)
  5. Wake the laptop up after 1h
  6. Try to access any resource on another peer

Expected behavior

The client icon and menu should show that you are disconected and need to authenticate again. A desktop notification like the one the OpenVPN client has would be awesome.

Are you using NetBird Cloud?

I'm using Selfhosted Control Plane with Google as IDP

NetBird version

Control Plane: 0.27.9
Clients for Mac and Windows: 0.27.9 and 0.27.10

Originally created by @andresemartinez on GitHub (Jun 8, 2024). **Describe the problem** I'm using Netbird Selfhosted with Google as IDP. I have peer login expiration set to 24hs. When the time comes the session expires and I lose connection and DNS resolution but the client icon is still orange and if I right click it offers to "disconnect". I could reproduce this on Mac and Windows laptops. **To Reproduce** Steps to reproduce the behavior: 1. Have an instance of Netbird Control Plane with Google as IDP 2. Configure Peer login expiration to 1h 3. Connect with a Windows or Mac client using Google SSO 4. Put the laptop in sleep mode (not sure if necessary) 5. Wake the laptop up after 1h 6. Try to access any resource on another peer **Expected behavior** The client icon and menu should show that you are disconected and need to authenticate again. A desktop notification like the one the OpenVPN client has would be awesome. **Are you using NetBird Cloud?** I'm using Selfhosted Control Plane with Google as IDP **NetBird version** Control Plane: 0.27.9 Clients for Mac and Windows: 0.27.9 and 0.27.10
saavagebueno added the clientwaiting-feedbackclient-ui labels 2025-11-20 05:20:38 -05:00
Author
Owner

@nazarewk commented on GitHub (Apr 23, 2025):

@andresemartinez can you confirm whether it is still the case on the latest NetBird versions?

@nazarewk commented on GitHub (Apr 23, 2025): @andresemartinez can you confirm whether it is still the case on the latest NetBird versions?
Author
Owner

@andresemartinez commented on GitHub (Apr 23, 2025):

Hey! I haven't used NetBird in a while due to a different issue. I'm going to update everything now and will report back once I've tested it.

@andresemartinez commented on GitHub (Apr 23, 2025): Hey! I haven't used NetBird in a while due to a different issue. I'm going to update everything now and will report back once I've tested it.
Author
Owner

@janosmiko commented on GitHub (Aug 1, 2025):

@nazarewk I can confirm - I'm on macOS - (and one of my colleagues - on Windows - reported this) when the session expired we did not get logged out or prompted to login again. After a manual disconnect and reconnect everything works again.
I raised the
We are on a self-hosted instance using Azure OIDC.

@janosmiko commented on GitHub (Aug 1, 2025): @nazarewk I can confirm - I'm on macOS - (and one of my colleagues - on Windows - reported this) when the session expired we did not get logged out or prompted to login again. After a manual disconnect and reconnect everything works again. I raised the We are on a self-hosted instance using Azure OIDC.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#959