-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
/var/lib/rancher/k3s/storage should not be world-readable. #2348
Comments
This will probably need to be resolved via an issue in https://github.com/rancher/local-path-provisioner |
An issue was filed at rancher/local-path-provisioner#182. I'm not sure if the permission of the PVC directory itself would impact whether non-root containers are able to use it. I'm pretty sure ensuring /var/lib/rancher/k3s/storage (and maybe /var/lib/rancher/k3s/data?) have permissions 700 would prevent non-root users from accessing the volumes while allowing them to be used by containers (no matter what user the container runs as). |
Validated on master branch commit
|
@rancher-max this is not fixed, and in fact broke all volumes for containers running not as root. See #3704, which reported this as a k3s regression. From rancher/local-path-provisioner#182 (comment),
|
@flokli I see that you've found the linked issue that tracks fixing the regression, is there any reason in particular that you're adding comments to the original PR and this closed issue? Do you need anything else? |
@brandond I guess I was mostly confused about where the chmods happen, and whether k3s did workaround a change done in local-path-provisioner, or if these changes (and regressions) all appeared in the k3s local-storage manifest. Maybe it might make sense to update rancher/local-path-provisioner#182 (comment) to set things clear. |
As you can see from the PRs, we don't use the sample deployment yaml that is in the local-path-provisioner repo, so we haven't changed anything on that side. |
/var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes k3s-io#2348 Signed-off-by: Boleyn Su <[email protected]>
/var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes k3s-io#2348 Signed-off-by: Boleyn Su <[email protected]>
/var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes k3s-io#2348 Signed-off-by: Boleyn Su <[email protected]>
/var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes k3s-io#2348 Signed-off-by: Boleyn Su <[email protected]>
/var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes k3s-io#2348 Signed-off-by: Boleyn Su <[email protected]>
/var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes k3s-io#2348 Signed-off-by: Boleyn Su <[email protected]>
/var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes k3s-io#2348 Signed-off-by: Boleyn Su <[email protected]>
/var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes k3s-io#2348 Signed-off-by: Boleyn Su <[email protected]>
/var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes k3s-io#2348 Signed-off-by: Boleyn Su <[email protected]>
* local-storage: Fix permission /var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes #2348 Signed-off-by: Boleyn Su <[email protected]> * Fix pod command field type * Fix to int test Signed-off-by: Derek Nola <[email protected]> --------- Signed-off-by: Boleyn Su <[email protected]> Signed-off-by: Derek Nola <[email protected]> Co-authored-by: Brad Davidson <[email protected]> Co-authored-by: Derek Nola <[email protected]>
* local-storage: Fix permission /var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes k3s-io#2348 Signed-off-by: Boleyn Su <[email protected]> * Fix pod command field type * Fix to int test Signed-off-by: Derek Nola <[email protected]> --------- Signed-off-by: Boleyn Su <[email protected]> Signed-off-by: Derek Nola <[email protected]> Co-authored-by: Brad Davidson <[email protected]> Co-authored-by: Derek Nola <[email protected]>
* local-storage: Fix permission /var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes k3s-io#2348 Signed-off-by: Boleyn Su <[email protected]> * Fix pod command field type * Fix to int test Signed-off-by: Derek Nola <[email protected]> --------- Signed-off-by: Boleyn Su <[email protected]> Signed-off-by: Derek Nola <[email protected]> Co-authored-by: Brad Davidson <[email protected]> Co-authored-by: Derek Nola <[email protected]>
* local-storage: Fix permission /var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes k3s-io#2348 Signed-off-by: Boleyn Su <[email protected]> * Fix pod command field type * Fix to int test Signed-off-by: Derek Nola <[email protected]> --------- Signed-off-by: Boleyn Su <[email protected]> Signed-off-by: Derek Nola <[email protected]> Co-authored-by: Brad Davidson <[email protected]> Co-authored-by: Derek Nola <[email protected]>
* local-storage: Fix permission /var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes #2348 * Fix pod command field type * Fix to int test --------- Signed-off-by: Boleyn Su <[email protected]> Signed-off-by: Derek Nola <[email protected]> Co-authored-by: Boleyn Su <[email protected]> Co-authored-by: Brad Davidson <[email protected]>
* local-storage: Fix permission /var/lib/rancher/k3s/storage/ should be 700 /var/lib/rancher/k3s/storage/* should be 777 Fixes #2348 Signed-off-by: Boleyn Su <[email protected]> Signed-off-by: Derek Nola <[email protected]> Co-authored-by: Boleyn Su <[email protected]> Co-authored-by: Brad Davidson <[email protected]>
Validated on branch 1.27 with commit 91c5e0d / version 1.27Environment DetailsInfrastructure
Node(s) CPU architecture, OS, and Version:
Cluster Configuration:
Config.yaml:
Additional files
Testing Steps
Replication Results:
Validation Results:
Additional context / logs:
|
/var/lib/rancher/k3s/storage should not be world-readable.
The text was updated successfully, but these errors were encountered: