Skip to content

Add missing HTTP timeout to FAB JWKS fetching#63058

Merged
vincbeck merged 1 commit intoapache:mainfrom
Ironankit525:fix/fab-jwks-http-timeout
Mar 9, 2026
Merged

Add missing HTTP timeout to FAB JWKS fetching#63058
vincbeck merged 1 commit intoapache:mainfrom
Ironankit525:fix/fab-jwks-http-timeout

Conversation

@Ironankit525
Copy link
Contributor

This PR adds a 30s timeout to requests.get calls in the FAB security manager override when fetching JSON Web Key Sets (JWKS) from Authentik or Microsoft.

Justification:

Fetching JWKS is a fast metadata operation. If the remote server hangs, it will block the authentication process indefinitely, consuming worker resources. A 30-second timeout ensures it fails fast.

Split from #63042 and closes #63033.

Adds a 30s timeout to JWKS request (from Authentik or Microsoft) to prevent indefinite hangs. This is a network call for auth metadata which should fail fast if the remote server is unresponsive.
Copy link
Contributor

@SameerMesiah97 SameerMesiah97 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@vincbeck vincbeck merged commit a15deac into apache:main Mar 9, 2026
89 checks passed
@boring-cyborg
Copy link

boring-cyborg bot commented Mar 9, 2026

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing timeouts in HTTP requests across multiple providers

3 participants