envoyproxy/envoy

Is application-cookie based session persistence supported?

Open

#39,288 建立於 2025年5月1日

在 GitHub 查看
 (12 留言) (0 反應) (0 負責人)C++ (5,373 fork)batch import
area/stateful_sessionenhancementhelp wanted

倉庫指標

Star
 (27,997 star)
PR 合併指標
 (平均合併 8天) (30 天內合併 378 個 PR)

描述

Need to know if there is support for application cookie stickiness or session persistence.

I went through the documentation for session persistence, I see that there are two types of session persistence supported. Refer - https://www.envoyproxy.io/docs/envoy/v1.34.0/api-v3/config/http/stateful_session

  1. Cookie based session persistence
  2. Header based session persistence

My requirement is to support session persistence only when the backend server sends a Set-Cookie in its response header. Only then the cookie should be set in the response and from then onwards, the session persistence should start. With current cookie-based session persistence, Envoy will add cookie from the first request itself. But it should add the cookie only when backend server sends a set-cookie in its response header.

Is this supported in Envoy?

貢獻者指南