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

chore(deps): upgrade headers-more module to 0.37 #10991

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

milas
Copy link
Contributor

@milas milas commented Feb 19, 2024

What this PR does / why we need it:

Upgrade to v0.37 of the headers-more module.

Changelog: openresty/headers-more-nginx-module@v0.34...v0.37

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • CVE Report (Scanner found CVE and adding report)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation only

Which issue/s this PR fixes

n/a

How Has This Been Tested?

I'm currently unable to test this locally as I cannot successfully build a fully functioning controller image right now. (I'm getting unknown directive http2?)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have added unit and/or e2e tests to cover my changes.
  • All new and existing tests passed.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Feb 19, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

@k8s-ci-robot
Copy link
Contributor

Welcome @milas!

It looks like this is your first PR to kubernetes/ingress-nginx 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/ingress-nginx has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-kind Indicates a PR lacks a `kind/foo` label and requires one. label Feb 19, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @milas. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added needs-priority needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 19, 2024
Copy link

netlify bot commented Feb 19, 2024

Deploy Preview for kubernetes-ingress-nginx canceled.

Name Link
🔨 Latest commit b85ce01
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-ingress-nginx/deploys/65d29d23a542b20008c2ae75

@rikatz
Copy link
Contributor

rikatz commented Feb 26, 2024

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 26, 2024
@rikatz
Copy link
Contributor

rikatz commented Feb 26, 2024

/lgtm
/approve
Thanks

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 26, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: milas, rikatz

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 26, 2024
@k8s-ci-robot k8s-ci-robot merged commit e78af97 into kubernetes:main Feb 26, 2024
40 checks passed
@strongjz
Copy link
Member

/cherry-pick release-1.9

@k8s-infra-cherrypick-robot
Copy link
Contributor

@strongjz: #10991 failed to apply on top of branch "release-1.9":

Applying: chore(deps): upgrade headers-more module to 0.37
Using index info to reconstruct a base tree...
A	images/nginx-1.25/rootfs/build.sh
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): images/nginx-1.25/rootfs/build.sh deleted in HEAD and modified in chore(deps): upgrade headers-more module to 0.37. Version chore(deps): upgrade headers-more module to 0.37 of images/nginx-1.25/rootfs/build.sh left in tree.
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 chore(deps): upgrade headers-more module to 0.37
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.9

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.

@milas
Copy link
Contributor Author

milas commented Feb 26, 2024

Oh no, I broke the cherry-pick bot because I fixed the comment in the 1.25 image 😭

@milas
Copy link
Contributor Author

milas commented Feb 26, 2024

I'm happy to do a manual PR / git cherry-pick -x onto release-1.9 and accept the "conflict" if that's helpful.

Thanks for the review/merge 🙂

@muffl0n
Copy link
Contributor

muffl0n commented Jun 18, 2024

FTR: this changed the behaviour for handling of multiple headers of the same name.

See https://kubernetes.slack.com/archives/CANQGM8BA/p1718618298930939


We just painfully discovered, that v1.10.0 upgraded the dependency headers-more (#10991) resulting in multiple headers being sent from the client to not be replaced but being appended.
E.g.: when the client sent the header my-header thrice:

my-header: foobar
my-header: foobar
my-header: foobar

pre 1.10.0 "corrected" this to

my-header: foobar

while post 1.10.0 appends the values

my-header: foobar, foobar, foobar

Granted, sending the same header multiple times is the culprit. Nevertheless, this caught us off guard.

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants