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

Permit password as Sensitive string #51

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

jcpunk
Copy link
Contributor

@jcpunk jcpunk commented Sep 12, 2022

I'm casting all my passwords as Sensitive within hiera. This should permit a Sensitive password without breaking the existing user base.

manifests/user.pp Show resolved Hide resolved
@jcpunk jcpunk force-pushed the sensitive-password branch 3 times, most recently from ee598ec to 1692790 Compare September 12, 2022 16:33
@jcpunk
Copy link
Contributor Author

jcpunk commented Sep 12, 2022

I just went through my notes and noticed unwrap for a string requires a newish puppet. Added backwards compat logic.

@@ -33,6 +33,13 @@
default: { fail('invalid privilege level specified') }
}

if $password =~ Sensitive {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Owner

@jhoblitt jhoblitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jhoblitt jhoblitt merged commit 1b11be5 into jhoblitt:master Sep 12, 2022
@jcpunk jcpunk deleted the sensitive-password branch September 12, 2022 17:06
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