There was some dependency incompatibility occurring because we were using an older version of azure keyvault (azure-keyvault-secrets-spring-boot-starter 2.2.1) but it got updated and we are upgrading it to azure-spring-boot-starter-keyvault-secrets 4.0.0. Now the keyvault isn’t being connected maybe because the application.yml keyvault config is in the wrong syntax.
This is what was there before when it was working with the 2.2.1 version:
azure:
keyvault:
uri: ${uri}
client-id: ${clientId}
client-key: ${clientKey}
token-acquire-timeout-seconds: 120
This is how we are trying now but it isn’t connecting.
spring:
cloud:
azure:
keyvault:
secret:
property-sources:
uri: ${uri}
client-id: ${clientId}
client-key: ${clientKey}
token-acquire-timeout-seconds: 120
What is the correct syntax for this azure keyvault version configuration??
2
Answers
It should most probably look like this:
From the migration guide from 3.x.x to 4.x (direct link):
not working for me and getting below error..
Caused by: com.azure.identity.CredentialUnavailableException: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.To mitigate this issue, please refer to the troubleshooting guidelines here at https://aka.ms/azsdk/java/identity/environmentcredential/troubleshoot