Repository navigation
fix(e2e): redact password values from test execution logs - #2042
Merged
TerryHowe merged 3 commits intoMay 5, 2026
Merged
Conversation
TerryHowe
requested review from
Wwwsylvia,
sabre1041,
sajayantony and
shizhMSFT
as code owners
April 27, 2026 21:54
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2042 +/- ##
==========================================
+ Coverage 87.18% 87.25% +0.07%
==========================================
Files 138 138
Lines 5462 5462
==========================================
+ Hits 4762 4766 +4
+ Misses 419 415 -4
Partials 281 281 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Passwords passed via --password, --from-password, or --to-password flags were logged in plain text in test output. Redact those values before building the description string to avoid clear-text logging of sensitive information (CWE-312). Fixes: https://github.com/oras-project/oras/security/code-scanning/8 Signed-off-by: Terry Howe <[email protected]>
TerryHowe
force-pushed
the
fix/clear-text-logging-password
branch
2 times, most recently
from
April 27, 2026 22:01
2369ab0 to
b72807f
Compare
sajayantony
approved these changes
May 5, 2026
TerryHowe
added a commit
to TerryHowe/oras
that referenced
this pull request
Jun 28, 2026
…ct#2042) Signed-off-by: Terry Howe <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
--password,--from-password, or--to-passwordflags were logged in plain text in test output viafmt.Println(description)andginkgo.By(description)redactArgshelper that replaces the value following any--*password*flag with***before building the log descriptionFixes: https://github.com/oras-project/oras/security/code-scanning/8
Test plan
>> should ... >>lines🤖 Generated with Claude Code