🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.maint.boot
20 messages
20 total messages Started by Max Vozeler Thu, 22 Oct 2026 14:30
DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#63
Author: Max Vozeler
Date: Thu, 22 Oct 2026 14:30
32 lines
2858 bytes
Hi everyone,

I just found this on a customer's systems, which were originally
installed using d-i from an https mirror:

/usr/local/share/ca-certificates contained copies of all CA certs from
ca-certificates-udeb as of installation time, including the compromised
"emSign ECC Root CA - G3" and "Comodo AAA Services root" certs.

These will continue to be trusted even after upgrade of ca-certificates
to the fixed version (!)

I think this comes from:
https://salsa.debian.org/installer-team/base-installer/-/blob/master/debian/bootstrap-base.postinst?ref_type=heads#L174

	# If we need SSL certificates, copy them in now.
	if [ "$PROTOCOL" = "https" -o "$mirror_protocol" = "https" ] && [ -d /etc/ssl/certs ]; then
		if find /etc/ssl/certs/ -name \*.crt | grep -q .; then
			mkdir -p /target/usr/local/share/ca-certificates
			cp -a /etc/ssl/certs/*.crt /target/usr/local/share/ca-certificates/
			chroot /target update-ca-certificates || true
		fi
	fi

Please check your /usr/local/share/ca-certificates and ensure that it is
empty or only includes CA certs that you meant to put there.

I haven't filed a bug on base-installer yet; I will try to that tomorrow
if noone beats me to it.

Best regards,
Max
Re: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#64
Author: Cyril Brulebois
Date: Thu, 22 Oct 2026 14:50
97 lines
5701 bytes
--oht4vev4un6s56pb
Content-Type: text/plain; protected-headers=v1; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: DSA 6572-1 may be ineffective for systems installed w/ d-i from
 https
MIME-Version: 1.0

Hi Max,

Max Vozeler <xam@debian.org> (2026-10-22):
> I just found this on a customer's systems, which were originally
> installed using d-i from an https mirror:
>=20
> /usr/local/share/ca-certificates contained copies of all CA certs from
> ca-certificates-udeb as of installation time, including the compromised
> "emSign ECC Root CA - G3" and "Comodo AAA Services root" certs.
>=20
> These will continue to be trusted even after upgrade of ca-certificates
> to the fixed version (!)
>=20
> I think this comes from:
> https://salsa.debian.org/installer-team/base-installer/-/blob/master/debi=
an/bootstrap-base.postinst?ref_type=3Dheads#L174
>=20
> 	# If we need SSL certificates, copy them in now.
> 	if [ "$PROTOCOL" =3D "https" -o "$mirror_protocol" =3D "https" ] && [ -d=
 /etc/ssl/certs ]; then
> 		if find /etc/ssl/certs/ -name \*.crt | grep -q .; then
> 			mkdir -p /target/usr/local/share/ca-certificates
> 			cp -a /etc/ssl/certs/*.crt /target/usr/local/share/ca-certificates/
> 			chroot /target update-ca-certificates || true
> 		fi
> 	fi
>=20
> Please check your /usr/local/share/ca-certificates and ensure that it is
> empty or only includes CA certs that you meant to put there.
>=20
> I haven't filed a bug on base-installer yet; I will try to that tomorrow
> if noone beats me to it.

Ouch. That seems to date back to the original implementation (all the
way back to 2014), so this isn't an exactly recent change/regression of
some kind=E2=80=A6

Somewhat good news (maybe): it seems the default deb.debian.org that's
getting offered still leads to an HTTP-only (not HTTPS) installation and
we don't hit that particular code path. So we're not talking about most
installations' being misconfigured/vulnerable in this way (if this
laptop installed with D-I Trixie RC 3 is indeed representative of Debian
13 systems).

Where and how to go from here isn't entirely clear to me at this point.

Wild guess, if we still need that manual copy/deployment in this
specific location, we could still have some kind of cleanup some
finish-install script, that would get rid of all files that are
(currently) shipped by ca-certificates, so that we only keep any =E2=80=9Cr=
eally
local=E2=80=9D certificates in there on the long run?

Also, maybe I could have caught that when I hacked together commits
ee95d8a89a0a and 7a79b4556436=E2=80=A6 :( Is deploying ca-certificates at t=
his
point sufficient to make the manual copy of the whole directory's
contents moot?

Help more than welcome!


Cheers,
--=20
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

--oht4vev4un6s56pb
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmraIkUACgkQ/5FK8MKz
VSD57g/8CNcNnlsqI9/vSTjMBcI7rsiPjnHCwdYnqC/n3npyuUK6oht54R526uQn
CczpxXDTpQ8WlOm3eDCc1Ee5iZN1jVsiTxxKPV3WPiNyS2OtobJYqwC8PyiaLRjK
gBzJ0AwbmkjyjntyrChNqaIa+HckmCeegJ3rB97bJb1u5kv1mxB9/4JlOh6qeXMt
7HQjtdlAgjwL8rFnLoJAY3DIZp5lhgm6B/2ibbwXLZ16coMFi8fUdSPlrcEaDVhq
0cUx72S5Cjk9C2SYOdl1vG2O2DvI8aLFc6Lo1kBt2kcDUrbzZoGsN4sYWg7xJ/CE
nA9Dh2lM0l3aFLn5f4ndmhWOqq9bNsjByGK5EYzUxynXG17Zr+8wCMiSePxZZTAt
HkwqeoY6oKJlI5hw7DhB/tAdqTSOgIBLabzgSLZKt+DSQOOk4Jta+XurM0WLdb1X
cXZDaKo6X5HN3EjJ/wrZownU3jZbsP/UabyomczidsUL6QnFcRar+OkucDggLfch
tVxCSNwESXbDSL2sRFgTez8AkENMCm+eBcrNStGzKhMarUYkgcZulmYteG/XS8WC
7FDEVG2xftwppK8NBy+ism2uNjeOfGoHAh5youehK2gNN3ehAz8xMXZ1pPOQv/mg
z9AMcvQYHwZWxe5LMCydoJH0qeLE8sk7kg5kiUYT8Zv+fV3ryoY=
=rrK8
-----END PGP SIGNATURE-----

--oht4vev4un6s56pb--
Re: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#65
Author: Cyril Brulebois
Date: Thu, 22 Oct 2026 15:20
65 lines
4600 bytes
--pb7q63gshwceyjsi
Content-Type: text/plain; protected-headers=v1; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: DSA 6572-1 may be ineffective for systems installed w/ d-i from
 https
MIME-Version: 1.0

Cyril Brulebois <kibi@debian.org> (2026-10-22):
> Where and how to go from here isn't entirely clear to me at this point.
>=20
> Wild guess, if we still need that manual copy/deployment in this
> specific location, we could still have some kind of cleanup some
> finish-install script, that would get rid of all files that are
> (currently) shipped by ca-certificates, so that we only keep any =E2=80=
=9Creally
> local=E2=80=9D certificates in there on the long run?
>=20
> Also, maybe I could have caught that when I hacked together commits
> ee95d8a89a0a and 7a79b4556436=E2=80=A6 :( Is deploying ca-certificates at=
 this
> point sufficient to make the manual copy of the whole directory's
> contents moot?

Of course, this is merely about trying to prevent this issue from
happening in future d-i releases=E2=80=A6

As for remediating the issue on already-deployed systems, should there
be something (in ca-certificates?) that would get rid of certificates
that are known to be problematic? Something like using the blocklist
for /usr/local/ as well? It's been a long while since I last looked at
implementation details, so I'm not sure whether that'd be easily doable
(or doable at all), even if there was a consensus.

(All of this reminds me that there wasn't much feedback on #1142266,
which is another story yet somewhat related.)


Cheers,
--=20
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

--pb7q63gshwceyjsi
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmraJ34ACgkQ/5FK8MKz
VSCtUxAApvGLOjI5EDyxXNwPQRPeul17BfCM6ppygWixA93Ziw188fTrTxAfb574
dTC8D9KiWjxj1RC3wXudW9jFY0qPf2UuRqXghPPEbJ44xCgws7kQsxoh4DYGgbdj
KvL6eXAawwskemK/ILJcDOxa45Q+vlf0BlsyUrOFkkeLYHL5fLIHqs8g9dqqUol7
u9VPholjDE7r9Ml5oG22x/HKQHl4EV3qo4yNbRUDZpNjyQZDBFvL6CaLEOMxX/0k
+yLVsYTEqg2WXDerlyx/jKOO9TpnQUvkrcxsemlOUlEuw1DCh+q4jci3Pz4dPQTB
WStg+M6FRQvPUT6KbuCenVXEUrnKDWP9mRGfvClP8Zzdp+oIWi8x/vnM/INUGnrB
u+w12vvpQYolBvGl+YcsrnAfN/hzRRgw/74iJM3K5i0cm0bV1kJ6nre8qBPnjYXh
ioaooQlmFDBSeLLy5SH6sAMdHefJtk49/mfh6+YXXpNET/uHDpfMe5a0cMoVUDj8
W4/fTzyhnA3/YIrxaqafrdwGjs5eiDERnLKwmo4256TfUxkmKVRi9XQZyjmnZkRI
wb0LvffaZyJx+zmzHHCMilISpkhViLeoc09CjgpLOBVMoM44Qav3d71xoSX5YrdY
uhXYEZZPYW+ikd1supcCEm3WAG0k4pEgsaORol19s7C+sm6CXag=
=ajX6
-----END PGP SIGNATURE-----

--pb7q63gshwceyjsi--
Re: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#66
Author: Pascal Hambourg
Date: Thu, 22 Oct 2026 21:10
23 lines
2831 bytes
On 22/10/2026 at 16:48, Cyril Brulebois wrote:
> Max Vozeler <xam@debian.org> (2026-10-22):
>> I just found this on a customer's systems, which were originally
>> installed using d-i from an https mirror:
>>
>> /usr/local/share/ca-certificates contained copies of all CA certs from
>> ca-certificates-udeb as of installation time, including the compromised
>> "emSign ECC Root CA - G3" and "Comodo AAA Services root" certs.
(...)
> Somewhat good news (maybe): it seems the default deb.debian.org that's
> getting offered still leads to an HTTP-only (not HTTPS) installation and
> we don't hit that particular code path. So we're not talking about most
> installations' being misconfigured/vulnerable in this way

Besides, AFAICS it happens only with netboot d-i or if a https mirror is 
preseeded, not when installing from regular ISO images without preseeding.

> Also, maybe I could have caught that when I hacked together commits
> ee95d8a89a0a and 7a79b4556436… :( Is deploying ca-certificates at this
> point sufficient to make the manual copy of the whole directory's
> contents moot?

Testing on netboot with certificate copy disabled -> works fine here.
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#68
Author: Holger Levsen
Date: Thu, 22 Oct 2026 21:30
86 lines
4896 bytes
--kln1Gc5XaPp8pXK8
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

package: debian-installer
severity: important
x-debbugs-cc: xam@debian.org

On Thu, Oct 22, 2026 at 04:18:45PM +0200, Max Vozeler wrote:
> Hi everyone,
>=20
> I just found this on a customer's systems, which were originally
> installed using d-i from an https mirror:
>=20
> /usr/local/share/ca-certificates contained copies of all CA certs from
> ca-certificates-udeb as of installation time, including the compromised
> "emSign ECC Root CA - G3" and "Comodo AAA Services root" certs.
>=20
> These will continue to be trusted even after upgrade of ca-certificates
> to the fixed version (!)
>=20
> I think this comes from:
> https://salsa.debian.org/installer-team/base-installer/-/blob/master/debi=
an/bootstrap-base.postinst?ref_type=3Dheads#L174
>=20
> 	# If we need SSL certificates, copy them in now.
> 	if [ "$PROTOCOL" =3D "https" -o "$mirror_protocol" =3D "https" ] && [ -d=
 /etc/ssl/certs ]; then
> 		if find /etc/ssl/certs/ -name \*.crt | grep -q .; then
> 			mkdir -p /target/usr/local/share/ca-certificates
> 			cp -a /etc/ssl/certs/*.crt /target/usr/local/share/ca-certificates/
> 			chroot /target update-ca-certificates || true
> 		fi
> 	fi
>=20
> Please check your /usr/local/share/ca-certificates and ensure that it is
> empty or only includes CA certs that you meant to put there.
>=20
> I haven't filed a bug on base-installer yet; I will try to that tomorrow
> if noone beats me to it.
>=20
> Best regards,
> Max
>=20


--=20
cheers,
	Holger

 =E2=A2=80=E2=A3=B4=E2=A0=BE=E2=A0=BB=E2=A2=B6=E2=A3=A6=E2=A0=80
 =E2=A3=BE=E2=A0=81=E2=A2=A0=E2=A0=92=E2=A0=80=E2=A3=BF=E2=A1=81  holger@(d=
ebian|reproducible-builds|layer-acht).org
 =E2=A2=BF=E2=A1=84=E2=A0=98=E2=A0=B7=E2=A0=9A=E2=A0=8B=E2=A0=80  OpenPGP: =
B8BF54137B09D35CF026FE9D 091AB856069AAA1C
 =E2=A0=88=E2=A0=B3=E2=A3=84

"more than half of the world=E2=80=99s food production will be at risk of f=
ailure in
 the next 25 years"
https://www.theguardian.com/environment/2025/jul/02/\
droughts-worldwide-pushing-tens-millions-starvation-report

--kln1Gc5XaPp8pXK8
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEuL9UE3sJ01zwJv6dCRq4VgaaqhwFAmrafhYACgkQCRq4Vgaa
qhzFHg/+NsZAU/RImykiJcm5jHMTmTOU11tnEyi1LYAJE54/jtplFKsX3G4ePtD4
Mvj+QGc3W+77ItfSvVTx+zKh4x4ptWIYip8Qpa2eV1Y9IvWG0ZxQGiRrNu3uD35l
/9XuAj0ap2zld1GN18lcCkGod1nYgHDYYsaQQEocT2BBgWxpcV93/e7gwpqyKjyE
xuNHG6HfHUUaiz+Xnr1tiUkLmqCSOdaE23pIQRzb+m30kXvcwkG9NpeeWj7I4w6z
gz/L3/4g+QQPc+K3KUJTe8lbe7IALzVcRDxCSN03ySNKUTfJ0rpnconWcmo5r1hn
+nE8dLAfs014S/uAivnSqb0W2jsKtBm8mtiNOh+oFaVppsanbsBCdSBhFKzy4aSF
9H+JXrLWNx2f4IMMsGHuROSiZswt6/QBVWwWrkSl0u1fjdr7OLBSwHoNiEEMwbuY
WieWWvNzajvajSggyvS0A/IDmhNH1ZGnbeue86XBinToi8IeTVDtLR55O97RCsNl
t0MkFTmv8IXFYaDyv4daWDdH1L+Xo6zRJpcPIo4n1mI+A7grVkADdTKHzUzbIIpC
0/jifDv1ieCZvkvl2TXwRMx42Kn9z1lSEwuN0i+SK1H3KQh7qF3XZYvCo65m1Yvr
W8JTR3qkrhY/FaHrD2UImbWDZsO8FI+IlpYTzhamv67/BH5X7pQ=
=x/sn
-----END PGP SIGNATURE-----

--kln1Gc5XaPp8pXK8--
Re: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#84
Author: Max Vozeler
Date: Wed, 28 Oct 2026 19:50
46 lines
4073 bytes
Hi Cyril, all,

On Thu, Oct 22, 2026 at 05:10:59PM +0200, Cyril Brulebois wrote:
> Cyril Brulebois <kibi@debian.org> (2026-10-22):
> > Where and how to go from here isn't entirely clear to me at this point.
> > 
> > Wild guess, if we still need that manual copy/deployment in this
> > specific location, we could still have some kind of cleanup some
> > finish-install script, that would get rid of all files that are
> > (currently) shipped by ca-certificates, so that we only keep any “really
> > local” certificates in there on the long run?

Pascal's testing seems to confirm that the copying is not required for
the regular case - https mirror or https preseed URL covered by the CAs
in ca-certificates.

For custom CAs, did we ever document how to include them in d-i in a way
that we should try to support going forward? A cursory search didn't
bring up any documentation. If not, I'd tend to just remove the copying
from base-installer and leave it to the preseeder to include e.g. a
suitable late_command to copy over the certs into /target.

(That's what I've been doing in my preseeding setups)

> Of course, this is merely about trying to prevent this issue from
> happening in future d-i releases…
> 
> As for remediating the issue on already-deployed systems, should there
> be something (in ca-certificates?) that would get rid of certificates
> that are known to be problematic? Something like using the blocklist
> for /usr/local/ as well? It's been a long while since I last looked at
> implementation details, so I'm not sure whether that'd be easily doable
> (or doable at all), even if there was a consensus.

This has been in the back of my head all week. I think ca-certificates
can and should purge these cert copies. I've opened a draft MR on salsa
https://salsa.debian.org/debian/ca-certificates/-/merge_requests/18 and
asked Julien (CCed) for thoughts. Still details to be hashed out.

> (All of this reminds me that there wasn't much feedback on #1142266,
> which is another story yet somewhat related.)

Ouch, that's also quite bad. :(

Best regards,
Max
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#86
Author: Pascal Hambourg
Date: Thu, 29 Oct 2026 20:30
26 lines
3292 bytes
[bug mail address fixed]

On 29/10/2026 at 16:57, Cyril Brulebois wrote:
> Max Vozeler <xam@debian.org> (2026-10-28):
>>
>> For custom CAs, (...) I'd tend to just remove the
>> copying from base-installer and leave it to the preseeder to include
>> e.g. a suitable late_command to copy over the certs into /target.
>>
>> (That's what I've been doing in my preseeding setups)
> 
> I haven't followed the initial development, or documentation efforts,
> but if dropping the whole copy altogether and letting users deal with
> whatever's needed in /target… is something you're comfortable with,
> while also wearing a preseed user hat, then that looks like a nice plan.

Do you see any case where it might be complicated, inconvenient or 
impossible to preseed the copying of custom CA certificates ?

If yes, an option would be for bootstrap-base.postinst to not copy 
certificates which are provided by ca-certificates-udeb. I guess it 
would require to ship a list of these certificates or their hashes, 
either provided by ca-certificates-udeb or generated when building the 
d-i image.

Otherwise, let's just remove the copying.
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#87
Author: Steve McIntyre
Date: Thu, 29 Oct 2026 20:40
32 lines
3917 bytes
On Thu, Oct 29, 2026 at 09:24:11PM +0100, Pascal Hambourg wrote:
>[bug mail address fixed]
>
>On 29/10/2026 at 16:57, Cyril Brulebois wrote:
>> Max Vozeler <xam@debian.org> (2026-10-28):
>> > 
>> > For custom CAs, (...) I'd tend to just remove the
>> > copying from base-installer and leave it to the preseeder to include
>> > e.g. a suitable late_command to copy over the certs into /target.
>> > 
>> > (That's what I've been doing in my preseeding setups)
>> 
>> I haven't followed the initial development, or documentation efforts,
>> but if dropping the whole copy altogether and letting users deal with
>> whatever's needed in /target… is something you're comfortable with,
>> while also wearing a preseed user hat, then that looks like a nice plan.
>
>Do you see any case where it might be complicated, inconvenient or impossible
>to preseed the copying of custom CA certificates ?
>
>If yes, an option would be for bootstrap-base.postinst to not copy
>certificates which are provided by ca-certificates-udeb. I guess it would
>require to ship a list of these certificates or their hashes, either provided
>by ca-certificates-udeb or generated when building the d-i image.

Couldn't we just copy those then clear them out as part of the
post-installation step? Wouldn't that be an easy fix?

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
Into the distance, a ribbon of black
Stretched to the point of no turning back
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#88
Author: Steve McIntyre
Date: Thu, 29 Oct 2026 22:00
17 lines
3177 bytes
On Thu, Oct 29, 2026 at 10:24:14PM +0100, Cyril Brulebois wrote:
>Steve McIntyre <steve@einval.com> (2026-10-29):
>> On Thu, Oct 29, 2026 at 09:24:11PM +0100, Pascal Hambourg wrote:
>> >[bug mail address fixed]
>
>But everyone else dropped?
>
>> Couldn't we just copy those then clear them out as part of the
>> post-installation step? Wouldn't that be an easy fix?
>
>I think I suggested that in my first reply last week?

Sorry, could have been clearer - I'm agreeing with you! :-)

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
"C++ ate my sanity" -- Jon Rabone
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#89
Author: Max Vozeler
Date: Thu, 29 Oct 2026 22:40
57 lines
4856 bytes
On Thu, Oct 29, 2026 at 08:32:31PM +0000, Steve McIntyre wrote:
> On Thu, Oct 29, 2026 at 09:24:11PM +0100, Pascal Hambourg wrote:
> >[bug mail address fixed]

D'oh! Thanks :)

> >Do you see any case where it might be complicated, inconvenient or impossible
> >to preseed the copying of custom CA certificates ?

Yes. I tested without the copying code in bootstrap-base.postinst:

(a) an https mirror with a certificate signed by a CA included in
ca-certificates. Install completed fine.

(b) an https mirror that needs a custom CA. This worked for
install_base_system but failed in apt_update. It turns copying *is*
required in this case and doing it in late_command is too late.

The reason my preseeding setup worked was precisely because of the
copying - not because of my late_command as I thought.

> >If yes, an option would be for bootstrap-base.postinst to not copy
> >certificates which are provided by ca-certificates-udeb. I guess it would
> >require to ship a list of these certificates or their hashes, either provided
> >by ca-certificates-udeb or generated when building the d-i image.
> 
> Couldn't we just copy those then clear them out as part of the
> post-installation step? Wouldn't that be an easy fix?

How would we identify the certs to be cleared out though? This seems
non-trivial and potentially error prone - or am I just not seeing the
easy solution?

What if we instead mirror what ca-certificates does and require any
custom CA certificates to be in /usr/local/share/ca-certificates in the
installer and then copy that into /target?

Getting the custom certificate into the installer already requires
creating the hash symlink in /etc/ssl/certs manually for lack of openssl
rehash / c_rehash:

d-i preseed/early_command string \
    somehow_create /etc/ssl/certs/XXX.crt; \
    ln -s /etc/ssl/certs/XXX.crt /etc/ssl/certs/HHHHHHHH.0;

Or building the hash symlink into the image itself along with the
certificate. That would be no more difficult if we required the certs to
be in /usr/local/share/ca-certificates:

d-i preseed/early_command string \
    somehow_create /usr/local/share/ca-certificates/XXX.crt; \
    ln -s /usr/local/share/ca-certificates/XXX.crt /etc/ssl/certs/HHHHHHHH.0;

Thoughts?

Best regards,
Max
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#90
Author: Pascal Hambourg
Date: Fri, 30 Oct 2026 23:10
71 lines
5926 bytes
On 29/10/2026 at 23:26, Max Vozeler wrote:
> On Thu, Oct 29, 2026 at 08:32:31PM +0000, Steve McIntyre wrote:
>> On Thu, Oct 29, 2026 at 09:24:11PM +0100, Pascal Hambourg wrote:
> 
>>> Do you see any case where it might be complicated, inconvenient or impossible
>>> to preseed the copying of custom CA certificates ?
> 
> Yes. I tested without the copying code in bootstrap-base.postinst:
> 
> (a) an https mirror with a certificate signed by a CA included in
> ca-certificates. Install completed fine.
> 
> (b) an https mirror that needs a custom CA. This worked for
> install_base_system but failed in apt_update. It turns copying *is*
> required in this case and doing it in late_command is too late.

Yes, preseed/late_command is triggered way too late to copy custom 
certificates. It would require to trigger a command right after the 
bootstrap base installation, before using apt-install to download the 
kernel package and additional packages from the mirror.

>>> If yes, an option would be for bootstrap-base.postinst to not copy
>>> certificates which are provided by ca-certificates-udeb. I guess it would
>>> require to ship a list of these certificates or their hashes, either provided
>>> by ca-certificates-udeb or generated when building the d-i image.
>>
>> Couldn't we just copy those then clear them out as part of the
>> post-installation step? Wouldn't that be an easy fix?
> 
> How would we identify the certs to be cleared out though? This seems
> non-trivial and potentially error prone - or am I just not seeing the
> easy solution?

Maybe by comparing them with certificates installed by ca-certificates ?
I agree, this is non-trivial and error-prone. For example if the mirror 
has a ca-certificates version newer than the ca-certificates-udeb used 
in the installation image and a compromised certificate was removed from 
the newer version, then this certificate would not be removed from the 
target system, unless ca-certificates has a purging mechanism such as 
proposed in your merge request 18.

> What if we instead mirror what ca-certificates does and require any
> custom CA certificates to be in /usr/local/share/ca-certificates in the
> installer and then copy that into /target?
> 
> Getting the custom certificate into the installer already requires
> creating the hash symlink in /etc/ssl/certs manually for lack of openssl
> rehash / c_rehash:
> 
> d-i preseed/early_command string \
>      somehow_create /etc/ssl/certs/XXX.crt; \
>      ln -s /etc/ssl/certs/XXX.crt /etc/ssl/certs/HHHHHHHH.0;
> 
> Or building the hash symlink into the image itself along with the
> certificate. That would be no more difficult if we required the certs to
> be in /usr/local/share/ca-certificates:
> 
> d-i preseed/early_command string \
>      somehow_create /usr/local/share/ca-certificates/XXX.crt; \
>      ln -s /usr/local/share/ca-certificates/XXX.crt /etc/ssl/certs/HHHHHHHH.0;
> 
> Thoughts?
It looks like a good idea to me. Separating default and custom 
certificates would be cleaner and AFAICS without any added complexity 
into d-i nor for users.

Also, the copying could be made unconditional regardless of whether a 
https mirror was selected or preseeded: if custom certificates are 
present, it must be for a reason. It could be something like this:

<https://salsa.debian.org/pham/base-installer/-/commit/6854a72b0e77>
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#171
Author: Pascal Hambourg
Date: Sun, 22 Nov 2026 11:10
19 lines
3394 bytes
Control: tags -1 patch

On 31/10/2026 at 00:03, Pascal Hambourg wrote:
> On 29/10/2026 at 23:26, Max Vozeler wrote:
> 
>> What if we instead mirror what ca-certificates does and require any
>> custom CA certificates to be in /usr/local/share/ca-certificates in the
>> installer and then copy that into /target?
> 
> It looks like a good idea to me. Separating default and custom 
> certificates would be cleaner and AFAICS without any added complexity 
> into d-i nor for users.
> 
> Also, the copying could be made unconditional regardless of whether a 
> https mirror was selected or preseeded: if custom certificates are 
> present, it must be for a reason.

MR opened: 
<https://salsa.debian.org/installer-team/base-installer/-/merge_requests/15>
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#176
Author: Max Vozeler
Date: Mon, 23 Nov 2026 08:20
22 lines
3279 bytes
Control: retitle -1 debian-installer: copying udeb CAs to /usr/local keeps removed root CAs trusted
Control: tags -1 security

Should this be Severity critical/serious?

On Sun, Nov 22, 2026 at 12:06:06PM +0100, Pascal Hambourg wrote:
> On 31/10/2026 at 00:03, Pascal Hambourg wrote:
> > It looks like a good idea to me. Separating default and custom
> > certificates would be cleaner and AFAICS without any added complexity
> > into d-i nor for users.
> > 
> > Also, the copying could be made unconditional regardless of whether a
> > https mirror was selected or preseeded: if custom certificates are
> > present, it must be for a reason.
> 
> MR opened:
> <https://salsa.debian.org/installer-team/base-installer/-/merge_requests/15>

Thanks Pascal! I think that's a good solution.

Best regards,
Max
Processed: Re: Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#177
Author: Debian Bug Tracking System
Date: Mon, 23 Nov 2026 08:20
18 lines
2663 bytes
Processing control commands:

> retitle -1 debian-installer: copying udeb CAs to /usr/local keeps removed root CAs trusted
Bug #1151671 [debian-installer] DSA 6572-1 may be ineffective for systems installed w/ d-i from https
Changed Bug title to 'debian-installer: copying udeb CAs to /usr/local keeps removed root CAs trusted' from 'DSA 6572-1 may be ineffective for systems installed w/ d-i from https'.
> tags -1 security
Bug #1151671 [debian-installer] debian-installer: copying udeb CAs to /usr/local keeps removed root CAs trusted
Added tag(s) security.

-- 
1151671: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1151671
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#179
Author: Cyril Brulebois
Date: Mon, 23 Nov 2026 09:10
90 lines
6157 bytes
--blmqua3fk7rgs64t
Content-Type: text/plain; protected-headers=v1; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: Bug#1151671: DSA 6572-1 may be ineffective for systems installed
 w/ d-i from https
MIME-Version: 1.0

Hallo Max,

Max Vozeler <xam@debian.org> (2026-11-23):
> Control: retitle -1 debian-installer: copying udeb CAs to /usr/local keep=
s removed root CAs trusted
> Control: tags -1 security
>=20
> Should this be Severity critical/serious?

I'm not sure how much that would change from a security or release team
point of view (possibly on the communication/perception from the outside
front?), but either of those would make that eligible for fixing in
stable (we've been known to fix even =E2=80=9Cjust important=E2=80=9D bugs =
anyway).

What worries me is the behavorial change, and the required documentation.
Given the impacts of this issue, I think it would make sense not to
maintain the status quo and to require people to update their config.

Thinking out loud a little more: assuming we have proper documentation
in place (including a dedicated stanza in the point release announcement
maybe), people who wouldn't do anything in the first place would
suddenly be missing certificates, look around, and update their config.
Slightly annoying, but workable, I think?

> On Sun, Nov 22, 2026 at 12:06:06PM +0100, Pascal Hambourg wrote:
> > On 31/10/2026 at 00:03, Pascal Hambourg wrote:
> > > It looks like a good idea to me. Separating default and custom
> > > certificates would be cleaner and AFAICS without any added complexity
> > > into d-i nor for users.
> > >=20
> > > Also, the copying could be made unconditional regardless of whether a
> > > https mirror was selected or preseeded: if custom certificates are
> > > present, it must be for a reason.

Color me convinced.

> > MR opened:
> > <https://salsa.debian.org/installer-team/base-installer/-/merge_request=
s/15>
>=20
> Thanks Pascal! I think that's a good solution.

I know you've already put quite some time and effort into this, so
feel free to tell me off if that's too much: are you in a position to
hotfix a stable installer and see if that works fine in your use case?
Otherwise I'll try and block some time for that.

Of course, nothing stops us from uploading to unstable and toying with
daily builds, but given the existing doubt regarding eligibility (see
above), I'd rather make extra sure the technical side is rock-solid.

Vielen Dank!


Cheers,
--=20
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

--blmqua3fk7rgs64t
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmsEAIYACgkQ/5FK8MKz
VSAa/g/7B0qo1cPgV9s1SNmdQ2mg34P30/q/GxVzkfYmVP+QLPh6+AYM/qV1R346
6t0v0UkYNhpZFaAPewddENgW0JPK4qM3MP9I3UrHG6E7uynTsnru5fRqzFL17jHI
UJERl/8ZR55ls9mPj/dpAYDkoWwyhxvJImR4q7NV/5deiEThPvtgIZxn49QAoUrK
OmJGJRWk24kY9HR4zV92vtpa0B/PUtCl95x120xSQHpB0xh9l4Dt9k0BTuG+YQZG
h6XDtC4G3nojuN9iaJ63d/lR0GSHqXU5sqLmSuOCt3xezAHnqEHz0PtFMkrJyXMj
Ng8MPK/NRd7Q3ke6vFuxeVzvShEstJfIr2HXugev4iW57WJan3GZ85l1Wjh2+8Ji
swqyR7Yamrp1qMx7OXE2nRslGWRdmJJyCiM6F8kau6SxC5J6bj9n1Ta04XAQYpB2
jOXaB8ax5RZcjWlqiuZMxevyT0sa+NPVfRV520MwwMji1wBKOooDhM1to8XEX8EK
68W1SxtxazpT9olZD5FvKXO9GtjCHTXHqzD69AUw77oZ0TY94kLmTsfr015//WCg
o1p2OPSdfW1ekrilr2mfsbbTD7zSnsd68EYha2vQE7PzZq43LCJrOML3s3TsK4gE
2uyqPU3j9QM5B2xxLWWqJHcPCD5ax0XGeu74fk7WCQSDIfHqpCw=
=RO2T
-----END PGP SIGNATURE-----

--blmqua3fk7rgs64t--
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#180
Author: Cyril Brulebois
Date: Mon, 23 Nov 2026 09:50
103 lines
7161 bytes
--qz7x2iungwj73zcb
Content-Type: text/plain; protected-headers=v1; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: Bug#1151671: DSA 6572-1 may be ineffective for systems installed
 w/ d-i from https
MIME-Version: 1.0

Cyril Brulebois <kibi@debian.org> (2026-11-23):
> What worries me is the behavorial change, and the required documentation.
> Given the impacts of this issue, I think it would make sense not to
> maintain the status quo and to require people to update their config.
>=20
> Thinking out loud a little more: assuming we have proper documentation
> in place (including a dedicated stanza in the point release announcement
> maybe), people who wouldn't do anything in the first place would
> suddenly be missing certificates, look around, and update their config.
> Slightly annoying, but workable, I think?

The more I think about this, the more I feel in =E2=80=9Cquite uncomfortabl=
e=E2=80=9D
territory=E2=80=A6 especially since we have an alternate way to deal with t=
his
that doesn't rely on introducing a behavorial change in stable=E2=80=A6

My current preference would be something along those lines:
 - Introduce whatever changes we want in unstable/testing to make the
   situation and implementation clearer in the future (Pascal's proposal),
   also making sure to update documentation as needed, and also some code
   (see SSL_CERTS in src:debian-installer).
 - Minimally-patch the stable installer to avoid this issue, without
   changing anything else.

I'm also quite unhappy with the unstable/testing versus stable divergence
but not requiring users to update their config seems worth it to me.


Regarding the implementation, we could have ca-certificates-udeb augmented
with metadata but that would require an extra upload, so adjusting the
build system in debian-installer looks easier. At the moment we're pulling
this package everywhere anyway:

    $ git grep ca-certificates-udeb
    build/pkg-lists/base:ca-certificates-udeb

Seeing how build/Makefile and other helpers routinely use `dpkg-deb
--info`, I don't think it would be crazy to use `dpkg-deb --contents` to
obtain the list of files shipped by ca-certificates-udeb and generate a
file to be picked up for a final cleanup.

I'm fine with looking into implementing this.


To be clear, I'm absolutely not meaning to insist on what was my initial
reaction, but at least Steve was thinking the same way, Pascal mentioned
we would have to be careful and keep track of ca-certificates-udeb files,
which this approach would address (not sure yet whether filenames are
sufficient or whether we should look the contents as well; I think the
former may be good enough)=E2=80=A6 and if that makes sense to everyone, we
would hit the pause button on Pascal's MR for now, deploy the changes to
src:debian-installer's git repository which would make them testable via
daily builds (even if a release is long overdue, and on my short term
list, but that's another story), together with an updated base-installer
package.

That would resolve the =E2=80=9Cunstable/testing versus stable=E2=80=9D div=
ergence (the
former via daily builds and/or via an actual release), and once the hotfix
is confirmed and backported to stable, Pascal's MR can be merged on top of
it, and the hotfix can be phased out (at the same time or later, combining
both shouldn't hurt).


Does that make sense?


Cheers,
--=20
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

--qz7x2iungwj73zcb
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmsECbsACgkQ/5FK8MKz
VSAVQQ//aiEQCMImwjDkoFY+U+tlBgGtuJNrhWfqGOQwqOjJgr1H6ihWpQCGiUH3
OngIBCRwGx/ESfHKCoxeOXeb/Xa79Z+NU1bnaHcsKJ205NeQvI94XjEP60age8BU
EGtMzmYvzStG8bOJQNSS7eWpFuIkQgL499TF5h24NRouYskp3oWENTy1AVaFKnWi
M5G3t7cFzWIPQN++wzyDUaiBVADx5w6T1F+E/dn3FguRSSBKgswZ24L4Diskwm8t
4qRhvPYIVncGbbDMSKwCbrPDYjbStzExuHFJxTyl3WJo+uQJwPEJptt9GZsCENuq
t28sltDvcxmTNPI1jBK9GyAxKUEDOl4Kr+yon04oLD+b9MJEfOw3K0lmT4q3gW/p
uwi89ksxJS6Kl6RgYcDWuMeIzioOD5Hc/911lZ4QrPRkL21iUXtkJaT9YxWvWv65
PDvbSVCpoJ2ZSdL43VH+H8s1WOPORFwdxNFjBQvNDeCRqqKGeyadZvimj3ZudwQ6
ixRjgzH//bBMkGDrbp35pWFL7sHKSlTI9yGWegvgM3z9v3Vqdh1dEq/sAVlz1hFL
n/5HcBonND0pS5apyIqV+6f7hgPvshG3Y5CFcXZXTruLgVFMUEbhR3VVJOBy0Pxv
82BWkNCEc6OkGMB5i2uHrMWloFQX4+sGe0KgXzDm8RZ2xED33w8=
=9NvM
-----END PGP SIGNATURE-----

--qz7x2iungwj73zcb--
Bug#1151671: debian-installer: copying udeb CAs to /usr/local keeps removed root CAs trusted
#181
Author: Max Vozeler
Date: Mon, 23 Nov 2026 11:40
49 lines
4858 bytes
Hi Cyril,

On Mon, Nov 23, 2026 at 10:39:11AM +0100, Cyril Brulebois wrote:
> My current preference would be something along those lines:
>  - Introduce whatever changes we want in unstable/testing to make the
>    situation and implementation clearer in the future (Pascal's proposal),
>    also making sure to update documentation as needed, and also some code
>    (see SSL_CERTS in src:debian-installer).
>  - Minimally-patch the stable installer to avoid this issue, without
>    changing anything else.

> Seeing how build/Makefile and other helpers routinely use `dpkg-deb
> --info`, I don't think it would be crazy to use `dpkg-deb --contents` to
> obtain the list of files shipped by ca-certificates-udeb and generate a
> file to be picked up for a final cleanup.

Agreed, it seems worth the effort and added complexity to avoid the
change in behaviour in stable. FWIW, my preseeding setup would have been
broken by and needed adjustment for the "proper" fix.

> I'm fine with looking into implementing this.
> 
> To be clear, I'm absolutely not meaning to insist on what was my initial
> reaction, but at least Steve was thinking the same way, Pascal mentioned
> we would have to be careful and keep track of ca-certificates-udeb files,
> which this approach would address (not sure yet whether filenames are
> sufficient or whether we should look the contents as well; I think the
> former may be good enough)… and if that makes sense to everyone, we
> would hit the pause button on Pascal's MR for now, deploy the changes to
> src:debian-installer's git repository which would make them testable via
> daily builds (even if a release is long overdue, and on my short term
> list, but that's another story), together with an updated base-installer
> package.
> 
> That would resolve the “unstable/testing versus stable” divergence (the
> former via daily builds and/or via an actual release), and once the hotfix
> is confirmed and backported to stable, Pascal's MR can be merged on top of
> it, and the hotfix can be phased out (at the same time or later, combining
> both shouldn't hurt).
> 
> Does that make sense?

It does to me. Happy to help test/review any changes.

I'll focus on completing the work on ca-certificates postinst to clean
up existing installations.

Best regards,
Max
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#182
Author: Cyril Brulebois
Date: Mon, 23 Nov 2026 12:10
212 lines
10955 bytes
--hwmh5gsxs3nn7iv2
Content-Type: multipart/mixed; protected-headers=v1;
	boundary="rerdg4izl4twfhpo"
Content-Disposition: inline
Subject: Re: Bug#1151671: DSA 6572-1 may be ineffective for systems installed
 w/ d-i from https
MIME-Version: 1.0


--rerdg4izl4twfhpo
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Cyril Brulebois <kibi@debian.org> (2026-11-23):
> Regarding the implementation, we could have ca-certificates-udeb augmented
> with metadata but that would require an extra upload, so adjusting the
> build system in debian-installer looks easier. At the moment we're pulling
> this package everywhere anyway:
>=20
>     $ git grep ca-certificates-udeb
>     build/pkg-lists/base:ca-certificates-udeb
>=20
> Seeing how build/Makefile and other helpers routinely use `dpkg-deb
> --info`, I don't think it would be crazy to use `dpkg-deb --contents` to
> obtain the list of files shipped by ca-certificates-udeb and generate a
> file to be picked up for a final cleanup.

It's even easier: while we don't keep .list files, they do exist in the
working tree, and that's trivially massaged into what we need.

> I'm fine with looking into implementing this.

Please find attached two patches:
 - debian-installer.patch generates a list of certificate filenames out
   of the udeb's .list file; focusing on *.crt is sufficient as that's
   what getting copied to /target (no need to deal with symlinks,
   c_rehash, etc. as far as I can tell).
 - base-installer.patch consumes that list if it exists, logs deletions
   and executes update-ca-certificates if there are any deletions.

Building a netboot-gtk image with the first patch (plus those found in
the kibi/trixie-proposed-updates branch to give me a little preseeding
flexibility[*], using my own repository and my own signing key), then
preseeding the URL to a local repository that contains all trixie udebs
plus base-installer modified with the second patch=E2=80=A6 seems to yield =
the
desired results.

(a) The following means we use the unmodified base-installer, and that
    results in 148 certificates under /usr/local/share/ca-certificates
    (current situation):

        mirror/protocol=3Dhttps
        mirror/https/hostname=3Ddeb.debian.org
        mirror/https/directory=3D/debian
        mirror/udeb/https/hostname=3Ddeb.debian.org [*]

    I wasn't expecting any surprises here (shipping an extra file=E2=80=A6)=
, the
    goal was mainly confirming I was able to reproduce the current issue
    and use it as a comparison point.

(b) The following means we use the modified base-installer, and that
    results in a log line that mentions the 148 deletions, in an empty
    /usr/local/share/ca-certificates directory, and also confirmation
    ca-certificates.crt was refreshed (which matters every time
    ca-certificates drops certificates after the installer was built):

        mirror/protocol=3Dhttps
        mirror/https/hostname=3Ddeb.debian.org
        mirror/https/directory=3D/debian
        mirror/udeb/https/hostname=3Dapt.debamax.com [*]

    For the avoidance of doubt, full syslog output:

        # tail /var/log/installer/syslog
        Nov 23 11:39:34 finish-install: info: Running /usr/lib/finish-insta=
ll.d/90base-installer
        Nov 23 11:39:34 finish-install: I: deleted 148 official certificates
        Nov 23 11:39:34 finish-install: Updating certificates in /etc/ssl/c=
erts...
        Nov 23 11:39:35 finish-install: rehash: warning: skipping ca-certif=
icates.crt, it does not contain exactly one certificate or CRL
        Nov 23 11:39:35 finish-install: 148 added, 0 removed; done.
        Nov 23 11:39:35 finish-install: Running hooks in /etc/ca-certificat=
es/update.d...
        Nov 23 11:39:35 finish-install: done.
        Nov 23 11:39:35 finish-install: info: Running /usr/lib/finish-insta=
ll.d/90console
        Nov 23 11:39:35 finish-install: info: Running /usr/lib/finish-insta=
ll.d/94random-seed
        Nov 23 11:39:35 finish-install: info: Running /usr/lib/finish-insta=
ll.d/94save-logs

What do people think?


<disclaimer>

Building and testing restricted to the following so far (manual build of
a single target, with all components from trixie), but assuming we go
ahead with this proposed plan, we'll get more exposure via daily builds
soon enough.

    make -C build rebuild_netboot-gtk USE_UDEBS_FROM=3Dtrixie

</disclaimer>


Cheers,
--=20
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

--rerdg4izl4twfhpo
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="debian-installer.patch"
Content-Transfer-Encoding: quoted-printable

=46rom d32d4a1f14ad85a4fe1780616dc24417e654003d Mon Sep 17 00:00:00 2001
=46rom: Cyril Brulebois <kibi@debian.org>
Date: Mon, 23 Nov 2026 11:51:10 +0100
Subject: [PATCH] Generate a list of ca-certificates-udeb's certificates
 (#1151671).

This list makes it possible for base-installer to clean things up.

This hotfix is meant to be testable in unstable/testing and backportable
to stable, following established best practices; the longer term plan
for unstable/testing is to rework the implementation and documentation,
making things cleaner. At that point, this hotfix can be dropped from
unstable/testing (while being kept in stable).
---
 build/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/build/Makefile b/build/Makefile
index 0f80659f2..c1110b734 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -433,6 +433,9 @@ endif
 	# base-files udeb.
 	merge-usr "$(TREE)"
=20
+	# Temporary: list filenames of official certificates for base-installer t=
o clean up in the end (#1151671)
+	awk -F/ '/\.crt/ {print $$NF}' $(TREE)/var/lib/dpkg/info/ca-certificates-=
udeb.list > $(TREE)/etc/ssl/certs/.ca-certificates-udeb.list
+
 ifeq ($(DEB_HOST_ARCH_OS),linux)
 ifeq ($(filter $(DEB_HOST_ARCH),mips64el hppa sh4),)
 	# XXX: Compensate (at least temporarily) for kernel-image's now shipping
--=20
2.47.3


--rerdg4izl4twfhpo
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="base-installer.patch"
Content-Transfer-Encoding: quoted-printable

diff --git a/finish-install.d/90base-installer b/finish-install.d/90base-in=
staller
index c4bcd464..d0310283 100755
--- a/finish-install.d/90base-installer
+++ b/finish-install.d/90base-installer
@@ -8,3 +8,18 @@ rm -f /target/etc/apt/apt.conf.d/00NoMountCDROM \
=20
 # Copy any created static devices (as /dev was not bind mounted recursivel=
y)
 cp -a /target/dev/.static/dev/* /dev/.static/dev/ 2>/dev/null || true
+
+# Temporary: delete copies of official certificates (#1151671)
+if [ -f /etc/ssl/certs/.ca-certificates-udeb.list ]; then
+	deletions=3D0
+	for filename in $(cat /etc/ssl/certs/.ca-certificates-udeb.list); do
+		if [ -f /target/usr/local/share/ca-certificates/$filename ]; then
+			rm -f /target/usr/local/share/ca-certificates/$filename
+			deletions=3D$((deletions+1))
+		fi
+	done
+	if [ $deletions -gt 0 ]; then
+		echo "I: deleted $deletions official certificates"
+		chroot /target update-ca-certificates || true
+	fi
+fi

--rerdg4izl4twfhpo--

--hwmh5gsxs3nn7iv2
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmsEKvUACgkQ/5FK8MKz
VSCmRhAAndogPTaL1QUFgODapCz7BKQ7X2Acw352YeemXTc2yA5A9nutzWKK6RmH
89CORakV9r4c6z8i6eNHU9SDW2Wm1Oz64xxRHX8u8MWgbDjXGnRdI/taul5m4E1Q
7GrUM1R9natZ1l7aMWDfMEoVuU47Dr8zYx9rurseRdJUXYJSo3maAWrrIU+rXsSL
bn0dpm7EIJTEMA9sZvHiPXM+aOWEzeNKGBHx9asuGp7lK1MrXg3km1M2kcfrjaVU
EfaOPtluZ2Hw+jr1LIQmUdlboDv25TXh9y5iQ25dGoziRsH9pIEXO65cM+OSkBfw
1PJ5hzH+hTmq+CoEky+v8Sh56Ww7OBm9mmgixZ++p4PFdEiDv1hdPvT8IhMISDMZ
PQ3TQ3292oyK1hLWYWI1l4V/5Nfh4KZK/Nv2yFUoZrQYCZn3CKRMzHzGTvbg8tt3
OBhh3EVjTWC2hpkQ82hEpAN51jb7YbN42meAg4R3FTy/guEEJJ43VOtjR5ke+jWD
P5xDTN9ZtlZpgMCef9OJl+C2kDZuwLaoo4BPI+EbJUw3WBC6/wlYypusNWAR2MkN
S6jw5PI4W4/RES1oUGCi5LHP0ZZXLmSDnd5s9FAZR64rNit3HinghhD83teniRTe
GxpZBfuw52M2Je7GYfRH37RCsl0WsojgcgQzrHfYowQdhJdUODQ=
=kmjb
-----END PGP SIGNATURE-----

--hwmh5gsxs3nn7iv2--
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#194
Author: Pascal Hambourg
Date: Tue, 24 Nov 2026 09:10
12 lines
3381 bytes
On 23/11/2026 at 13:00, Cyril Brulebois wrote:
> 
> Please find attached two patches:
>   - debian-installer.patch generates a list of certificate filenames out
>     of the udeb's .list file; focusing on *.crt is sufficient as that's
>     what getting copied to /target (no need to deal with symlinks,
>     c_rehash, etc. as far as I can tell).
>   - base-installer.patch consumes that list if it exists, logs deletions
>     and executes update-ca-certificates if there are any deletions.

Maybe a dumb question, but why delete certificates after copying them 
rather than not copying them in the first place ?
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#195
Author: Cyril Brulebois
Date: Tue, 24 Nov 2026 10:50
67 lines
5458 bytes
--uvvgclfu76q7yx34
Content-Type: text/plain; protected-headers=v1; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: Bug#1151671: DSA 6572-1 may be ineffective for systems installed
 w/ d-i from https
MIME-Version: 1.0

Pascal Hambourg <pascal@plouf.fr.eu.org> (2026-11-24):
> On 23/11/2026 at 13:00, Cyril Brulebois wrote:
> >=20
> > Please find attached two patches:
> >   - debian-installer.patch generates a list of certificate filenames out
> >     of the udeb's .list file; focusing on *.crt is sufficient as that's
> >     what getting copied to /target (no need to deal with symlinks,
> >     c_rehash, etc. as far as I can tell).
> >   - base-installer.patch consumes that list if it exists, logs deletions
> >     and executes update-ca-certificates if there are any deletions.
>=20
> Maybe a dumb question, but why delete certificates after copying them
> rather than not copying them in the first place ?

As usual, especially when it's about something (1) temporary and (2)
meant for stable, simplicity and low risk are at the top of my list.

Of course, I could implement =E2=80=9Ccopy these but not those=E2=80=9D but=
 that means
higher chances of getting something wrong, also not being able to test
everything still works fine when certificates are added (I don't have
such a setup at the moment, and I'm happy not to work on adding one),
also breaking the context for your merge request, just to avoid copying
then deleting < 1 MB worth of certificate to /target?

The goal is not to have those certificates in the end, I think those
patches achieve those goals, and I'm not sure we need to come up with
the most optimal or beautiful solution. If that was about the long-term
solution, rathen than about a short-term hotfix, that'd be a different
discussion.


Cheers,
--=20
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

--uvvgclfu76q7yx34
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmsFah8ACgkQ/5FK8MKz
VSCH3BAAmxz+5MsFNz5HuhrO2q3CZ1RJu1G4d5miqFGnVM9dFIOiBVXBCwTJ12MG
R3t/CjXwRO3Iip9mLyRMKYWV4Q2suBRyut/isGOFumjA9wSiC2ozkPtkT8wJslvs
kGL9glrvIPzaWSjY+t1i1nSigqoMpI58l+CZYinFJzZ8zzYq+Q5Hhil1LHnI57Bw
ruYwPiNwe+OBbKlieVkdvc5YPOS9vqNIbnLCujImFsWFFeUTZCk9Ygyl0lwwtaIt
NVA53E0FGSkfZzSkN46L6FiIAxEArqUZXE+a6OyUStIgz4j7k+AJPB4+lsV/9aD8
qHGIYNYF+bYsYwv1mlZWG1yRSqaibQo6Uyt811ucuO8Nt3Z7DjIruOAliLbKX6v3
uXup2oem8pVLoHilGATi56iPtmVu3pgyFJ20QRiiDVQelLhX4rofilOgGx5F/LYr
hHWAx9aVsrh3LZZ++NgmkpIZIgOjYnPCqYVpnsBDp3w2S2ao2bkln5b4C3qMzupF
G6P6pr3S+2F9APNthrZQVA+dG1Jdfkn5acw13t0lo28uOd0oRl7QjjF5OrCB0A1C
X0powcBEJCNtPii3/Nc79pfEqdgi6v7ZjXNLv4E1gZc0+LnlHVfbUx5Q8BVJIuj+
hJFrms2GIO8yZtFsyn4YP1gDXYoKH0twwD4R1of0LI8/Z05JTSY=
=DhfG
-----END PGP SIGNATURE-----

--uvvgclfu76q7yx34--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads