Redgate Flyway

Flyway Dapr Secrets Setting

Flyway Enterprise

Description

An array 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.

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 -dapr.secrets="secret1,secret2" info

TOML Configuration File

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

Configuration File

flyway.dapr.secrets=secret1,secret2

Environment Variable

FLYWAY_DAPR_SECRETS=secret1,secret2

API

DaprConfigurationExtension daprConfigurationExtension = configuration.getConfigurationExtension(DaprConfigurationExtension.class);
daprConfigurationExtension.setDaprSecrets("secret1", "secret2");

Gradle

flyway {
    dapr = [
        daprSecrets: ['secret1', 'secret2']
    ]
}

Maven

<configuration>
    <dapr>
        <daprSecrets>secret1,secret2</daprSecrets>
    </dapr>
</configuration>

This documentation contains proprietary information and is protected by copyright law.
Copyright © 2026 Red Gate Software Limited. All rights reserved


Didn't find what you were looking for?