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
Fix for TLS dashboard #5155
Fix for TLS dashboard #5155
Conversation
729d263
to
29c5e79
Compare
29c5e79
to
27467cb
Compare
Trying to access these APIs through TLS produces "Could not reach external API" errors in Ceph dashboard. Signed-off-by: Paulo Matias <matias@ufscar.br>
|
@thotypous how can you deal with multiple grafana instances? |
This is needed to get a TLS certificate to validate correctly. If unspecified, auto-detected grafana_server_addr is used. Signed-off-by: Paulo Matias <matias@ufscar.br>
|
Sorry for the delay. I had several issues with the cluster I was using for tests and only got to test the patch against master a few minutes ago. The previous approach was completely incorrect, sorry. I was originally testing against cae24dd, then took too long to send the PR and messed up when rebasing. I didn't pay attention to the new @fmount Please take a look at the new approach. |
Setting up a TLS dashboard currently causes some issues, as initially reported in #5053. Problems were partially fixed by #5055, but some issues remain:
Setting
dashboard_protocoltohttpscauses the dashboard to try accessing Prometheus API though https too. However, Prometheus does not support TLS natively. Setting up a reverse proxy such as nginx would be needed for this. For now, we just fix the protocol as plain http, which is what Prometheus supports.People are currently using
ceph dashboard set-grafana-api-ssl-verify Falseas a workaround to get Grafana to work with TLS. In order to get the certificate to validate correctly, we can allow the user to overridegrafana_server_addrwith a FQDN listed in the certificate's CN or altsubjects.Just for reference, I'm deploying with the following config: