I want to connect to vault using a proxy. Here in my case, I only require proxy for vault connection, how can we specify the same?
I tried with below configuration:
spring:
application:
name: qualifier-service
profiles:
active: ${spring_profiles_active}
cloud:
vault:
enabled: true
uri: ${vault_uri}
port: 443
scheme: https
proxy:
https:
host: proxyHost
port: 123
namespace: ${vault_namespace}
authentication: TOKEN
token: ${spring_cloud_config_token}
generic:
enabled: true
backend: kv
kvVersion: 2
profile-separator: '/'
default-context: qualifier-service
application-name: qualifier-service
I am getting the below error:
Vault location [kv/qualifier-service] not resolvable: Cannot login using org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://vault.url:443/v1/auth/aws/login": Connect to vault.url:443 failed: connect timed out;
How can we pass a proxy specifically for vault. My service is connecting a cloud config server and other external services also but they don't required a proxy.
Any help on this is deeply appreciated.