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

fix: separates directory creation from permission checks #13248

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

owen-d
Copy link
Member

@owen-d owen-d commented Jun 17, 2024

closes #13222
Signed-off-by: Owen Diehl ow.diehl@gmail.com

The change from https://github.com/grafana/loki/pull/12019/files cascaded into other usage of EnsureDirectory and thus required every place it was called to require at least 0o700 permissions, effectively breaking any read-only mounts.

I've separated creation from permissions testing so they can be applied independently, added some more utilities, and some testware.

closes grafana#13222
Signed-off-by: Owen Diehl <ow.diehl@gmail.com>
@owen-d owen-d requested a review from a team as a code owner June 17, 2024 18:52
@owen-d owen-d merged commit 1086783 into grafana:main Jun 17, 2024
61 checks passed
@slim-bean slim-bean added type/bug Somehing is not working as expected backport k207 labels Jun 18, 2024
grafanabot pushed a commit that referenced this pull request Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport k207 size/M type/bug Somehing is not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loki 3.0.0: local ruler-storage now needlessly requires the rules directory to be writable
2 participants