-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Update security considerations for CSI inline ephemeral volumes #32667
Update security considerations for CSI inline ephemeral volumes #32667
Conversation
👷 Deploy Preview for kubernetes-io-vnext-staging processing.
|
312195d
to
55af29e
Compare
/retitle Update security considerations for CSI inline ephemeral volumes |
55af29e
to
ee88864
Compare
/sig storage |
/lgtm |
LGTM label has been added. Git tree hash: 80f9e32e9f020d8653a947b92ca69c0b5420e860
|
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.
Grammatical nits + rephrasing for clarity.
ee88864
to
a664a29
Compare
/assign @xing-yang @jingxu97 |
/lgtm |
LGTM label has been added. Git tree hash: df9f8bd610519d587d15e4a079a41fc1d57f179f
|
/approve |
/assign @kbhawkey |
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.
Minor nits + rephrasing for clarity.
@@ -127,14 +127,15 @@ instructions. | |||
|
|||
### CSI driver restrictions | |||
|
|||
{{< feature-state for_k8s_version="v1.21" state="deprecated" >}} | |||
CSI ephemeral volumes allow users to provide volumeAttributes |
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.
CSI ephemeral volumes allow users to provide volumeAttributes | |
CSI ephemeral volumes allow users to provide `volumeAttributes` |
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.
Would we also want to link the volumeAttributes to its description at: https://kubernetes.io/docs/concepts/storage/volumes/ ?
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.
Would we also want to link the volumeAttributes to its description at: https://kubernetes.io/docs/concepts/storage/volumes/ ?
These attributes are driver-specific, and there is already a bit of text above this section referring to the driver-specific documentation:
website/content/en/docs/concepts/storage/ephemeral-volumes.md
Lines 123 to 126 in 89cf5eb
The `volumeAttributes` determine what volume is prepared by the | |
driver. These attributes are specific to each driver and not | |
standardized. See the documentation of each CSI driver for further | |
instructions. |
{{< feature-state for_k8s_version="v1.21" state="deprecated" >}} | ||
CSI ephemeral volumes allow users to provide volumeAttributes | ||
directly to the CSI driver as part of the Pod spec. A CSI driver | ||
requiring volumeAttributes which are typically restricted to |
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.
requiring volumeAttributes which are typically restricted to | |
requiring `volumeAttributes`, typically restricted to |
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.
Hi @divya-mohan0209 I want to clarify that not all volumeAttributes
are restricted to administrators. I updated the wording to (hopefully) clarify what to look for.
CSI ephemeral volumes allow users to provide volumeAttributes | ||
directly to the CSI driver as part of the Pod spec. A CSI driver | ||
requiring volumeAttributes which are typically restricted to | ||
administrators is NOT suitable for use in an inline ephemeral volume. |
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.
administrators is NOT suitable for use in an inline ephemeral volume. | |
administrators, is NOT suitable for use in an inline ephemeral volume. |
a664a29
to
e043203
Compare
{{< /note >}} | ||
Cluster administrators who need to restrict the CSI drivers that are | ||
allowed to be used as inline volumes within a Pod spec may do so by: | ||
- Removing `Ephemeral` from `volumeLifecycleModes` in the CSIDriver spec. |
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.
Removing Ephemeral
from volumeLifecycleModes
in the CSIDriver spec means this CSI Driver cannot support CSI ephemeral volumes, right? Can you clarify?
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.
That's correct, I updated this line to clarify.
e043203
to
f9ba38b
Compare
/lgtm |
LGTM label has been added. Git tree hash: 53e6aaf62be28281b957fa505197c7940c117c4c
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jingxu97, tengqm 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 |
This PR:
KEP: https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/596-csi-inline-volumes
Enhancement: kubernetes/enhancements#596