Enforcing Login Prompt or 2FA at Every Connection #1339

Closed
opened 2025-11-20 05:28:41 -05:00 by saavagebueno · 4 comments
Owner

Originally created by @tjcologne on GitHub (Oct 15, 2024).

Description:

We're currently running a self-hosted Netbird instance with Zitadel as the identity provider, following the advanced installation guide.

For security reasons, we'd like to require users to authenticate (via password or 2FA) each time they connect to the network. This means that upon starting their PC or laptop (even from standby), users should be prompted to verify their identity.

Currently, the login process occurs only once, and the generated token doesn't expire. We've explored various settings to reduce the token's lifespan, but haven't found a way to explicitly force a login prompt at every connection.

We've attempted to adjust the "OIDC Token Lifetime and Expiration" values, but this hasn't yielded the desired result.

Question:

Could you please guide us on how to achieve this goal? Do we need to consider a different identity provider, or is there a configuration within Netbird or Zitadel that can enforce the desired behavior?

Thank you for your assistance.

Are you using NetBird Cloud?

self-host NetBird's control plane with Zitadel

NetBird version

netbird version 0.30.0

Originally created by @tjcologne on GitHub (Oct 15, 2024). **Description:** We're currently running a self-hosted Netbird instance with Zitadel as the identity provider, following the advanced installation guide. For security reasons, we'd like to require users to authenticate (via password or 2FA) each time they connect to the network. This means that upon starting their PC or laptop (even from standby), users should be prompted to verify their identity. Currently, the login process occurs only once, and the generated token doesn't expire. We've explored various settings to reduce the token's lifespan, but haven't found a way to explicitly force a login prompt at every connection. We've attempted to adjust the "OIDC Token Lifetime and Expiration" values, but this hasn't yielded the desired result. **Question:** Could you please guide us on how to achieve this goal? Do we need to consider a different identity provider, or is there a configuration within Netbird or Zitadel that can enforce the desired behavior? Thank you for your assistance. **Are you using NetBird Cloud?** self-host NetBird's control plane with Zitadel **NetBird version** `netbird version` 0.30.0
saavagebueno added the waiting-feedbacktriage-needed labels 2025-11-20 05:28:41 -05:00
Author
Owner

@tjcologne commented on GitHub (Oct 21, 2024):

[management] Add session expire functionality based on inactivity by @ctrl-zzz in https://github.com/netbirdio/netbird/pull/2326

The above mentioned feature of 30.2 should be exactly what we need. However we don't know how to activate this feature.
We updated server and clients, yet don't see any options to change the time.

@tjcologne commented on GitHub (Oct 21, 2024): [management] Add session expire functionality based on inactivity by @ctrl-zzz in https://github.com/netbirdio/netbird/pull/2326 The above mentioned feature of 30.2 should be exactly what we need. However we don't know how to activate this feature. We updated server and clients, yet don't see any options to change the time.
Author
Owner

@heisbrot commented on GitHub (Oct 21, 2024):

Hey @tjcologne ,

Dashboard implementation is currently in progress. I will update you once it is finished.

@heisbrot commented on GitHub (Oct 21, 2024): Hey @tjcologne , Dashboard implementation is currently in progress. I will update you once it is finished.
Author
Owner

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

Hello @tjcologne,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

@nazarewk commented on GitHub (Apr 28, 2025): Hello @tjcologne, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@mlsmaycon commented on GitHub (Jun 1, 2025):

closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.

@mlsmaycon commented on GitHub (Jun 1, 2025): closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1339