Capability Library · Pack detail

grafana v1.0.0

Grafana: read dashboards, data sources, org users and alert rules with a service-account token.

Review state: draft· Not in the distributable release manifest

Release identity

SHA-256 of the pack file bytes: c0447db19d95d18537a4813e7782b945715697f2f77c5ee6e18c0a67bc818d5e

Not in the distributable release manifest. The binary carries a digest-bound manifest of the distributable library; a pack whose bytes differ from its manifest entry — endpoint, tier, allowlist, or credential edited, with provider, version, and review block preserved — fails the digest check, loses distributability, and renders MODIFIED rather than as the shipped reviewed artifact. Review state and artifact status are different facts: the first is a documentation-review declaration, the second is the identity of the exact bytes.

Capabilities (4)

grafana.dashboards.read v1.0.0R0

Action
read
Endpoint
GET https://grafana-instance.invalid/api/search
Connector
http
Custody
customer_vault
Credential ref
secret-ref-grafana-service-account-token
Data class
internal

Search dashboards and folders: titles, uids, tags and folder structure visible to the service account, which reveal internal operational topology. The registered path covers the collection read only — single-dashboard reads (GET /api/dashboards/uid/:uid) and dashboard writes are not registered by this pack.

grafana.datasources.read v1.0.0R0

Action
read
Endpoint
GET https://grafana-instance.invalid/api/datasources
Connector
http
Custody
customer_vault
Credential ref
secret-ref-grafana-service-account-token
Data class
internal

List configured data sources: names, types and connection URLs, which reveal internal infrastructure. The registered path covers the collection read only — single data-source reads, data source queries (POST /api/ds/query) and data source writes are not registered by this pack.

grafana.users.read v1.0.0R0

Action
read
Endpoint
GET https://grafana-instance.invalid/api/org/users
Connector
http
Custody
customer_vault
Credential ref
secret-ref-grafana-service-account-token
Data class
pii

List users in the current organization: logins, emails, names and org roles, which are personal data. Grafana documents this endpoint as accessible to users with the org admin role — so under basic roles a read-only service account cannot reach it. The granular org.users:read permission depends on Grafana RBAC, which is an Enterprise and Grafana Cloud feature; on editions without it, remove this capability from the deployment's copy rather than grant org admin or imply Viewer suffices. Where RBAC is available and the deployment deliberately grants org.users:read, a 403 here without that grant is the control working, not a fault. Collection read; there is no record variant registered.

grafana.alerts.read v1.0.0R0

Action
read
Endpoint
GET https://grafana-instance.invalid/api/v1/provisioning/alert-rules
Connector
http
Custody
customer_vault
Credential ref
secret-ref-grafana-service-account-token
Data class
internal

List all provisioned alert rules: names, conditions, queries and notification routing, which reveal what the deployment watches and who gets paged. The registered path covers the collection read only — single-rule reads (GET /api/v1/provisioning/alert-rules/:uid), export and every provisioning write are not registered by this pack.

Credential reference

The pack names a reference, never a secret. Installing a pack registers capabilities and makes them governable; registration is not connectivity. The credential is created at the provider and held in the client's own secret manager under the reference the pack names, and deployment testing is still required to show the credential path works and cannot be bypassed.

Reference
secret-ref-grafana-service-account-token
Custody
customer_vault
Injection
header (Authorization)

A Grafana service account token for the customer's own instance, held in the client's own secret manager. The stored material must be the complete Authorization header value: the scheme 'Bearer', one separating space, then the token — 'Bearer <token>'. Use a dedicated service account with the least-privilege role this read-only pack needs — never a personal user's credentials, and never the legacy admin API key form. Viewer alone is not sufficient for the complete pack: Grafana documents the org-users endpoint as requiring the org admin role under basic roles, and the alert-provisioning reads as gated by their own RBAC permissions, so the service account needs a fixed role (Grafana RBAC, available in Grafana Enterprise and Grafana Cloud) granting exactly the read permissions for these four operations — dashboards:read, datasources:read, org.users:read and alert.provisioning:read — and nothing broader. Where RBAC is unavailable, a read-only deployment cannot reach the org-users endpoint at all and must remove grafana.users.read from its copy rather than grant org admin. Grafana's token value is shown once at creation, so capture it into the vault at creation time. Tokens default to never expiring (the creation API's secondsToLive defaults to 0): set an explicit expiry and rotate — renewal ownership sits with an external deployment process, and the executor injects the stored value verbatim and performs no token lifecycle of its own. Revocation is deleting the token (DELETE /api/serviceaccounts/:id/tokens/:tokenId), disabling or deleting the service account; do not assume that restricting new token issuance invalidates tokens already issued — delete the issued token itself. Executor hygiene: the value must live only in executor memory for the lifetime of a call, must never be written to logs, traces or diagnostics, and must not appear in crash dumps; a deployment that cannot meet that bar must not enable the pack.

Resources

  • grafana-instance (api, internal): https://grafana-instance.invalid/api
  • grafana-org-users (api, pii): https://grafana-instance.invalid/api/org/users

Pack notes and exclusions

The endpoint host 'grafana-instance.invalid' is a reserved non-production placeholder (an RFC 2606 reserved TLD): substitute the customer's own Grafana host — an on-prem instance host or a Grafana Cloud stack host (<stack>.grafana.net) — in the endpoints, the resource locators and the egress allowlist before enabling; the allowlist matches exactly, so all three must be substituted together, substitution is a required deployment step, and allowlisting the reserved host does not make an unsubstituted pack safe (the reserved name is a deliberate fail-closed default: it resolves nowhere by design, so an unsubstituted pack cannot call anything until the installer binds the real host). Every read endpoint here is a COLLECTION read only: single-record reads (GET /api/dashboards/uid/:uid, GET /api/datasources/uid/:uid, GET /api/v1/provisioning/alert-rules/:uid) are not registered. Dashboard search (GET /api/search) returns the dashboards and folders the token's service account may see, so the result set itself is authorization-scoped by Grafana. This pack is read-only. Documented exclusions — this pack does not register: dashboard creation, update or deletion (POST /api/dashboards/db, DELETE /api/dashboards/uid/:uid and the dashboard.grafana.app API group), data source creation, update, deletion or queries (POST /api/ds/query — caller-controlled query text against every configured data source cannot be pinned by a pack, the same rule as the postgres pack's query capabilities, and this pack supplies no reviewed adapter to constrain it), user or team administration, alert rule provisioning writes (POST/PUT/DELETE on /api/v1/provisioning/alert-rules — writing alert rules can create or silence the alerts that wake people, an effect-level risk this pack does not register), silences (the Alertmanager silences API — creating a silence suppresses alert notifications and can hide incidents from responders, an effect this pack does not register), service account administration, and the legacy /api/alerts endpoint — a documented exclusion, not an approximated capability.

Review record

Draft review record dated 2026-09-21 · Reviewer: aaes-eng (an opaque id that resolves internally to the responsible reviewer)

A pack review is not a vendor or examiner attestation. A retrieval date says when a source page was read; it does not by itself establish what the page said then. No pack is vendor-endorsed, and none has been connectivity-tested against a live vendor tenant.