Back to Flyway

Flyway Vault Token Setting

documentation/Reference/Configuration/Flyway Namespace/Flyway Vault Namespace/Flyway Vault Token Setting.md

latest1.2 KB
Original Source

{% include enterprise.html %}

Description

The Vault token required to access your secrets.

Type

String

Default

<i>none</i>

Usage

Flyway Desktop

This can't be set in a config file via Flyway Desktop, although it will be honoured, and it can be configured as an advanced parameter in operations on the Migrations page.

Command-line

powershell
./flyway -vault.token="s.abcdefghijklmnopqrstuvwx" info

TOML Configuration File

toml
[flyway.vault]
token = "s.abcdefghijklmnopqrstuvwx"

Configuration File

properties
flyway.vault.token=s.abcdefghijklmnopqrstuvwx

Environment Variable

properties
FLYWAY_VAULT_TOKEN=s.abcdefghijklmnopqrstuvwx

API

java
VaultConfigurationExtension vaultConfigurationExtension = configuration.getConfigurationExtension(VaultConfigurationExtension.class);
vaultConfigurationExtension.setVaultToken("s.abcdefghijklmnopqrstuvwx");

Gradle

groovy
flyway {
    vault = [
      vaultToken: 's.abcdefghijklmnopqrstuvwx'
    ]
}

Maven

xml
<configuration>
    <vault>
        <vaultToken>s.abcdefghijklmnopqrstuvwx</vaultToken>
    </vault>
</configuration>