-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Add audit logging for stream content #130594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3112576
8ddaa75
036f518
5424a57
9351f93
4e894cc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 130594 | ||
| summary: Add audit logging for stream content | ||
| area: Network | ||
| type: enhancement | ||
| issues: [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -350,7 +350,7 @@ public class LoggingAuditTrail implements AuditTrail, ClusterStateListener { | |
| final EventFilterPolicyRegistry eventFilterPolicyRegistry; | ||
| // package for testing | ||
| volatile EnumSet<AuditLevel> events; | ||
| boolean includeRequestBody; | ||
| volatile boolean includeRequestBody; | ||
| // fields that all entries have in common | ||
| EntryCommonFields entryCommonFields; | ||
|
|
||
|
|
@@ -1072,6 +1072,10 @@ public void coordinatingActionResponse( | |
| // not implemented yet | ||
| } | ||
|
|
||
| public boolean includeRequestBody() { | ||
| return includeRequestBody; | ||
| } | ||
|
Comment on lines
+1075
to
+1077
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems problematic. According to this comment, the non-volatile field
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SecurityRestFilter needs to know both features : LoggingAuditTrail and includeRequestBody are enabled. Shouldnt be much of a difference. Kind of hacky, cutting through two layers of abstraction.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So a read for
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Making |
||
|
|
||
| private LogEntryBuilder securityChangeLogEntryBuilder(String requestId) { | ||
| return new LogEntryBuilder(false).with(EVENT_TYPE_FIELD_NAME, SECURITY_CHANGE_ORIGIN_FIELD_VALUE).withRequestId(requestId); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one-liner?