Repository navigation
Set /home/cnb file mode to 0750 - #286
Conversation
|
|
| Typeflag: tar.TypeDir, | ||
| Name: "home/cnb", | ||
| Mode: int64(os.ModePerm), | ||
| Mode: int64(os.FileMode(750)), |
There was a problem hiding this comment.
Hey @candrews thanks for the PR! Are you able to address the linting error that's showing up on this line?
There was a problem hiding this comment.
I've pushed an updated to this PR fixing the linting error, thank you for pointing it out.
The permission for this directory were 0777 which is too permissive. 0750 complies with security recommendations such as those made by CIS. Signed-off-by: Craig Andrews <candrews@integralblue.com>
|
@paketo-buildpacks/tooling-maintainers @paketo-buildpacks/stacks-maintainers I'm looking for an opinion on if this change warrants a minor bump or patch -and if we need to be cognizant of the changes to the stack release when this change gets rolled out (cutting minor stack releases)? |
|
This is a tricky one. I'd argue it's a bug fix (and hence So I'm going to argue for |
|
@sophiewigmore I labeled it as |
|
I'm also trying to track down where I can submit a similar change to make the files under |
|
I pinged a couple of folks in the CNB team on that discussion. I don't have more context unfortunately :/ |
Summary
Set /home/cnb file mode to 750
Use Cases
750 complies with security recommendations such as those made by CIS.
See: https://www.unifiedcompliance.com/products/search-controls/control/01588/
Security scanners are flagging build pack created images due to these too permission file permissions.
Checklist