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

Flyway Documentation

Poll

Dapr Secrets

Flyway Teams

Description

A comma-separated list of paths to key-value secrets in a Dapr Secret Store that contain Flyway configurations.

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

Usage

Commandline

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

Configuration File

flyway.dapr.secrets=secret1,secret2

Environment Variable

FLYWAY_DAPR_SECRETS=secret1,secret2

API

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

Gradle

flyway {
    daprConfiguration {
        daprSecrets = ['secret1', 'secret2']
    }
}

Maven

<configuration>
    <daprConfiguration>
        <daprSecrets>
            <daprSecret>secret1</daprSecret>
            <daprSecret>secret2</daprSecret>
        </daprSecrets>
    </daprConfiguration>
</configuration>