OpenLiberty / open-liberty

Open Liberty is a highly composable, fast to start, dynamic application server runtime environment
https://openliberty.io
Eclipse Public License 2.0
1.16k stars 599 forks source link

JAX-RS outgoing routing #20970

Open bmarwell opened 2 years ago

bmarwell commented 2 years ago

Describe the use case that you want to enable:

Currently, when making outgoing requests (eg using JaxRS-Client), the default OS routing will be chosen. It would be great if an interface for local binding could be chosen yourself.

For CXF, see the "Host" property.

https://cxf.apache.org/docs/client-http-transport-including-ssl-support.html#ClientHTTPTransport(includingSSLsupport)-Theclientelement

Describe why this is important to you:

Restricting firewalls. By using a specific interface, we can tighten the firewall rules and therefore enhance the security.

Additional context

cbridgha commented 2 years ago

Thanks @bmarwell - We are now considering this as a general concept across all our "client features" where it makes sense.