-
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
feat: always set auth cookie #8213
feat: always set auth cookie #8213
Conversation
@nabokihms: This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The 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. |
Hi @nabokihms. 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. |
Thank you for the PR, I am concerned with two things, 1 no new tests for this, and while I agree with your assessment, users probably do not want to continuously login if the back end sends a 404, this changes the behavior and should be configurable, Can we use the annotation instead of a default true? With the annotations, we can add an e2e test and it allows it to be the users choice to set to true. -James /kind bug |
@strongjz: The label(s) In response to this:
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. |
+1 for James comment, let's not change current behavior. A new annotation is desired and some tests on that :) |
+1 It would be more appropriate to add a new annotation |
Folks, the code has been updated according to your suggestions. I also wrote e2e tests to support what I described in the issue. Btw, I noticed that the e2e tests docs generator is broken, so I also fixed it. Because of the links to the code in this doc, no one can write it by hand 😅 . Please let me know if I need to revert these script changes (I suppose that this is a little out of the scope of this PR). |
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
* Add annotation * Add global configmap key * Provide unit tests and e2e tests * Fix e2e documentation autogen script Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
b87bc63
to
4c0d7f9
Compare
/lgtm Thank you for the changes and the added tests! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nabokihms, strongjz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thank you so much for the review. Great work 👍 |
* feat: always set auth cookie Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com> * feat: Add annotation to always set auth cookie * Add annotation * Add global configmap key * Provide unit tests and e2e tests * Fix e2e documentation autogen script Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com> * Regenerate e2e tests Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
Signed-off-by: m.nabokikh maksim.nabokikh@flant.com
What this PR does / why we need it:
The purpose of this PR is described in detail in the linked issue. This is a naive implementation that changes default behavior.
Types of changes
Which issue/s this PR fixes
fixes ##8078
How Has This Been Tested?
It was tested manually in a Kubernetes cluster with oauth2 proxy as an authentication provider for the nginx_auth_request module.
Checklist: