Description
Helm chart for Grafana Loki and Grafana Enterprise Logs supporting monolithic, simple scalable, and microservices modes.
Overview
| Identity | Namespace | Automount | Secrets | Permissions | Workloads | Risk |
|---|---|---|---|---|---|---|
grafana-agent-test-sa | default | ❌ | — | 7 | 0 | Critical |
loki | default | ✅ | — | 2 | 9 | Critical |
loki-grafana-agent-operator | default | ❌ | — | 25 | 1 | Critical |
loki-rollout-operator | default | ❌ | — | 4 | 1 | Medium |
loki-canary | default | ✅ | — | 0 | 1 | — |
minio-sa | default | ❌ | — | 0 | 3 | — |
Numbers in the last two columns indicate how many bindings or workloads involve each ServiceAccount.
Identities
🤖 loki-grafana-agent-operator
Namespace: default | Automount: ❌
🔑 Permissions (25)
| Role | Resource | Verbs | Risk | Tags |
|---|---|---|---|---|
ClusterRole loki-grafana-agent-operator | core/configmaps | create · delete · get · list · patch · update · watch | Critical | ConfigMapAccess DataExposure InformationDisclosure PotentialPrivilegeEscalation Tampering |
ClusterRole loki-grafana-agent-operator | apps/daemonsets | create · delete · get · list · patch · update · watch | Critical | NodeAccess Persistence PrivilegeEscalation Tampering WorkloadLifecycle |
ClusterRole loki-grafana-agent-operator | apps/deployments | create · delete · get · list · patch · update · watch | Critical | Persistence PotentialPrivilegeEscalation PrivilegeEscalation Tampering WorkloadLifecycle |
ClusterRole loki-grafana-agent-operator | core/endpoints | create · delete · get · list · patch · update · watch | Critical | DenialOfService ManInTheMiddle NetworkManipulation Tampering TrafficRedirection |
ClusterRole loki-grafana-agent-operator | core/secrets | create · delete · get · list · patch · update · watch | Critical | ClusterWideSecretAccess CredentialAccess DataExposure InformationDisclosure Persistence (+4 more) |
ClusterRole loki-grafana-agent-operator | core/services | create · delete · get · list · patch · update · watch | Critical | DenialOfService NetworkManipulation ServiceExposure Tampering |
ClusterRole loki-grafana-agent-operator | apps/statefulsets | create · delete · get · list · patch · update · watch | Critical | Persistence PotentialPrivilegeEscalation PrivilegeEscalation Tampering WorkloadLifecycle |
ClusterRole loki-grafana-agent-operator | monitoring.grafana.com/grafanaagents | get · list · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.grafana.com/grafanaagents/finalizers | get · list · update · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.grafana.com/integrations | get · list · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.grafana.com/integrations/finalizers | get · list · update · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.grafana.com/logsinstances | get · list · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.grafana.com/logsinstances/finalizers | get · list · update · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.grafana.com/metricsinstances | get · list · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.grafana.com/metricsinstances/finalizers | get · list · update · watch | Low | |
ClusterRole loki-grafana-agent-operator | core/namespaces | get · list · watch | Low | ClusterStructure InformationDisclosure Reconnaissance |
ClusterRole loki-grafana-agent-operator | core/nodes | get · list · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.grafana.com/podlogs | get · list · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.grafana.com/podlogs/finalizers | get · list · update · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.coreos.com/podmonitors | get · list · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.coreos.com/podmonitors/finalizers | get · list · update · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.coreos.com/probes | get · list · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.coreos.com/probes/finalizers | get · list · update · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.coreos.com/servicemonitors | get · list · watch | Low | |
ClusterRole loki-grafana-agent-operator | monitoring.coreos.com/servicemonitors/finalizers | get · list · update · watch | Low |
⚠️ Potential Abuse (20)
The following security risks were found based on the above permissions:
- Read secrets cluster-wide
- Read secrets in a namespace
- Modify secrets cluster-wide
- Modify secrets in a namespace
- Read ConfigMaps cluster-wide
- Read ConfigMaps in a namespace
- Modify ConfigMaps cluster-wide
- Modify ConfigMaps in a namespace
- Manage Deployments cluster-wide (potential for privileged pod execution)
- Manage Deployments in a namespace (potential for privileged pod execution)
- Manage DaemonSets cluster-wide (runs on all nodes, high impact)
- Manage DaemonSets in a namespace (runs on nodes, high impact)
- Manage StatefulSets cluster-wide
- Manage StatefulSets in a namespace
- Manage Endpoints or EndpointSlices cluster-wide
- Manage Endpoints or EndpointSlices in a namespace
- Manage Services cluster-wide
- Manage Services in a namespace
- List Namespaces (Cluster Reconnaissance)
📦 Workloads (1)
| Kind | Name | Container | Image |
|---|---|---|---|
| Deployment | loki-grafana-agent-operator | grafana-agent-operator | docker.io/grafana/agent-operator:v0.44.2 |
🤖 grafana-agent-test-sa
Namespace: default | Automount: ❌
🔑 Permissions (7)
| Role | Resource | Verbs | Risk | Tags |
|---|---|---|---|---|
ClusterRole grafana-agent-test-cr | core/nodes/proxy | get · list · watch | Critical | ClusterAdminAccess CodeExecution ElevationOfPrivilege LateralMovement (+1 more) |
ClusterRole grafana-agent-test-cr | core/endpoints | get · list · watch | Low | |
ClusterRole grafana-agent-test-cr | networking.k8s.io/ingresses | get · list · watch | Low | |
ClusterRole grafana-agent-test-cr | core/nodes | get · list · watch | Low | |
ClusterRole grafana-agent-test-cr | core/nodes/metrics | get · list · watch | Low | |
ClusterRole grafana-agent-test-cr | core/pods | get · list · watch | Low | |
ClusterRole grafana-agent-test-cr | core/services | get · list · watch | Low |
⚠️ Potential Abuse (2)
The following security risks were found based on the above permissions:
📦 Workloads (0)
No workloads use this ServiceAccount.
🤖 loki
Namespace: default | Automount: ✅
🔑 Permissions (2)
| Role | Resource | Verbs | Risk | Tags |
|---|---|---|---|---|
ClusterRole loki-clusterrole | core/secrets | get · list · watch | Critical | ClusterWideSecretAccess CredentialAccess DataExposure InformationDisclosure SecretAccess |
ClusterRole loki-clusterrole | core/configmaps | get · list · watch | High | ConfigMapAccess DataExposure InformationDisclosure |
⚠️ Potential Abuse (5)
The following security risks were found based on the above permissions:
- Read secrets cluster-wide
- Read secrets in a namespace
- Read ConfigMaps cluster-wide
- Read ConfigMaps in a namespace
📦 Workloads (9)
| Kind | Name | Container | Image |
|---|---|---|---|
| Deployment | loki-gateway | nginx | docker.io/nginxinc/nginx-unprivileged:1.29-alpine |
| Deployment | loki-read | loki | docker.io/grafana/loki:3.6.7 |
| StatefulSet | loki-backend | loki | docker.io/grafana/loki:3.6.7 |
| StatefulSet | loki-backend | loki-sc-rules | docker.io/kiwigrid/k8s-sidecar:2.5.0 |
| StatefulSet | loki-chunks-cache | exporter | prom/memcached-exporter:v0.15.4 |
| StatefulSet | loki-chunks-cache | memcached | memcached:1.6.39-alpine |
| StatefulSet | loki-results-cache | exporter | prom/memcached-exporter:v0.15.4 |
| StatefulSet | loki-results-cache | memcached | memcached:1.6.39-alpine |
| StatefulSet | loki-write | loki | docker.io/grafana/loki:3.6.7 |
🤖 loki-rollout-operator
Namespace: default | Automount: ❌
🔑 Permissions (4)
| Role | Resource | Verbs | Risk | Tags |
|---|---|---|---|---|
ClusterRole loki-rollout-operator-webhook-clusterrole | admissionregistration.k8s.io/mutatingwebhookconfigurations | list · patch · watch | Medium | InformationDisclosure Reconnaissance WebhookReconnaissance |
ClusterRole loki-rollout-operator-webhook-clusterrole | admissionregistration.k8s.io/validatingwebhookconfigurations | list · patch · watch | Medium | InformationDisclosure Reconnaissance WebhookReconnaissance |
Role loki-rollout-operator-webhook-role | core/secrets | create | Low | |
Role loki-rollout-operator-webhook-role | core/secrets (restricted to: certificate) | get · update | Low | ResourceNameRestricted |
⚠️ Potential Abuse (3)
The following security risks were found based on the above permissions:
- List ValidatingWebhookConfigurations (Reconnaissance)
- List MutatingWebhookConfigurations (Reconnaissance)
📦 Workloads (1)
| Kind | Name | Container | Image |
|---|---|---|---|
| Deployment | loki-rollout-operator | rollout-operator | docker.io/grafana/rollout-operator:v0.35.0 |
🤖 loki-canary
Namespace: default | Automount: ✅
🔑 Permissions (0)
No explicit RBAC bindings.
📦 Workloads (1)
| Kind | Name | Container | Image |
|---|---|---|---|
| DaemonSet | loki-canary | loki-canary | docker.io/grafana/loki-canary:3.6.7 |
🤖 minio-sa
Namespace: default | Automount: ❌
🔑 Permissions (0)
No explicit RBAC bindings.
📦 Workloads (3)
| Kind | Name | Container | Image |
|---|---|---|---|
| Job | loki-minio-post-job | minio-make-bucket | quay.io/minio/mc:RELEASE.2024-11-21T17-21-54Z |
| Job | loki-minio-post-job | minio-make-user | quay.io/minio/mc:RELEASE.2024-11-21T17-21-54Z |
| StatefulSet | loki-minio | minio | quay.io/minio/minio:RELEASE.2024-12-18T13-15-44Z |