Skip to content

UI not working when TLS/mTLS is enabled #20031

@attilaolah

Description

@attilaolah

Describe the bug
When running Loki with mTLS (RequireAndVerifyClientCert), or even with VerifyClientCertIfGiven, the UI stops working. All static assets load, but no nodes are discovered and the version number is not disabled.

The cause seems to be the hard-coded proxyScheme in https://github.com/grafana/loki/blob/main/pkg/ui/handler.go#L27, there is no way to change it from http to https via config.

To Reproduce
Steps to reproduce the behavior:

  1. Started Loki 3.6.2 via the official Helm chart
  2. Go to /ui

Expected behavior
UI should work.

Environment:

  • Infrastructure: Kubernetes
  • Deployment tool: Helm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions