Skip to content

Conversation

@ressys1978
Copy link

Describe your changes

Introduced the NETBIRD_IDP_TIMEOUT environment variable to the management service. This allows configuring a timeout for supported IDPs. If the variable is unset or contains an invalid value, a default timeout of 10 seconds is used as a fallback.

This is needed for larger IDP environments where 10s is just not enough time.

Issue ticket number and link

This should fix #1386

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

I don't feel this needs to be documented at this time, as currently the number of self-hosted netbird users with larger IDP environments is probably very small.

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__

@ressys1978 ressys1978 changed the title {management Add idp timeout env variable [management] Add idp timeout env variable Oct 15, 2025
@ressys1978
Copy link
Author

@mlsmaycon how does one get this reviewed?

return defaultTimeout
}

timeoutInt, err := strconv.Atoi(timeoutStr)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use time.ParseDuration("10s") so match other conversations we have in the system

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mlsmaycon I've made the requested change.

@mlsmaycon
Copy link
Collaborator

@bcmmbaga can you have a look?

@sonarqubecloud
Copy link

@ressys1978 ressys1978 requested a review from mlsmaycon October 24, 2025 11:29
@bcmmbaga bcmmbaga self-requested a review October 28, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keycloak idp timeout

6 participants