Skip to content

Commit e0fb1c3

Browse files
feat(*): Prepare release 1.9.0
1 parent d0eeee5 commit e0fb1c3

File tree

6 files changed

+50
-27
lines changed

6 files changed

+50
-27
lines changed

.github/workflows/end-to-end-auto-prepend-test-suite.yml

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,14 @@ jobs:
120120
chmod +x run-tests.sh
121121
122122
- name: Run Plugin activation tests
123-
run: |
124-
cd ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev/__scripts__
125-
./run-tests.sh ci "./__tests__/1-activate-plugin.js"
123+
uses: ./my-own-modules/crowdsec-bouncer/.github/workflows/end-to-end/run-single-test
124+
with:
125+
test_path: ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
126+
file_path: 1-activate-plugin.js
126127

127128
- name: Configure CrowdSec and Wordpress bouncer plugin
128129
run: |
129-
ddev crowdsec-config
130+
ddev crowdsec-config
130131
131132
- name: Prepare auto-prepend-file mode test suite
132133
run: |
@@ -149,35 +150,47 @@ jobs:
149150
fi
150151
151152
- name: Run Live mode remediation tests
152-
run: |
153-
cd ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev/__scripts__
154-
./run-tests.sh ci "./__tests__/2-live-mode-remediations.js ./__tests__/3-live-mode-more.js"
153+
uses: ./my-own-modules/crowdsec-bouncer/.github/workflows/end-to-end/run-single-test
154+
with:
155+
test_path: ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
156+
file_path: 2-live-mode-remediations.js
157+
158+
- name: Run more Live mode remediation tests
159+
uses: ./my-own-modules/crowdsec-bouncer/.github/workflows/end-to-end/run-single-test
160+
with:
161+
test_path: ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
162+
file_path: 3-live-mode-more.js
155163

156164
- name: Run Live mode cache tests
157-
run: |
158-
cd ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev/__scripts__
159-
./run-tests.sh ci "./__tests__/4-live-mode-cache.js"
165+
uses: ./my-own-modules/crowdsec-bouncer/.github/workflows/end-to-end/run-single-test
166+
with:
167+
test_path: ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
168+
file_path: 4-live-mode-cache.js
160169

161170
- name: Prepare cron usage
162171
run: |
163172
sed -i 's/fastcgi_finish_request/\/\/fastcgi_finish_request/g' wp-cron.php
164173
165174
- name: Run Stream mode tests
166-
run: |
167-
cd ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev/__scripts__
168-
./run-tests.sh ci "./__tests__/5-stream-mode.js"
175+
uses: ./my-own-modules/crowdsec-bouncer/.github/workflows/end-to-end/run-single-test
176+
with:
177+
test_path: ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
178+
file_path: 5-stream-mode.js
169179

170180
- name: Run Redis tests
171-
run: |
172-
cd ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev/__scripts__
173-
./run-tests.sh ci "./__tests__/6-redis.js"
181+
uses: ./my-own-modules/crowdsec-bouncer/.github/workflows/end-to-end/run-single-test
182+
with:
183+
test_path: ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
184+
file_path: 6-redis.js
174185

175186
- name: Run Memcached tests
176-
run: |
177-
cd ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev/__scripts__
178-
./run-tests.sh ci "./__tests__/7-memcached.js"
187+
uses: ./my-own-modules/crowdsec-bouncer/.github/workflows/end-to-end/run-single-test
188+
with:
189+
test_path: ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
190+
file_path: 7-memcached.js
179191

180192
- name: Run Geolocation tests
181-
run: |
182-
cd ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev/__scripts__
183-
./run-tests.sh ci "./__tests__/8-geolocation.js"
193+
uses: ./my-own-modules/crowdsec-bouncer/.github/workflows/end-to-end/run-single-test
194+
with:
195+
test_path: ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
196+
file_path: 8-geolocation.js

.github/workflows/end-to-end-test-suite.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ jobs:
141141
test_path: ${{ github.workspace }}/my-own-modules/${{ env.EXTENSION_PATH }}/tests/e2e-ddev
142142
file_path: 3-live-mode-more.js
143143

144-
145144
- name: Run Live mode cache tests
146145
uses: ./my-own-modules/crowdsec-bouncer/.github/workflows/end-to-end/run-single-test
147146
with:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.9.0](https://github.com/crowdsecurity/cs-wordpress-bouncer/releases/tag/v1.9.0) - 2022-09-15
8+
[_Compare with previous release_](https://github.com/crowdsecurity/cs-wordpress-bouncer/compare/v1.8.1...v1.9.0)
9+
### Added
10+
- Add TLS authentication feature
11+
### Fixed
12+
- Fix false negative connection test from admin when `trust_ip_forward_array` setting is not in database
13+
---
714

815
## [1.8.1](https://github.com/crowdsecurity/cs-wordpress-bouncer/releases/tag/v1.8.1) - 2022-08-18
916
[_Compare with previous release_](https://github.com/crowdsecurity/cs-wordpress-bouncer/compare/v1.8.0...v1.8.1)

crowdsec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin URI: https://github.com/crowdsecurity/cs-wordpress-bouncer
55
* Description: Safer Together. Protect your WordPress application with CrowdSec.
66
* Tags: crowdsec-bouncer, wordpress, security, firewall, captcha, ip-scanner, ip-blocker, ip-blocking, ip-address, ip-database, ip-range-check, crowdsec, ban-hosts, ban-management, anti-hacking, hacker-protection, captcha-image, captcha-generator, captcha-generation, captcha-service
7-
* Version: 1.8.1
7+
* Version: 1.9.0
88
* Author: CrowdSec
99
* Author URI: https://www.crowdsec.net/
1010
* Github: https://github.com/crowdsecurity/cs-wordpress-blocker
@@ -13,7 +13,7 @@
1313
* Requires PHP: 7.2
1414
* Requires at least: 4.9
1515
* Tested up to: 6.0
16-
* Stable tag: 1.8.1
16+
* Stable tag: 1.9.0
1717
* Text Domain: crowdsec-wp
1818
* First release: 2021.
1919
*/

inc/Constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Constants extends LibConstants
2222
public const CROWDSEC_DEBUG_LOG_PATH = __DIR__ . '/../logs/debug.log';
2323
public const CROWDSEC_CACHE_PATH = __DIR__ . '/../.cache';
2424
public const CROWDSEC_CONFIG_PATH = __DIR__ . '/standalone-settings.php';
25-
public const CROWDSEC_BOUNCER_USER_AGENT = 'WordPress CrowdSec Bouncer/v1.8.1';
25+
public const CROWDSEC_BOUNCER_USER_AGENT = 'WordPress CrowdSec Bouncer/v1.9.0';
2626
public const CROWDSEC_BOUNCER_GEOLOCATION_DIR = __DIR__ . '/../geolocation';
2727
public const CROWDSEC_BOUNCER_TLS_DIR = __DIR__ . '/../tls';
2828

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://crowdsec.net/
44
Tags: crowdsec-bouncer, wordpress, security, firewall, captcha, ip-scanner, ip-blocker, ip-blocking, ip-address, ip-database, ip-range-check, crowdsec, ban-hosts, ban-management, anti-hacking, hacker-protection, captcha-image, captcha-generator, captcha-generation, captcha-service
55
Requires at least: 4.9
66
Tested up to: 6.0
7-
Stable tag: 1.8.1
7+
Stable tag: 1.9.0
88
Requires PHP: 7.2
99
License: MIT
1010
License URI: https://opensource.org/licenses/MIT
@@ -44,6 +44,10 @@ This WordPress plugin is a "bouncer", which purpose is to block detected attacks
4444

4545
== Changelog ==
4646

47+
= 1.9 (2022-09-15) =
48+
49+
- Add TLS authentication option
50+
4751
= 1.8 (2022-08-04) =
4852

4953
- Add `use_curl` configuration: should be used if `allow_url_fopen` is disabled and `curl` is available

0 commit comments

Comments
 (0)