-
Notifications
You must be signed in to change notification settings - Fork 110
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
Use http/1.1 for webhooks, metrics and profiling endpoints #1923
Conversation
|
Welcome @yuumasato! |
Hi @yuumasato. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
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.
/lgtm
thanks for the patch
a0533bf
to
20fa3ac
Compare
/ok-to-test |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1923 +/- ##
==========================================
- Coverage 49.32% 49.28% -0.05%
==========================================
Files 72 72
Lines 7008 7008
==========================================
- Hits 3457 3454 -3
- Misses 3420 3422 +2
- Partials 131 132 +1 |
20fa3ac
to
45c729a
Compare
dca3a5f
to
66c1258
Compare
/retest |
41a4a15
to
b372999
Compare
I have limited |
70b9f36
to
0432492
Compare
@saschagrunert Hi, I have moved the test for webhook and metrics endpoints HTTP versions behind a check for "flakyness". |
c345af8
to
52476cd
Compare
122ca4b
to
899f3a9
Compare
I moved the webhook and metrics test case to file |
This mitigates an HTTP/2 Stream Cancellation Attack that can lead to a denial-of-service. Tests are also added to ensure the metrics, webhook and profiling endpoints are serving HTTP/1.1 The profiling HTTP test is Selinux Specific, and the Webhook and Metrics HTTP version tests are marked as flaky, as the urls, for some reason, are not solved in upstream CI.
899f3a9
to
0629fb8
Compare
These tests work for me on an OpenShift cluster if I apply #1979
Thanks for digging into all this @yuumasato. |
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.
/lgtm
@rhmdnd: changing LGTM is restricted to collaborators 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. |
@rhmdnd Thanks for checking the execution of the flaky tests. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: saschagrunert, yuumasato 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 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This mitigates an HTTP/2 Stream Cancellation Attack that can lead to a denial-of-service.
Which issue(s) this PR fixes:
CVE-2023-44487
Does this PR have test?
Yes, added test cases for Metrics, Webhooks and profiling endpoints checking that they are serving HTTP/1.1
Special notes for your reviewer:
Does this PR introduce a user-facing change?
None