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

Replacing hard-coded passwords with hiera #31

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

akondasif
Copy link

Greetings,
I am a security researcher, who is looking for security smells in Puppet scripts.
I noticed two instances of hard-coded passwords in aeolus-configure/recipes/aeolus/manifests/conductor.pp, which are against the best practices
recommended by Common Weakness Enumeration (CWE) [https://cwe.mitre.org/data/definitions/259.html] and also by other security practitioners.

I have added hiera support to mitigate this smell.

Feedback is welcome.

replacing hard-coded password with hiera
replacing hard coded password with hiera
... replacing hard-coded password
@ubellavance
Copy link

Thanks for the hiera support, but is a password in hiera more secure than in a manifest?

@akondasif
Copy link
Author

That is an interesting question ... I very recently learned that hiera will be deprecated. I would suggest that any kind of lookup-based tool to store passwords. Use of hard-coded passwords is a bad practice.

@ubellavance
Copy link

Hiera 3 will be deprecated, not all hiera versions. How a hiera lookup is better? The only way to be secure with passwords is to encrypt hiera files with eyaml.

@akondasif
Copy link
Author

Great idea! Thanks @ubellavance

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

Successfully merging this pull request may close these issues.

2 participants