New! – Spin up instant copies of your dev databases in the cloud for free Learn more

Flyway Documentation

Poll

Vault Token

Flyway Teams

Description

The Vault token required to access your secrets.

Usage

Commandline

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

Configuration File

flyway.vault.token=s.abcdefghijklmnopqrstuvwx

Environment Variable

FLYWAY_VAULT_TOKEN=s.abcdefghijklmnopqrstuvwx

API

Configuration configuration = new ClassicConfiguration();
VaultApiExtension apiExtension = configuration.getExtensionConfiguration(VaultApiExtension.class);
apiExtension.setVaultToken("s.abcdefghijklmnopqrstuvwx");

Gradle

flyway {
    vaultConfiguration {
        vaultToken = 's.abcdefghijklmnopqrstuvwx'
    }
}

Maven

<configuration>
    <vaultConfiguration>
        <vaultToken>s.abcdefghijklmnopqrstuvwx</vaultToken>
    </vaultConfiguration>
</configuration>