Skip to content

fix: detect credentials in multiple JSON values - #2218

Merged
TerryHowe merged 1 commit into
oras-project:mainfrom
TanvirTian:fix/trace-credential-redaction
Oct 3, 2026
Merged

TerryHowe merged 1 commit into
oras-project:mainfrom
TanvirTian:fix/trace-credential-redaction

Conversation

@TanvirTian

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
This PR fixes #2217 by preventing credentials in subsequent JSON values from being missed during debug trace redaction.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #2217

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

@codecov

codecov Bot commented Oct 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.19%. Comparing base (87495d5) to head (7dd04dd).
⚠️ Report is 24 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2218      +/-   ##
==========================================
+ Coverage   87.81%   88.19%   +0.37%     
==========================================
  Files         139      139              
  Lines        5689     6021     +332     
==========================================
+ Hits         4996     5310     +314     
- Misses        413      423      +10     
- Partials      280      288       +8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@TerryHowe
TerryHowe merged commit d41f4eb into oras-project:main Oct 3, 2026
10 checks passed
@TerryHowe

Copy link
Copy Markdown
Member

Thanks!

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.

containsCredentials misses credentials in subsequent JSON values

2 participants