Repository navigation
Disable validating transport if INSECURE_DISABLE_URL_VALIDATION is set - #1471
Merged
Merged
Conversation
When deploying a dev KC instance, it is sometimes needed to set INSECURE_DISABLE_URL_VALIDATION because the KC instance won't be using TLS. We didn't honor INSECURE_DISABLE_URL_VALIDATION in the round-tripper which was causing http://keycloak and similar URLs to be rejected during connection even if they parsed fine.
jhrozek
added a commit
that referenced
this pull request
Aug 18, 2025
…tartup When working on patches for PRs #1470 and #1471 I've been initially seeing very long timeouts on toolhive startup. The underlying reason were the transports not allowing me but the fact that the timeout was so long and happened on toolhive startup was really irritating. I think we should fetch the JWKs when we needed, not on startup in order to not block the startup.
JAORMX
approved these changes
Aug 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When deploying a dev KC instance, it is sometimes needed to set INSECURE_DISABLE_URL_VALIDATION because the KC instance won't be using TLS. We didn't honor INSECURE_DISABLE_URL_VALIDATION in the round-tripper which was causing http://keycloak and similar URLs to be rejected during connection even if they parsed fine.