-
Notifications
You must be signed in to change notification settings - Fork 215
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
feat: set 755 permissions for custom ca paths #6041
Conversation
58506bc
to
94423e9
Compare
@@ -135,6 +135,7 @@ configureHTTPProxyCA() { | |||
|
|||
configureCustomCaCertificate() { | |||
mkdir -p /opt/certs | |||
chmod 1755 /opt/certs |
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.
do we put anything else in this dir?
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.
As far as I know we only use this for custom ca feature. I checked RP/AB and it only appears in paths related to custom ca.
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.
might be worth leaving a comment clarifying that we don't use this dir for anything else
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.
Sure, added
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.
This dir is created in pre-install-dependencies
, we could also look changing it there
@@ -52,7 +52,7 @@ systemctlEnableAndStart disk_queue 30 || exit 1 | |||
capture_benchmark "${SCRIPT_NAME}_copy_packer_files_and_enable_logging" | |||
|
|||
mkdir /opt/certs | |||
chmod 1666 /opt/certs | |||
chmod 1755 /opt/certs |
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.
@zachary-bailey I modified this here as well, that should be enough right? Or is there some other place you were thinking of?
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.
Yeah thats it!
No changes to cached containers or packages on Windows VHDs |
Adjusts permissions for
/opt/certs
directory used by custom ca feature to755
We use
755
to match permissions used forusr/local/share/ca-certficates
path, which is the path that is checked by theupdate-ca-certificates
tool that updates the trust store. This is to stop anyone from being able to add a file to the path that installs custom CAs in the trust store when feature is used on the node.