-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
Currently, there are two ways to securely use Git to pull config repos and target repos:
- ssh
- basic auth
SSH is really awkward to automate declaratively, so I generally avoid it. Basic auth works well as GitHub/Lab both provide machine tokens for automated access.
The issue is, you need to pass these tokens in as environment variables. It also means propagating them through to the target config which makes multiple tokens awkward.
So, pico should instead just load all credentials from Vault.
And drop SSH support, it's not worth maintaining for the aforementioned reason.
General architecture:
Now:
- Init
- Ping vault
- Clone config repo
- Get secrets for targets and up targets
Future:
- Init
- Ping vault
- Acquire bootstrapping credentials - user/pass for config repo
- Clone config repo
- Get secrets for target repo credentials, clone target repos, up targets
This also means that there needs to be some form of naming convention for the secrets in Vault so they map to repositories. Maybe based on regex?
ADRFranklin
Metadata
Metadata
Assignees
Labels
No labels