-
Notifications
You must be signed in to change notification settings - Fork 315
Closed
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Milestone
Description
Describe the solution you'd like
Supposing my secret is an ssh key. Then I'm going to want the file to have permissions 0600, else I'll get
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
etc
Looks like everything that this driver mounts gets permissions 0644 - here and here if my grep is good.
I'd like a mechanism to set the permissions to 0600.
Anything else you would like to add:
Common advice seems to be to run an initContainer and adjust the permissions on files as needed from that. But the secrets-store-csi-driver insists that I mount the volume as read-only, so that doesn't work.
Environment:
- Secrets Store CSI Driver version: (use the image tag):
- Kubernetes version: (use
kubectl version
):
royra, tam7t, jochristian, liammooney, ok512 and 1 more
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.