spring-cloud / spring-cloud-vault

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

Connection to KV Vault is only working through a WireMock #666

Closed DasPascaI closed 1 year ago

DasPascaI commented 1 year ago

If I'm trying to connect to my Vault Engine, I get a Error 503 Service Unavailable. If I'm sending the call to a local WireMock which redirects the call with less headers to the same address, it works. Spring Cloud Vault Version is 3.1.1

Cannot enhance VaultToken to a LoginToken: Token self-lookup failed: 503 <html><body><h1>503 Service Unavailable</h1>

This is the following Bootstrap spring: cloud: vault: scheme: https host: <uri-to-the-vault> port: 443 uri: <uri-to-the-vault> authentication: token token: "TOKEN" enabled: true kv: enabled: true backend: <backend-name> profiles: <profile-name> application-name: <application-name>

I tried to setup a connection through WireMock to look if the call is incorrect. I tried to redirect the call. Wiremock takes the call and sends it just to the same base url written above but only with the token as a header and it works. Postman takes the same call and it works aswell.

mp911de commented 1 year ago

Since this is a server-side error, we can do nothing. Our tests indicate that this functionality is working.