What it flags
A literalrejectUnauthorized: false, strictSSL: false or NODE_TLS_REJECT_UNAUTHORIZED = '0'. Under a non-production guard it is contextual; database ssl options count too. A Node TLS or HTTPS createServer call, or an HTTP/2 createSecureServer call, with rejectUnauthorized: false in an inline object literal or a const options binding used only as the server argument, is not flagged when requestCert is absent or false. Options held in let variables are still flagged. When requestCert: true, the finding states that client certificate verification is turned off.
An inline Node HTTPS agent callback that discards the result of the built-in tls.checkServerIdentity() is also flagged. The callback must return a hostname verification error or handle it. The certificate chain can still be checked while the hostname error is lost. This case requires a manual fix.
Configuration
Set the rule to"off" in loadwise.config.json to drop its findings: