Does anyone have an example of how to get values from the secret manager on GCP in a .yaml file (application.yaml or bootstrap.yaml)? Thanks!
application.yml:
spring:
datasource:
password: ${sm://projects/my-project/secrets/password/versions/1}
bootstrap.yml:
spring:
cloud:
gcp:
secretmanager:
enabled: true
secret-name-prefix: 'sm://'
Unfortunately I am getting this value: projects/my-project/secrets/password/versions/1 for password :( What I am doing wrong?