You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OIDC: Redirect loop of OIDC Authentication due to the cookie length limit #7315
In the OIDC Authentication workflow, the access token is returned to Envoy Proxy through the callback URL. The response instructs the browser to store the tokens in cookies, which are used in subsequent requests.
However, if the length of the token exceeds 4096 characters, the browser does not set the cookie and the authentication workflow restarts, resulting in a loop and the "too many redirects" error. Envoy logs no errors. IDP logs multiple successful logins within a few seconds.
Envoy Proxy should check the length of the tokens. Tokens can be compressed or can be split among multiple cookies.
Repro steps:
Configure the application or user in IDP to return a long token, for example, by adding groups.
Environment:
Envoy Gateway 1.5.2, Kubernetes v1.33.4
Reacted by vladst3f, akevdmeer, rudi-ch, Paul Roy, jadu-1337, Alexandre Desjardins, Caroline Tippins, sipr-invivo and Zach Paden
changed the title [-]Redirect loop of OIDC Authentication due to the cookie length limit[/-][+]OIDC: Redirect loop of OIDC Authentication due to the cookie length limit[/+]on Oct 28, 2025
Activity
[-]Redirect loop of OIDC Authentication due to the cookie length limit[/-][+]OIDC: Redirect loop of OIDC Authentication due to the cookie length limit[/+]github-actions commentedon Nov 27, 2025
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
sadovnikov commentedon Nov 27, 2025
Hi @zhaohuabing, could you please re-activate this issue? It's still actual
github-actions commentedon Dec 27, 2025
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
Aditya7880900936 commentedon Jan 20, 2026
Hi @zhaohuabing ,
I would like to work on this issue ,
Please assign it to me if it is still available,
Regards.
zhaohuabing commentedon Jan 21, 2026
Hi @Aditya7880900936 this needs to be handled in Envoy upstream.
github-actions commentedon Feb 20, 2026
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
17 remaining items
github-actions commentedon Aug 14, 2026
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
jemag commentedon Aug 14, 2026
/not-stale
docs: ルーティング移行の検討メモを取り込み、段階移行の形に Phase を組み直す
github-actions commentedon Sep 14, 2026
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
github-actions commentedon Oct 14, 2026
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
jemag commentedon Oct 14, 2026
/not-stale
fix(api): reject cookie names that collide with token chunk cookies
feat: chunk large OIDC token cookies by default (#10402)