Repository navigation
Fix Fail2Ban deploy bootstrap and Dependabot alert #9 - #89
Merged
Merged
Conversation
stevologic
marked this pull request as ready for review
July 21, 2026 07:49
stevologic
enabled auto-merge (squash)
July 21, 2026 07:49
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.
Summary
DEPLOY_COMPOSE_FAIL2BAN=truedeploy optionbrace-expansionfrom 1.1.15 to patched 1.1.16 for Dependabot alert Add PHP and Ruby unsafe-deserialization recipes to Classic Vulnerable Defaults #9 / GHSA-3jxr-9vmj-r5cpRoot causes
deploy.shunconditionally invoked the host Caddy jail installer after checkout, so servers without the hostfail2banpackage rolled back even though Compose Fail2Ban was intended to be optional. A first deployment also needs to tolerate the service being absent from the pre-update checkout.The npm lockfile resolved
minimatch's transitivebrace-expansiondependency to 1.1.15. That release is vulnerable to exponential CPU consumption from consecutive non-expanding brace groups.Security impact
The lockfile-only dependency update preserves the existing
minimatchAPI while moving the affected 1.x dependency to the first patched release. The advisory proof input completes in approximately 1 ms after the update, andnpm auditreports zero vulnerabilities.Validation
npm cinodeagainst installedbrace-expansion1.1.16npm audit --audit-level=highnode --test tests/test_dependabot_config.jsnpm run buildnpm run check:performancepython -m unittest discover -s tests -p 'test_*.py'— 288 passed, 27 environment-dependent skipspython -m unittest tests.test_deploy_script tests.test_caddy_404_bandocker compose --profile caddy --profile fail2ban config --quietgit diff --checkDeployment note
Because the currently installed
deploy.shfails before it can deploy its own replacement, the first post-merge run should execute the corrected script fromorigin/mainwithDEPLOY_REPO_DIRpointing at the checkout. Subsequent scheduled runs can use the normal checkout script.