Repository navigation
Conversation
Signed-off-by: hrushikeshramilla <[email protected]>
Hrushikesh-ramilla
requested review from
TerryHowe,
Wwwsylvia,
sabre1041,
sajayantony and
shizhMSFT
as code owners
November 12, 2026 04:49
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2331 +/- ##
==========================================
+ Coverage 73.51% 74.86% +1.34%
==========================================
Files 157 157
Lines 6582 6592 +10
==========================================
+ Hits 4839 4935 +96
+ Misses 1454 1368 -86
Partials 289 289 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
4 tasks done
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.
Relates to #2280
Remote.readSecretchecked the unprefixedpasswordandidentity-tokenflag names instead of addingflagPrefix, so prefixed flags such as--from-password,--to-password,--from-identity-token, and--to-identity-tokenskipped the insecure CLI secret warning. It also read--password-stdin/--identity-token-stdindirectly fromos.Stdin.This updates
Remote.readSecretto checkremo.flagPrefix + flag(keeping the-stdinhint when that stdin flag is registered on the command) and read stdin viacmd.InOrStdin(), and updateslogin,blob delete, andmanifest deleteto passcmd.InOrStdin()instead of hardcodingos.Stdin(keeping terminal password masking viaterm.ReadPasswordwhencmd.InOrStdin()is a terminal*os.File).Added unit tests covering unprefixed and prefixed CLI secret warnings, reading secrets from
cmd.InOrStdin()(including error propagation), interactiveloginprompts, andblob delete/manifest deleteconfirmation prompts viacmd.SetIn. Verified locally withgo vet ./...andgo test -race -count=1 -skip containersConfigFullStack ./...(skipping the two Linux-specificcerts.dcolon directory tests on Windows).Please check the following list: