From 349f365dbd250cb671ae79d9c49365d33213a606 Mon Sep 17 00:00:00 2001 From: Stefan Erichsen Date: Thu, 2 Nov 2017 12:52:39 +0100 Subject: [PATCH] encrypt.* config needs to be in bootstrap.yml For some reason starting with Dalston.SR2, the encrypt.* properties can no longer be defined in application.properties but need to be set in bootstrap.properties. The documentation now reflects this. --- docs/src/main/asciidoc/spring-cloud-config.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/spring-cloud-config.adoc b/docs/src/main/asciidoc/spring-cloud-config.adoc index 3b3c5412..7cad0920 100644 --- a/docs/src/main/asciidoc/spring-cloud-config.adoc +++ b/docs/src/main/asciidoc/spring-cloud-config.adoc @@ -969,7 +969,7 @@ The key argument is mandatory (despite having a `--` prefix). The Config Server can use a symmetric (shared) key or an asymmetric one (RSA key pair). The asymmetric choice is superior in terms of security, but it is often more convenient to use a symmetric key since -it is just a single property value to configure. +it is just a single property value to configure in the `bootstrap.properties`. To configure a symmetric key you just need to set `encrypt.key` to a secret String (or use an enviroment variable `ENCRYPT_KEY` to keep it @@ -1006,7 +1006,7 @@ $ keytool -genkeypair -alias mytestkey -keyalg RSA \ ---- Put the `server.jks` file in the classpath (for instance) and then in -your `application.yml` for the Config Server: +your `bootstrap.yml` for the Config Server: [source,yaml] ----