-
Notifications
You must be signed in to change notification settings - Fork 509
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
user accounts manipulation audit example #8158
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f5e2afc
user accounts manipulation audit example
jazzl0ver bf48030
Merge branch 'opensearch-project:main' into patch-1
jazzl0ver c44b9dc
user accounts manipulation audit example
jazzl0ver dab9b55
user accounts manipulation audit example
jazzl0ver 058810d
Update _security/audit-logs/index.md
jazzl0ver ad3bfa6
Update _security/audit-logs/index.md
Naarcha-AWS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't think AUTHENTICATED is the right event here. An AUTHENTICATED event is audit logged every time a request is sent with valid credentials.
To monitor changes to the security index, I think you would use the
compliance:
section of the audit log config. Specifically, thewrite_watched_indices: []
here.The security index is
.opendistro_security
. If you add it into this list, you should be able to track changes to internalusers, roles, roles_mappings, etc.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.
Thanks, Craig. I've just tried to put
AUTHENTICATED
event back to the list of the disabled categories and added the.opendistro_security
index to thewrite_watched_indices
list. And it didn't seem to be enough to get the details like the created or deleted user account name. To get that details, I had to disablewrite_metadata_only
and enablewrite_log_diffs
options as well.Please, confirm this is the right way to go and I'll update my PR
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.
Yes, that's correct. Does the section below look correct to you? Is there anything else that needs to be added?
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.
yes, looks just fine, thank you! i'd just add a comment regarding the specified
.opendistro_security
index to make people aware why it's added by defaultwould you like me to update my PR? or i can simply delete it if you're going to update the docs by yourself
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.
Yes please update this PR. Thank you @jazzl0ver ! This will be a great addition to the documentation.
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.
@cwperks updated
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.
wdyt including the entire section from the above comment?
In general, the audit logs documentation on the documentation website looks like it could be updated to describe all potential settings in the
audit.yml
file in a table and thecompliance
portion of the audit log needs to be expanded upon.For this PR, I think including the blurb from above would be an improvement on the existing docs.
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.
done