Flyway

Google Cloud Secret Manager Secrets

Google Cloud Secret Manager Secrets

Flyway Enterprise

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 -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?