New! – Spin up instant copies of your dev databases in the cloud for free 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 -gcsm.secrets="secret1,secret2" info

Configuration File

flyway.gcsm.secrets=secret1,secret2

Environment Variable

FLYWAY_GCSM_SECRETS=secret1,secret2

API

Configuration configuration = new ClassicConfiguration();
GcsmApiExtension apiExtension = configuration.getExtensionConfiguration(GcsmApiExtension.class);
apiExtension.setGcsmSecrets("secret1", "secret2");

Gradle

flyway {
    gcsmConfiguration {
        gcsmSecrets = ['secret1', 'secret2']
    }
}

Maven

<configuration>
    <gcsmConfiguration>
        <gcsmSecrets>
            <gcsmSecret>secret1</gcsmSecret>
            <gcsmSecret>secret2</gcsmSecret>
        </gcsmSecrets>
    </gcsmConfiguration>
</configuration>