letsencrypt / unbound_exporter

A Prometheus exporter for Unbound.
Apache License 2.0
179 stars 80 forks source link

running builds from go >=1.15 results in errors #33

Closed debugloop closed 2 years ago

debugloop commented 2 years ago

Specifically, this error is thrown: level=error ts=2021-12-17T08:23:05.192Z caller=unbound_exporter.go:461 Failedtoscrapesocket:="x509: certificate relies on legacy Common Name field, use SANs instead"

This happens when unbound is left using its own certificate without giving it a proper, non-selfsigned one. This appears to be intended behaviour from 1.15 onwards (https://go.dev/doc/go1.15#commonname). While these release notes describe a fix using the GODEBUG variable, this seems to be removed as of go 1.17.

jprenken commented 2 years ago

Duplicates #20