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(owasp-crs): Update OWASP CRS to v4.0.0 #11012

Conversation

NeckBeardPrince
Copy link

Bumps OWASP CRS to latest, v4.0.0

What this PR does / why we need it:

The OWASP Core Rule Set has been updated to v4.0.0.

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

How Has This Been Tested?

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.

Copy link

linux-foundation-easycla bot commented Feb 22, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: rikatz / name: Ricardo Katz (0e35b4651f7090406b9bd6a00dd3bbce10cd37d5)
  • ✅ login: NeckBeardPrince / name: Adam Stracener (da7027176cfb4cf5578a87167ceb582ce60c29b3, b1122fa2c8e2ee00016056b87cdf104d2b8ff498)
  • ✅ login: dependabot[bot] (9daa483c2e08c10ce8c833bbba92cf0a9472c565, 7fd3e158b0ca5531a9da713bbd7bac811ed3d527)
  • ✅ login: milas / name: Milas Bowman (61db303a9b514c4e36273b5b332fbdeeb7297a34)

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Feb 22, 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 k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Feb 22, 2024
@k8s-ci-robot
Copy link
Contributor

Welcome @NeckBeardPrince!

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 needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 22, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @NeckBeardPrince. 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 size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 22, 2024
Copy link

netlify bot commented Feb 22, 2024

Deploy Preview for kubernetes-ingress-nginx canceled.

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

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Feb 22, 2024
@rikatz
Copy link
Contributor

rikatz commented Feb 26, 2024

Before we merge it, can you do some manual tests and confirm there is no breaking change on how modsecurity operates with this new rules.

eg.: does it need some fix on some rule? some action? does it represents some positive or negative performance impact?

Because this is a major version after so long, I'm worried about simply merging it and breaking real use cases

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 26, 2024
@rikatz
Copy link
Contributor

rikatz commented Feb 26, 2024

@NeckBeardPrince as a way to test it, please change this value in https://github.com/kubernetes/ingress-nginx/blob/main/images/nginx-1.25/rootfs/build.sh#L45

This is our new image that should be released with Ingress v1.10, if you can make it pass we can ship it on the new release.

Thanks!

@rikatz
Copy link
Contributor

rikatz commented Feb 26, 2024

Also, if it passes, the TAG https://github.com/kubernetes/ingress-nginx/blob/main/images/nginx-1.25/TAG should be bumped

@k8s-ci-robot k8s-ci-robot added do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 27, 2024
@NeckBeardPrince
Copy link
Author

NeckBeardPrince commented Feb 27, 2024

@NeckBeardPrince as a way to test it, please change this value in https://github.com/kubernetes/ingress-nginx/blob/main/images/nginx-1.25/rootfs/build.sh#L45

This is our new image that should be released with Ingress v1.10, if you can make it pass we can ship it on the new release.

Thanks!

Bumped tag and the build ran fine.

edit: Looks like we did the same thing.

@NeckBeardPrince NeckBeardPrince force-pushed the chore/upgrade-owasp-modsecurity-core-rule-set-to-v4-0-0 branch from b1122fa to 0a87031 Compare February 27, 2024 01:51
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Feb 27, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: NeckBeardPrince

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

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 27, 2024
@NeckBeardPrince NeckBeardPrince deleted the chore/upgrade-owasp-modsecurity-core-rule-set-to-v4-0-0 branch February 27, 2024 01:54
@rikatz
Copy link
Contributor

rikatz commented Feb 27, 2024

Hey, I didn't merged the coreruleset. Which commit I did for it?

@NeckBeardPrince NeckBeardPrince restored the chore/upgrade-owasp-modsecurity-core-rule-set-to-v4-0-0 branch February 27, 2024 01:57
@NeckBeardPrince
Copy link
Author

Hey, I didn't merged the coreruleset. Which commit I did for it?

I have no idea why the PR got closed.

CleanShot 2024-02-26 at 19 57 38

@NeckBeardPrince NeckBeardPrince deleted the chore/upgrade-owasp-modsecurity-core-rule-set-to-v4-0-0 branch February 27, 2024 02:04
@NeckBeardPrince
Copy link
Author

@rikatz I created a new PR #11025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. 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.

3 participants