spring-cloud-config-aws-kms icon indicating copy to clipboard operation
spring-cloud-config-aws-kms copied to clipboard

decrypting environment variables in properties file

Open hardikSinghBehl opened this issue 2 years ago • 0 comments

I am unable to perform decryption when using environment variables in application.properties file. Tried different combinations to integrate with the keyword {cipher} but none of them were successful. Could anyone tell if that's possible and what is being done wrong

com.behl.strongbox.aws.access-key={cipher}${AWS_ACCESS_KEY:exampleEncryptedKey} ❌

Decryption is successful when not using environment variable placeholder

com.behl.strongbox.aws.access-key={cipher}exampleEncryptedKey ✅

hardikSinghBehl avatar Jul 18 '22 06:07 hardikSinghBehl