Skip to content
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

One new csi secret key that apply to all the CSI operations #245

Closed
shay-berman opened this issue Mar 11, 2019 · 6 comments
Closed

One new csi secret key that apply to all the CSI operations #245

shay-berman opened this issue Mar 11, 2019 · 6 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@shay-berman
Copy link

According to k8s CSI spec, there are 2 ways to specify secrets for CSI plugin from the storage class:
option1 - to specify secret key per CSI operation (provisioner, controller-publish, snapshot, node-stage, node-publish...).

csi.storage.k8s.io/provisioner-secret-name: secret1
csi.storage.k8s.io/provisioner-secret-namespace: csi-plugin-namespace
csi.storage.k8s.io/controller-publish-secret-name: secret1
csi.storage.k8s.io/controller-publish-secret-namespace: csi-plugin-namespace
csi.storage.k8s.io/node-stage-secret-name: secret1
csi.storage.k8s.io/node-stage-secret-namespace: csi-plugin-namespace
csi.storage.k8s.io/node-publish-secret-name: secret1
csi.storage.k8s.io/node-publish-secret-namespace: csi-plugin-namespace

option2 - to specify secret per PV name by having ${pv.name} template.

But what if a CSI plugin requires the same credential fpr all the CSI operations?
So the user must specify many secret lines in each storage class object (5 secrets per operations + 5 namespace per operation * number of storage classes that uses the same backend).

So this issue is to propose another option(number 3) to simplify the user experience in case csi driver requires the same secret for all CSI operations.
So the secret key in the storage class can be called:
csi.storage.k8s.io/secret-name: SECRET
csi.storage.k8s.io/secret-namespace: NAMESPACE

Note: maybe we can distinguish secret for csi controller-ops vs csi node-ops, because I believe that usually the secrets for these operations are different, and maybe u don't even need secret for csi node ops at all.

@gnufied
Copy link
Contributor

gnufied commented Mar 11, 2019

I think this could work. It might be considered less secure than per-sidecar secrets but if a admin wants to use same secret for all sidecards, why not. One problem is going to be to ensure that, same key is known to all sidecars.

cc @msau42 @liggitt

@msau42
Copy link
Collaborator

msau42 commented Mar 11, 2019

/kind feature

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 11, 2019
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 9, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jul 9, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

5 participants