Skip to content

[Helm chart 6.29] Upgrading chart to 6.29.0 bricks basic auth functionality and allows reading X-Scope-OrgID not owned by user #16938

Open
@Phsacar

Description

@Phsacar

Describe the bug
When I upgrade my local scalable loki from 6.28.0 to 6.29.0 , basic auth does not work as expected. You can even get data of other X-Scope-OrgIDs

To Reproduce
Steps to reproduce the behavior:

  1. Setup loki helm in scalable mode and define some users with basic auth
  2. setup Datasource in grafana with username and password without specifying X-Scope-OrgID
  3. get no org errors on every query
  4. Try setting X-Scope-OrgID in the datasource manually ( you can insert any X-Scope-OrgID - the username wont get enforced )
  5. Datasource works - however - you can now access data of different X-Scope-OrgID

Expected behavior

  1. Setup loki helm in scalable mode and define some users with basic auth
  2. setup Datasource in grafana with username and password without specifying X-Scope-OrgID
  3. working queries and only access to the X-Scope-OrgID that corresponds to my username

Environment:

  • Infrastructure: k8s running on talos linux
  • Deployment tool: helm

Screenshots, Promtail config, or terminal output
na - can post configmap of the autodeployed nginx ( standard when using scalable loki ) if needed

Thanks!

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