aiwaf 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -15
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -39,12 +39,12 @@ the supported Redis backends when sharing limits across workers.
39
39
 
40
40
  Each package is versioned and released independently.
41
41
 
42
- Python 1.2.0, Rust/Python 0.2.9, Node.js 1.2.0, WASM 0.2.7, and Java 1.3.6 are local source targets. See the package table below and [CHANGELOG](CHANGELOG.md) for release changes.
42
+ Python 1.2.1, Rust/Python 0.2.9, Node.js 1.2.1, WASM 0.2.7, and Java 1.3.6 are local source targets. See the package table below and [CHANGELOG](CHANGELOG.md) for release changes.
43
43
 
44
44
  | Runtime | Package | Repository version | Primary use |
45
45
  | --- | --- | ---: | --- |
46
- | Python | [`aiwaf`](https://pypi.org/project/aiwaf/) | `1.2.0` | Django, Flask, and FastAPI protection |
47
- | Node.js | [`aiwaf`](https://www.npmjs.com/package/aiwaf) | `1.2.0` | Express and Node framework middleware |
46
+ | Python | [`aiwaf`](https://pypi.org/project/aiwaf/) | `1.2.1` | Django, Flask, and FastAPI protection |
47
+ | Node.js | [`aiwaf`](https://www.npmjs.com/package/aiwaf) | `1.2.1` | Express and Node framework middleware |
48
48
  | Rust/Python | [`aiwaf-rust`](https://pypi.org/project/aiwaf-rust/) | `0.2.9` | Native Python acceleration and JSON model inference |
49
49
  | WebAssembly | [`aiwaf-wasm`](https://www.npmjs.com/package/aiwaf-wasm) | `0.2.7` | Rust detection and model primitives for JavaScript |
50
50
  | Java | `io.github.aiwaf-project:aiwaf-java` | `1.3.6` | Spring MVC and Jakarta Servlet protection |
@@ -87,7 +87,7 @@ When a peer that isn't trusted sends `X-Forwarded-For` or `X-Real-IP`, all three
87
87
  > [!IMPORTANT]
88
88
  > If your proxy or CDN connects from a public address (Cloudflare or Google Cloud load balancers, for example), add its ranges to `AIWAF_TRUSTED_PROXIES`. Otherwise every visitor appears to come from the proxy, and rate limiting or a block can then affect all of them. The `cloudflare` name trusts every Cloudflare address, and anyone can send requests through Cloudflare. If clients could also send requests through Cloudflare to your origin from outside your zone, restrict the origin to your zone, for example with authenticated origin pulls.
89
89
 
90
- If untrusted hosts can reach the application directly from your private network, narrow the list to your proxy's addresses. Addresses already resolved by Flask's `ProxyFix`, Uvicorn's `--proxy-headers`, or Express `trust proxy` are respected, except that AIWAF still walks the headers when the resolved address is itself in a trusted range. The Rust-owned Node pipeline uses `req.ip` only, so configure `trust proxy` there.
90
+ If untrusted hosts can reach the application directly from your private network, narrow the list to your proxy's addresses. Addresses already resolved by Flask's `ProxyFix`, Uvicorn's `--proxy-headers`, or Express `trust proxy` are respected, except that AIWAF still walks the headers when the resolved address is itself in a trusted range. The Rust-owned Node pipeline resolves the address the same way when it runs from the regular options (the default, or `from_settings`); configured on its own, it uses `req.ip` unless its `trustedProxies` option is set.
91
91
 
92
92
  ## Injection audit
93
93
 
@@ -256,7 +256,7 @@ pip install "aiwaf[django]"
256
256
  pip install "aiwaf[flask]"
257
257
  pip install "aiwaf[fastapi]"
258
258
 
259
- # Backward-compatible alias; Python 1.2.0 already installs aiwaf-rust
259
+ # Backward-compatible alias; Python 1.2.1 already installs aiwaf-rust
260
260
  pip install "aiwaf[rust]"
261
261
 
262
262
  # Node.js middleware
@@ -280,7 +280,7 @@ Java 1.3.6, after it is published to Maven Central:
280
280
 
281
281
  The Python package requires Python 3.10 or newer. Framework dependencies are optional, so install only the extra needed by the application.
282
282
 
283
- Python 1.2.0 requires `aiwaf-rust>=0.2.9`; the `rust` extra remains an installation
283
+ Python 1.2.1 requires `aiwaf-rust>=0.2.9`; the `rust` extra remains an installation
284
284
  alias. Publish the matching Rust wheel with `NativeCSVPipeline` support before
285
285
  the Python release. The Rust release workflow builds Linux x86_64/aarch64,
286
286
  musl x86_64, macOS x86_64/arm64 and Windows x86_64 wheels and checks the native
@@ -1666,8 +1666,8 @@ Release versions and tags must match the relevant manifest.
1666
1666
 
1667
1667
  | Package | Manifest | Tag | Workflow |
1668
1668
  | --- | --- | --- | --- |
1669
- | Python `aiwaf` | `pyproject.toml` | `python-v1.2.0` | `python-publish.yml` |
1670
- | npm `aiwaf` | `js/package.json` | `js-v1.2.0` | `npm-publish.yml` |
1669
+ | Python `aiwaf` | `pyproject.toml` | `python-v1.2.1` | `python-publish.yml` |
1670
+ | npm `aiwaf` | `js/package.json` | `js-v1.2.1` | `npm-publish.yml` |
1671
1671
  | PyPI `aiwaf-rust` | `rust/pyproject.toml` + `rust/Cargo.toml` | `rust-v0.2.9` | `rust-publish.yml` |
1672
1672
  | npm `aiwaf-wasm` | `rust/crates/aiwaf_wasm/Cargo.toml` | `wasm-v0.2.7` | `wasm-publish.yml` |
1673
1673
  | Maven `aiwaf-java` | `java/pom.xml` | `java-v1.3.6` | `java-publish.yml` |
@@ -1678,13 +1678,10 @@ Java publishing uses the protected `maven-publish` environment plus `GPG_PRIVATE
1678
1678
 
1679
1679
  Registry releases are immutable. Increment the relevant manifest version before publishing another release.
1680
1680
 
1681
- For this release, publish `aiwaf-rust 0.2.9` before Python `aiwaf 1.2.0`, and
1682
- `aiwaf-wasm 0.2.7` before npm `aiwaf 1.2.0`. Python `aiwaf` 1.2.0 requires
1683
- `aiwaf-rust>=0.2.9`, so its CI installs need 0.2.9 published first. npm `aiwaf` 1.2.0
1684
- needs `aiwaf-wasm` 0.2.7, but its dependency and lockfile still name 0.2.6 so that
1685
- `npm ci` keeps working until 0.2.7 is published. After WASM publication, run
1686
- `npm install aiwaf-wasm@^0.2.7` in `js/` to update both, commit that, run `npm ci`
1687
- and the release checks, and only then publish npm `aiwaf`. Java has no changes since
1681
+ This release is Python `aiwaf 1.2.1` and npm `aiwaf 1.2.1`. Their engines, `aiwaf-rust
1682
+ 0.2.9` and `aiwaf-wasm 0.2.7`, are already published and unchanged, so the two packages
1683
+ can be published directly. npm `aiwaf` 1.2.1 declares `aiwaf-wasm ^0.2.7`; the published
1684
+ 1.2.0 still declared `^0.2.6`. Java has no changes since
1688
1685
  1.3.6, which is already published.
1689
1686
 
1690
1687
  ## Security and limitations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiwaf",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "AIWAF Web Application Firewall for JavaScript applications and major Node.js frameworks",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@babel/parser": "^7.29.2",
37
- "aiwaf-wasm": "^0.2.6",
37
+ "aiwaf-wasm": "^0.2.7",
38
38
  "express": "^4.21.2",
39
39
  "glob": "^14.0.6",
40
40
  "knex": "^2.4.2",