|
Making calls to an HTTPS endpoint turns out to be very hard right now from supabase Edge functions, if the service uses a self-signed certificate. If anything this issue should be +1 evidence for Deno 2 becoming available ASAP in Supabase.
Supabase is using a Deno 1.45.2 version under the hood right now.
--unsafely-ignore-certificate-errors ?At this point I'm a bit desperate and I'd be willing to turn off cert verification until Deno 2 comes out. But I don't think it's supported by Supabase. I managed to vendor in the kubernetes-client and maybe that would be a direction - but I don't see any way to force "--unsafely-ignore-certificate-errors" through the Please comment if you have any ideas. |
Replies: 2 comments 3 replies
|
As far as Deno 2. |
|
FWIW I went with Cloud Run which has stable managed certificates, and no need for self-signed certs. GKE API server endpoints are probably not meant for direct calling from the outside, the certs are rotated regularly, etc. If someone wants to have access to a GKE server from the outside a dedicated endpoint with a stable public IP + managed certificate would be a potential option. And now it seems Deno 2.1 is in preview mode for prod too: https://github.com/orgs/supabase/discussions/36814 |
FWIW I went with Cloud Run which has stable managed certificates, and no need for self-signed certs. GKE API server endpoints are probably not meant for direct calling from the outside, the certs are rotated regularly, etc. If someone wants to have access to a GKE server from the outside a dedicated endpoint with a stable public IP + managed certificate would be a potential option. And now it seems Deno 2.1 is in preview mode for prod too: https://github.com/orgs/supabase/discussions/36814