-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Add partitioned cookie support for cookie-affinity #11242
base: main
Are you sure you want to change the base?
Conversation
Welcome @avif! |
Hi @avif. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: avif The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for kubernetes-ingress-nginx ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
images/nginx/rootfs/build.sh
Outdated
# Check for recent changes: https://github.com/utix/lua-resty-cookie/compare/9533f47...master | ||
export LUA_RESTY_COOKIE_VERSION=9533f479371663107b515590fc9daf00d61ebf11 | ||
# Check for recent changes: https://github.com/utix/lua-resty-cookie/compare/12136f5...master | ||
export LUA_RESTY_COOKIE_VERSION=12136f546ec4222e198c2d7c73dd83fc3539df32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please update nginx-1.25 folder as well please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, i'll note that it was still using the cloudflare build so this change bumps it several versions up.
@@ -99,6 +99,7 @@ function _M.set_cookie(self, value) | |||
httponly = true, | |||
samesite = cookie_samesite, | |||
secure = cookie_secure, | |||
partitioned = self.cookie_session_affinity.partitioned, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tao12345666333 need someone with lua knowledge here :)
/ok-to-test From go side lgtm, I'm wondering if there's no release on lua cookies module yet, instead of tracking a commit. Thanks |
Switched to tags instead of commits. |
Any chance to get a review? :) |
/triage accepted |
Hey, is there any chance someone can resurrect this PR? |
CC @Gacko @rikatz @tao12345666333 if/when possible, please review. @avif @miskr-instructure this needs rebase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot give a lot of review regarding the actual change, but I definitely have serious doubts about changing the Lua Resty Cookie module.
Could you please elaborate on why this is needed? Normally we discourage such bumps and changes to the modules being built into NGINX in PRs and would prefer having a discussion first.
Sorry to say, but I can remember serious issues in the past and therefore we're just a bit more cautious when it comes to such changes.
e7fcfed
to
8777f34
Compare
Actually it was already changed from
Sure, the cloudflare repo is archived and so has no newer versions.
No need to apologize, I for one appreciate the cautious approach. |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What this PR does / why we need it:
This adds the option of making the session cookie "partitioned" via an annotation
nginx.ingress.kubernetes.io/session-cookie-partitioned
, this is needed to support Cookies Having Independent Partitioned State (CHIPS) (See #10428).Types of changes
Which issue/s this PR fixes
fixes #10428
How Has This Been Tested?
Checklist: