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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKeys()
@Nullable String
Specifies the location of the regional secrets used to create aSecretManagerServiceClient
specific to the location endpoint.boolean
Whether to load the default config files (`application`, `application_${env}`, `[APPLICATION_NAME], `[APPLICATION_NAME]_${env}`).void
setCustomConfigs
(Set<String> customConfigs) void
setDefaultConfigEnabled
(boolean defaultConfigEnabled) void
void
setLocation
(@Nullable String location)
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
SecretManagerConfigurationProperties
public SecretManagerConfigurationProperties()
-
-
Method Details
-
getCustomConfigs
- Returns:
- Custom config files to be included as property sources.
-
setCustomConfigs
- Parameters:
customConfigs
- configs to be set
-
getKeys
- Returns:
- Set of secrets to be loaded
-
setKeys
- 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
Specifies the location of the regional secrets used to create aSecretManagerServiceClient
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
- Parameters:
location
- Sets the location of the regional secrets
-