draios/grafana-sysdig-datasource

Sysdig Grafana Datasource Issue with SSL and cert verification

danpop-chainguard opened this issue · 1 comments

Issue: for Sysdig Onprem. only supports http right now as SSL cert verification isnt a choice in the DS setup on grafana

  1. when using http: image-2018-03-16-16-30-36-260.png
    image

  2. when https (bad gateway, i assume because the ssl cert is required to be validated or required to be bypassed as our API does):
    image-2018-03-16-16-31-39-545.png
    image

supporting log files from Grafana:

a
2018/03/16 19:40:34 http: proxy error: x509: certificate signed by unknown authority
t=2018-03-16T19:40:34+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/api/datasources/proxy/2/api/login status=502 remote_addr=192.168.1.243 time_ms=14 size=0 referer=http://popsrv2:3000/datasources/edit/2
2018/03/16 19:40:40 http: proxy error: x509: certificate is valid for popubuntu16, not popubuntu16.home
t=2018-03-16T19:40:40+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/api/datasources/proxy/2/api/login status=502 remote_addr=192.168.1.243 time_ms=5 size=0 referer=http://popsrv2:3000/datasources/edit/2

Fixed via #11.