Spring Cloud version 3.1.2

I'm trying to use path-to-key for my application, but it seems to me like the resolved path is prefixed with two 'data' strings. In my case I have the spring.cloud.config.server.vault.path-to-key set to some/special/path, and GET request to vault for a given application/profile is generated as: "https://vault.example.com:443/v1/secret/data/data/some/special/path/my-dummy-app/dev"

To me it looks like the VaultKeyValue2Accessor prepends 'data' as well.

Comment From: piercer

Yes, this is an issue for us too. Both the SpringVaultEnvironmentRepository and V2VaultKvAccessStrategy prepend "data/" to the pathToKey property (ay different times).

Unfortunately if the spring-vault-core is on the classpath (this is apparently required for approle authentication) then the VaultKeyValue2Accessor in that library appends "/data" to the backend property.

This means that "data" is added twice and the path used to access a secret in the vault ends up looking like this

${backend}/data/data/${pathToKey}

Comment From: ryanjbaxter

Fixed in bc8227cc4d9ede583642489584ad320171d60019