1
OIDC identity tokens for Edge Functions (workload identity federation)
Source: supabase/supabase#51849 · opened by @David15999
Problem. Edge Functions have no way to prove their identity to third-party services. To call a vendor API, a function needs a long-lived secret stored in function secrets. Platforms like Vercel, GitHub Actions, AWS and GCP solve this by issuing a short-lived, signed OIDC token per invocation, which identity brokers and clouds verify through a public JWKS. Request. Issue a short-lived OIDC JWT to each Edge Function invocation (env var or local endpoint), signed by a per-project issuer with a public /.well-known/openid-configuration and JWKS. Suggested claims: iss (project issuer), sub (project:<ref>:function:<slug>), aud (configurable), exp (minutes), plus project_ref and function_slug. Why it matters. It removes stored secrets from functions and enables workload identity federation with AWS STS, GCP, Azure, and workload IAM vendors like Aembit, who has said they would add Supabase as a trust provider once such a token exists. Our case. We run about 40 Edge Functio…
No pledges yet. Be the first to back this.
Comments
Similar requests
Enable Syncing of Vault and Edge Function Secrets
1 vote · 0 comments
NestJS Support in Supabase Edge Functions
17 votes · 0 comments
Improving the functionality of Edge Functions
3 votes · 0 comments
Feature Request: Add Descriptions for Edge Functions
2 votes · 0 comments
Optionally store self-hosted Edge Functions in S3
1 vote · 0 comments
No comments yet.