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

(PDK-1309) Ensure file modes in built modules are sane #713

Merged
merged 2 commits into from
Jul 26, 2019

Conversation

rodjek
Copy link
Contributor

@rodjek rodjek commented Jul 25, 2019

When building module tarballs for publishing, we need to sanitise the modes of the tarball entries. Directories should have at least 0755 and files should have at least 0644.

@coveralls
Copy link

coveralls commented Jul 25, 2019

Coverage Status

Coverage decreased (-0.3%) to 92.931% when pulling baccc00 on rodjek:pdk-1309 into 0edc07f on puppetlabs:master.

entry_meta[:mode] = orig_mode | min_mode

if entry_meta[:mode] != orig_mode
PDK.logger.debug(_('Updated permissions of packaged \'%{entry}\' to %{new_mode}') % {
Copy link
Contributor

Choose a reason for hiding this comment

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

I added this logging, I originally had it at WARN but the original report was someone who deliberately developed with a restrictive umask so I though a warning for every file would be annoying.

@rodjek rodjek merged commit dae78fe into puppetlabs:master Jul 26, 2019
@rodjek rodjek deleted the pdk-1309 branch July 26, 2019 01:14
@chelnak chelnak added the bug label Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants