Article View: linux.gentoo.dev
Article #214Re: [gentoo-dev] [PATCH] sec-keys.eclass: detect conflicting key name/remote mappings
From: Eli Schwartz
Date: Sun, 22 Nov 2026 16:10
Date: Sun, 22 Nov 2026 16:10
78 lines
5139 bytes
5139 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------TTOipUIif7itSd33TDt2qxwY Content-Type: multipart/mixed; boundary="------------XmPy0ZzUlrQXsgCeWwnJ8q5x"; protected-headers="v1"; hp="clear" Message-ID: <04b8b36f-8684-43d7-9aaf-f23442bbcb87@gentoo.org> Date: Sun, 22 Nov 2026 10:59:27 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [gentoo-dev] [PATCH] sec-keys.eclass: detect conflicting key name/remote mappings To: gentoo-dev@lists.gentoo.org References: <CALMA0xYgyxBnx2OUE4xyKeM_JHaW_bVnx07-GeeEOUf_rsANqA@mail.gmail.com> <875wy9tdtz.fsf@gentoo.org> Content-Language: en-US From: Eli Schwartz <eschwartz@gentoo.org> Autocrypt: addr=eschwartz@gentoo.org; keydata= xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4CGwMFCwkIBwMF FQoJCAsFFgIDAQACHgUCF4AWIQTvUdMIsc4jCIi+DYTqQj6ToWND8QUCauABDQUJCJCIWQAK CRDqQj6ToWND8bXlAQDhi6hUxiss56cdPbsemrWdVQe3CtkpqlQccxV/4a4/QgD/dUCR+SGn YxNZj6lir6i/TBr0yfSSrMtKgGO1+lClSwLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYCGwwWIQTvUdMIsc4jCIi+ DYTqQj6ToWND8QUCauABGAUJCJCIZAAKCRDqQj6ToWND8c4xAQCWj7iWpgEJUM+wf2bZCkgM EKEVVdv5aBJrj6Xa22UhIQEA0bIv2t9jUqUeBMHl/6i0L28s5Mrtr0ZSX3Sg/zeyrAM= X-Clacks-Overhead: GNU Terry Pratchett In-Reply-To: <875wy9tdtz.fsf@gentoo.org> --------------XmPy0ZzUlrQXsgCeWwnJ8q5x Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 11/7/26 12:23 AM, Sam James wrote: > Zhixu Liu <zhixu.liu@gmail.com> writes: >=20 >> Detect conflicting SEC_KEYS_VALIDPGPKEYS entries where the same >> name/remote pair maps to different OpenPGP fingerprints. >> >> For keyserver-based remotes (gentoo, openpgp and Ubuntu), the >> fingerprint is part of the download URL while the target filename >> is derived only from the key name and remote. So multiple >> fingerprints for the same name/remote pair would overwrite each >> other. Github downloads are keyed by user name only and >> can include multiple fingerprints, so the overwrite is harmless. >> >> Reject such configurations early with a descriptive error message. >> >=20 > Eli, any comments? The patch doesn't apply (not sent with git send-email? it has a lot of line-wrapping that throws off both git and my ability to read it.) =46rom a quick skim I don't love the overall idea, but I don't hate it. Zhixu Liu, please resend for discussion. https://git-send-email.io may be helpful. --=20 Eli Schwartz --------------XmPy0ZzUlrQXsgCeWwnJ8q5x-- --------------TTOipUIif7itSd33TDt2qxwY Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature.asc" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCawMRXwUDAAAAAAAKCRCEp9ErcA0vV4ty AP9sbz6+qQq18msfzN1URE3QyeKiK47vW+19ZdzdS/RyqQEAsrw3S37mwMJLHc17DBswUp1EvuNX caeJciiKCq5pwA0= =8vlV -----END PGP SIGNATURE----- --------------TTOipUIif7itSd33TDt2qxwY--
Technical Details
Message-ID:
<O2iiC-duZD-13@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NOI3f-5QvG-3@gated-at.bofh.it> <NWHa1-akRk-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Eli Schwartz <eschwartz@gentoo.org> Newsgroups: linux.gentoo.dev Subject: Re: [gentoo-dev] [PATCH] sec-keys.eclass: detect conflicting key name/remote mappings Date: Sun, 22 Nov 2026 17:10:02 +0100 Message-ID: <O2iiC-duZD-13@gated-at.bofh.it> References: <NOI3f-5QvG-3@gated-at.bofh.it> <NWHa1-akRk-1@gated-at.bofh.it> X-Original-To: gentoo-dev@lists.gentoo.org List-ID: Gentoo Linux mail <gentoo-dev.gentoo.org> Reply-To: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US Autocrypt: addr=eschwartz@gentoo.org; keydata= xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4CGwMFCwkIBwMF FQoJCAsFFgIDAQACHgUCF4AWIQTvUdMIsc4jCIi+DYTqQj6ToWND8QUCauABDQUJCJCIWQAK CRDqQj6ToWND8bXlAQDhi6hUxiss56cdPbsemrWdVQe3CtkpqlQccxV/4a4/QgD/dUCR+SGn YxNZj6lir6i/TBr0yfSSrMtKgGO1+lClSwLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYCGwwWIQTvUdMIsc4jCIi+ DYTqQj6ToWND8QUCauABGAUJCJCIZAAKCRDqQj6ToWND8c4xAQCWj7iWpgEJUM+wf2bZCkgM EKEVVdv5aBJrj6Xa22UhIQEA0bIv2t9jUqUeBMHl/6i0L28s5Mrtr0ZSX3Sg/zeyrAM= X-Clacks-Overhead: GNU Terry Pratchett Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------TTOipUIif7itSd33TDt2qxwY" Approved: robomod@news.nic.it Lines: 78 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 22 Nov 2026 10:59:27 -0500 X-Original-Message-ID: <04b8b36f-8684-43d7-9aaf-f23442bbcb87@gentoo.org> X-Original-References: <CALMA0xYgyxBnx2OUE4xyKeM_JHaW_bVnx07-GeeEOUf_rsANqA@mail.gmail.com> <875wy9tdtz.fsf@gentoo.org>