diff --git a/spring-cloud-vault.html b/spring-cloud-vault.html index 0a0c814b..6f44b886 100644 --- a/spring-cloud-vault.html +++ b/spring-cloud-vault.html @@ -458,6 +458,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
  • PostgreSQL
  • +
  • Configure PropertySourceLocator behavior
  • Vault Client Fail Fast
  • Vault Client SSL configuration
  • Lease lifecycle management (renewal and revocation)
  • @@ -1891,6 +1892,63 @@ You can configure the property names by setting
    +

    Configure PropertySourceLocator behavior

    +
    +
    +

    Spring Cloud Vault uses property-based configuration to create PropertySources +for generic and discovered secret backends.

    +
    +
    +

    Discovered backends provide VaultSecretBackendDescriptor beans to describe the configuration +state to use secret backend as PropertySource. A SecretBackendMetadataFactory is required +to create a SecretBackendMetadata object which contains path, name and property transformation +configuration.

    +
    +
    +

    SecretBackendMetadata is used to back a particular PropertySource.

    +
    +
    +

    You can register an arbitrary number of beans implementing VaultConfigurer for customization. +Default generic and discovered backend registration is disabled if Spring Cloud Vault discovers +at least one VaultConfigurer bean. You can however enable default registration with +SecretBackendConfigurer.registerDefaultGenericSecretBackends() and SecretBackendConfigurer.registerDefaultDiscoveredSecretBackends().

    +
    +
    +
    +
    +
    +
    public class CustomizationBean implements VaultConfigurer {
    +
    +    @Override
    +    public void addSecretBackends(SecretBackendConfigurer configurer) {
    +
    +        configurer.add("secret/my-application");
    +
    +        configurer.registerDefaultGenericSecretBackends(false);
    +        configurer.registerDefaultDiscoveredSecretBackends(true);
    +    }
    +}
    +
    +
    +
    +
    +
    + + + + + +
    +
    Note
    +
    +All customization is required to happen in the bootstrap context. Add your configuration +classes to META-INF/spring.factories at org.springframework.cloud.bootstrap.BootstrapConfiguration +in your application. +
    +
    +
    +
    +

    Vault Client Fail Fast