You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to scrape a TLS protected target which has multiple 'Subject Alternative Name' in its cert
What did you expect to see?
Scrape works without any error
What did you see instead? Under which circumstances?
An error on the Prometheus target page:
2021-09-27T09:23:44,312+00:00 WARN [SparkUI-43] org.sparkproject.jetty.server.SecureRequestCustomizer: Host 172.17.0.8 does not match SNI X509@47daa1b2(my-cert,h=[domain1, domain2],w=[])
X509v3 Subject Alternative Name:
DNS:domain1, DNS:domain2
Logs:
- No logs on Prometheus side
- Log message on target side :2021-09-27T09:23:44,312+00:00 WARN [SparkUI-43] org.sparkproject.jetty.server.SecureRequestCustomizer: Host 172.17.0.8 does not match SNI X509@47daa1b2(my-cert,h=[domain1, domain2],w=[])
Or removing one SAN entry from the server cert(In this case Prometheus can scrape the metrics successfully):
X509v3 Subject Alternative Name:
DNS:domain1
The text was updated successfully, but these errors were encountered:
hatharom
changed the title
Scrap fail when target cert contains multiple 'Subject Alternative Name'
Scrape fail when target cert contains multiple 'Subject Alternative Name'
Sep 27, 2021
What did you do?
I tried to scrape a TLS protected target which has multiple 'Subject Alternative Name' in its cert
What did you expect to see?
Scrape works without any error
What did you see instead? Under which circumstances?
An error on the Prometheus target page:
2021-09-27T09:23:44,312+00:00 WARN [SparkUI-43] org.sparkproject.jetty.server.SecureRequestCustomizer: Host 172.17.0.8 does not match SNI X509@47daa1b2(my-cert,h=[domain1, domain2],w=[])
Environment
Prometheus version: 2.15.2
Prometheus configuration file:
Server cert relevant part
- No logs on Prometheus side
- Log message on target side :
2021-09-27T09:23:44,312+00:00 WARN [SparkUI-43] org.sparkproject.jetty.server.SecureRequestCustomizer: Host 172.17.0.8 does not match SNI X509@47daa1b2(my-cert,h=[domain1, domain2],w=[])
What works
The text was updated successfully, but these errors were encountered: