I'm using prometheus-pushgateway helm chart with the latest version 2.6.0
I've configured basic auth with this guide, but for some reason it says that my credentials are incorrect
Below is ingress controller logs
2024/01/31 16:12:46 [error] 1146#1146: *7443568 user "myuser": password mismatch, client: 10.109.98.17, server: pushgateway.mydomain.com, request: "GET / HTTP/2.0", host: "pushgateway.mydomain.com"
despite this when I'm checking generated secret - values are correct
command used to check secret
kubectl -n prometheus get secrets prometheus-pushgateway-basic-auth --output="jsonpath={.data.\auth}" | base64 --decode
Also the same values are in the /etc/ingress-controller/auth/passwd file
You may try the following links below that might help you with your issue:
Prometheus-Pushgateway in Azure Managed Prometheus and Grafana - Remove host information and only use the service name
Securing a Prometheus Pushgateway deployment on OpenShift - Use route configuration