Auth: support Entra workload identity federation (client assertion from a file) for the Azure provider #54617
Unanswered
its-ammu
asked this question in
Feature Requests
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
Problem
The built-in Azure provider can only authenticate the code exchange with a client secret (
GOTRUE_EXTERNAL_AZURE_SECRET). Teams running GoTrue on Kubernetes (AKS, EKS, GKE) increasingly use Entra workload identity federation instead. The Entra app trusts the cluster's service account issuer, and the pod sends a short-lived projected token asclient_assertion. No secret has to be stored or rotated.Why the recent private_key_jwt support doesn't cover it
Related: #50814 (
private_key_jwtfor custom OIDC providers).supabase/auth#2932–#2936 added
private_key_jwt, which:GOTRUE_EXPERIMENTAL_CLIENT_ASSERTION_KEYS). Federated credentials need a token issued by the platform's OIDC issuer, so there's still a private key to manage.Proposal
Add an optional
GOTRUE_EXTERNAL_AZURE_CLIENT_ASSERTION_FILE. When it is set, the Azure provider reads the file on each exchange, sends it asclient_assertionin the form body (the same request shape as supabase/auth#2936), and doesn't need a secret. Unset, nothing changes.PR: supabase/auth#2990
All reactions