Repository navigation
fix: count Jetpack's firewall files instead of flagging them - #34
Merged
Merged
Conversation
Jetpack's firewall writes jetpack-waf/bootstrap.php and its rules/ files below the content folder while it's on, so every deploy's fresh release flagged them as files the release doesn't have once Jetpack rewrote them. Like Wordfence's compiled wflogs/rules.php they're generated and can't be compared: those exact files are counted in a note while Jetpack (or Jetpack Protect) is active. Anything else in the folder is compared as usual, and the files are flagged again once Jetpack is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Jetpack's firewall writes
jetpack-waf/bootstrap.phpandjetpack-waf/rules/{rules,allow-ip,block-ip,automatic-rules}.phpbelow the content folder while it's on. Each deploy's fresh release doesn't have them, so once Jetpack rewrote them the release check flagged "5 not in the release" as urgent.Like Wordfence's compiled
wflogs/rules.php, they're generated and can't be compared with anything, so those exact files are now counted in a note while Jetpack (or Jetpack Protect) is active.Unchanged:
jetpack-waf/is compared and flagged as usual;Tests:
TestReleaseJetpackWAFcovers the note, an extra file in the folder still being flagged, and the files flagged once Jetpack is gone.go test ./..., gofmt and vet pass. README updated.🤖 Generated with Claude Code