quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.64k stars 2.64k forks source link

Application Network Proxy configuration #31900

Open maranza opened 1 year ago

maranza commented 1 year ago

Description

I am building a quarkus application, however it is running through internal network, and in order to access public system i have to first go through our network proxy. For rest client this was achievable because there is a config for that. However for connections that do not go through Rest-Client there is no way to configure them. May we please have a way of configuring Proxy for the whole application like there is in spring. e.g quarkus.proxy.host=, quarkus.proxy.port=, quarkus.proxy.username=, quarkus.proxy.password=. Currently there seems to be forwarding of headers however we need to to be able to configure the mentioned above. If there is currently a way of doing this which i am not aware of please let me know. Thank you.

Implementation ideas

No response

geoand commented 1 year ago

What kinds of other connections do you have in mind?

maranza commented 1 year ago

What kinds of other connections do you have in mind?

Hi @geoand Thanks for getting back to me.

For example I have a connection going out to a Redis Cache hosted on AWS, However since going to AWS is like going outside our internal network i need a way to configure Proxy on the Quarkus application to use for outside connections. On Spring Boot setting this on properties files is as simple as proxy.host= then i am able to resolve outside services going through the proxy. However it seems like Quarkus doesn't have this, etleast that i am aware of, but have proxy configuration only for the Rest Client.

I hope i am making sense. Thank You.

geoand commented 1 year ago

That does make sense, thanks.

@cescoffier have we discussed this before? I can't remember

cescoffier commented 1 year ago

I vaguely remember that we did. The proxy can be configured for each client I think (or the large majority, the missing ones are clearly bugs). But having a default proxy makes sense.