Class SecretManagerConfigurationProperties

java.lang.Object
io.micronaut.gcp.secretmanager.configuration.SecretManagerConfigurationProperties

@ConfigurationProperties("gcp.secret-manager") public class SecretManagerConfigurationProperties extends Object
Configuration for SecretManager clients and config client integration.
Since:
3.4.0
Author:
Vinicius Carvalho
  • Field Details

  • Constructor Details

    • SecretManagerConfigurationProperties

      public SecretManagerConfigurationProperties()
  • Method Details

    • getCustomConfigs

      public Set<String> getCustomConfigs()
      Returns:
      Custom config files to be included as property sources.
    • setCustomConfigs

      public void setCustomConfigs(Set<String> customConfigs)
      Parameters:
      customConfigs - configs to be set
    • getKeys

      public Set<String> getKeys()
      Returns:
      Set of secrets to be loaded
    • setKeys

      public void setKeys(Set<String> keys)
      Parameters:
      keys - keys to be set
    • isDefaultConfigEnabled

      public boolean isDefaultConfigEnabled()
      Whether to load the default config files (`application`, `application_${env}`, `[APPLICATION_NAME], `[APPLICATION_NAME]_${env}`). Default value: true.
      Returns:
      Whether to load the default config files.
      Since:
      6.1.0
    • setDefaultConfigEnabled

      public void setDefaultConfigEnabled(boolean defaultConfigEnabled)
      Parameters:
      defaultConfigEnabled - Whether to load the default config files.
      Since:
      6.1.0
    • getLocation

      @Nullable public @Nullable String getLocation()
      Specifies the location of the regional secrets used to create a SecretManagerServiceClient specific to the location endpoint. If not provided, the client will be created using the global endpoint. It must be one of the available location for the regional endpoints. See Secret Manager locations for more information.
      Returns:
      Location of the regional secrets
    • setLocation

      public void setLocation(@Nullable @Nullable String location)
      Parameters:
      location - Sets the location of the regional secrets