Skip to content

Allow unauthenticated access #2050

@kassett

Description

@kassett

Title

Allow unauthenticated dashboard access when ALLOW_ANONYMOUS_ACCESS=true

Description

It would be great to support unauthenticated access to the dashboard UI when the ALLOW_ANONYMOUS_ACCESS environment variable is set to true.

This is a common pattern for self-hosted tools like Grafana, Elasticsearch Dashboards, and others, where users can opt in to anonymous viewing mode by explicitly setting an env var. This helps reduce friction in local or low-risk deployments, especially for internal use or quick evaluations.

Importantly, I don't think this pattern needs to extend to API (programmatic) access. Unauthenticated access should be limited to the web dashboard only — programmatic access should continue to require authentication.

Proposed behavior

  • If ALLOW_ANONYMOUS_ACCESS=true, users visiting the dashboard in a browser are not required to log in.
  • API routes continue to enforce authentication regardless of this setting.

Let me know if you'd like help with a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions