-
Notifications
You must be signed in to change notification settings - Fork 275
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
Triple audit logging fix (#1995) #1996
Triple audit logging fix (#1995) #1996
Conversation
Revert some changes introduced by #1563 to correct work with log4j. Signed-off-by: Andrey Pustovetov <[email protected]>
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.
Reading and rereading this code I'm not sure what was causing the triple logging which has been fixed with this PR, could you provide more details about what wasn't working before?
} | ||
return true; | ||
} | ||
|
||
private boolean isLogLevelEnabled(Logger logger, Level level) { |
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.
Thank you for removing these extraneous functions
Hi, @peternied
The bug is the incorrect usage of
This code does not contain
|
@jchipmunk 🤣 Thank you for that gem, you have made my day. |
Looks like CI got stuck when a new OpenSearch 2.2.0 build was being created, re-running the failed CI jobs |
Revert some changes introduced by #1563 to correct work with log4j. Signed-off-by: Andrey Pustovetov <[email protected]> (cherry picked from commit 68f5624)
@peternied, thanks for reviewing the PR Is it possible to backport the changes to the branch 1.3? |
Revert some changes introduced by #1563 to correct work with log4j. Signed-off-by: Andrey Pustovetov <[email protected]> (cherry picked from commit 68f5624)
@jchipmunk I've created the backport #2026, we will continue the discussion over there. |
Revert some changes introduced by #1563 to correct work with log4j. Signed-off-by: Andrey Pustovetov <[email protected]> (cherry picked from commit 68f5624) Co-authored-by: Andrey Pustovetov <[email protected]>
…t#1996) Revert some changes introduced by opensearch-project#1563 to correct work with log4j. Signed-off-by: Andrey Pustovetov <[email protected]> Signed-off-by: Stephen Crawford <[email protected]>
…t#1996) (opensearch-project#2024) Revert some changes introduced by opensearch-project#1563 to correct work with log4j. Signed-off-by: Andrey Pustovetov <[email protected]> (cherry picked from commit 68f5624) Co-authored-by: Andrey Pustovetov <[email protected]>
Revert some changes introduced by #1563 to correct work with log4j.
Signed-off-by: Andrey Pustovetov [email protected]
Description
[Describe what this change achieves]
When I execute
GET
request to.opendistro_security
index, I see three audit messages in the logs instead of one.Issues Resolved
#1995
Testing
I manually checked the changes by doing
GET
request to the index and checking the logs.Check List
New functionality includes testingNew functionality has been documentedBy 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.