Skip to content

Replacing hard-coded passwords with hiera#31

Open
akondasif wants to merge 4 commits intoaeolusproject:masterfrom
akondasif:master
Open

Replacing hard-coded passwords with hiera#31
akondasif wants to merge 4 commits intoaeolusproject:masterfrom
akondasif:master

Conversation

@akondasif
Copy link
Copy Markdown

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
Copy Markdown

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

@akondasif
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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