Skip to content

eBPF-based security platform

docs: verify tree publications against the trusted set, not cert.der

Daniel Borkmann762294ff82cf
diff --git a/Documentation/concepts/background/oci.rst b/Documentation/concepts/background/oci.rst
index b35becaf..a6764d13 100644
--- a/Documentation/concepts/background/oci.rst
+++ b/Documentation/concepts/background/oci.rst
@@ -183,9 +183,10 @@ Three kinds of objects carry a signature a target checks:
signature at ``BPF_PROG_LOAD`` against the ``.bpf`` keyring.
- A repository index is verified against the certificate its
repository definition names in the signed config.
-- A tree publication is verified against the runtime image's primary
- certificate, ``keys/cert.der``, and no other. Revoking that key in the
- config does not change this.
+- A tree publication is verified against the active config's trusted
+ set: the runtime image's primary certificate and the certificates the
+ config vouches for, less those it revokes, the primary included. Every
+ member must also be in the ``.bpf`` keyring.
Everything else is content-addressed only: manifests, configs, package
archives and artifact blobs. They are trusted because a signed document
diff --git a/Documentation/concepts/background/pqc.rst b/Documentation/concepts/background/pqc.rst
index 40ff22e3..eebedf4f 100644
--- a/Documentation/concepts/background/pqc.rst
+++ b/Documentation/concepts/background/pqc.rst
@@ -139,7 +139,7 @@ verify either form.
* - Repository indexes
- shirudo, against the repository certificate in the signed config
* - upatch tree publications
- - shirudo, against the runtime image's ``keys/cert.der``
+ - shirudo, against the active config's trusted set
``init``'s pre-flight check refuses a certificate in the trust set it
reads whose key is not ML-DSA-87, and ``shirudo keys vouch`` refuses to
diff --git a/Documentation/concepts/glossary.rst b/Documentation/concepts/glossary.rst
index d9ca5923..c7510b2c 100644
--- a/Documentation/concepts/glossary.rst
+++ b/Documentation/concepts/glossary.rst
@@ -428,7 +428,7 @@ it.
the ordered operations, published with a detached CMS signature
under a tag of the tree repository, ``stable`` by default. ``shirudo
bpm tree append`` publishes the next generation, and targets verify
- it against the runtime image's certificate. See
+ it against the active config's trusted set. See
:doc:`/reference/formats/bpm-formats`.
trusted set
diff --git a/Documentation/concepts/upatches-and-packages.rst b/Documentation/concepts/upatches-and-packages.rst
index 0fa4ca98..dbeae662 100644
--- a/Documentation/concepts/upatches-and-packages.rst
+++ b/Documentation/concepts/upatches-and-packages.rst
@@ -225,7 +225,8 @@ checks it, and what the measurement register records.
- Not recorded
* - Tree publication
- Detached CMS signature
- - ``bpm tree sync``, against the runtime image's certificate
+ - ``bpm tree sync``, against the active config's trusted set, each
+ member also in the ``.bpf`` keyring
- A ``tree_op`` event per applied operation, after the upatch's own
event
diff --git a/Documentation/security/cryptography.rst b/Documentation/security/cryptography.rst
index e29a0e8c..0d1f5f3e 100644
--- a/Documentation/security/cryptography.rst
+++ b/Documentation/security/cryptography.rst
@@ -39,8 +39,8 @@ Signatures
* - Tree publication
- The publication document
- ``shirudo bpm tree append``
- - ``shirudo bpm tree sync``, against the runtime image's primary
- certificate
+ - ``shirudo bpm tree sync``, against the active config's trusted
+ set, each member also in ``.bpf``
* - Config root
- The 64 lowercase hex characters of the dm-verity root hash
- The operator's image tooling, with the config key