-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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
Make etcd world-executable in Docker image #79722
Make etcd world-executable in Docker image #79722
Conversation
/assign @jpbetz |
Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
fd124e0
to
b3f2902
Compare
Adds check for SELinux and then adds the :z parameter to the volume mounts in order to work on SELinux enabled systems such as Fedora. Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
dc48576
to
3783aa5
Compare
cluster/images/etcd/Dockerfile
Outdated
@@ -16,4 +16,6 @@ FROM BASEIMAGE | |||
|
|||
EXPOSE 2379 2380 4001 7001 | |||
COPY etcd* etcdctl* /usr/local/bin/ | |||
RUN chmod +x /usr/local/bin/etcd* /usr/local/bin/etcdctl* |
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.
one more minor suggestion: isn't the executable bit preserved by COPY
? not using RUN
makes cross building simpler, I wonder if we can just ensure +x on the host before copying.
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.
Moved to using install
in Makefile.
Note that chmod
is used in /cluster/images/etcd-empty-dir-cleanup/Dockerfile
which was not modified in this PR.
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.
SGTM :-)
Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
/uncc |
/assign @wenjiaswe |
/retest |
/lgtm |
Defer to @jpbetz for approval. |
/assign @jpbetz |
/priority important-soon |
/milestone v1.16 |
/lgtm |
bump |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jpbetz, justaugustus, randomvariable, wenjiaswe The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
/area security
/sig release
/sig cluster-lifecycle
What this PR does / why we need it:
Makes the etcd binaries in the Docker image world-executable, which allows consumers to drop running the image as root.
Which issue(s) this PR fixes:
Fixes #79720
Special notes for your reviewer:
Have added fixes to the Makefile to run on SELinux enabled systems.
Does this PR introduce a user-facing change?: