New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] CRDS not working when Grafana running under protocol https #642
Comments
That makes sense, no where in https://github.com/grafana-operator/grafana-operator/blob/d86b5191c5f1ee0a8d495d536ca17eee46e1531d/controllers/grafanadashboard/grafana_client.go#L86 we take tls in to account. We need to take make use of TLS and get the secrets that is being applied in the grafana server config. Shouldn't be to hard and it would be good to write some tests to verify this at the same time. |
@NissesSenap we disable cert check for the client though: https://github.com/grafana-operator/grafana-operator/blob/d86b5191c5f1ee0a8d495d536ca17eee46e1531d/controllers/grafanadashboard/grafanadashboard_controller.go#L150 |
Possible fix: if one of those field is overridden, we need top import the certificate into our client:
One remaining question is how we would discover the certificate secret. We could use predictable naming (needs to be documented, easy to miss, hard to find). Or another config property, e.g. |
Any Updates on this |
HI @pb82 we can able to use the extra mounts facility to decide where the secrets or config maps can store Please be concentrate on like if we enabled the HTTPS the scheme of both liveness and readiness have to change to HTTPS and the internal communication also would be HTTPS only then only the CRDS communication will work fine |
Any updates on this |
When I was running the Grafana with HTTPS protocol the Grafana pod logs is saying like
when deployed the dashboard resource file to upload dashobard its showing like
I have enabled the tls for grafana by using below config
The text was updated successfully, but these errors were encountered: