New! – Try automated migration testing Learn more

Flyway Documentation

Poll

Google Cloud Secret Manager Secrets

Flyway Teams

Description

A comma-separated list 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.

Usage

Commandline

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

Configuration File

flyway.plugins.gcsm.secrets=secret1,secret2

Environment Variable

FLYWAY_PLUGINS_GCSM_SECRETS=secret1,secret2

API

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

Gradle

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

Maven

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