Skip to content

Add static_extensions parameter to modsecurity - #2665

Open
teluq-pbrideau wants to merge 1 commit into
puppetlabs:mainfrom
teluq-pbrideau:feat/modsecurity-staticext
Open

teluq-pbrideau wants to merge 1 commit into
puppetlabs:mainfrom
teluq-pbrideau:feat/modsecurity-staticext

Conversation

@teluq-pbrideau

@teluq-pbrideau teluq-pbrideau commented Nov 12, 2026 •

Copy link
Copy Markdown

Summary

The security_crs.conf config file contain a commented section to configure tx.static_extensions. This PR configure them as the default.

Additional Context

I changed both .erb and .epp templates to keep them consistent...

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

@teluq-pbrideau
teluq-pbrideau marked this pull request as ready for review November 12, 2026 20:40
@teluq-pbrideau

Copy link
Copy Markdown
Author

The current failed check:

Run bundle exec matrix_from_metadata_v3 --nightly --platform-exclude centos-7 --platform-exclude oraclelinux-7 --platform-exclude scientific-7 --platform-exclude almalinux-8 --collection-platform-exclude 9:redhat-7 --collection-platform-exclude 9:debian-10 --collection-platform-exclude 9:ubuntu-18.04 --collection-platform-exclude 9:ubuntu-20.04
Error: invalid option: --nightly
Error: Process completed with exit code 1.

@jst-cyr

jst-cyr commented Nov 18, 2026

Copy link
Copy Markdown
Member

@teluq-pbrideau : That failure is expected. It's failing to run acceptance tests, which is a known limitation on forks. I'll kick off a branch to do some acceptance testing.

@jst-cyr

jst-cyr commented Nov 18, 2026

Copy link
Copy Markdown
Member

Tests for this PR are being executed in #2666

@jst-cyr

jst-cyr commented Nov 18, 2026

Copy link
Copy Markdown
Member

✅ Acceptance Test Results: https://github.com/puppetlabs/puppetlabs-apache/actions/runs/44225776376?pr=2666

All tests are green (took a few retries to work through some provisioning issues). We are good to go from testing, ready for some engineering review!

@teluq-pbrideau

Copy link
Copy Markdown
Author

Support for DoS detection seems to be removed in CRS 4.x upstream...
coreruleset/plugin-registry#59

This is still relevent to 3.x (bundled with RHEL 8 and 9), but is not really a futur proof solution...

On my part, as I want to be future proof, so I decided to move away from ModSecurity for DoS detection entirely, so not really necessary to review this PR for me anymore... But if the community thinks it is usefull, I can keep it open.

@jst-cyr I think we should close this PR to let engineering use their valuable time elsewhere... What do you think?

@jst-cyr

jst-cyr commented Nov 24, 2026

Copy link
Copy Markdown
Member

@teluq-pbrideau : If you don't have a need for this, then we can definitely de-prioritize it and push it down the list. Why don't we wait two weeks to see if anybody else raises their hand as needing this fix and if we don't hear anything then we can close it down. Does that sound like a plan?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants