camptocamp / prometheus-puppetdb-sd

Generate scrape files for Prometheus from PuppetDB
Apache License 2.0
15 stars 8 forks source link

Support client TLS auth for secured PuppetDB #4

Closed dannyk81 closed 6 years ago

dannyk81 commented 6 years ago

This PR addresses #3

Introducing three new options to specify Client certificate, Client private Key and CA's Certificate: short:"x" long:"cert-file" description:"A PEM eoncoded certificate file." short:"y" long:"key-file" description:"A PEM eoncoded private key file." short:"z" long:"cacert-file" description:"A PEM eoncoded CA's certificate file."

As well as an option to skip SSL Verification (i.e. curl's -k) - this should be used with caution of course.

dannyk81 commented 6 years ago

Travis is failing, but seems like not due to my changes.

@cryptobioz @mcanevet are you guys still working on this?

dannyk81 commented 6 years ago

Thanks @raphink 👍 typos fixed