🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #2696

Re: [PATCH v3 2/3] remote: do not show credentials when relative_url() fails

#2696
From: Aniket Gupta
Date: Mon, 09 Nov 2026 10:39
14 lines
11481 bytes
> I'm less convinced on this factor. I understand anonymizing the URL if
> we are sending it to a location that is perhaps "less trusted" (like
> trace logs) but the user asked us to operate on a given URL that caused
> problems, so they should know the string that caused problems.

I answered this on the cover letter by mistake. Here it is again. Apologies for the spam.

Fair point. I tried it with a password in the remote URL but the "failed
to download bundle from URI" warning prints it as is. I think this patch
will only cover this one message. The reason I did it is that git
already hides the password when it shows a remote URL. For eg. in the
"From" line of fetch. It is a separate patch so it is easy to drop if
you and Patrick think it is not worth it.
Technical Details
Message-ID: <20261109103916.397673-1-aniketgupta3001@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74907-linux-kernel-git=dewy.ru
References: <85924f20-298f-401e-88f7-7fb3f949d0fe@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74907-linux-kernel-git=dewy.ru
From: aniketgupta3001@gmail.com (Aniket Gupta)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v3 2/3] remote: do not show credentials when relative_url() fails
Date: Mon,  9 Nov 2026 10:39:16 +0000
Organization: Usenet Network
Message-ID: <20261109103916.397673-1-aniketgupta3001@gmail.com>
References: <85924f20-298f-401e-88f7-7fb3f949d0fe@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="330536"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:xwmjMl8md1VGjzgtnMFK8zz4qQY= sha256:7BLpOo0soi/Tk58FMt/RQ0qpteIBKGYc+WXG4V4O3m4=
	sha1:ipbZjRjbPoub/yZJagCslcA/OR0= sha256:d/t6lw3bClGUHVdNoO613pO2+Dhrr2JZq41Zr9rIoPs=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id DE31A113778; Mon,  9 Nov 2026 13:41:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Y4tPCirSARsZ;
	Mon,  9 Nov 2026 13:41:52 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-74907-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id D4664113766; Mon,  9 Nov 2026 13:41:43 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 859B7A6561; Mon,  9 Nov 2026 10:39:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794220764;
	b=5V/ltHO/+dkv+tRJpROxp4FxqSgsnRirKaX4pGMXvAE6uxGctttrG2FtnW5xYDAUmWQb
	 8TpwXG4SIwU//EeYnby8O7kx9NhIhSuQDY+b9XYCYT4zCYg3map7PpmOyHzquN3YVSWwj
	 B2w4VWydRw0p2mxTljGJCps0UYOuJuN7bneNfM5XFJ5JGmRDr9b+MYydSOnJ/wQVRorOa
	 IAZoBDG/0r6aAXpYNAypjhA0G2ZXz21ybsAU97qBLN2szYVTo/TUnYEx2prENC8acJglD
	 nk3w1uHmay8EF5w8lUYOLUJkK+Lco6BKUIGDRZUQmGaQ8bMGVc/JQtDJb50zUIevubw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794220764;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:Date:Message-ID:
	 X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Transfer-Encoding;
	bh=gSDPLEGIpLI6dE0+Yxk6TV0gUb2OGOFgcULwmj6yg4Q=;
	b=RmsYQRX1eI8jkpii3Nouq/Z6dQdwrSBRjekUbq6gXwDirJh1M0klTN7h/4RlsPS4sCUO
	 DExGH3aLDtY0bYsh5esNHIx64uTjZeM7MEGLNj6IdtL7+BjAwFALXEsoRBR5z6k2u1O3e
	 jilpV4xE1deAEgsat5hYu/Rh6cT/OObAy6WTUW4CucCLAp/kgDtRsykG4MQgag/WpJFfC
	 GcD9a25EzT4XkdMoV/xl0+8DkpkQKlPom47VrCbJTjXaVV5SrP62bcFWx0YTs4ELW2gSJ
	 BPt2E38Erfg1Me3KwIYRG6IF/ySXKyXrQWXw/m/5AATI9uHog8PAsm1KOzIy9rSjqrg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Rqc8mVpI;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AAC8606A332;
	Mon,  9 Nov 2026 10:39:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Rqc8mVpI
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.42
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794220763;
	b=kZepplJ2ViwQG6VuzJIax3rEWSrbzezXQLAN7XvYxLzXZJ6AB3S+FRW4LlSyyeezY1Dt
	 LmtIugzht0PabBd5OcSc5NXngToANIJw44RJ6aGXUpwg2Pfh0MFaX83kqaHbk99Kf2bgn
	 IKmOsZb5HUuxF2iXsl77BVo0CGxC4p0qi7jLzxnfKPQvaZfQkLJXN5fh64/3o4noSyc9s
	 ujY0HN7S3K8ld97yqFuhZjRl6lGdlIvAexVULibDcaK9M4sb6FtTs32bNb0S/Ndu+uGIA
	 3wBZrhiuIFbIRpA8TT/r0xk0/V33w6ODiZ7TOHHz0CBWI17XykNOTpGUKHbEw8emyrg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794220763;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
	 From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:
	 MIME-Version:Content-Transfer-Encoding;
	bh=gSDPLEGIpLI6dE0+Yxk6TV0gUb2OGOFgcULwmj6yg4Q=;
	b=LGbXaMuJGUAJXR8Wn5bS4N6ft1JpDIDSanfFv0uNUoulwEszo5/kSIC6F0PITYFgw8Oa
	 pMWNLbh2NKtA46WurufD+dcwaexV5WJSFU6qvtqMJ1rAl4o9PBlcqRVKfB0QOr+JK8UlE
	 LUYEInYmXFMT6wOjwRC5IpTt2+0lSkNzSDtDBg1+irGn2yd5s/7epMeB/+9lEw5cta94a
	 sVnty4+KtcucqOg+7NAznGaTMekvLVbiKDNVodN97pspLtcDqbDM/B0jhT5O0MlnP6T+0
	 vUdNAj8mGeC7WKfDy/qFIv41Yz+u6c0AlQKbMAce/DSTB8tZy+xYWoxeZHjL5A9TnKQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Rqc8mVpI;
	arc=none smtp.remote-ip=209.85.216.42
X-Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31DD2606A31C
	for <git@vger.kernel.org>; Mon,  9 Nov 2026 10:39:22 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 31DD2606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-3b09a65c76dso470673a91.1
        for <git@vger.kernel.org>; Mon, 09 Nov 2026 02:39:22 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1794220762; x=1794825562; darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=gSDPLEGIpLI6dE0+Yxk6TV0gUb2OGOFgcULwmj6yg4Q=;
        b=Rqc8mVpI19oPoK8h/hWVD/iVCFySko6gIOfOikhZoxyURZTi4Z85u4CaVAu67mQh5G
         w+pP6baFZCrwuU8yrI6qtG2UKbea7qHSRqBUFGtMfC3O0AWpQfIrGSWC6Dnvwi8F3wKv
         CMIdwAR6J2aS7ZHHBfh2D0jzZ5/tPEjFjr9D7UW16ZnE53a2mM8afxXcpcao/yiXZC7z
         rnf2ahz+LxfbhnniN5ASGtAoZAESqbXQkMcX7b3etH4WGcSNNt/CkIRbgJY+nYRsbeJa
         U6OeDTrJ6aX6uYV8xzBOV4dqp+g61zAHvUu0n7ZRM37p44CNT6ZzjTKXU+yAcx+scPNN
         yPKQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1794220762; x=1794825562;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
         :to:cc:subject:date:message-id:reply-to:content-type;
        bh=gSDPLEGIpLI6dE0+Yxk6TV0gUb2OGOFgcULwmj6yg4Q=;
        b=pKHJgE+FXtGC3rgHi2IyXOkTMk8tNIDFFe4Eph6FAlwxrpWhobOk7AMsRf9uqVArTv
         vNpKn+B4xpyx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Ev/j3VQm67Uhv5HgJ7yvnK+3Ksp+bg4PVwdaT/8h0YSEQVJaogvGWUEvbapW
	wt7V7bDT/TZn1v2/3MpSw9cmvbs72RTd1VAgc3+eUDCDSObaUpDZV9U5DyF0m45QobFKa27GUg=
	=
X-Received: by 2002:a17:90b:5548:b0:3ad:870b:b6d4 with SMTP id 98e67ed59e1d1-3b12d1003a5mr3607235a91.1.1794220762395;
        Mon, 09 Nov 2026 02:39:22 -0800 (PST)
X-Received: from LAPTOP-PVRSMPQK ([223.190.82.143])
        by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b12797095fsm6346027a91.16.2026.11.09.02.39.20
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Mon, 09 Nov 2026 02:39:21 -0800 (PST)
X-Cc: Junio C Hamano <gitster@pobox.com>,
	Patrick Steinhardt <ps@pks.im>,
	git@vger.kernel.org
X-Mailer: git-send-email 2.56.0.344.gfa103ac04e
X-In-Reply-To: <85924f20-298f-401e-88f7-7fb3f949d0fe@gmail.com>
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list