-
Notifications
You must be signed in to change notification settings - Fork 303
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 content parameter of concat_fragment to be Sensitive #757
Conversation
3856a67
to
bd28620
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recently I've been thinking about a type alias Stdlib::File::Content that's an alias for what the file type accepts for the content parameter so I opened puppetlabs/puppetlabs-stdlib#1298
|
I think dropping Puppet 5 compatibility code deserves at least a mention in the changelog. I'd suggest to submit that as its own PR for visiblity and then rebase this once it's merged. |
|
I don't think it's worth the trouble creating two separate MRs, rebased, ... Officially, Puppet 5 support has been drop with #685. This just manifests it. |
|
Hey @baurmatt, thanks for taking the time to contribute to our module. Regarding the Puppet 5 code removal topic, while it is true that it has been deprecated for a while, we still prefer (where possible) to have changes properly separated and documented (title and description) in different PRs. This helps us and the rest of the community keep better track of changes being made. Otherwise, pinpointing certain changes can often become a quite challenging. We would appreciate if you could push the Puppet 5 code removal changes in a different PR. Sorry for the inconvenience. |
|
i have created #761 for the puppet5 removal, once that's merged this should be able to be rebased |
|
#761 has been merged. As soon as this one is rebased and conflicts are resolved, it should be good to merge too. |
|
I'm still not convinced the |
6bc5132
to
9ccd1c6
Compare
|
Sorry, got sick :( Yeah, seems like this isn't needed. I've removed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Thanks for adding Sensitive support! But it appears that the entire Opened a bug here: https://tickets.puppetlabs.com/browse/MODULES-11429 For example, this doesn't work as expected. A warning is thrown and the sensitive content is not redacted: concat::fragment { 'foo':
target => $foo,
order => '01',
content => epp('module/template.epp',
{
'password' => Sensitive($password),
'other'. => $other,
}
),
}
|
|
@natemccurdy Thanks for bringing this up! I wasn't able to reproduce this with version 7.4.0, but with 8.0.0. So something must have been broken with the latest version. (Talking about concat version, not Puppet) |
|
This seems to be broken with bc6478a#diff-176bed02b2636bba558658d6d610f63f1c894e45cfa6d7b54e8257cc57ba5d49L98 Ping @LukasAud :) |
|
oh, you definitely can't just rename that function just because rubocop doesn't like it beginning with |
|
I'll open a PR. |
|
Maybe remove this https://github.com/puppetlabs/puppetlabs-vcsrepo/blob/main/.rubocop_todo.yml#L45 and explicitly disable the cop on the offending line |
puppetlabs/puppetlabs-postgresql#1433 was exactly the same thing. |
|
https://github.com/puppetlabs/puppetlabs-chocolatey/blob/bc40015f36960b241651953eaa9aa832a183cbcc/.rubocop_todo.yml#L59 also maybe an accident waiting to happen |
|
Good news is I've not been able to find any other modules that have the breaking change in them. |
Fixes #742.