-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stateful session cookie additional attributes #36846
Comments
envoy.tar.gz |
I can't find a way to set cookie attributes into the statueful session cookie |
The cookie_attributes is not supported in the stateful session cookie (I changed this issue as a feature requirement). And I think you can alos change it by lua filter if your lua filter is before stateful seesion filter in the http_filters list. |
@wbpcode Is the ask here to support setting arbitrary cookie attributes in the statueful session cookie API?
Does the stateful session filter append if there are existing cookie attributes? |
Yeah, but require some body has time. I basically could help to review or bug fix. But have no bandwidth for new feature. Or would you like to contribute? Modern c++ developing is not complex. 😃
Because the |
@wbpcode Sure I can take it up as my first 💯
Makes sense 👍 |
Thanks a lot for the help so far. I can confirm that moving the lua filter before the stateful session makes the stateful cookie available for the lua script.
|
hi @vestemeanv can you show a demo sample? |
Title: Cannot set additional cookie attributes for stateful session cookies
Description:
There should be a way to set additional attributes for self generated cookies (#27529).
Trying to set those with LUA also fails as this does not see self-generated stateful session cookie since there's a variety of browsers that look at for example
SameSite
Repro steps:
Just the LUA repro below. Further I could not find a way to set the cookie attributes for the stateful session.
The LUA script logs only the below cookie. It does not look like it has access to
sticky_cookie
LUA script:
Also the config below did not set the
Secure
flag for the cookieAttached the config for /stats, /clusters and /server_info and /config_dump
The text was updated successfully, but these errors were encountered: