Skip to content

fix(security): configure secret_key for grafana security #5697

Closed

Description

@dan-petty

Problem or Motivation

Grafana Advisor reports a critical security finding: Security config check failed for 1 item(s): secret_key.
In k8s/monitoring/grafana-values.yaml, secret_key is not configured under [security]. Without a configured secret_key, Grafana falls back to an insecure default secret key, exposing session cookie signing, CSRF protection, and stored credentials to risk.

Proposed Solution & Architectural Design

  • Define secret_key in grafana.ini under [security], or configure GF_SECURITY_SECRET_KEY via envValueFrom referencing a Kubernetes Secret.
  • Document the secret entry in k8s/README.md under Cluster Secrets.

Target Subsystem

Security & Vulnerability Scanners (k8s/monitoring/grafana-values.yaml, k8s/README.md).

Acceptance Criteria

  • k8s/monitoring/grafana-values.yaml configures Grafana with a secure secret_key.
  • Invariant tests for cluster secrets and Kubernetes manifests pass.

Activity

  1. added
    type/bug
    scope/security
    priority/p2-medium
    source/agent
    status/new
    owner/agent
    status/in-review
    and removed
    status/new
    on Nov 14, 2026
  2. removed
    status/in-review
    owner/agent
    on Nov 14, 2026
  3. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-14 17:02 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/securitysource/agenttype/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions