- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 923
 
[management] Add idp timeout env variable #4647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[management] Add idp timeout env variable #4647
Conversation
… recorder is not available (netbirdio#4652)
| 
           @mlsmaycon how does one get this reviewed?  | 
    
        
          
                management/server/idp/util.go
              
                Outdated
          
        
      | return defaultTimeout | ||
| } | ||
| 
               | 
          ||
| timeoutInt, err := strconv.Atoi(timeoutStr) | 
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
| 
           @bcmmbaga can you have a look?  | 
    
          
 | 
    



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
Documentation
Select exactly one:
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/__