Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secrets #1

Open
smashwilson opened this issue Mar 21, 2015 · 3 comments
Open

Secrets #1

smashwilson opened this issue Mar 21, 2015 · 3 comments

Comments

@smashwilson
Copy link
Member

The big question with heatlamp-ansible is: what's the correct way to handle secrets? I can see a few alternatives:

  1. Put the vault password in the vault and hand it to heatlamp-ansible by environment variable. You'd need root on the box to read it from the container anyway, in which case you could just read all of the vault secrets from wherever they were templated in. On the other hand, if you have secrets in your vault that aren't used on every host, this makes an exploit on any box in your system worse by giving access to all secrets at once.
  2. Use tags to skip tasks that need secrets. If you change a secret, you'll need to re-run the playbook by hand for those settings to change. I expect this won't be a viable option in many cases just because most containers will need access to at least one secret, so the set of things that you'll actually be able to continuously deploy will be small.
  3. Template in an unencrypted var file with only the relevant secrets in it. A middle ground for option 1. Reasonable, but likely to require some finesse to implement.
@MrMMorris
Copy link
Contributor

here's my opinion: I hate ansible-vault. Maybe the option to not specify any vault pass at all (not set --vault-password-file) and instead allow me to use the amazing citadel plugin 😄 https://github.com/balanced-ops/citadel-ansible

@MrMMorris
Copy link
Contributor

also, how should the github repo key be handled?

and is there a reason why the WORKDIR is being nuked every run? I guess it's not a huge thing but a checkout might save some bandwidth 😁

@MrMMorris
Copy link
Contributor

also, being able to set --extra-vars would be nice

I'll stop now 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants