Hub rules-grafana

rules-grafana

v3 public Verified

Grafana

Grafana is an open-source platform for query, visualization, alerting, and understanding of metrics. These rules govern dashboard creation, data source configuration, and alert management for AI agents.

@sigmashakeinc 2 pulls 10 rules published Apr 8, 2026 synced Oct 25, 2026 sigmashakeinc/rules/rulesets/rules-grafana →
Severity
5 error 5 warn 0 info
demo.cast
Grafana is an open-source platform for query, visualization, alerting, and understanding of metrics. These rules govern dashboard creation, data source configuration, and alert management for AI agents.

Rules index

10 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

grafana

grafana-block-unsafe-patterns warning ask

Potentially unsafe pattern detected in grafana code: "allow_embedding = true". Review the use case — this may indicate a security risk, a deprecated API, or a misconfiguration. Confirm the write is intentional.

Rule source requires an active Pro or Enterprise subscription.
grafana-force-updated-api warning log

You are using an outdated API for grafana. Please upgrade to the newer API.

Rule source requires an active Pro or Enterprise subscription.
no-grafana-allow-loading-unsigned-plugins warning log

RISK: Loading unsigned Grafana plugins bypasses Grafana's plugin signing verification, allowing malicious plugins to access all datasources, dashboards, and Grafana's internal API with full server-side privileges. FIX: Only list specific internal plugins by ID in allow_loading_unsigned_plugins; never use a wildcard.

Rule source requires an active Pro or Enterprise subscription.
no-grafana-anonymous-access-enabled error block

RISK: Enabling anonymous access (auth.anonymous enabled = true) exposes all dashboards and datasource metrics to unauthenticated users — this was the root cause of the Grafana CVE-2021-27358 snapshot disclosure. FIX: Set enabled = false under [auth.anonymous]; use Grafana organizations or embed signed URLs instead.

Rule source requires an active Pro or Enterprise subscription.
no-grafana-database-plaintext-password error block

RISK: Hardcoding the Grafana database password in grafana.ini means any leaked config file hands attackers full read/write access to all dashboards, users, and alert rules. FIX: Use GF_DATABASE_PASSWORD env var or a secrets-management solution (Vault, AWS Secrets Manager).

Rule source requires an active Pro or Enterprise subscription.
no-grafana-datasource-plaintext-password error block

RISK: Datasource provisioning files with plaintext passwords are often committed to Git and expose database/API credentials to anyone with repository access. FIX: Use secureJsonData fields with ${ENV_VAR} references so secrets are injected at runtime from the environment.

Rule source requires an active Pro or Enterprise subscription.
no-grafana-disable-login-form warning log

RISK: Disabling the login form or initial admin creation without a functioning SSO/LDAP fallback leaves Grafana with no administrative login path — or conversely, leaves it open with no auth at all. FIX: Only disable login_form after confirming OAuth/SAML/LDAP is fully operational and tested.

Rule source requires an active Pro or Enterprise subscription.
no-grafana-public-snapshot-api-enabled warning log

RISK: Enabling external snapshots (snapshots.external_enabled = true) allows anyone to publish dashboard snapshots to the public Grafana snapshot server, potentially leaking internal metric names, infrastructure topology, and business KPIs. FIX: Set external_enabled = false; use internal snapshots shared via org-gated links instead.

Rule source requires an active Pro or Enterprise subscription.
no-grafana-secret-key-default error block

RISK: Using Grafana's default or empty secret_key means all datasource passwords are encrypted with a predictable key — any Grafana deployment with the same config shares the same encryption secret. FIX: Generate a unique secret_key (openssl rand -hex 32) per deployment and inject it via the GF_SECURITY_SECRET_KEY environment variable.

Rule source requires an active Pro or Enterprise subscription.
no-grafana-smtp-plaintext-password error block

RISK: Committing an SMTP password in plaintext to grafana.ini exposes email account credentials to anyone with repository read access. FIX: Use environment variable expansion (password = $GF_SMTP_PASSWORD) or an external secret store injected at runtime.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v3
Published
Apr 8, 2026
Source commits
0
Synced
Oct 25, 2026
Hash
82045d6179063946a2f347cfb74978d598e2702c902f90cd66cfa0509aeebc5a
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-grafana/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-grafana. The published version only bumps when a maintainer resyncs.

No commit history available.