Thread View: linux.debian.policy
7 messages
7 total messages
Started by Enrico Zini
Wed, 18 Nov 2026 09:40
Bug#1154269: Forbid embedded trust anchors
Author: Enrico Zini
Date: Wed, 18 Nov 2026 09:40
Date: Wed, 18 Nov 2026 09:40
111 lines
6746 bytes
6746 bytes
This is a multi-part MIME message sent by reportbug. --===============8378331575157406436== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Package: debian-policy Version: 4.7.2.0 Severity: normal Tags: patch X-Debbugs-Cc: debian-devel@lists.debian.org, team+pkg-mozilla@tracker.debian.org [Cc-ing Firefox maintainers, as suggested by Antonio Russo on debian-devel[1]] After discussion started at https://lists.debian.org/debian-devel/2026/11/msg00242.html and following Marco d'Itri's advice, which also references #1150960, I'm splitting a draft policy entry about trust anchors from the general issue of system-wide datasets, as I agree they need different normative approaches. Here's my proposed draft patch about trust anchors: diff --git a/policy/ch-source.rst b/policy/ch-source.rst index 5228e0b..2da936e 100644 --- a/policy/ch-source.rst +++ b/policy/ch-source.rst @@ -817,6 +817,21 @@ libraries already in Debian and the convenience copy is not used. If the included code is not already in Debian, it should be packaged separately as a prerequisite if possible. [#]_ +.. _s-embeddedtrustanchors: + +Embedded trust anchors +---------------------- + +Similarly, Debian maintains packages containing trust anchors (e.g. WebPKI +certificate authorities, DNSSEC root zone trust anchors, RPKI trust anchor +locators) which are kept current during the lifetime of a release. + +Other packages which use this information must depend on the appropriate data +packages and not contain duplicated copies of such trust anchors, as it would +increase the effort of managing a local policy or restoring system security or +functionality in a timely manner after external events such as an unplanned key +revocation or a scheduled rollover. + .. _s-readmesource: Source package handling: ``debian/README.source`` [1] https://lists.debian.org/msgid-search/94db431b-4ad2-4a4e-845b-2b1614eb0a5c@aerusso.net -- System Information: Debian Release: 13.7 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.12.117+deb13-amd64 (SMP w/16 CPU threads; PREEMPT) Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE=en_IE:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled debian-policy depends on no packages. Versions of packages debian-policy recommends: ii libjs-jquery 3.6.1+dfsg+~3.5.14-1 ii libjs-sphinxdoc 8.1.3-5 ii sphinx-rtd-theme-common 3.0.2+dfsg-2 Versions of packages debian-policy suggests: pn doc-base <none> -- no debconf information --===============8378331575157406436== Content-Type: application/mbox MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-Added-an-entry-about-embedded-trust-anchors.patch" RnJvbSA5N2U2ZDVmNDc3ZjZiZjhmYTZhNTkzOGY0ZTgyMDdjYmE4OTlmZDI3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBFbnJpY28gWmluaSA8ZW5yaWNvQGVucmljb3ppbmkub3JnPgpE YXRlOiBXZWQsIDE4IE5vdiAyMDI2IDEwOjIwOjQyICswMTAwClN1YmplY3Q6IFtQQVRDSF0gQWRk ZWQgYW4gZW50cnkgYWJvdXQgZW1iZWRkZWQgdHJ1c3QgYW5jaG9ycwoKLS0tCiBwb2xpY3kvY2gt c291cmNlLnJzdCB8IDE1ICsrKysrKysrKysrKysrKwogMSBmaWxlIGNoYW5nZWQsIDE1IGluc2Vy dGlvbnMoKykKCmRpZmYgLS1naXQgYS9wb2xpY3kvY2gtc291cmNlLnJzdCBiL3BvbGljeS9jaC1z b3VyY2UucnN0CmluZGV4IDUyMjhlMGIuLjJkYTkzNmUgMTAwNjQ0Ci0tLSBhL3BvbGljeS9jaC1z b3VyY2UucnN0CisrKyBiL3BvbGljeS9jaC1zb3VyY2UucnN0CkBAIC04MTcsNiArODE3LDIxIEBA IGxpYnJhcmllcyBhbHJlYWR5IGluIERlYmlhbiBhbmQgdGhlIGNvbnZlbmllbmNlIGNvcHkgaXM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CisKIC4uIF9z LXJlYWRtZXNvdXJjZToKIAogU291cmNlIHBhY2thZ2UgaGFuZGxpbmc6IGBgZGViaWFuL1JFQURN RS5zb3VyY2VgYAotLSAKMi40Ny4zCgo= --===============8378331575157406436==--
Bug#1154269: Forbid embedded trust anchors
Author: Bastian Blank
Date: Wed, 18 Nov 2026 09:50
Date: Wed, 18 Nov 2026 09:50
31 lines
3068 bytes
3068 bytes
On Wed, Nov 18, 2026 at 10:31:14AM +0100, Enrico Zini wrote: > +.. _s-embeddedtrustanchors: > + > +Embedded trust anchors > +---------------------- > + > +Similarly, Debian maintains packages containing trust anchors (e.g. WebPKI > +certificate authorities, DNSSEC root zone trust anchors, RPKI trust anchor > +locators) which are kept current during the lifetime of a release. Missing comma before "which". Are we actually keeping them uptodate? At least for the ca-certificates package we don't, just look at the versions: | ca-certificates | 20210119 | oldoldstable | source, all | ca-certificates | 20230311+deb12u1 | oldstable | source, all | ca-certificates | 20230311+deb12u1 | oldstable-updates | source, all | ca-certificates | 20250419 | stable | source, all | ca-certificates | 20250419+deb13u1 | proposed-updates | source, all | ca-certificates | 20260816+nmu1 | testing | source, all Also WebPKI needs to refer to CA/Browser Form. And ca-certificates needs to gain a S/MIME section. Bastian -- Is truth not truth for all? -- Natira, "For the World is Hollow and I have Touched the Sky", stardate 5476.4.
Bug#1154269: Forbid embedded trust anchors
Author: Russ Allbery
Date: Wed, 18 Nov 2026 19:10
Date: Wed, 18 Nov 2026 19:10
33 lines
3957 bytes
3957 bytes
John Scott <jscott@posteo.net> writes: > † In my personal opinion, Mozilla's mantra is to "distrust the operating > system". This is why their software, for example, tries to circumvent > system-wide DNS configuration and instead uses DNS-over-HTTPS with a > centralized provider in common configurations, and likewise Mozilla > applications intentionally dishonor system-wide trust anchors by > default. On proprietary operating systems this adversarial, > non-cooperative approach may be pragmatic, but this intentional stance > does not suit The Debian Project's goals and needs well for making a > cohesive operating system. I mostly agree with this and it's certainly true of the Debian-packaged Firefox, but upstream's position is understandable if one is worried about securing the web browser when running on otherwise outdated operating systems. This is the standard conflict over who is faster and more reliable at security updates: the OS vendor or the browser vendor. There is no one answer to that question. Certainly we should make the Debian-packaged applications use the trust store that Debian is maintaining so that we can take responsibility for keeping it up-to-date, and also because updating the trust store is often a lot faster and more straightforward than updating the entire browser package. But I don't think upstream is necessarily doing anything wrong here with their defaults, even on operating systems like Debian. They do have some reason to be worried about users who are running Firefox on some outdated system we no longer support using Flatpak or the like, or about users who simply don't patch their local systems, given that the browser is the most prominent attack surface on a modern-day single-user system. -- Russ Allbery (rra@debian.org) <https://www.eyrie.org/~eagle/>
Bug#1154269: Forbid embedded trust anchors
Author: Ansgar 🙀
Date: Thu, 19 Nov 2026 13:00
Date: Thu, 19 Nov 2026 13:00
58 lines
4074 bytes
4074 bytes
Hi,
On Wed, 2026-11-18 at 10:31 +0100, Enrico Zini wrote:
> +.. _s-embeddedtrustanchors:
> +
> +Embedded trust anchors
> +----------------------
> +
> +Similarly, Debian maintains packages containing trust anchors (e.g. WebPKI
> +certificate authorities, DNSSEC root zone trust anchors, RPKI trust anchor
> +locators) which are kept current during the lifetime of a release.
> +
> +Other packages which use this information must depend on the appropriate data
> +packages and not contain duplicated copies of such trust anchors, as it would
> +increase the effort of managing a local policy or restoring system security or
> +functionality in a timely manner after external events such as an unplanned key
> +revocation or a scheduled rollover.
> +
I don't think this is ready to be added to Policy.
1. It should state which is the reference version. Probably the one in
nss which is the source of the convenience copy for OpenSSL-compatible
software in ca-certificates?
2. It doesn't cover extra data like trust bits, explicitly untrusted
certificates, trusting only certificates issued before a certain day,
expiry dates independent of "notAfter" and similar. There is no format
to share such data over different trust stores yet as far as I can
tell. Removing these is a regression.
3. It is unclear what software like Go should do when building stand-
alone binaries (possibly not even for Linux). Convert the trust store
into the appropriate format when the Go library is built? Have no trust
store and differ from upstream?
4. Given ca-certificates doesn't see regular additions of new CAs, I
feel this would introduce regressions if browsers used this. Indeed
this has happened in the past:
ca-certificates (20230311+deb12u1) bookworm; urgency=medium
.
* Add 2 Sectigo roots that are in active use and causing
interop issues; these roots were included in the Mozilla bundle
version 2.62 (closes: #1095913):
+ Sectigo Public Server Authentication Root E46
+ Sectigo Public Server Authentication Root R46
but it looks like there are still no regular updates. (Maybe further
reduction to CA lifetimes will change that eventually.)
Ansgar
Bug#1154269: Forbid embedded trust anchors
Author: Marco d'Itri
Date: Thu, 19 Nov 2026 15:40
Date: Thu, 19 Nov 2026 15:40
58 lines
4504 bytes
4504 bytes
--WCpb0ku/WrahkzDS Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Nov 19, Ansgar =F0=9F=99=80 <ansgar@debian.org> wrote: >1. It should state which is the reference version. Probably the one in >nss which is the source of the convenience copy for OpenSSL-compatible >software in ca-certificates? The reference version is ca-certificates, which follows the NSS trust=20 store: no changes here. >2. It doesn't cover extra data like trust bits, explicitly untrusted >certificates, trusting only certificates issued before a certain day, >expiry dates independent of "notAfter" and similar. There is no format >to share such data over different trust stores yet as far as I can >tell. Removing these is a regression. Of course browsers have a much more complex trust model than a list of=20 certificates. Since browsers are special in so many other ways I think=20 that it is fine to recognize that they cannot use ca-certificates=20 because they actually use a different trust store. No changes here too. >3. It is unclear what software like Go should do when building stand- >alone binaries (possibly not even for Linux). Convert the trust store >into the appropriate format when the Go library is built? Have no trust >store and differ from upstream? An embedded trust store in a random Go program distributed in Debian=20 would be a policy violation, yes: it should use the system trust store. And I strongly believe that it needs to be a policy violation. I am not familiar with the Go ecosystem, but I see here https://go.dev/src/crypto/x509/root_linux.go that Go programs can use=20 the system trust store. >4. Given ca-certificates doesn't see regular additions of new CAs, I >feel this would introduce regressions if browsers used this. Indeed >this has happened in the past: I do not think that browsers should use ca-certificates, but maybe=20 ca-certificates needs to be better maintained too. --=20 ciao, Marco --WCpb0ku/WrahkzDS Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHQEABYKAB0WIQQnKUXNg20437dCfobLPsM64d7XgQUCav8V9wAKCRDLPsM64d7X gRxdAQCw5GgPlh5skIpJr0TWQZ3e6yIUTODYQpqojmmHPOQ7sgD4vf8lve3HP6mo Z3kjgK0KQJt/MA5p5MMMN680iXn5Dg== =VYaB -----END PGP SIGNATURE----- --WCpb0ku/WrahkzDS--
Bug#1154269: Forbid embedded trust anchors
Author: Helmut Grohne
Date: Tue, 24 Nov 2026 21:00
Date: Tue, 24 Nov 2026 21:00
62 lines
4814 bytes
4814 bytes
On Wed, Nov 18, 2026 at 10:31:14AM +0100, Enrico Zini wrote: > +.. _s-embeddedtrustanchors: > + > +Embedded trust anchors > +---------------------- > + > +Similarly, Debian maintains packages containing trust anchors (e.g. WebPKI > +certificate authorities, DNSSEC root zone trust anchors, RPKI trust anchor > +locators) which are kept current during the lifetime of a release. > + > +Other packages which use this information must depend on the appropriate data > +packages and not contain duplicated copies of such trust anchors, as it would > +increase the effort of managing a local policy or restoring system security or > +functionality in a timely manner after external events such as an unplanned key > +revocation or a scheduled rollover. > + > .. _s-readmesource: The discussion on both d-devel and here suggests that we do not yet have full consensus on the hard stance. People keep raising plausible exceptions to such a rule and/or object to it. What I do perceive consensus about is the rough shape of the problem. Nobody seems to be arguing that the current situation of embedding would be ok. Generally, we already seem to agree that embedding of datasets should be the exception rather than the rule. How about relaxing the proposed requirement slightly? I think earlier drafts used the "should" wording in place of "must" and Sean clarified that in policy "should" means "without good reason". We may consider the "should" wording to be a toothless tiger without much chance of changing the status quo. If we go back to the underlying problem, a key aspect is the difficulty of figuring out what needs updating in case of a revocation. We may still require the remaining exceptions to help us here by requiring them to document exceptions. +Other packages which use this information should depend on the +appropriate data packages and not contain duplicated copies of such +trust anchors, as it would increase the effort of managing a local +policy or restoring system security or functionality in a timely manner +after external events such as an unplanned key revocation or a scheduled +rollover. Exceptions to this rule must be documented via a +machine-readable mechanism such as ``Built-Using``, +``Static-Built-Using`` or the security-tracker's +``data/embedded-code-copies``. I understand that the documentation requirement imposes work (to those that don't fix their embedding), but I note that shifting work from the security team towards maintainers is precisely the goal of this change. I also understand that weakening the rule is not enough to some. There, I note that violating a "should" still is a bug (though not an RC one) and that the perfect is the enemy of the good. Would this slightly relaxed version be easier to gather consensus around? We could also broaden the scope again to require documentation for other cases such as vendored dependencies that did receive a security update in the past, but then we risk debating to death as we scope creep yet another change into this already complex discussion. Helmut
Bug#1154269: Forbid embedded trust anchors
Author: Marco d'Itri
Date: Thu, 26 Nov 2026 01:50
Date: Thu, 26 Nov 2026 01:50
59 lines
4470 bytes
4470 bytes
--daxEr+/UHs3FPIjI Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Nov 21, Helmut Grohne <helmut@subdivi.de> wrote: >The discussion on both d-devel and here suggests that we do not yet have >full consensus on the hard stance. People keep raising plausible >exceptions to such a rule and/or object to it. > >What I do perceive consensus about is the rough shape of the problem. >Nobody seems to be arguing that the current situation of embedding would >be ok. Generally, we already seem to agree that embedding of datasets >should be the exception rather than the rule. >How about relaxing the proposed requirement slightly? I think earlier Categorically: no. Nobody has objected to the goal of this proposal. Some objections have been raised about specific scenarios and I believe=20 that I have addressed them. These other complex cases can be handled=20 with no need to allow a free-for-all for the simple cases, which=20 definitely must use the system trust anchors. >drafts used the "should" wording in place of "must" and Sean clarified >that in policy "should" means "without good reason". We may consider the >"should" wording to be a toothless tiger without much chance of changing >the status quo. My point. Hence I propose this additional text, which I believe clarifies my=20 intent and addresses Ansgar's comments: This requirement does not apply to packages that have in their trust store additional information which is not available in the trust anchor packages, e.g. browsers that apply additional restrictions to some root certificates. I like the idea of also using the Built-Using / Static-Built-Using=20 fields as you described, but right now I am not sure if there are actual=20 packages which would benefit for them, i.e. that can use ca-certificates=20 at build time but not at run time (at least without complex changes). --=20 ciao, Marco --daxEr+/UHs3FPIjI Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQnKUXNg20437dCfobLPsM64d7XgQUCawePqgAKCRDLPsM64d7X gSuAAPwJB3egzD10T65j+GmphtCc9suJvqXQQoAH0WOkcSyPAQEAp1oR+4v1pPC3 2osLfmVA5twtXu2D/v/6ymw1A50x4AQ= =hpyy -----END PGP SIGNATURE----- --daxEr+/UHs3FPIjI--
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