Skip to content
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

Honor log_request_body setiing in compliance audit log #31

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

cwperks
Copy link
Owner

@cwperks cwperks commented Oct 21, 2024

Description

This PR ensures that the value of log_request_body is honored for the compliance logging. When using the compliance config, this PR will ensure that the document's source is audit logged in the audit_request_body when a document is first created, but otherwise it will not. When write_log_diffs is enabled, you can trace the full history of changes to documents on the tracked indices by looking for all events on the target index.

By default, the security index gets events audit logged so Compliant logging is a good feature to use to trace changes to the security configuration.

  • Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)

Enhancement

Issues Resolved

opensearch-project#4534

Check List

  • New functionality includes testing
  • New functionality has been documented
  • New Roles/Permissions have a corresponding security dashboards plugin PR
  • API changes companion pull request created
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@cwperks cwperks changed the title Ensure body is logged when document is first created, otherwise log the diffs when log_request_body set to false for compliance config Honor log_request_body setiing in compliance audit log Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant