Class VaultConfigurationClient

java.lang.Object
io.micronaut.discovery.vault.config.VaultConfigurationClient
All Implemented Interfaces:
io.micronaut.core.naming.Described, io.micronaut.discovery.config.ConfigurationClient

@Singleton @Requires(beans=VaultClientConfiguration.class) public class VaultConfigurationClient extends Object implements io.micronaut.discovery.config.ConfigurationClient
A ConfigurationClient for Vault Configuration.
Since:
1.2.0
Author:
thiagolocatelli
  • Constructor Details

    • VaultConfigurationClient

      public VaultConfigurationClient(VaultConfigHttpClient<?> configHttpClient, VaultClientConfiguration vaultClientConfiguration, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, @Named("io") @Nullable @Nullable ExecutorService executorService)
      Default Constructor.
      Parameters:
      configHttpClient - The http client
      vaultClientConfiguration - Vault Client Configuration
      applicationConfiguration - The application configuration
      executorService - Executor Service
  • Method Details

    • getPropertySources

      public org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource> getPropertySources(io.micronaut.context.env.Environment environment)
      Specified by:
      getPropertySources in interface io.micronaut.discovery.config.ConfigurationClient
    • buildVaultKeys

      protected Map<Integer,String> buildVaultKeys(@Nullable @Nullable String pathPrefix, @Nullable @Nullable String applicationName, Set<String> environmentNames)
      Builds the keys used to get vault properties.
      Parameters:
      pathPrefix - The prefix path of vault keys
      applicationName - The application name
      environmentNames - The active environments
      Returns:
      map of vault keys
    • getDescription

      @NonNull public @NonNull String getDescription()
      Specified by:
      getDescription in interface io.micronaut.core.naming.Described