Skip to content

Envoy Gateway OIDC authentication leaving orphaned PKCE cookies #9632

Closed

Description

@nishant-corevas

Description:

Envoy Gateway OIDC authentication layer generating repeated authorization flows and leaving orphaned PKCE cookies behind.
Observations:

  • Header size exceeded.
  • Multiple auth cookies exist in header
  • When exceed header size, then application fail to complete oauth flow

Envoy OAuth2 filter successfully authenticates users and establishes sessions, but under certain circumstances initiates additional authorization flows and retains stale PKCE flow state cookies (OauthNonce / CodeVerifier). These cookies accumulate in the browser and are sent on every request. The accumulation combines with large Azure-issued access/id tokens and eventually exceeds request header limits.
Envoy Gateway version = 1.8.2
Helm Chart = gateway-helm-1.8.2

Auth Flow Use -> Azure Entra ID

[ Relevant Links:]

We feel that our issue could be related to this PR.
Open github issue

Activity

  1. arkodg commented on Aug 3, 2026

    @arkodg
    Contributor
  2. added this to the Backlog milestone on Aug 3, 2026
  3. added
    kind/bug
    and removed on Aug 3, 2026
  4. nishant-corevas commented on Aug 16, 2026

    @nishant-corevas
    Author

    Hi, Is there any progress for this issue? Just want to know if this can be fixed in near future. We see major problems while using OIDC with grafana and the grafana api keeps getting "failed to fetch" errors for dashboards and only works after clearing application cookies from browser.
    Most of the suggestion goes around increasing max_request_headers_kb for envoy-gateway but this will not solve the problem ofcourse. Please let me know if any workaround is possible meanwhile.

  5. added a commit that references this issue on Aug 25, 2026
    d051510
  6. added a commit that references this issue on Aug 27, 2026
    c31cd66
  7. added a commit that references this issue on Aug 27, 2026
    4db2519
  8. added 3 commits that reference this issue on Aug 28, 2026
    b017d29
    c30c739
    8912159
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions