Skip to content

fix: count Jetpack's firewall files instead of flagging them - #34

Merged
oxyc merged 1 commit into
mainfrom
fix/jetpack-waf-generated-files
Dec 2, 2026
Merged

oxyc merged 1 commit into
mainfrom
fix/jetpack-waf-generated-files

Conversation

@oxyc

@oxyc oxyc commented Dec 2, 2026

Copy link
Copy Markdown
Member

Jetpack's firewall writes jetpack-waf/bootstrap.php and jetpack-waf/rules/{rules,allow-ip,block-ip,automatic-rules}.php below 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:

  • any other file in jetpack-waf/ is compared and flagged as usual;
  • with Jetpack inactive, the files are flagged again (left behind).

Tests: TestReleaseJetpackWAF covers 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

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>
@oxyc
oxyc merged commit 72941c7 into main Dec 2, 2026
2 checks passed
@oxyc
oxyc deleted the fix/jetpack-waf-generated-files branch December 2, 2026 13:21
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.

1 participant