Skip to content
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

Add an option to ignore certificate errors #26

Merged

Conversation

xanmanning
Copy link
Contributor

@xanmanning xanmanning commented Mar 6, 2020

Fixes #25

The flag -ignore-certificate-errors has been added which will ignore
issues with SSL/TLS certificates (such as self-signed and expired
certs).

This will only work on anonymous and local login types as invalid
certificates for grafana.com should never be ignored.

Testing instructions

  1. Run make to generate the binaries

  2. Run the following command to launch a sample dashboard with a bad SSL certificate

    ./bin/grafana-kiosk.$OS.$ARCH --URL https://badgraph.pyrat.uk/d/TXSTREZ/simple-streaming-example
  3. Run the following command to launch with --ignore-certificate-errors

    ./bin/grafana-kiosk.$OS.$ARCH --URL https://badgraph.pyrat.uk/d/TXSTREZ/simple-streaming-example --ignore-certificate-errors

Expected results

  1. The build will complete

  2. You should see a warning about your connection not being private.

    Screenshot from 2020-03-07 10-08-21

  3. You should see the dashboard be displayed.

    Screenshot from 2020-03-07 10-08-59

Fixes grafana#25

The flag `-ignore-certificate-errors` has been added which will ignore
issues with SSL/TLS certificates (such as self-signed and expired
certs).

This will only work on anonymous and local login types as invalid
certificates for grafana.com should never be ignored.
@xanmanning
Copy link
Contributor Author

Testing instructions added with a sample dashboard.

@briangann briangann added the enhancement New feature or request label Mar 9, 2020
@briangann briangann self-requested a review March 9, 2020 18:06
@briangann briangann self-assigned this Mar 9, 2020
@xanmanning
Copy link
Contributor Author

Hello, is there any update on this PR? 😊

Just wondering if I need to do some work around deploying my own build for now or if I can use the official build from this repo in my project.

Thanks.

@briangann
Copy link
Collaborator

testing this out now, sorry for the long delay!

Copy link
Collaborator

@briangann briangann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

@briangann briangann merged commit 4856306 into grafana:master May 16, 2020
@xanmanning
Copy link
Contributor Author

Awesome, many thanks @briangann 👍

@xanmanning xanmanning deleted the feature-ignore_certificate_errors branch May 16, 2020 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable SSL verification
2 participants