Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Feature Request: Encrypted secrets #16

Open
markfaine opened this issue Apr 15, 2021 · 2 comments
Open

Feature Request: Encrypted secrets #16

markfaine opened this issue Apr 15, 2021 · 2 comments

Comments

@markfaine
Copy link

A way to encrypt the secrets or a way to store them outside of the ansible collection/role source tree and reference them. I don't want to check in molecule.yml with my passwords in it but I do want to check in molec;ule.yml

@sky-joker
Copy link
Collaborator

Thanks, @markfaine for requesting the new feature.

Sorry, I looked at this late.
If you'd like to use the encryption by Vault, I seem that you should use a file to decrypt.
https://molecule.readthedocs.io/en/stable-1.18/configuration.html?highlight=vault_password_file#ansible-section

@bandit420
Copy link

bandit420 commented Jun 13, 2021

@markfaine

I had a similiar usecase and did use Hashicorp Vault (https://www.vaultproject.io/) with the pip-module "hvac" (https://pypi.org/project/hvac/).

The downside is: this does introduce external dependencies.

There was some work to do because you have to import values on every molecule step. I did not get it working directly using a lookup-plugin in the molecule.yml-file, but just a user, no developer or python expert.

BTW thank to @sky-joker, your module helped me a lot with the vmware part in molecule. 👍

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

No branches or pull requests

3 participants