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
// Verified TLS: rely on Node's TLS context (NODE_EXTRA_CA_CERTS adds the AWS
38
-
// RDS CA to the trust store). Skip hostname check because connections may
39
-
// traverse an AWS NLB whose hostname isn't in the RDS Proxy cert's SAN list.
40
-
// The chain check still rejects forged or wrong-CA certs.
41
-
ssl={checkServerIdentity: ()=>undefined};
42
37
}elseif(allowInsecure){
43
38
ssl={rejectUnauthorized: false};
44
39
}else{
45
-
thrownewError(
46
-
'Refusing to connect to a non-local Postgres without TLS verification. Set NODE_EXTRA_CA_CERTS to a CA bundle, or set PRISMA_ALLOW_INSECURE_TLS=1 if you intentionally want unverified TLS.',
47
-
);
40
+
// Verified TLS using the inlined AWS RDS CA bundle. Skip hostname check
41
+
// because connections may traverse an AWS NLB whose hostname isn't in the
42
+
// RDS Proxy cert's SAN list. The chain check still rejects forged or
// Verified TLS: rely on Node's TLS context (NODE_EXTRA_CA_CERTS adds the AWS
38
-
// RDS CA to the trust store). Skip hostname check because connections may
39
-
// traverse an AWS NLB whose hostname isn't in the RDS Proxy cert's SAN list.
40
-
// The chain check still rejects forged or wrong-CA certs.
41
-
ssl={checkServerIdentity: ()=>undefined};
42
37
}elseif(allowInsecure){
43
38
ssl={rejectUnauthorized: false};
44
39
}else{
45
-
thrownewError(
46
-
'Refusing to connect to a non-local Postgres without TLS verification. Set NODE_EXTRA_CA_CERTS to a CA bundle, or set PRISMA_ALLOW_INSECURE_TLS=1 if you intentionally want unverified TLS.',
// Verified TLS: rely on Node's TLS context (NODE_EXTRA_CA_CERTS adds the AWS
38
-
// RDS CA to the trust store). Skip hostname check because connections may
39
-
// traverse an AWS NLB whose hostname isn't in the RDS Proxy cert's SAN list.
40
-
// The chain check still rejects forged or wrong-CA certs.
41
-
ssl={checkServerIdentity: ()=>undefined};
42
37
}elseif(allowInsecure){
43
38
ssl={rejectUnauthorized: false};
44
39
}else{
45
-
thrownewError(
46
-
'Refusing to connect to a non-local Postgres without TLS verification. Set NODE_EXTRA_CA_CERTS to a CA bundle, or set PRISMA_ALLOW_INSECURE_TLS=1 if you intentionally want unverified TLS.',
0 commit comments