Project

General

Profile

Cleanup #54206

mgr/dashboard: Dashboard should display some helpful (error) message when the iframe-embedded Grafana dashboard failed to load

Added by Ernesto Puerta about 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Monitoring
Target version:
-
% Done:

0%

Tags:
Backport:
pacific quincy
Reviewed:
Affected Versions:
Pull request ID:

Description

Due to the fact that most users (and default Ceph deployment) create self-signed certificates for SSL connections, when users log in to the Dashboard most browsers (Chrome and Firefox) will redirect them to a warning page ("Your connection is not private", NET::ERR_CERT_...). To make it clear: this is not a bug but a expected behaviour of certificates for private websites (NOTE: This could be avoided by loading the self-signed certificate as a certification authority in the browser, but it's unlikely that users will do that.)

For a user it's pretty simple to acknowledge the security risk and continue to the Dashboard log-in. Once the user accepted, the browser won't display the warning for a while.

However, things become more complicate then the website using a self-signed certificate is not directly accessed by the user, but embedded via iframe in another site. In this very case the browser will simply block that iframe and won't give any further feedback. So the user will simply see a blank/empty space where they expected to see an embedded Grafana dashboard.

The goal of this tracker is to find a way of improving the user experience by displaying a helpful message to the user: "the embedded Grafana Dashboard was blocked due to a certificate error, please visit the link https://... to accept the security warning". That would at least guide the user the the workaround.

Technical guidance:
  • iframe elements have onLoad and onError callbacks that could be used to perform actions based on that.
  • the UI could previosly perform an HTTP connection to the Grafana URL and load/display error based on the outcome of that connection.

Related issues

Copied to Dashboard - Backport #56125: pacific: mgr/dashboard: Dashboard should display some helpful (error) message when the iframe-embedded Grafana dashboard failed to load Resolved
Copied to Dashboard - Backport #56126: quincy: mgr/dashboard: Dashboard should display some helpful (error) message when the iframe-embedded Grafana dashboard failed to load Resolved

History

#1 Updated by Ernesto Puerta about 2 years ago

  • Description updated (diff)
  • Assignee deleted (Aashish Sharma)

#2 Updated by Ngwa Sedrick Meh about 2 years ago

Hello Ernesto. I would like to help with this task

#3 Updated by Ngwa Sedrick Meh about 2 years ago

  • Pull request ID set to 45012

Hello Ernesto, I found the server throws a 500 internal server error when the request for a grafana panel is insecure/blocked by SSL so I built on that. A message is displayed instead of the iframe but I couldn't figure out how to let the user accept the certificate. Please help

#4 Updated by Ngwa Sedrick Meh about 2 years ago

Hi, I found we could use the load event in certain cases and used it to build a solution. I opened a pull request and have linked it to this issue

#5 Updated by Anonymous almost 2 years ago

I would like to work on this issue. Kindly assign it to me.

#6 Updated by Laura Flores almost 2 years ago

@Urvi, looks like Sedrick is already working on this issue. Try looking for another one that has not already had activity.

#7 Updated by Ernesto Puerta almost 2 years ago

  • Status changed from New to Pending Backport
  • Backport set to pacific quincy

#8 Updated by Backport Bot almost 2 years ago

  • Copied to Backport #56125: pacific: mgr/dashboard: Dashboard should display some helpful (error) message when the iframe-embedded Grafana dashboard failed to load added

#9 Updated by Backport Bot almost 2 years ago

  • Copied to Backport #56126: quincy: mgr/dashboard: Dashboard should display some helpful (error) message when the iframe-embedded Grafana dashboard failed to load added

#10 Updated by Nizamudeen A over 1 year ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF