Skip to content

Enable anonymous read-only access to Grafana dashboards#554

Open
swinney wants to merge 1 commit into
devfrom
fix/grafana-anonymous-access
Open

Enable anonymous read-only access to Grafana dashboards#554
swinney wants to merge 1 commit into
devfrom
fix/grafana-anonymous-access

Conversation

@swinney

@swinney swinney commented Apr 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Enable Grafana anonymous auth so dashboards are viewable without login
  • Anonymous users get Viewer role (read-only) in the default org
  • No changes to admin or editor access

Test plan

  • Deploy with archi deploy and restart Grafana container
  • Verify dashboard loads without login at /d/<uid>/archi-usage
  • Verify anonymous users cannot edit dashboards or settings
  • Verify admin login still works with full permissions

🤖 Generated with Claude Code

Allow unauthenticated users to view Grafana dashboards without login.
Anonymous users get the Viewer role in the default org, so they can
see dashboards but cannot edit them or change settings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

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.

Pull request overview

This PR updates the Grafana configuration template used by the archi CLI so that Grafana dashboards can be viewed without authentication by enabling anonymous access with the Viewer role in the default organization.

Changes:

  • Enable [auth.anonymous] in the rendered grafana.ini template.
  • Set anonymous org name to Main Org. and role to Viewer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 555 to +557
[auth.anonymous]
# enable anonymous access
;enabled = false
enabled = true
Comment on lines 565 to 566
# mask the Grafana version number for unauthenticated users
;hide_version = false
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.

2 participants