8.1.3 HashiCorp Vault Support
Micronaut features support for integration with HashiCorp Vault as a distributed configuration source.
To enable support for Vault Configuration simply add the following configuration to your bootstrap.yml
file:
Integrating with HashiCorp Vault
micronaut:
application:
name: hello-world
config-client:
enabled: true
vault:
client:
config:
enabled: true
Property | Type | Description |
---|---|---|
| java.lang.String | Set the Vault Server Uri. Default value (“http://locahost:8200“). |
| java.lang.String | Set the Vault authentication token. |
| Set the version of the Vault Secret engine. V1 or V2. Default value (V2). | |
| java.lang.String | Set the name of the Vault Secret engine name. Default value (“secret”). |
| boolean | If set to true an exception will be thrown if configuration is not found for the application or any of its environments. Default value (false). |
| ||
| boolean | |
| java.lang.String | |
| boolean | |
| java.nio.charset.Charset | |
| java.util.Map | |
| java.time.Duration | |
| java.time.Duration | |
| java.time.Duration | |
| java.time.Duration | |
| java.time.Duration | |
| java.lang.Integer | |
| java.lang.Class | |
| int | |
| java.net.Proxy$Type | |
| java.net.SocketAddress | |
| java.lang.String | |
| java.lang.String | |
| java.net.ProxySelector |
Micronaut will use the configured micronaut.application.name
to lookup property sources for the application from Vault.
Folder | Description |
---|---|
| Configuration shared by all applications |
| Application specific configuration |
| Configuration shared by all applications for an active environment name |
| Application specific configuration for an active environment name |
See the Documentation for HashiCorp Vault for more information on how to setup the server.