Redgate Flyway

For PostgreSQL users - where are your DBs hosted?

Flyway Google Cloud Secret Manager Secrets Setting

Flyway Enterprise

Description

An array of paths to key-value secrets in a Google Secret Manager account that contain Flyway configurations.

If multiple secrets specify the same configuration parameter, then the last secret takes precedence.

Type

String array

Default

none

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

./flyway -gcsm.secrets="secret1,secret2" info

TOML Configuration File

[flyway.gcsm]
secrets = ["secret1", "secret2"]

Configuration File

flyway.gcsm.secrets=secret1,secret2

Environment Variable

FLYWAY_GCSM_SECRETS=secret1,secret2

API

GcsmConfigurationExtension gcsmConfigurationExtension = configuration.getPluginRegister().getPlugin(GcsmConfigurationExtension.class)
gcsmConfigurationExtension.setGcsmSecrets("secret1", "secret2");

Gradle

flyway {
    pluginConfiguration = [
        gcsmSecrets: ['secret1', 'secret2']
    ]
}

Maven

<configuration>
    <pluginConfiguration>
        <gcsmSecrets>secret1,secret2</gcsmSecrets>
    </pluginConfiguration>
</configuration>

Didn't find what you were looking for?