Changes with ngx_http_error_abuse_module                         (unreleased)

    *) Bugfix: error_abuse_bans_total could count only a local threshold arm
       and miss a ban assembled from events on multiple Redis-connected
       instances. Redis now reports atomically whether the current record
       created the shared block key. The owning instance counts that arm once,
       while an already-active key, concurrent replies and local/Redis overlap
       do not add another count. Legacy replies and Redis failures retain the
       local fail-open counter fallback. Redis preaccess checks and record
       operations also remove malformed, non-expiring or out-of-range block
       strings atomically instead of treating them as active bans.

    *) Bugfix: a Redis ban could stay in force for up to a second after the
       deadline it stored, because the deadline was rounded down to whole
       seconds while the key expired in milliseconds. During that last
       second the 429 or 503 carried no "Retry-After" header and
       $error_abuse_blocked_until showed a past time. The deadline is now
       rounded up, and a live ban whose stored deadline has already passed
       (for example one written by an older worker) now reports a deadline
       one second away.

    *) Security: with persist_secret, a snapshot authenticated for one
       error_abuse_zone was accepted by another zone sharing the secret and
       threshold if it was copied to that zone's persist path. The snapshot
       HMAC now also covers the zone name and key expression (snapshot
       format version 3). On upgrade, authenticated zones ignore their
       version 2 snapshot once, logging a "legacy version 2 authenticated
       snapshot" warning, so saved bans start empty; the file is kept and
       rewritten as version 3 on the next save. Zones without persist_secret
       still restore version 2 snapshots.

    *) Bugfix: a rejected "error_abuse_zone statuses=" list or an unknown
       "error_abuse zone=" name was echoed whole into the error log, so a
       second option joined without a space (for example
       "statuses=404,password=..." or "zone=testpassword=...") could leak
       its secret. Such a value, which contains "=", now prints as
       "<redacted>"; other invalid lists and unknown zone names still print
       in full.

    *) Bugfix: an invalid or duplicate "error_abuse_zone", "error_abuse" or
       "error_abuse_redis" parameter could echo secret material into the
       error log when its name was misspelled or differently cased (for
       example "PASSWORD=" or "persist_secrt="). Only known non-secret
       options without a second "=" in their value now print it; every
       other parameter prints as "name=<redacted>", or as "<redacted>" when
       the name does not look like an option name.

    *) Bugfix: documentation overstated client privacy. "client_sha256" is an
       unkeyed SHA-256 digest and is pseudonymous, not anonymous: with the
       default key=$binary_remote_addr it can be reversed by brute force. The
       README now states that nginx may append the client address and request
       to error-log lines written during a request, which the module does not
       suppress.

    *) Change: "error_abuse_redis host=" accepts only a DNS name, an IPv4
       address or a bracketed IPv6 address. A port embedded in host= (for
       example "host=127.0.0.1:6380") was silently ignored in favour of
       port=; such configurations, and URLs, userinfo, paths or scoped IPv6
       hosts, now fail "nginx -t" without echoing the host value. Set the
       port only with port=.

    *) Feature: the $error_abuse_matched variable is "1" for requests that
       matched a zone's rule (counted, blocked, or observed in dry-run) and
       empty otherwise, so "access_log ... if=$error_abuse_matched" logs
       only matching requests. Default logging is unchanged (issue #86).

    *) Feature: the "error_abuse_stats" and "error_abuse_stats_format"
       directives expose per-zone counters (requests, matched responses,
       blocks, dry-run would-blocks, bans, evictions, allocation failures)
       and gauges (nodes, blocked clients, zone bytes) as JSON or
       Prometheus/OpenMetrics text, with the same format negotiation as
       nginx-http-shield-module's shield_ban_status.

Changes with ngx_http_error_abuse_module            18 Aug 2026

    *) Change: completed the security, correctness, performance and format
       hardening of the request and persistence paths. Client keys are stored
       and logged as fixed SHA-256 identities, untrusted log and Redis detail
       is redacted, configuration and Redis replies are validated, and bounded
       eviction prevents memory pressure from displacing active bans.

       Persistence now uses an explicitly little-endian, CRC32-checked format
       with atomic no-follow writes; setting persist_secret additionally
       authenticates snapshots with HMAC-SHA256. Snapshot I/O is kept off the
       event loop when threads are available, while Redis uses nginx's
       non-blocking event integration and bounded reconnect backoff.

       The on_full=reject option fails closed when a zone has no reclaimable
       entry (on_full=allow retains the historical one-response passthrough),
       and origin enforcement survives error_page redirects. Module-generated
       rejection responses include private no-store caching and Retry-After
       headers where applicable, and failures to add those headers fail
       closed. DNS resolution and status-list parsing are bounded and checked
       at the appropriate boundary.

    *) Change: completed release-readiness alignment against
       nginx-skeleton-module 93b8ecc. CI now uses the repository POOL selector,
       current pinned JavaScript actions, an explicit CodeQL manual build, and
       four measured lanes that fit the six-runner pool without dropping a
       gate. The README badge row and contributor-facing lint instructions now
       match the workflows that actually run.

Changes with ngx_http_error_abuse_module            04 Aug 2026

    *) Change: the CI harness was standardised against the
       nginx-skeleton-module reference (anchor 2f2a371), landing as
       checkpoints 0-10 in PRs #13-#24.

       Layout moved to ci/{t,tools,fuzz,tests/unit,linter} with the module
       sources under src/. The decision logic was extracted into
       ngx_http_error_abuse_scan.c so the unit tests and both fuzz targets
       compile the real translation unit instead of a sliced copy of it.

       The five workflows that each carried their own pull_request: trigger
       became reusable members of one entry point, ci.yml, which now calls
       build-test, asan, fuzzing, valgrind, security-scanners, codeql and
       lint. Self-hosted jobs route fork PRs to hosted runners. Follow-up
       jobs are chained so peak self-hosted concurrency fits the pool.

       New: a unit test layer with coverage reporting (lines 100%, branches
       100%), a second fuzz target for the status-list parser, replay of
       past crashes from ci/fuzz/regressions/ before fresh fuzzing, and a
       ci/linter/ gate that also runs as .githooks/pre-commit.

    *) Bugfix: the CodeQL job produced an empty database on any run with a
       warm ccache, failing with "CodeQL could not process any code written
       in C/C++". Both module translation units were served from cache, so
       no compiler ran under the tracer. The job had been a silent no-op
       since caching was introduced.

    *) Bugfix: ci-deep.yml wrote its manual fuzz_seconds input straight to
       $GITHUB_ENV without validation, so a value containing a newline could
       inject further environment variables into every later step on the
       runner. The value is now rejected unless it matches ^[0-9]+$ within
       1..86400, checked in NUL mode so an embedded newline cannot pass an
       anchored match.
