36 lines
696 B
HCL
36 lines
696 B
HCL
# Vault Agent Configuration - Kratos Migrations
|
|
# Uses nexus-kratos-migrate role: database/creds/nexus-kratos-migrate (15m TTL)
|
|
|
|
pid_file = "/tmp/vault-agent.pid"
|
|
|
|
vault {
|
|
address = "http://vault.example.local:8200"
|
|
}
|
|
|
|
auto_auth {
|
|
method "approle" {
|
|
config = {
|
|
role_id_file_path = "/vault/role-id"
|
|
secret_id_file_path = "/vault/secret-id"
|
|
remove_secret_id_file_after_reading = false
|
|
}
|
|
}
|
|
|
|
sink "file" {
|
|
config = {
|
|
path = "/vault/token"
|
|
mode = 0644
|
|
}
|
|
}
|
|
}
|
|
|
|
template_config {
|
|
exit_on_retry_failure = true
|
|
}
|
|
|
|
template {
|
|
source = "/vault/templates/kratos-env-migrate.ctmpl"
|
|
destination = "/vault/secrets/.env"
|
|
perms = 0644
|
|
}
|