Skip to content

Allow everyone in the team to view Grafana dashboards - #2321

Merged
theseanything merged 1 commit into
mainfrom
grafana-viewer-role
Oct 16, 2026
Merged

theseanything merged 1 commit into
mainfrom
grafana-viewer-role

Conversation

@theseanything

@theseanything theseanything commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What problem does this pull request solve?

Trello card: https://trello.com/c/gbx5hFDS/518-show-number-of-submissions-per-week-kpi-in-grafana

Only members of govuk-forms-devs and govuk-forms-infrastructure can sign in to Grafana at the moment.

This allow anyone in govuk-forms/govuk-forms-all GitHub team to login so anyone in the team can view dashboards.

Roles are checked in order (admin, then editor, then viewer), so people in the admin or editor teams keep their higher role.

@theseanything theseanything changed the title Grant Grafana Viewer role to govuk-forms-all Grant Grafana Viewer role to govuk-forms-all team Oct 14, 2026
Everyone on the team should be able to look at dashboards, but until
now only members of govuk-forms-devs and govuk-forms-infrastructure
could sign in. Grafana picks the first matching role, so members of
the admin or editor teams keep their higher role.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@theseanything theseanything changed the title Grant Grafana Viewer role to govuk-forms-all team Allow everyone in the team to view Grafana dashboards Oct 14, 2026
@theseanything
theseanything marked this pull request as ready for review October 14, 2026 17:04
@theseanything
theseanything requested review from a team and a balanced review from Copilot October 14, 2026 17:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Configuration is wired consistently across environments, preserves role precedence, and has no identified blocking issues.

0 open findings

What changed in this PR

Extends Grafana dashboard access to the govuk-forms-all GitHub team while preserving existing admin and editor roles.

Changes:

  • Adds optional viewer-team configuration and role mapping.
  • Enables viewer access in development, staging, and production.
  • Documents viewer access and denial for unmatched users.
File Description
infra/​modules/​grafana/​variables.tf Adds optional viewer-team input.
infra/​modules/​grafana/​README.md Documents viewer access rules.
infra/​modules/​grafana/​ecs.tf Maps viewer teams after higher-priority roles.
infra/​deployments/​forms/​tfvars/​staging.tfvars Enables team-wide viewing in staging.
infra/​deployments/​forms/​tfvars/​production.tfvars Enables team-wide viewing in production.
infra/​deployments/​forms/​tfvars/​dev.tfvars Enables team-wide viewing in development.
infra/​deployments/​forms/​inputs.tf Adds viewer teams to deployment settings.
infra/​deployments/​forms/​health/​grafana.tf Passes viewer teams to the Grafana module.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@theseanything
theseanything added this pull request to the merge queue Oct 16, 2026
Merged via the queue into main with commit 93f981b Oct 16, 2026
20 checks passed
@theseanything
theseanything deleted the grafana-viewer-role branch October 16, 2026 08:04
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.

3 participants