Docs: scaffold plan for optional OWASP CRS auto-update#36
Open
Divyateja2709 wants to merge 1 commit intoOWASP:masterfrom
Open
Docs: scaffold plan for optional OWASP CRS auto-update#36Divyateja2709 wants to merge 1 commit intoOWASP:masterfrom
Divyateja2709 wants to merge 1 commit intoOWASP:masterfrom
Conversation
Added initial README for CRS auto-update script with planned features and assumptions.
Collaborator
|
That makes logical sense |
Author
Hi @adrianwinckles , i have worked on chameleon persona system mainly . the first 7 prs were inclined towards the crs auto update side and the main focus was on developing websites mimicing cve s of drupal and wordpress |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi @adrianwinckles
I've just started working with this repository and I went through the GSoC OWASP ideas file to find some potential projects to contribute to. I would be very interested in working on the project idea: "Auto-update OWASP Core Rule Set (CRS) in the Docker-based ModSecurity/Coraza WAF honeypot."
This PR:
Documents the proposed CSR auto-update feature.
Lays out a review-friendly PR plan
My proposal for building this:
Leave current behavior unchanged if nothing changes (by default the container continues using CRS bundled within the image unless updates are explicitly turned on).
If updates are enabled (CRSUPDATE=true) then run a small updater at container startup which instead of pulling "latest" pulls the exact pinned CRS version(CRSVERSION=...) that the user desires.
The updater will download and sanity check CRS to a temporary folder first then switch into place atomically, so the ruleset does not exist in half-installed state at any point.
Existing ModSec include paths are not altered by keeping installed CRS the same folder/file layout.
If it should fail, it simply logs the error, falls back to bundled CRS, and the container continues to start as normal.
Next steps:
The script's actual implementation .
Confirmations:
Is it okay to continue working on this project with this approach, starting with small PRs .
Thank you in advance!