We are connecting from n8n Cloud to Supabase using a Postgres credential.
With SSL set to Require and Ignore SSL Issues disabled, the credential connection test fails.
We need to keep certificate validation enabled. Is there a supported way for n8n Cloud to trust Supabase’s public CA? Does this require intervention from n8n, or is there a configuration available to Cloud users?
Please provide the exact supported steps. We are not looking to disable certificate validation or upgrade our plan.
What is the error message (if any)?
self-signed certificate in certificate chain
Please share your workflow
The failure occurs during the Postgres credential connection test, before executing a workflow. No workflow export is included because this question concerns the credential’s TLS configuration.
Share the output returned by the last node
Not applicable: no workflow node was executed for this test. The credential connection test returns the error above.
Information on your n8n setup
n8n version: Not yet confirmed; can be provided if needed.
Database: External target is Supabase PostgreSQL via its shared pooler. The internal n8n database is managed by n8n Cloud.
n8n EXECUTIONS_PROCESS setting: Managed by n8n Cloud; not known.
Running n8n via: n8n Cloud.
Operating system: Managed by n8n Cloud; not known.
Hi @Marcos_Lopez Welcome! There’s no CA certificate field in n8n Cloud’s Postgres credential. The custom-certificate guide requires container access, so it applies to self-hosting. The PR adding Postgres certificate fields is still unmerged:
There aren’t documented Cloud configuration steps for importing Supabase’s CA. n8n would need to confirm whether they can offer a supported Cloud-side configuration; support installing it isn’t a guaranteed fix.
Please add your n8n version from Help > About n8n and the shared pooler hostname/port, without credentials, so the certificate chain and available options can be checked. Keep SSL on Require and Ignore SSL Issues off.
Thanks, Anshul. I reviewed the linked documentation and related discussions. The custom CA guide requires container access, and the other threads address connection configuration rather than certificate validation on n8n Cloud.
Since my original post, a fresh credential test reported “Connection tested successfully” after saving with SSL set to Require and Ignore SSL Issues disabled. However, we have not established why the earlier certificate-chain error occurred, so I would not consider the issue conclusively resolved.
Could the n8n team clarify:
Does the credential connection test use the same TLS certificate validation as an actual Postgres node execution?
Is there a supported n8n Cloud procedure to diagnose and resolve this certificate-chain error without disabling validation?
I can provide the exact n8n version and pooler hostname/port once verified, without sharing credentials.
Thank you for helping us identify the supported path.
Two parts of this I can answer from the receiving side, and one that only n8n can.
The credential “Test” is not a separate health check. For Postgres it opens a real connection using the same credential object and parameters and runs a trivial query, so the TLS handshake and certificate validation go through the same client and CA bundle as an execution in that container. What it cannot tell you about is a different connection: an execution may reuse a pooled connection while the test always dials fresh, so the two can disagree in either direction - test green with a failing execution, and the reverse - and it cannot see a chain that only broke before the test you took.
So a successful test is decent evidence that the chain validates from the n8n container at that moment, but it is not proof that the original error cannot recur.
For the two questions you are putting to n8n, the detail that makes them answerable is which host and port each attempt used. A direct host and a pooler host can present different certificate chains, and mixing results between them is an easy way to end up with exactly this confusion. Add the n8n version and the timestamps of the failing and the passing attempt, and support can compare them against the server log for the callback.