-
Notifications
You must be signed in to change notification settings - Fork 315
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
CHEF-10987: Habitat installs on hardened systems #9401
CHEF-10987: Habitat installs on hardened systems #9401
Conversation
jasonheath
commented
Sep 20, 2024
•
edited
Loading
edited
- Adds umask 0222 to start of install.sh
- aligns rustfmt between Makefile target and expeditor/buildkite/ci/cd
- Ensures hab pkg installs have 755 dirs
👷 Deploy Preview for chef-habitat processing.
|
b0e719b
to
a4e7477
Compare
Didn't want to just delete this but this is no longer true and refers to a version of the solution that no longer exists.
|
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.
Setting the umask for the entire process seems heavy handed. I thought we had discussed this and concluded that hab pkg install
or really common/src/command/package/install.rs
would chmod via (posix_perm::set_permissions
) the files it writes to disk with 755.
a4e7477
to
ac4fff7
Compare
I discovered that the arguments used in our buildkit pipeline was not the same that was being used when we ran make fmt on the commandline. This commit makes the Makefile target match what we use in buildkite.
8250817
to
10024cf
Compare
Signed-off-by: Jason Heath <jh@jasonheath.com>
10024cf
to
8070c04
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.
We should document inline why we are doing the code changes - because the reader of the code will not have much context. Better to document
Also, the changes to Makefile
are not required.
Signed-off-by: Jason Heath <jh@jasonheath.com>
Signed-off-by: Jason Heath <jh@jasonheath.com>
Signed-off-by: Jason Heath <jh@jasonheath.com>
Signed-off-by: Jason Heath <jh@jasonheath.com>