Repository navigation
Description
Friction
Loki is stuck on 3.6.11 because its chart source turned into the Grafana Enterprise Logs chart. grafana/loki 7.3.0 is the last version in grafana.github.io/helm-charts, whose loki chart now describes itself as "Helm chart for Grafana Enterprise Logs"; the open-source chart continues as grafana-community/loki. Loki 3.6 has no fix for CVE-2026-21729 (memory exhaustion through one detected_fields request with a huge limit, fixed only in >= 3.7.0), and Loki runs with auth_enabled: false.
Evidence
Live, read-only, 2026-10-17:
- StatefulSet
logging/loki: labelhelm.sh/chart=loki-7.3.0, imagedocker.io/grafana/loki:3.6.11; loki-canary pods run 3.6.12. ApplicationlokiSynced and Healthy at [7.3.0, 3dd7fa6]. loki-0 has a 2Gi memory limit and 0 restarts. - NetworkPolicy
logging-default-perimeteradmits 3100 only from pods inlogging, themonitoringnamespace and the otel-collector pods, with no Traefik peer; so the realistic callers are monitoring pods, the collector and signed-in Grafana users through the Loki datasource (Logs Drilldown usesdetected_fields).
Repo and charts:
k8s/argocd/apps/loki.yaml:11-13(grafana.github.io/helm-charts, loki, 7.3.0);src/devops_cli/commands/k8s/stack_lifecycle.py:164-170(grafana/loki 7.3.0) and:67-69(logging stack repo grafana only);k8s/logging/loki-values.yaml:8auth_enabled: false;k8s/ingress/ingress-routes.yaml:365-385loki-ingress, whose backend the logging policy blocks by design.helm show chart grafana/loki --version 7.3.0: description "Helm chart for Grafana Enterprise Logs", appVersion 3.6.12, values pinloki.image.tag3.6.11.helm search repo grafana-community/loki: 18.17.1 (app 3.7.8). The community chart's 7.x to 8.0.0 notes say GEL support was removed (Grafana Loki Helm Chart Migration to grafana-community/helm-charts grafana/loki#20705); 9.0.0 removedmonitoring.selfMonitoring.- grafana.com advisory CVE-2026-21729: Medium, CVSS 7.5, fixed in >= 3.7.0, no 3.6.x backport.
helm templatewith the repo values renders the same StatefulSet selector and volumeClaimTemplates (claimstorage, RWO, 20Gi) for 7.3.0 and 18.17.1, so the upgrade keeps claimstorage-loki-0in place; the orphan-and-rebind procedure atk8s/README.md:213is not needed.- AppProject homelab already allows the grafana-community repo (
k8s/argocd/apps/projects.yaml:16).
Remedy
- Tests first: pin the Loki release to
grafana-community/lokiand its version in both deploy-stack and the Argo CD Application (one structural-tuple test), and assertloki-values.yamlhas nomonitoring.selfMonitoringkey and keepsdeletion_mode: disabled, compactor retention andretention_period: 720h. stack_lifecycle.py:67-69: add the grafana-community repo to the logging stack;:166grafana-community/loki,:16918.17.1.k8s/argocd/apps/loki.yaml:11,13: repoURLhttps://grafana-community.github.io/helm-charts, targetRevision18.17.1.k8s/logging/loki-values.yaml: update the header (:2-3) and deletemonitoring.selfMonitoring(:68-72). The 18.0.0 metric label change fromclustertoapp_instancedoes not touch the repo's Loki alerts (k8s/monitoring/prometheus-values.yaml:414,427), which do not filter oncluster.- Run
kubectl apply --dry-run=serveron the render against the logging namespace's baseline level, and confirm the images are loki and loki-canary 3.7.8. - Follow-up decision in the same PR or a note: either admit Traefik in the logging policy with a stated reason, or delete
loki-ingress, whose backend the policy blocks.
Coordinate with fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133, which editsloki-values.yaml(canary off) in the same file.
Priority: P2. Severity medium: a known availability CVE on a chart line that gets no open-source updates, reachable only from inside the cluster or through signed-in Grafana.
Proposed design
Problem statement
Loki runs version 3.6.11 from the grafana/loki chart, which is now the Grafana Enterprise Logs chart. It receives no open-source updates. CVE-2026-21729 causes memory exhaustion through one detected_fields request with a huge limit. The fix exists only in Loki 3.7.0 and later, with no 3.6.x backport. The deployment runs with auth_enabled: false, so any caller inside the cluster or a signed-in Grafana user can trigger it. This issue moves Loki to the grafana-community/loki chart at version 18.17.1, which ships Loki 3.7.8.
Acceptance criteria
- Criterion 1: The Loki StatefulSet and loki-canary pods run image tag 3.7.8.
Verification: Runkubectl get statefulset -n logging loki -o jsonpath='{.spec.template.spec.containers[0].image}'and confirm the tag is 3.7.8. - Criterion 2: The Argo CD Application uses the grafana-community/loki chart at version 18.17.1.
Verification: Checkk8s/argocd/apps/loki.yamlfor repoURLhttps://grafana-community.github.io/helm-charts, chartloki, targetRevision18.17.1. - Criterion 3: The deploy-stack logging stack references grafana-community/loki at version 18.17.1.
Verification: Rundevops k8s deploy-stack --stack logging --dry-runand confirm the chart isgrafana-community/lokiat18.17.1. - Criterion 4: The loki-values.yaml has no monitoring.selfMonitoring key and keeps deletion_mode, compactor retention, and retention_period.
Verification: Grepk8s/logging/loki-values.yamlforselfMonitoring(absent),deletion_mode: disabled,retention_enabled: true, andretention_period: 720h(present). - Criterion 5: A structural test pins the Loki chart name and version for both deploy-stack and Argo CD.
Verification: Run the test suite and confirm the new test passes, asserting the chart name and version tuple for both paths. - Criterion 6: The rendered manifests pass a server dry-run against the logging namespace.
Verification: Runkubectl apply --dry-run=server -n loggingon the rendered output and confirm no errors.
Key questions
- What is the current version of Loki in use?: Loki 3.6.11, from chart grafana/loki 7.3.0. [sources: k8s/argocd/apps/loki.yaml]
- What is the version of the Grafana Enterprise Logs chart that replaces the open-source loki chart?: 7.3.0, the last version in grafana.github.io/helm-charts. [sources: k8s/argocd/apps/loki.yaml:13]
- Should the loki-ingress be modified to admit Traefik or deleted?: Pending decision. Two options: admit Traefik in the logging NetworkPolicy with a stated reason, or delete loki-ingress because the policy blocks its backend by design. (proposed) [sources: k8s/ingress/ingress-routes.yaml:365-385, k8s/logging/networkpolicy.yaml]
- What is the fixed version of Loki that addresses CVE-2026-21729?: Loki 3.7.0 and later. No 3.6.x backport exists. [sources: k8s/argocd/apps/loki.yaml]
- What is the new version of Loki to upgrade to in order to fix CVE-2026-21729?: Loki 3.7.8, shipped by grafana-community/loki chart 18.17.1. [sources: k8s/argocd/apps/projects.yaml:16]
- What chart repository should be used for the Loki upgrade?:
https://grafana-community.github.io/helm-charts, already allowed in the AppProject. [sources: k8s/argocd/apps/projects.yaml:16]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsReady
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 18, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate addresses a known security vulnerability CVE-2026-21729 in Loki.The issue is a known availability CVE affecting a chart line without open-source updates, reachable only from inside the cluster or through signed-in Grafana.Fixing the CVE prevents potential denial of service and impacts the security posture of the system.The fix involves updating chart sources, values files, and coordinating with other ongoing changes.dan-petty commentedon Oct 28, 2026
Status set to Ready at d509dba (see proposed design in issue body).
fix(k8s): loki runs from the grafana-community chart on loki 3.7.9, o…
fix(k8s): delete loki-ingress, blocked by the logging network policy (#…