arrproxy: allow unverified email in oauth2-proxy (Authentik sets email_verified=false) #381

Merged
benvin merged 1 commits from benvin/arrproxy-oauth-emailverify into main 2026-08-17 22:25:09 +10:00
Member

Authentik hardcodes email_verified=false in the id_token it issues for the arrstack application. oauth2-proxy rejects such sessions by default ("email ... isnt verified"), so the /oauth2/callback returns a 500 and login fails.

Setting OAUTH2_PROXY_INSECURE_OIDC_ALLOW_UNVERIFIED_EMAIL=true tells oauth2-proxy to accept the id_token and complete the callback. This is safe: authorization is not derived from email verification here -- access is enforced downstream via the ak_groups claim (X-Forwarded-Groups), so accepting the unverified email only lets the OIDC session establish.

Restart mechanism: the arrproxy-oauth2 Deployment already carries configmap.reloader.stakater.com/auto=true and Reloader is deployed/running, so the ConfigMap change rolls the pods automatically after ArgoCD syncs.

Authentik hardcodes email_verified=false in the id_token it issues for the arrstack application. oauth2-proxy rejects such sessions by default ("email ... isnt verified"), so the /oauth2/callback returns a 500 and login fails. Setting OAUTH2_PROXY_INSECURE_OIDC_ALLOW_UNVERIFIED_EMAIL=true tells oauth2-proxy to accept the id_token and complete the callback. This is safe: authorization is not derived from email verification here -- access is enforced downstream via the ak_groups claim (X-Forwarded-Groups), so accepting the unverified email only lets the OIDC session establish. Restart mechanism: the arrproxy-oauth2 Deployment already carries configmap.reloader.stakater.com/auto=true and Reloader is deployed/running, so the ConfigMap change rolls the pods automatically after ArgoCD syncs.
unkin-agent added 1 commit 2026-08-17 22:16:48 +10:00
arrproxy: allow unverified email in oauth2-proxy
ci/woodpecker/pr/vector-test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
43b62696ee
Authentik hardcodes email_verified=false in the id_token, so oauth2-proxy
rejects the session ("email ... isn't verified") and returns 500 on
/oauth2/callback. Set OAUTH2_PROXY_INSECURE_OIDC_ALLOW_UNVERIFIED_EMAIL=true
so the callback completes; authorization stays enforced downstream via
ak_groups. The oauth2 Deployment already carries configmap.reloader.stakater.com/auto=true
and Reloader is running, so the ConfigMap change rolls the pods automatically.
benvin merged commit c22fbe435a into main 2026-08-17 22:25:09 +10:00
benvin deleted branch benvin/arrproxy-oauth-emailverify 2026-08-17 22:25:09 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/argocd-apps#381