Test nvmeof SA restriction#6097
Closed
Rakshith-R wants to merge 7 commits into
Closed
Conversation
Allow restricting RBD volume access to a specific Kubernetes service account using .rbd.csi.ceph.com/serviceaccount image metadata. During ControllerPublishVolume, the controller reads the ".rbd.csi.ceph.com/serviceaccount" metadata from the backing RBD image and passes it to the node via publish context. During NodePublishVolume, the node validates the pod's service account (provided by Kubelet when podInfoOnMount is enabled) against the allowed value, returning PermissionDenied on mismatch. Signed-off-by: Rakshith R <rar@redhat.com>
Allow restricting nvmeof volume access to a specific Kubernetes service account using .rbd.csi.ceph.com/serviceaccount image metadata. During ControllerPublishVolume, the controller reads the ".rbd.csi.ceph.com/serviceaccount" metadata from the backing RBD image and passes it to the node via publish context. During NodePublishVolume, the node validates the pod's service account (provided by Kubelet when podInfoOnMount is enabled) against the allowed value, returning PermissionDenied on mismatch. Signed-off-by: Rakshith R <rar@redhat.com>
Allow restricting cephFS volume access to a specific Kubernetes service account using .cephfs.csi.ceph.com/serviceaccount subvolume metadata. During ControllerPublishVolume, the controller reads the .cephfs.csi.ceph.com/serviceaccount metadata from the backing CephFS subvolume and passes it to the node via publish context. During NodePublishVolume, the node validates the pod's service account (provided by Kubelet when podInfoOnMount is enabled) against the allowed value, returning PermissionDenied on mismatch. Signed-off-by: Rakshith R <rar@redhat.com>
Allow restricting nfs volume access to a specific Kubernetes service account using .cephfs.csi.ceph.com/serviceaccount subvolume metadata. During ControllerPublishVolume, the controller delegates to the CephFS backend to read the .cephfs.csi.ceph.com/serviceaccount metadata from the backing CephFS subvolume and passes it to the node via publish context. During NodePublishVolume, the node validates the pod's service account (provided by Kubelet when podInfoOnMount is enabled) against the allowed value, returning PermissionDenied on mismatch. Signed-off-by: Rakshith R <rar@redhat.com>
…riction Signed-off-by: Rakshith R <rar@redhat.com>
Signed-off-by: Rakshith R <rar@redhat.com>
Contributor
Author
|
/test ci/centos/mini-e2e/k8s-1.35/nvmeof |
f01fde8 to
330fb5b
Compare
Contributor
Author
|
/test ci/centos/mini-e2e/k8s-1.35/nvmeof |
Member
It is not unexpected that this fails. #6058 is still a work in progress to make nvmeof e2e testing work well. |
Contributor
Author
The new testcase passed 🥳 |
6 tasks
Signed-off-by: Rakshith R <rar@redhat.com>
330fb5b to
c591c1e
Compare
Contributor
Author
|
/test ci/centos/mini-e2e/k8s-1.35/nvmeof |
Contributor
Author
https://jenkins-ceph-csi.apps.ocp.cloud.ci.centos.org/job/mini-e2e_k8s-1.35-nvmeof/23/display/redirect therefore closing this pr. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends-on: #6076 #6058
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!)