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

Allow the user/pw or org/key to be Deferred. #135

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Allow the user/pw or org/key to be Deferred. #135

merged 2 commits into from
Dec 19, 2023

Conversation

tedgarb
Copy link
Contributor

@tedgarb tedgarb commented Jan 18, 2023

Pull Request (PR) description

This introduces conditional logic to detect if sensitive/secret values may be passed in as Deferred type, and if so to process them entirely through a chain of Deferred arguments, to address issues with interpolating Deferred into strings on the compiler.

Unfortunately, there is no way at the moment to pass a parameter of type Deferred into puppet-rspec, so while this has been tested and verified locally, there is not currently a unit test for this new functionality.

This Pull Request (PR) fixes the following issues

n/a

@tedgarb
Copy link
Contributor Author

tedgarb commented Dec 19, 2023

Thank you for merging my other PR. Any idea if this one can be merged as well while you are working in this repo?

manifests/init.pp Outdated Show resolved Hide resolved
This introduces conditional logic to detect if sensitive/secret values
may be passed in as Deferred type, and if so to process them entirely
through a chain of Deferred arguments, to address issues with
interpolating Deferred into strings on the compiler.

Unfortunately, there is no way at the moment to pass a parameter of type
Deferred into puppet-rspec, so while this has been tested and verified
locally, there is not currently a unit test for this new functionality.
@tedgarb
Copy link
Contributor Author

tedgarb commented Dec 19, 2023

Rebased this PR and took @kenyon suggestion through the whole file re: variable reuse. Thanks for the tip, I knew you could do that in ruby but didn't realize it worked in puppet manifests.

@kenyon kenyon added the enhancement New feature or request label Dec 19, 2023
@kenyon kenyon merged commit 51b08d4 into voxpupuli:master Dec 19, 2023
4 checks passed
@tedgarb tedgarb mentioned this pull request May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants