-
Notifications
You must be signed in to change notification settings - Fork 544
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
mimir-distributed
helm chart not following Restricted Pod Security Standard
as claimed by Grafana docs
#5758
Comments
Can you share your values file? I'm a bit surprised this is the case because none of the components should be configured to write to the root file system with the default values.yaml |
Hey @dimitarvdimitrov, here you go:
|
the need to enable root filesystem access is due to the default values of Mimir. Those use the current directory for storing files. These default values are overridden in the helm chart so that only attached volumes are used. So by default the helm chart doesn't need root filesystem access.
However, since you've set the I'm closing this because it seems that this is not an issue with the chart. Reopen if you think the chart is still non-compliant. |
Describe the bug
As per Grafana Mimir documentation it should be possible to install
mimir-distributed
helm-chart by following the Kubernetes Restricted security policy. But when I'm deploying on the GKE Autopilot, this does not hold true. All component likeruler
,compactor
,ingester
,Alertmanager
,store gateway
require this helm configuration:in order to avoid errors like
read-only filesystem
,permission denied while accessing X directory
. The configuration above is obviously against the best security practices in Kubernetes. I think anybody should be able to reproduce this scenario by just deploying themimir-distributed
helm chart onto the GKE Autopilot. Note, that I'm using GCS storage buckets for the components where the configuration allows it but still as per my investigation there are some temporary file the Mimir is trying to save onto a filesystem.Output of
helm version
:Output of
kubectl version
:To Reproduce
Deploy
Mimir-distributed
helm chart onto a GKE Autopilot.Expected behavior
I expect to deploy
mimir-distributed
helm chart and comply with the latest security recommendations.Environment
The text was updated successfully, but these errors were encountered: