Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

Backports the following commits to 9.0:

The audit event for a successfully-authenticated REST request occurs
when we start to process the request. For APIs that accept a streaming
request body this means we have received the request headers, but not
its body, at the time of the audit event. Today such requests will fail
with a `ClassCastException` if the `emit_request_body` flag is set. This
change fixes the handling of streaming requests in the audit log to now
report that the request body was not available when writing the audit
entry.
@DaveCTurner DaveCTurner added :Security/Audit X-Pack Audit logging >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Security Meta label for security team labels May 7, 2025
@elasticsearchmachine elasticsearchmachine merged commit 6800427 into elastic:9.0 May 7, 2025
21 checks passed
@DaveCTurner DaveCTurner deleted the backport/9.0/pr-127798 branch May 7, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Security/Audit X-Pack Audit logging Team:Security Meta label for security team v9.0.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants