Description
Component(s)
receiver/tlscheck
Describe the issue you're reporting
Implement scraper.go for TLS Check Receiver. This should encompass host-based checks for a first pass, we can add checks for certificates stored on disk or in Kubernetes secrets at a later date, as suggested by this comment.
A commenter brought up the issue of how to handle non-https Urls in the targets configuration here. There was also a discussion on whether to use host
or url
to specify targets here.
Imo we should revert to host
from url
as currently documented, and disallow the use of a scheme when specifying targets. The reason is that we only need to establish a TCP connection in order to inspect the certificate, we do not need to fire an http request. Since we specify a host when establishing a TCP connection, we should change the name from url
to host
. Since we are not making an http request, we should disallow the use of a scheme in the target.