Skip to content

grafana: allow the plugins Grafana 13 preinstalls in security-check.sh - #510

Merged
OisinKyne merged 1 commit into
main-v1.11from
oisin/v1.11-grafana-check-preinstalled
Oct 26, 2026
Merged

OisinKyne merged 1 commit into
main-v1.11from
oisin/v1.11-grafana-check-preinstalled

Conversation

@OisinKyne

@OisinKyne OisinKyne commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Backport of the main PR (01a9b19) onto main-v1.11 for v1.11.4.

grafana/security-check.sh expected only four Grafana apps in data/grafana/plugins, but Grafana 13 preinstalls and keeps updating 18 plugins there, including core datasources it now ships separately. Every upgraded node got 8 false findings and was told to report them. This uses Grafana's full preinstall list, from the "Installing plugins" line of Grafana 13.2.4's startup log.

Tested against an untouched install with all 18 plugin directories (no issues, exit 0) and a tampered one with a planted service account, token, datasource and yesoreyeram-infinity-datasource plugin (all four flagged, exit 1). The change is identical to the one on main.

category: bug
ticket: none

Grafana 13 downloads and keeps updating 18 plugins on every start,
including core datasources it now ships separately (prometheus, tempo,
elasticsearch, ...). On an untouched pre-hardening install, 12 of them
are in data/grafana/plugins, so the check reported 8 false findings.

Use Grafana's full preinstall list, taken from the "Installing plugins"
line in Grafana 13.2.4's startup log. An untouched install now reports
no issues, while a planted service account and plugin are still flagged.
@sonarqubecloud

Copy link
Copy Markdown

@OisinKyne
OisinKyne merged commit 8fe6d55 into main-v1.11 Oct 26, 2026
4 checks passed
@OisinKyne
OisinKyne deleted the oisin/v1.11-grafana-check-preinstalled branch October 26, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant