Icinga / icingabeat

Elastic Beat fetching events & status from Icinga 2
https://icinga.com/docs/icingabeat/latest
Apache License 2.0
33 stars 13 forks source link

should have an option to verify SSL CA for Icinga API #14

Closed lesinigo closed 6 years ago

lesinigo commented 7 years ago

Expected Behavior

IcingaBeat should allow me to verify Icinga2 API SSL certificate against a specific CA (or list thereof).

Current Behavior

I cannot specify a [list of] CA and IcingaBeat complains:

2017-08-03T14:48:41+02:00 ERR Error connecting to API: Get https://foo.bar.baz:5665/v1/status: x509: certificate signed by unknown authority

Possible Solution

Have a config parameter to specify a CA, just like ssl.certificate_authorities in the beat output.* sections.

Steps to Reproduce (for bugs)

  1. install IcingaBeat and let it talk to Icinga2 API
  2. it doesn't

Ugly workaround

icingabeat:
  # Skip SSL verification
  skip_ssl_verify: true

Your Environment

bobapple commented 6 years ago

fixed in https://github.com/Icinga/icingabeat/commit/9011a0f8ebc1d9d5bd911964c65f976fadb300ec