From: Junio C Hamano <gitster@pobox.com>
To: Derrick Stolee <stolee@gmail.com>
Cc: Aniket Gupta <aniketgupta3001@gmail.com>,
git@vger.kernel.org, Patrick Steinhardt <ps@pks.im>
Subject: Re: [PATCH v3 2/3] remote: do not show credentials when relative_url() fails
Date: Fri, 06 Nov 2026 11:15:39 -0800 [thread overview]
Message-ID: <xmqqqzgxixes.fsf@gitster.g> (raw)
In-Reply-To: <85924f20-298f-401e-88f7-7fb3f949d0fe@gmail.com> (Derrick Stolee's message of "Fri, 6 Nov 2026 09:43:50 -0500")
Derrick Stolee <stolee@gmail.com> writes:
> In environments that store stdout/stderr logs, those systems already
> need to be careful about such strings in the commands themselves, let
> alone the output strings.
Hmph, is this true? How can these systems be _careful_ without
knowing what these strings are? By guessing that https:// is a common
enough thing that shoud raise red flag if there is some:thing@ that
follows it?
> And back to the bundle-URI application: if the bundle list uses such
> URIs for its child bundles, then that's not a safe mechanism for
> communicating those credentials. This isn't going to protect secrets
> like that from being exposed.
This is very true. So the patch may be protecting us against an
issue that does not exist in practice?
Where do we use anonymize_url() in existing code paths?
- "git clone" leaving "clone: from X" in the reflog
- "git fetch" showing "From X" to show ref updates
- "git push" shwoing "Pushing to X" in verbose output
- remote-curl talking about "url" in die() messages
- transport showing "To X" to show push_report.
These are all talking about what is shown on the screen except for
the reflog entry left by "git clone", I think.
Thanks.
next prev parent reply other threads:[~2026-11-06 19:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 15:28 [PATCH v3 0/3] bundle-uri: do not die on unresolvable relative URIs Aniket Gupta
2026-11-05 15:28 ` [PATCH v3 1/3] remote: add relative_url_gently() Aniket Gupta
2026-11-06 14:36 ` Derrick Stolee
2026-11-05 15:28 ` [PATCH v3 2/3] remote: do not show credentials when relative_url() fails Aniket Gupta
2026-11-06 14:43 ` Derrick Stolee
2026-11-06 19:15 ` Junio C Hamano [this message]
2026-11-09 10:39 ` Aniket Gupta
2026-11-05 15:28 ` [PATCH v3 3/3] bundle-uri: do not die on unresolvable relative URIs Aniket Gupta
2026-11-06 14:51 ` Derrick Stolee
2026-11-06 14:57 ` [PATCH v3 0/3] " Derrick Stolee
2026-11-06 17:25 ` Aniket Gupta
2026-11-09 9:26 ` Patrick Steinhardt
2026-11-09 10:56 ` Aniket Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqqzgxixes.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=aniketgupta3001@gmail.com \
--cc=git@vger.kernel.org \
--cc=ps@pks.im \
--cc=stolee@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.