From b2363b2c3d76b1e9cbe80582b26334ae05ef23e4 Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Wed, 3 Mar 2021 14:07:03 +0100 Subject: [PATCH] Add info on spring.config.import to docs. Original pull request: gh-578. --- README.adoc | 4 +++- docs/src/main/asciidoc/quickstart.adoc | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.adoc b/README.adoc index b3ca519d..e18c2648 100644 --- a/README.adoc +++ b/README.adoc @@ -269,7 +269,7 @@ If the application imports the `spring-boot-starter-actuator` project, the statu The vault health indicator can be enabled or disabled through the property `management.health.vault.enabled` (default to `true`). NOTE: With Spring Cloud Vault 3.0 and Spring Boot 2.4, the bootstrap context initialization (`bootstrap.yml`, `bootstrap.properties`) of property sources was deprecated. -Instead, Spring Cloud Vault favors Spring Boot's Config Data API which allows importing configuration from Vault. +Instead, Spring Cloud Vault favors Spring Boot's Config Data API which allows importing configuration from Vault. With Spring Boot Config Data approach, you need to set the `spring.config.import` property in order to bind to Vault. You can read more about it in the <>. You can enable the bootstrap context either by setting the configuration property `spring.cloud.bootstrap.enabled=true` or by including the dependency `org.springframework.cloud:spring-cloud-starter-bootstrap`. === Authentication @@ -295,6 +295,8 @@ Static token authentication is fine if you want quickly get started with Vault, Any disclosure to unintended parties allows Vault use with the associated token roles. + + == Building === Build requirements for Vault diff --git a/docs/src/main/asciidoc/quickstart.adoc b/docs/src/main/asciidoc/quickstart.adoc index eba73865..06e6a490 100644 --- a/docs/src/main/asciidoc/quickstart.adoc +++ b/docs/src/main/asciidoc/quickstart.adoc @@ -228,7 +228,7 @@ If the application imports the `spring-boot-starter-actuator` project, the statu The vault health indicator can be enabled or disabled through the property `management.health.vault.enabled` (default to `true`). NOTE: With Spring Cloud Vault 3.0 and Spring Boot 2.4, the bootstrap context initialization (`bootstrap.yml`, `bootstrap.properties`) of property sources was deprecated. -Instead, Spring Cloud Vault favors Spring Boot's Config Data API which allows importing configuration from Vault. +Instead, Spring Cloud Vault favors Spring Boot's Config Data API which allows importing configuration from Vault. With Spring Boot Config Data approach, you need to set the `spring.config.import` property in order to bind to Vault. You can read more about it in the <>. You can enable the bootstrap context either by setting the configuration property `spring.cloud.bootstrap.enabled=true` or by including the dependency `org.springframework.cloud:spring-cloud-starter-bootstrap`. === Authentication @@ -253,3 +253,5 @@ WARNING: Consider carefully your security requirements. Static token authentication is fine if you want quickly get started with Vault, but a static token is not protected any further. Any disclosure to unintended parties allows Vault use with the associated token roles. + +