kubermatic / dashboard

Dashboard For The Kubermatic Kubernetes Platform
https://www.kubermatic.com
Other
43 stars 63 forks source link

Admin metering page - tls verification error popup #6751

Closed dharapvj closed 4 months ago

dharapvj commented 5 months ago

What happened?

On KKP Dashboard --> Admin --> metering page: We get pop error and a spinner which does not stop spinning

Image

More details from network panel:

Image

Image

from the api-server logs:

{"level":"error","time":"2024-07-03T04:35:50.888Z","caller":"handler/routing.go:152","msg":"Get \"https://minio.minio-metering.svc.cluster.local/metering-XXX-seed/?location=\": tls: failed to verify certificate: x509: certificate signed by unknown authority","request":"/api/v1/admin/metering/reports?configuration_name=report-"}

This issue has been seen at two client installations. Most likely, the CA-cert used for minio is not trusted by kkp api-server.

Expected behavior

metering page should work fine and not give any popups.

How to reproduce the issue?

How is your environment configured?

What cloud provider are you running on?

What operating system are you running in your user cluster?

Ubuntu 22.04

Additional information

xrstf commented 5 months ago

But metering is working in general? Like, do you get metering reports in Minio? I want to know whether it's "just" the dashboard/API that has issues, or whether the communication with Minio doesn't work in general.

dharapvj commented 5 months ago

yes.. metering is working fine. This is issue only on UI side

xrstf commented 5 months ago

So my guess is that the API doesn't correctly apply the CA bundle...

csengerszabo commented 4 months ago

/label sig/api