Skip to content
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

[CVE-2023-44487] Disable http2 for webhooks #2871

Merged
merged 2 commits into from Oct 23, 2023

Conversation

skonto
Copy link
Contributor

@skonto skonto commented Oct 20, 2023

Changes

Fixes # CVE-2023-44487 (partially)

Release Note

Due to CVE-2023-44487 webhooks will use http1 by default, until the issue is fixed properly.

@knative-prow
Copy link

knative-prow bot commented Oct 20, 2023

@skonto: The label(s) kind/<kind> cannot be applied, because the repository doesn't have them.

In response to this:

Changes

/kind

Fixes #

Release Note


Docs


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.

@knative-prow knative-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 20, 2023
@skonto skonto changed the title [WIP] Disable http2 for webhooks [WIP] [CVE-2023-44487] Disable http2 for webhooks Oct 20, 2023
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (d6ab729) 81.88% compared to head (4269f48) 81.86%.
Report is 2 commits behind head on main.

❗ Current head 4269f48 differs from pull request most recent head 7af1062. Consider uploading reports for the commit 7af1062 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2871      +/-   ##
==========================================
- Coverage   81.88%   81.86%   -0.03%     
==========================================
  Files         167      167              
  Lines       10225    10230       +5     
==========================================
+ Hits         8373     8375       +2     
- Misses       1606     1608       +2     
- Partials      246      247       +1     
Files Coverage Δ
webhook/webhook.go 82.16% <40.00%> (-1.39%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@skonto skonto changed the title [WIP] [CVE-2023-44487] Disable http2 for webhooks [CVE-2023-44487] Disable http2 for webhooks Oct 23, 2023
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 23, 2023
@skonto
Copy link
Contributor Author

skonto commented Oct 23, 2023

cc @dprotaso

@@ -245,12 +256,18 @@ func (wh *Webhook) Run(stop <-chan struct{}) error {
QuietPeriod: wh.Options.GracePeriod,
}

nextProto := map[string]func(*http.Server, *tls.Conn, http.Handler){}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a comment that
// If TLSNextProto is not nil, HTTP/2 support is not enabled automatically.

@dprotaso
Copy link
Member

/cherry-pick release-1.11

@knative-prow-robot
Copy link
Contributor

@dprotaso: once the present PR merges, I will cherry-pick it on top of release-1.11 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.11

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.

@dprotaso
Copy link
Member

/cherry-pick release-1.12

@knative-prow-robot
Copy link
Contributor

@dprotaso: once the present PR merges, I will cherry-pick it on top of release-1.12 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.12

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.

@dprotaso
Copy link
Member

/cherry-pick release-1.12

@knative-prow-robot
Copy link
Contributor

@dprotaso: once the present PR merges, I will cherry-pick it on top of release-1.12 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.12

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.

@dprotaso
Copy link
Member

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Oct 23, 2023
@knative-prow
Copy link

knative-prow bot commented Oct 23, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso, skonto

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot merged commit b8c14ce into knative:main Oct 23, 2023
40 checks passed
@knative-prow-robot
Copy link
Contributor

@dprotaso: new pull request created: #2875

In response to this:

/cherry-pick release-1.11

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.

@knative-prow-robot
Copy link
Contributor

@dprotaso: new pull request created: #2876

In response to this:

/cherry-pick release-1.12

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.

@dprotaso
Copy link
Member

/cherry-pick release-1.10

@knative-prow-robot
Copy link
Contributor

@dprotaso: #2871 failed to apply on top of branch "release-1.10":

Applying: disable http2 for webhooks
Using index info to reconstruct a base tree...
M	webhook/webhook.go
Falling back to patching base and 3-way merge...
Auto-merging webhook/webhook.go
CONFLICT (content): Merge conflict in webhook/webhook.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 disable http2 for webhooks
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-1.10

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants