baseplate.py icon indicating copy to clipboard operation
baseplate.py copied to clipboard

Allow indirection in secret names w/ secret-fetcher

Open spladug opened this issue 5 years ago • 1 comments

Currently, the application and secret fetcher both use the full Vault paths to secrets. This tightly couples them to the exact names of those secrets in Vault.

Instead of taking a list of secret names to fetch, the fetcher should instead take a mapping of local name->vault name. When it fetches down the secrets by vault name, it writes them out to the secrets file using the local name. Applications could then reference the secret using a local name that's decoupled. No changes would be needed in the SecretsStore API since the names would just be transparently different.

Ideally it could recognize both forms of config for backwards compatibility which would make this effectively an opt-in change.

spladug avatar Mar 11 '20 18:03 spladug

Credit to @eaceaser for the suggestion/request.

spladug avatar Mar 11 '20 18:03 spladug