fix(auth): strip userinfo from the URLs that whoami prints #612
No reviewers
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea!612
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-608-whoami-url-userinfo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
auth whoamiprinted the resolved forge URL as it was, so a hand-set URL withuser:secret@hostput the secret into the terminal or a transcript. The newconfig.RedactUserinforemoves the userinfo. whoami uses it for the URL line (the text output and the JSON field) and for both resolution-chain listings.RedactUserinfoworks on the raw text, so it also cleans a URL thatnet/urlcannot parse. A whoami test runs the real command with a secret inMADTEA_URLand fails with the redaction removed.Closes #608
Closes #608