Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMissingSANRoundTripperWrapperConstructor ¶
func NewMissingSANRoundTripperWrapperConstructor(metricCounter *metrics.Counter) func(rt http.RoundTripper) http.RoundTripper
NewMissingSANRoundTripperWrapperConstructor returns a RoundTripper wrapper that's usable within ClientConfig.Wrap that increases the `metricCounter` whenever:
- we get a x509.HostnameError with string `x509: certificate relies on legacy Common Name field` which indicates an error caused by the deprecation of Common Name field when veryfing remote hostname
- the server certificate in response contains no SAN. This indicates that this binary run with the GODEBUG=x509ignoreCN=0 in env
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.