Lint:
Check failure on line R64
Check failure:
G123: tls.Config uses VerifyPeerCertificate while session resumption may remain enabled and VerifyConnection is not set; resumed sessions can bypass custom certificate checks
According to the SHIP 1.1.0 Specification:
To allow fast reconnections over TLS without the need for a full TLS handshake, session
resumption SHOULD be supported. This means that the session state holding the master secret and a
session id SHOULD be stored and reused during reconnections.
Therefore we should either:
- Ensure that resumed sessions are checked against the current trust store
- Clear or remove expired entries from the TLS session resumption state when removing items from the trust store
- If neither options 1 nor 2 look reasonable, disable TLS session resumption as support is optional and not required