From b191b91322548feb2e2bf63cb8c18fed7ec9e79e Mon Sep 17 00:00:00 2001 From: Jon Alme Date: Mon, 31 Aug 2015 10:48:15 -0500 Subject: [PATCH] Update property encryption content with note regarding omitting surrounding quotes when saving encrypted value in .properties file. --- docs/src/main/asciidoc/spring-cloud-config.adoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/src/main/asciidoc/spring-cloud-config.adoc b/docs/src/main/asciidoc/spring-cloud-config.adoc index f34258f6..321f780e 100644 --- a/docs/src/main/asciidoc/spring-cloud-config.adoc +++ b/docs/src/main/asciidoc/spring-cloud-config.adoc @@ -338,6 +338,14 @@ spring: password: '{cipher}FKSAJDFGYOS8F7GLHAKERGFHLSAJ' ---- +Encrypted values in a .properties file must not be wrapped in quotes, otherwise the value will not be decrypted: + +.application.properties +---- +spring.datasource.username: dbuser +spring.datasource.password: {cipher}FKSAJDFGYOS8F7GLHAKERGFHLSAJ +---- + You can safely push this plain text to a shared git repository and the secret password is protected.