spring-cloud / spring-cloud-vault

Configuration Integration with HashiCorp Vault
http://cloud.spring.io/spring-cloud-vault/
Apache License 2.0
272 stars 151 forks source link

Connecting to a vault backend over a proxy #628

Closed skortobi closed 2 years ago

skortobi commented 2 years ago

Is your feature request related to a problem? Please describe. Im using spring config server to externalize configuration of microservices in a remote git and vault backends, both only reachable through an https proxy, in order to use AppRole authentication methode i added the spring cloud vault dependency to my config server.

Even if cloud config server offer configuration properties to set backends proxy :

spring:
  profiles:
    active: git
  cloud:
    config:
      server:
        git:
          uri: https://github.com/spring-cloud-samples/config-repo
          proxy:
            https:
              host: my-proxy.host.io
              password: myproxypassword
              port: '3128'
              username: myproxyusername
              nonProxyHosts: example.com

this proxy configuration properties are not considered by the spring cloud vault. and cannot set proxy configuration when using spring cloud vault dependency

Describe the solution you'd like Add proxy configuration settings to vault client, and link it with spring cloud config server proxy configuration properties if possible.

mp911de commented 2 years ago

Using Apache HTTP Client or Reactor Netty, you can configure the proxy behavior through system properties. We do not provide a programmatic configuration for proxies as proxy support isn't available for all of the supported clients.