News for hackers. Stuff that matters.
Re:HashiCorp and Google: easing secret and infrastructure ma... by Johnny555 on Tuesday September 19, 2017 @12:34PM (#15286146)
Another option for Ansible is Ansible Vault (which is not related to Hashicorp Vault) -- you can use it to password protect secrets used for playbooks (you need to supply the password when you run the playbook).

https://docs.ansible.com/ansible/latest/playbooks_vault.html

Re:HashiCorp and Google: easing secret and infrastructure ma... by toomuchtodo on Tuesday September 19, 2017 @01:00PM (#15286433)
Ansible Vault is the bees knees compared to Hashicorp Vault (if you're already using Ansible). Very pleasant to use, A++ would use again.
Re:HashiCorp and Google: easing secret and infrastructure ma... by bogomipz on Wednesday September 20, 2017 @11:54AM (#15295156)
Yes but Hashicporp Vault has a greater scope in that it addresses the secure introduction problem, provides single usage/read once tokens, tokens with TTLs and limited use, has audit capabilities etc. Although there is some overlap in general secret management between Ansible Vault and Hashicorp Vault, the latter is much broader than just a means of secure storage for config management.
Re:HashiCorp and Google: easing secret and infrastructure ma... by toomuchtodo on Thursday September 21, 2017 @05:32PM (#15307548)
A lot of what Hashicorp Vault does is already provided for (in AWS at least) with KMS, Cloudtrail, Parameter Store, and IAM (which can be used in symphony with Ansible Vault).

I have very little experience with GCP and Azure, but it seems like Hashicorp is reinventing the wheel in AWS with Vault.

Re:HashiCorp and Google: easing secret and infrastructure ma... by bamboozled on Tuesday September 19, 2017 @08:01PM (#15289748)
Same, love it !
Re:HashiCorp and Google: easing secret and infrastructure ma... by thinkmassive on Tuesday September 19, 2017 @03:10PM (#15287869)
> you need to supply the password when you run the playbook

You can also specify vault-password-file in ansible.cfg [1] It can be a shell script rather than plaintext, so you can use it to call the CLI password manager "pass"[2] for instance. This is handy for automation.

[1] http://docs.ansible.com/ansible/latest/intro_configuration.h... [2] https://www.passwordstore.org/

Re:HashiCorp and Google: easing secret and infrastructure ma... by ams6110 on Tuesday September 19, 2017 @03:39PM (#15288095)
Of course if you're putting the encryption password in ansible.cfg you might as well just leave the original file unencrypted.
Re:HashiCorp and Google: easing secret and infrastructure ma... by linsomniac on Tuesday September 19, 2017 @06:02PM (#15289209)
The parent's recommendation was to put a filename into the ansible.cfg, and that file could contain either the password, or a script that is then run which prints the password to stdout. For example, we have the script pull the password from a gpg-encrypted file.
Re:HashiCorp and Google: easing secret and infrastructure ma... by finnh on Tuesday September 19, 2017 @03:52PM (#15288201)
That's not what GP said. "vault-password-file" != "vault-password".
Re:HashiCorp and Google: easing secret and infrastructure ma... by Johnny555 on Tuesday September 19, 2017 @03:56PM (#15288234)
Even if you do put a plaintext password into ansible.cfg, encrypting secrets in the playbook is still worthwhile so you don't commit them to your source code repository or accidentally share the secrets with the world when you publish your playbooks.
Re:HashiCorp and Google: easing secret and infrastructure ma... by linsomniac on Tuesday September 19, 2017 @06:05PM (#15289226)
We also use Ansible Vaults extensively and they work great.

Oddly enough though, I recently tried AWX (the open sourced Ansible Tower), and it wouldn't decrypt our vaults when trying to get the inventory, even though I gave it vault credentials (there was nowhere to associate it with the inventory run though).

So, we are still using RunDeck for a web UI/scheduling/web triggers/Slack integration of our Ansible runs.

Re:HashiCorp and Google: easing secret and infrastructure ma... by matburt on Tuesday September 19, 2017 @07:27PM (#15289619)
developer of AWX here. We're working on this! unvaulting is available during playbook runs but we definitely need to make it available during inventory syncs also. The features coming up in Ansible 2.4 will enable us to do this.
Re:HashiCorp and Google: easing secret and infrastructure ma... by linsomniac on Tuesday September 19, 2017 @11:05PM (#15290467)
Are there any pointers on how to work around this?

I think a large part of our problem is that we are using Ganeti for most of our VMs, rather than something supported native by AWX like OpenStack/EC2/Azure. I have an inventory script we have been using, but couldn't get it to run in AWX due to AWS credentials not being made available in a way that boto recognized (the inventory is pulled both from Ganeti and EC2).

Re:HashiCorp and Google: easing secret and infrastructure ma... by corford on Tuesday September 19, 2017 @08:15PM (#15289806)
Another happy Ansible Vault user here. It's simple and effective.