moonming opened a new pull request, #14248: URL: https://github.com/apache/apisix/pull/14248
## Summary\n\nWhen request body validation is enabled, new and updated configurations must include `digest` in `signed_headers`. This binds the Digest header to the HMAC signature so a captured request cannot have both its body and unsigned Digest replaced.\n\nTo avoid breaking existing deployments during upgrade, this is a compatibility transition:\n\n- Admin writes with `validate_request_body=true` but without signed `digest` are rejected with a clear configuration error.\n- Existing configurations continue to process requests during the transition.\n- Requests whose valid Digest was not signed are accepted with a rate-limited warning instead of an immediate 401.\n- A future release can remove this compatibility behavior and reject unsigned Digest requests.\n\nHeader-name matching is case-insensitive. The write-only flag is only passed by the Admin schema path, so data-plane loading of existing configurations is unchanged.\n\n## Tests\n\nUpdated `t/plugin/hmac-auth3.t` to sign D igest for the secure configurations and added coverage for:\n\n- rejecting new body-validation configurations without signed `digest`;\n- accepting valid requests with signed `digest`;\n- preserving legacy requests while emitting the compatibility warning.\n\nVerification against the latest upstream `master`:\n\n- `t/plugin/hmac-auth3.t`: 39/39 passed.\n- `hmac-auth2.t`, `hmac-auth-realm.t`, and `hmac-auth-anonymous-consumer.t`: passed.\n- Modified Lua files passed LuaJIT compilation checks and `git diff --check`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
