Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/doc-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
gem install awesome_bot
cd extension
awesome_bot --files README.md --allow-dupe --allow 401,429 --skip-save-results --white-list ddev.site --base-url http://localhost:8080/
awesome_bot docs/*.md --skip-save-results --allow-dupe --allow 401,429 --white-list ddev.site,your-wordpress-url,crowdsec:8080,localhost:7422 --base-url http://localhost:8080/docs/
awesome_bot docs/*.md --skip-save-results --allow-dupe --allow 401,429 --white-list ddev.site,your-wordpress-url,crowdsec:8080,localhost:7422,admin.api.crowdsec.net --base-url http://localhost:8080/docs/
17 changes: 11 additions & 6 deletions .github/workflows/end-to-end-auto-prepend-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
end-to-end-auto-prepend-file-mode-test-suite:
strategy:
fail-fast: false
# First and last minor versions of each major version
# Highest compatible PHP version
# First and latest minor versions of each major version
# Highest and lowest compatible PHP version
matrix:
include:
- wp-version: '4.9'
Expand All @@ -34,14 +34,13 @@ jobs:
php-version: '7.2'
- wp-version: '6.0'
php-version: '8.0'
- wp-version: '6.7'
- wp-version: '6.8'
php-version: '7.2'
- wp-version: '6.7'
- wp-version: '6.8'
php-version: '8.3'

name: End-to-end auto-prepend-file mode test suite
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'chore(') }}

env:
EXTENSION_NAME: "CrowdSec_Bouncer"
Expand Down Expand Up @@ -221,7 +220,7 @@ jobs:
file_path: 11-appsec.js

- name: Prepare CrowdSec for AppSec timeout tests
run: ddev exec -s crowdsec tc qdisc add dev eth0 root netem delay 500ms
run: ddev exec -s crowdsec tc qdisc add dev eth0 root netem delay 600ms

- name: Run AppSec timeout tests
uses: ./wp-content/plugins/crowdsec/.github/workflows/end-to-end/run-single-test
Expand All @@ -244,6 +243,12 @@ jobs:
file_path:
13-redis-acl.js

- name: Run BLaaS tests
uses: ./wp-content/plugins/crowdsec/.github/workflows/end-to-end/run-single-test
with:
test_path: ${{ github.workspace }}/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
file_path: 14-blaas.js

- name: Check tested version
run: |
CURRENT_VERSION=$(ddev wp core version)
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/end-to-end-multisite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ jobs:
end-to-end-multisite:
strategy:
fail-fast: false
# Last minor version of each major version
# Latest minor version of each major version
# Minimum PHP version compatible with all WordPress versions
matrix:
wp-version: [ "4.9", "5.9", "6.7" ]
wp-version: [ "4.9", "5.9", "6.8" ]
php-version: [ "7.2" ]
subsite: ["site1", "site2"]

name: End-to-end Multisite
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'chore(') }}

env:
EXTENSION_NAME: "CrowdSec_Bouncer"
Expand Down Expand Up @@ -213,7 +212,7 @@ jobs:
subsite: ${{ matrix.subsite }}

- name: Prepare CrowdSec for AppSec timeout tests
run: ddev exec -s crowdsec tc qdisc add dev eth0 root netem delay 500ms
run: ddev exec -s crowdsec tc qdisc add dev eth0 root netem delay 600ms

- name: Run AppSec timeout tests
uses: ./wp-content/plugins/crowdsec/.github/workflows/end-to-end/run-single-test
Expand All @@ -236,6 +235,12 @@ jobs:
test_path: ${{ github.workspace }}/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
file_path: 13-redis-acl.js

- name: Run BLaaS tests
uses: ./wp-content/plugins/crowdsec/.github/workflows/end-to-end/run-single-test
with:
test_path: ${{ github.workspace }}/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
file_path: 14-blaas.js

- name: Check tested version
run: |
CURRENT_VERSION=$(ddev wp core version)
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/end-to-end-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
fail-fast: false
# First and last minor versions of each major version
# Highest compatible PHP version
# Highest and lowest compatible PHP version
matrix:
include:
- wp-version: '4.9'
Expand All @@ -41,14 +41,13 @@ jobs:
php-version: '7.2'
- wp-version: '6.0'
php-version: '8.0'
- wp-version: '6.7'
- wp-version: '6.8'
php-version: '7.2'
- wp-version: '6.7'
- wp-version: '6.8'
php-version: '8.3'

name: End-to-end test suite
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'chore(') }}

env:
EXTENSION_NAME: "CrowdSec_Bouncer"
Expand Down Expand Up @@ -206,7 +205,7 @@ jobs:
file_path: 11-appsec.js

- name: Prepare CrowdSec for AppSec timeout tests
run: ddev exec -s crowdsec tc qdisc add dev eth0 root netem delay 500ms
run: ddev exec -s crowdsec tc qdisc add dev eth0 root netem delay 600ms

- name: Run AppSec timeout tests
uses: ./wp-content/plugins/crowdsec/.github/workflows/end-to-end/run-single-test
Expand All @@ -228,6 +227,12 @@ jobs:
test_path: ${{ github.workspace }}/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
file_path: 13-redis-acl.js

- name: Run BLaaS tests
uses: ./wp-content/plugins/crowdsec/.github/workflows/end-to-end/run-single-test
with:
test_path: ${{ github.workspace }}/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
file_path: 14-blaas.js

- name: Check tested version
run: |
CURRENT_VERSION=$(ddev wp core version)
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/keepalive.yml

This file was deleted.

14 changes: 10 additions & 4 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
end-to-end-release-zip-test:
strategy:
fail-fast: false
# First and last minor versions of each major version
# First and latest minor versions of each major version
# Highest compatible PHP version
matrix:
include:
Expand All @@ -39,9 +39,9 @@ jobs:
php-version: '7.2'
- wp-version: '6.0'
php-version: '8.0'
- wp-version: '6.7'
- wp-version: '6.8'
php-version: '7.2'
- wp-version: '6.7'
- wp-version: '6.8'
php-version: '8.3'

name: End-to-end release test suite
Expand Down Expand Up @@ -236,7 +236,7 @@ jobs:
file_path: 11-appsec.js

- name: Prepare CrowdSec for AppSec timeout tests
run: ddev exec -s crowdsec tc qdisc add dev eth0 root netem delay 500ms
run: ddev exec -s crowdsec tc qdisc add dev eth0 root netem delay 600ms

- name: Run AppSec timeout tests
uses: ./wp-content/plugins/crowdsec/.github/workflows/end-to-end/run-single-test
Expand All @@ -258,6 +258,12 @@ jobs:
test_path: ${{ github.workspace }}/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
file_path: 13-redis-acl.js

- name: Run BLaaS tests
uses: ./wp-content/plugins/crowdsec/.github/workflows/end-to-end/run-single-test
with:
test_path: ${{ github.workspace }}/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
file_path: 14-blaas.js

- name: Check tested version
run: |
CURRENT_VERSION=$(ddev wp core version)
Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

---

## [2.10.0](https://github.com/crowdsecurity/cs-wordpress-bouncer/releases/tag/v2.10.0) - 2025-05-09
[_Compare with previous release_](https://github.com/crowdsecurity/cs-wordpress-bouncer/compare/v2.9.0...v2.10.0)


### Changed

- Handle BLaaS (Blocklist as a Service) LAPI specific behavior:
- Block some settings if BLaaS URL is detected: Live Mode, TLS authentication, AppSec component, Usage Metrics Push.
- Show a new `Reset usage metrics now` button.

### Added

- Add Usage Metrics table in UI
- Add compatibility with WordPress 6.8


---


## [2.9.0](https://github.com/crowdsecurity/cs-wordpress-bouncer/releases/tag/v2.9.0) - 2025-02-21
[_Compare with previous release_](https://github.com/crowdsecurity/cs-wordpress-bouncer/compare/v2.8.1...v2.9.0)

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
},
"require": {
"crowdsec/bouncer": "^4.2.0",
"crowdsec/bouncer": "^4.3.0",
"symfony/cache": "5.4.40",
"symfony/polyfill-mbstring": "^1.31.0",
"symfony/service-contracts": "^2.5.3",
Expand Down
42 changes: 21 additions & 21 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions crowdsec.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
* Plugin URI: https://github.com/crowdsecurity/cs-wordpress-bouncer
* Description: Safer Together. Protect your WordPress application with CrowdSec.
* Tags: security, captcha, ip-blocker, crowdsec, hacker-protection, appsec
* Version: 2.9.0
* Version: 2.10.0
* Author: CrowdSec
* Author URI: https://www.crowdsec.net/
* Github: https://github.com/crowdsecurity/cs-wordpress-bouncer
* License: MIT
* License URI: https://opensource.org/licenses/MIT
* Requires PHP: 7.2
* Requires at least: 4.9
* Tested up to: 6.7
* Stable tag: 2.9.0
* Tested up to: 6.8
* Stable tag: 2.10.0
* Text Domain: crowdsec-wp
* First release: 2021.
*/
Expand Down
Loading