Repository navigation
fix(core): honour http.nonProxyHosts in the Micronaut HTTP client (backport #22390) - #22392
Merged
Merged
Conversation
Contributor
π OpenAPI Spec Changes
π Docker image
π§ͺ Java Unit Tests β (8 failed, 9159 passed, 32 skipped)
|
||||||||||||||||||||||||||||||||||||||||||
Contributor
Tests report quick summary:
failed β > tests: 9199, success: 9159, skipped: 32, failed: 8 (π 9199 executed, π¦ 0 from cache)
Failed tests:worker > io.kestra.worker.stores.GrpcKVBackendTest > shouldRejectAStorageLocationThatIsNotValidOnTheController() failed β in 0.105worker > io.kestra.worker.stores.GrpcKVBackendTest > shouldGetListAndDeleteEntriesOfTheClusterStorage() failed β in 0.128worker > io.kestra.worker.stores.GrpcKVBackendTest > shouldWriteAnEntryThatTheClusterStorageServes() failed β in 0.221worker > io.kestra.worker.stores.GrpcKVBackendTest > shouldRefuseToOverwriteWhenAskedNotTo() failed β in 0.121worker > io.kestra.worker.stores.GrpcKVBackendTest > shouldFailWhenTheValueExpired() failed β in 0.024worker > io.kestra.worker.stores.GrpcKVBackendTest > shouldReadAValueSetOnTheClusterStorage() failed β in 0.095worker > io.kestra.worker.stores.GrpcKVBackendTest > shouldStopReadingAValueClosedBeforeItsEnd() failed β in 0.049worker > io.kestra.worker.stores.GrpcKVBackendTest > shouldReturnEmptyWhenNoValueIsStored() failed β in 0.013Develocity build scan: https://develocity.kestra.io/s/bxpaxfdnbrdkc Flaky tests report quick summary:success β > tests: 11, success: 11, skipped: 0, failed: 0 unfold for details
|
β¦once A pattern with a wildcard at both ends (*.corp.*) now matches hosts that contain it, as the JDK does, instead of never matching. http.nonProxyHosts is read once when the class loads rather than on every request.
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.
Closes https://github.com/kestra-io/kestra-ee/issues/12313.
Backport of #22390 to
releases/v2.0.x, so the fix ships in 2.0.10. The issue was reported on 2.0.2 during an on-premises PoC.β¨ Description
Once
micronaut.http.client.proxy-addressis set, every Micronaut HTTP client ignores the JVMhttp.nonProxyHostsproperty, so the OIDC discovery of an internal identity provider goes to the corporate proxy and SSO login fails.NonProxyHostsListenerinstalls aProxySelectoron every Micronaut client configuration that has a proxy address, sending hosts listed inhttp.nonProxyHostsdirect and everything else to the configured proxy. See #22390 for the full description.The cherry-pick applied cleanly. The branch uses the same Micronaut platform as
develop(4.10.22).π οΈ Backend Checklist
./gradlew :core:test --tests NonProxyHostsListenerTeston this branch)π Additional Notes
Companion docs PR: kestra-io/docs#6271, updated to say 2.0.10.