Questions about Brazilian payment provider (Efi) #48894
Unanswered
aabnoguera
asked this question in
Questions
Replies: 1 comment
|
I don't know the answer to 1) and 2) but i personally haven't come across any functionality for custom certificates in edge functions.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm integrating a Brazilian payment provider (Efi/Pix) whose API requires mutual TLS. Before committing to an architecture, I need to confirm four things about Edge Functions in production (not local CLI).
OUTBOUND mTLS
Is
Deno.createHttpClient({ cert, key })available in deployed Edge Functions? It's an unstable Deno API that normally requires the--unstable-httpflag, and I understand the Edge Runtime doesn't expose a way to set Deno flags. If it isn't available, is there any supported way to present a client certificate on an outbound fetch?INBOUND mTLS
Is there any way to require a client certificate on requests arriving at an Edge Function — i.e. to make the TLS handshake fail when the caller presents no certificate?
Context for why I'm asking: the provider verifies my endpoint by first sending a request with no client certificate, which my server must reject at the TLS layer. Only if it's rejected does the real callback follow. Validating a header inside the function isn't enough, since by then the connection has already been accepted.
Does attaching a custom domain to an Edge Function change anything here, or does TLS still terminate on Supabase infrastructure?
EGRESS IP
Is the outbound IP of an Edge Function stable, or does it vary per invocation and region? Is there any static egress IP option? The provider may require IP allowlisting.
SECRETS SIZE
Is there a size limit on project secrets / environment variables? I'd need to store a base64-encoded PEM certificate and private key (a few KB each).
Thanks.
All reactions