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

[Release 1.21] /var/lib/rancher/k3s/storage should not be world-readable #3547

Closed
dereknola opened this issue Jun 29, 2021 · 1 comment · Fixed by #3548
Closed

[Release 1.21] /var/lib/rancher/k3s/storage should not be world-readable #3547

dereknola opened this issue Jun 29, 2021 · 1 comment · Fixed by #3548
Assignees
Milestone

Comments

@dereknola
Copy link
Member

Backport changing local storage permissions from #2348

@rancher-max
Copy link
Contributor

Validated on release-1.21 branch commit 267adf64dc96fe64e3b27149b1b0b69b4842ece9

Only changes were made to items within the storage directory.

  • /var/lib/rancher/k3s/storage directory has 0755 permissions
  • Items within storage directory correctly have 0700 permissions
$ ls -la /var/lib/rancher/k3s/storage/
total 16
drwxr-xr-x 4 root root 4096 Jul  9 22:10 .
drwxr-xr-x 6 root root 4096 Jul  9 21:57 ..
drwx------ 2 root root 4096 Jul  9 21:57 pvc-6401329b-e2f1-4c47-9e1d-cb86fe3abbd8_default_local-path-pvc
drwx------ 2 root root 4096 Jul  9 22:10 pvc-86c318f1-6c64-4908-9bc9-c5368fbca0e6_default_other-path-pvc

$ stat -c %a /var/lib/rancher/k3s/storage/
755

$ stat -c %a /var/lib/rancher/k3s/storage/pvc-6401329b-e2f1-4c47-9e1d-cb86fe3abbd8_default_local-path-pvc/
700

$ stat -c %a /var/lib/rancher/k3s/storage/pvc-86c318f1-6c64-4908-9bc9-c5368fbca0e6_default_other-path-pvc/
700

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

Successfully merging a pull request may close this issue.

2 participants