Prisma 7.10.0 P1011 on Intel macOS 12.7.6 with Supabase Session pooler; strict node-postgres TLS succeeds

Open
#30,686 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
44/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
node.js, postgresql, typescript
Domain
backend, databases

Research direction

Start with the reported P1011 from migrate status on macOS 12.7.6 and compare Prisma’s strict TLS behavior with the successful node-postgres 8.23.1 connection described in the issue. Check the related report at issue 29600 for context. The cause and relevant Prisma files or tests are not identified in the payload; done means identifying the TLS failure and a supported workaround that preserves certificate and hostname verification.

Written by the indexing model from the issue text.

Description

bug/1-unconfirmed kind/bug
Package and version

[email protected]

What happened?

Prisma 7.10.0 fails to establish a secure TLS connection to a Supabase PostgreSQL Session pooler on an Intel Mac running macOS 12.7.6.

The read-only migrate status command fails with error P1011 and exit code 1.

A separate connection using node-postgres 8.23.1 succeeds against the same TEST database with certificate-chain and hostname verification enabled.

The CA certificate is valid and readable, and Prisma's certificate path and TLS settings have been checked.

The exact cause of the TLS failure remains unknown. A similar macOS issue has been reported at https://github.com/prisma/orm/issues/29600.

Please advise whether this is a known macOS native TLS issue and whether there is a supported workaround that preserves full certificate and hostname verification.

What did you expect to happen?

Prisma should establish a secure connection to the Supabase PostgreSQL TEST database using the configured CA certificate, with full certificate-chain and hostname verification enabled.
The read-only migrate status command should complete successfully and report the database's migration status without producing a P1011 TLS error.

Minimal reproduction

Using Prisma 7.10.0 with a Supabase PostgreSQL Session pooler on port 5432:1. Configure a PostgreSQL datasource using a private TEST connection URL with sslmode=require, sslaccept=strict and sslcert pointing to a valid CA PEM file.
2. Run node node_modules/prisma/build/index.js migrate status --config prisma.test.config.ts.
3. Observe Prisma error P1011 and exit code 1.
The same TEST endpoint connects successfully through node-postgres with certificate-chain and hostname verification enabled.No migration deployment is required to reproduce the failure. Credentials and connection URLs are intentionally omitted.

Environment
  • Operating system: macOS 12.7.6- Mac architecture: Intel x86_64
  • Node.js: 24.21.0
  • Node.js OpenSSL: 3.5.8
  • Prisma CLI and engines: 7.10.0
  • Prisma engine commit: 0edf323efd1d98336f3f0a68684b56f689b900d3
  • node-postgres: 8.23.1
  • Database: Supabase PostgreSQL, Session pooler, port 5432
  • Package manager: npm
  • TLS settings: sslmode=require, sslaccept=strict, sslcert (CA PEM file)
  • Error: P1011
  • Prisma process exit code: 1
Additional context

No response

Dominant language
TypeScript
Stars
47.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
227

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prisma/orm

All issues in prisma/orm

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.