-
Notifications
You must be signed in to change notification settings - Fork 559
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
charts: add allowPrivilegeEscalation: true to containerSecurityContext to nodeplugin daemonset #2993
Conversation
@losil please check the DCO failure. We have specific guidelines for the commit messages. |
fdf49dc
to
c46fdcf
Compare
@losil as you know PSP ( PodSecurityPolicy) is getting deprecated in upstream. Regardless we could have this in chart 👍 |
@humblec of course I am aware of the PSPs deprecation and honestly look forward to getting rid of them. |
Yeah , please correct the commit lint error @losil .. it should be good to go.. |
c46fdcf
to
1f8ff5a
Compare
@losil Please check https://github.com/ceph/ceph-csi/blob/devel/docs/development-guide.md#commit-messages standard followed for commit message. it should be something like below
|
1f8ff5a
to
413d283
Compare
Thanks for the hint! |
/retest ci/centos/k8s-e2e-external-storage/1.21 |
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
@Mergifyio rebase |
✅ Branch has been successfully rebased |
413d283
to
eae27dc
Compare
@Mergifyio rebase |
@Mergifyio refresh |
✅ Branch has been successfully rebased |
✅ Pull request refreshed |
eae27dc
to
03dae1b
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.
@losil Sorry for the late review on this one.
Same changes are required in the below files
deploy/cephfs/kubernetes/csi-cephfsplugin.yaml
deploy/rbd/kubernetes/csi-rbdplugin.yaml
Pull request has been modified.
@losil can you please change |
bce1ff2
to
bff4f29
Compare
/retest ci/centos/mini-e2e/k8s-1.23 |
@Mergifyio requeue |
✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically |
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
/retest ci/centos/k8s-e2e-external-storage/1.22 |
@Mergifyio requeue |
☑️ This pull request is already queued |
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
@Mergifyio requeue |
☑️ This pull request is already queued |
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
@Mergifyio requeue |
☑️ This pull request is already queued |
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
@Mergifyio requeue |
☑️ This pull request is already queued |
@Mergifyio refresh |
✅ Pull request refreshed |
Describe what this PR does
When running the kubernetes cluster with one single privileged PodSecurityPolicy which is allowing everything the nodeplugin daemonset can fail to start. To be precise the problem is the
defaultAllowPrivilegeEscalation: false
configuration in the PSP. Containers of the nodeplugin daemonset won't start when they haveprivileged: true
but noallowPrivilegeEscalation
in their container securityContext.Kubernetes will not schedule if this mismatch exists
cannot set allowPrivilegeEscalation to false and privileged to true
:The default PodSecurityPolicy for every workload in the k8s cluster is the following:
The daemonsets run when the
allowPrivilegeEscalation
parameter is added to the container securityContext config. In detail this is needed for the containers:Updating the helm chart templates for
ceph-csi-rbd
andceph-csi-cephfs
solve the problem when usingdefaultAllowPrivilegeEscalation: true
in global privileged PodSecurityPolicy. For example:Is there anything that requires special attention
Do you have any questions? No
Is the change backward compatible? Yes
Are there concerns around backward compatibility? No
Provide any external context for the change, if any.
For example:
https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
Related issues
Mention any github issues relevant to this PR. Adding below line
will help to auto close the issue once the PR is merged.
None
Future concerns
List items that are not part of the PR and do not impact it's
functionality, but are work items that can be taken up subsequently.
None
Show available bot commands
These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:
/retest ci/centos/<job-name>
: retest the<job-name>
after unrelatedfailure (please report the failure too!)
/retest all
: run this in case the CentOS CI failed to start/report any testprogress or results