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

Update Log4JSink Default from sgaudit to audit and add test for default values #4146

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Mar 20, 2024

Description

Changes the default logger name in the Log4JSink from sgaudit to audit. This PR also adds a test case that asserts the default value for the logger name.

Issues Resolved

Check List

  • New functionality includes testing
  • New functionality has been documented
  • 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.

Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.00%. Comparing base (91efc3b) to head (4f9d937).
Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4146   +/-   ##
=======================================
  Coverage   66.00%   66.00%           
=======================================
  Files         299      299           
  Lines       21385    21385           
  Branches     3478     3478           
=======================================
  Hits        14115    14115           
+ Misses       5529     5527    -2     
- Partials     1741     1743    +2     
Files Coverage Δ
...g/opensearch/security/auditlog/sink/Log4JSink.java 60.00% <100.00%> (ø)

... and 5 files with indirect coverage changes

@cwperks cwperks added the backport 2.x backport to 2.x branch label Mar 21, 2024
@peternied peternied merged commit 6f79d09 into opensearch-project:main Mar 22, 2024
82 of 83 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 22, 2024
…lt values (#4146)

Signed-off-by: Craig Perkins <[email protected]>
(cherry picked from commit 6f79d09)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
stephen-crawford pushed a commit that referenced this pull request Mar 22, 2024
… test for default values (#4155)

Backport 6f79d09 from #4146.

---------

Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Craig Perkins <[email protected]>
dlin2028 pushed a commit to dlin2028/security that referenced this pull request May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants