Certificate checks switched off
rejectUnauthorized: false, NODE_TLS_REJECT_UNAUTHORIZED=0, strictSSL: false, verify=False and the like, added outside tests.
Why it matters
A self-signed or pooled database certificate stops a connection with a TLS error, and the answer that makes the error go away fastest is to stop checking certificates. Agents reach for it because it works on the first try.
With checks off, the app accepts whichever server answers. Anyone on the network path can pose as your database or API and read or change what is sent, keys and passwords included.
Example
export const pool = new Pool({
connectionString: process.env.DATABASE_URL,
+ ssl: { rejectUnauthorized: false },
});
What it detects
- rejectUnauthorized: false, NODE_TLS_REJECT_UNAUTHORIZED set to 0, strictSSL or strict-ssl false, Python requests or httpx calls with verify=False, and Go's InsecureSkipVerify: true, on added lines.
- Not in tests, fixtures, examples or docs, and not in comments.
What to do when it fires
Remove the setting. If the service uses its own certificate authority, pass that certificate (the ca option, or a bundle file) so connections stay verified.