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

export/{pem_cert,pem_key,pkcs12}: passin, passout: use shellquote() instead of single quotation marks #199

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

pavelkovtunov
Copy link
Contributor

Pull Request (PR) description

Remove unnecessary single quotes for passin and passout parameter.
Also fixes a bug, where the quotation is interpreted as a part of the password

@pavelkovtunov pavelkovtunov changed the title Update pem_key.pp Remove unnecessary quotation for passin and passout Jun 24, 2024
Copy link
Member

@kenyon kenyon left a comment

Choose a reason for hiding this comment

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

I think the purpose of the single quotation marks was to guard against shell metacharacters being in the password, since this is passed to a command line. What about using https://www.puppet.com/docs/puppet/latest/function.html#shellquote instead?

@pavelkovtunov
Copy link
Contributor Author

I think the purpose of the single quotation marks was to guard against shell metacharacters being in the password, since this is passed to a command line. What about using https://www.puppet.com/docs/puppet/latest/function.html#shellquote instead?

Tested the latest commit on my deployment, seems to work fine.

@kenyon kenyon changed the title Remove unnecessary quotation for passin and passout export/{pem_cert,pem_key,pkcs12}: passin, passout: use shellquote() instead of single quotation marks Jul 9, 2024
@kenyon kenyon added the bug Something isn't working label Jul 9, 2024
@kenyon kenyon merged commit d5ca92d into voxpupuli:master Jul 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants