-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Spring Web reactive client does not configure a proxy using system properties by default #31023
Comments
I am not sure what you mean by that. I am not aware our codebase reacts to a system property to configure a proxy. Can you please clarify what you mean by that? Perhaps the connector that you are using is doing this for you? |
Hi, thanks for responding. It is the connector being used that's doing so, but it's not the one I'm using - it's the one that various Spring components are using whenever they invoke In my specific circumstances I hit the problem during OpenID Connect login processing, which makes three network calls to fetch resources (four, if one includes the start-up fetch of provider info), all of which use a different Because the choice of connector is hard-wired in This change doesn't solve all the concerns that Spring Security are looking into - their issue covers timeouts and load balancing, at least - but it does prevent other people from playing whack-a-mole with finding components that make connections using |
Sorry, I don't think that answers my question. Can you provide the reference of what is reacting to a system property with |
The Java The asynchronous connectors used by |
Sorry but there's still no evidence that our web stack is configuring a proxy from system properties. I think you're misleading when you say that As a framework, I think we should keep things this way. |
Affects: Spring Framework 6.0.11 (and HEAD)
The current
ReactorClientHttpConnector
creates itself anHttpClient
and configures it to enable compression. It should also enable proxies using system properties by default by adding.proxyWithSystemProperties()
to thedefaultInitializer
here.Without this there are a number of beans that are difficult or impossible to configure to use the system proxy settings, such as those involved in OAuth2/OIDC client login - obtaining a token, fetching user info, and fetching JWKS data all use a separate
WebClient
instance created ultimately using the defaultReactorClientHttpConnector
.I am not sure why this client connector isn't using the system proxy settings already: the default
RestTemplate
does, and if a proxy has been configured at the java system level it is likely to be important.The text was updated successfully, but these errors were encountered: