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

Whether the volume can be mounted with non-root user #225

Closed
Shuanglu opened this issue Sep 7, 2020 · 5 comments
Closed

Whether the volume can be mounted with non-root user #225

Shuanglu opened this issue Sep 7, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@Shuanglu
Copy link

Shuanglu commented Sep 7, 2020

Describe the solution you'd like
Whether the volume can be mount with non-root user

Anything else you would like to add:
N/A

Environment:
AKS

  • Secrets Store CSI Driver version: (use the image tag): mcr.microsoft.com/k8s/csi/secrets-store/driver:v0.0.13
  • Azure Key Vault provider version: (use the image tag): mcr.microsoft.com/k8s/csi/secrets-store/provider-azure:0.0.8
  • Kubernetes version: (use kubectl version): v1.16.13
  • Cluster type: (e.g. AKS, aks-engine, etc): AKS
@Shuanglu Shuanglu added the enhancement New feature or request label Sep 7, 2020
@Shuanglu Shuanglu changed the title Whether the volume can be mount with non-root user Whether the volume can be mounted with non-root user Sep 8, 2020
@aramase
Copy link
Member

aramase commented Sep 11, 2020

@Shuanglu Could you elaborate more on this issue? What is the current behavior you're seeing and what is the use case?

@ma185360
Copy link

Hi Team,

Use case is like this. Application container is running with non-root user and secrets are getting mounted with root privileges because of which container application is not able to access those secrets.

@vbystricky21
Copy link

vbystricky21 commented Oct 12, 2021

Hi @aramase, we would like to be able not only to customize volume ownership but also permissions. Something similar to when your mounting Kubernetes secrets as volumes, and you can set permission via the defaultMode option.
We are running containers in AKS under non-root user and need to restrict access to mounted volumes only to this user.
Does this enhancement also cover this use case?

@tracetechnical
Copy link

I am also facing this issue.

@aramase
Copy link
Member

aramase commented Feb 2, 2022

PR to make file permission configurable is merged: #751. This will be available in v1.1.0 release planned for next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants