thanos-io / thanos

Highly available Prometheus setup with long term storage capabilities. A CNCF Incubating project.
https://thanos.io
Apache License 2.0
13.11k stars 2.1k forks source link

The baisc auth doens't work #6048

Open Wyifei opened 1 year ago

Wyifei commented 1 year ago

1. How the thanos installed Installed the thanos by helm, the chart.yaml info : maintainers:

2. How the thanos configured. Enable basic auth as below: auth: basicAuthUsers: { admin: ${password}}

3. What's current issue Login thanos query, input the user and password, auth passed but prompt below error:

image

Wyifei commented 1 year ago

Anyone could help on this issue?

yeya24 commented 1 year ago

Can you please share your configuration? Is it basic auth against Thanos query?

Wyifei commented 1 year ago

Can you please share your configuration? Is it basic auth against Thanos query?

Ingress value yaml:

global: imageRegistry: ${image_registry} storageClass: "gp2"

image: repository: thanos/thanos tag: v0.28.1

auth: basicAuthUsers: { admin: ${password}}

objstoreConfig: |- type: S3 config: bucket: ${bucket} endpoint: ${endpoint} aws_sdk_auth: true

query: enabled: true dnsDiscovery: sidecarsService: ${environment}-thanos-discovery sidecarsNamespace: kube-system stores:

queryFrontend: enabled: true ingress: enabled: true ingressClassName: nginx hostname: thanos.${domain}

bucketweb: enabled: true refresh: "10m" serviceAccount: create: false name: prometheus-operator ingress: enabled: true ingressClassName: nginx hostname: bucketweb.${domain}

compactor: enabled: true persistence: size: "50Gi" existingClaim: "" retentionResolutionRaw: 60d retentionResolution5m: 90d retentionResolution1h: 1y serviceAccount: create: false name: prometheus-operator

storegateway: enabled: true persistence: size: "10Gi" existingClaim: "" serviceAccount: create: false name: prometheus-operator

ruler: enabled: false

receive: enabled: false

metrics: enabled: true serviceMonitor: enabled: true labels: Release: ${release_name}

Wyifei commented 1 year ago

Fix this issue by workaround that enable query ingress rather than queryfrontend ingress

Atrbear commented 1 year ago

I am facing the same problem by using helm chart thanos, version is 0.31.0-scratch-r10, can anyone help?