Skip to content

eBPF-based security platform

Documentation: group the Operate pages into submenus

Daniel Borkmann87f1028cd115
diff --git a/AGENTS.md b/AGENTS.md
index 7e0d5688..7e2194f2 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -289,7 +289,7 @@ one usually still compiles and passes tests.
- **Kernel + shirudo is the target TCB.** Ask of every change whether it
grows the TCB; the agentless design exists to keep it minimal.
- **Bleeding-edge kernel and toolchain only.** The signed-loader ABI
- described in `Documentation/operate/system-requirements.rst` and
+ described in `Documentation/operate/plan/system-requirements.rst` and
current clang/LLVM are hard prerequisites. Development trees can
expose that ABI before the corresponding release number changes; use a
verified commit, not just `uname`, to identify the tested kernel. No
diff --git a/Documentation/concepts/background/boot.rst b/Documentation/concepts/background/boot.rst
index 47ec36de..ffacb760 100644
--- a/Documentation/concepts/background/boot.rst
+++ b/Documentation/concepts/background/boot.rst
@@ -250,7 +250,7 @@ A remote verifier ties all of this together. ``shirudo attest`` quotes
PCRs 0 to 7, 9 and 11 to 15 by default, and the operator pins the PCR 9
and PCR 11 values the register was bound under with
``--expect-bind-pcr``, computing the PCR 11 value from the UKI. See
-:doc:`/operate/attest`.
+:doc:`/operate/run/attest`.
Limits
------
@@ -278,7 +278,7 @@ Related
- :doc:`tpm` for PCRs, NV indices and the register binding
- :doc:`initrd-dracut` for the initrd shirudo runs from
- :doc:`/internals/boot-flow` for the initrd and root runs of ``init``
-- :doc:`/operate/boot-integration` to set up the boot of a target
+- :doc:`/operate/deploy/boot-integration` to set up the boot of a target
- `TPM2 PCR Measurements Made by systemd
<https://systemd.io/TPM2_PCR_MEASUREMENTS/>`__
- `UAPI.7 Linux TPM PCR Registry
diff --git a/Documentation/concepts/background/initrd-dracut.rst b/Documentation/concepts/background/initrd-dracut.rst
index 3ecc6ce5..f64ac659 100644
--- a/Documentation/concepts/background/initrd-dracut.rst
+++ b/Documentation/concepts/background/initrd-dracut.rst
@@ -127,7 +127,7 @@ the images (``dm_mod``, ``dm_verity``, ``loop``, ``ext4``). Its
``shirudo-gen-initrd`` runs dracut with this module, checks the result
with ``lsinitrd`` and prints the kernel parameters the initrd needs,
``bpf.keyring_unsealed=1 dm_verity.keyring_unsealed=1``. See
-:doc:`/operate/boot-integration` for the procedure.
+:doc:`/operate/deploy/boot-integration` for the procedure.
``shirudo-initrd.service`` runs ``shirudo init`` after
``initrd-root-fs.target`` and ``systemd-pcrphase-initrd.service``, and
diff --git a/Documentation/concepts/background/keyrings.rst b/Documentation/concepts/background/keyrings.rst
index d91d97b4..4a14dc51 100644
--- a/Documentation/concepts/background/keyrings.rst
+++ b/Documentation/concepts/background/keyrings.rst
@@ -73,7 +73,7 @@ name a keyring relative to the caller, such as
directly, so its serial does not have to be looked up first. Kernels
that provide ``KEY_SPEC_DM_VERITY_KEYRING`` (``-10``) name ``.dm-verity``
the same way; shirudo requires it (see
-:doc:`/operate/system-requirements`).
+:doc:`/operate/plan/system-requirements`).
Permissions and possession
--------------------------
@@ -175,7 +175,8 @@ compare the ``.bpf`` serial with that record and refuse ``tampered`` on
a mismatch. ``shirudo status`` compares both keyrings with it and
follows every link, whatever its type: a swapped or missing keyring, a
link ``init`` did not record or a missing config key makes its verdict
-``tampered`` (see :doc:`/operate/read-status`). shirudo's ``lsm/key_permission`` program refuses write, set
+``tampered`` (see :doc:`/operate/run/read-status`). shirudo's
+``lsm/key_permission`` program refuses write, set
attribute and unlink on the recorded keyrings and keys to every task
without runtime authority, and refuses a search through an unpossessed
reference, which is how ``keyctl`` reaches a key by serial. The
@@ -185,7 +186,7 @@ search through a possessed reference and are unaffected.
A signed configuration activated at run time can revoke an enrolled
key, which unlinks it. Nothing adds a key to either keyring until the
next boot, and key changes made locally on the target are refused. See
-:doc:`/operate/keys` and :doc:`/internals/enforcement`.
+:doc:`/operate/maintain/keys` and :doc:`/internals/enforcement`.
Limits
------
diff --git a/Documentation/concepts/background/luajit.rst b/Documentation/concepts/background/luajit.rst
index 4b05df9e..bc2be094 100644
--- a/Documentation/concepts/background/luajit.rst
+++ b/Documentation/concepts/background/luajit.rst
@@ -140,7 +140,7 @@ over OTLP or as JSON, which is what the map export timer does with
running a serializer require runtime authority, so the decoder runs
inside a process that holds it. ``--all`` decodes the maps one after the
other in that one process. :doc:`opentelemetry` explains what happens to
-the records afterwards, and :doc:`/operate/telemetry` sets up the export.
+the records afterwards, and :doc:`/operate/run/telemetry` sets up the export.
Limits
------
diff --git a/Documentation/concepts/background/oci.rst b/Documentation/concepts/background/oci.rst
index 3d7d1ed8..1840c760 100644
--- a/Documentation/concepts/background/oci.rst
+++ b/Documentation/concepts/background/oci.rst
@@ -234,7 +234,7 @@ or a package file you built.
Related
-------
-- :doc:`/operate/deliver-packages`
+- :doc:`/operate/run/deliver-packages`
- :doc:`/upatches/publishing`
- :doc:`/reference/formats/bpm-formats`
- :doc:`/reference/cli/bpm`
diff --git a/Documentation/concepts/background/opentelemetry.rst b/Documentation/concepts/background/opentelemetry.rst
index c0d0d7bd..226861b4 100644
--- a/Documentation/concepts/background/opentelemetry.rst
+++ b/Documentation/concepts/background/opentelemetry.rst
@@ -193,13 +193,13 @@ nothing.
Telemetry is the target's own account of itself. The evidence of what a
target runs is the TPM-signed record that ``shirudo attest`` produces and
``shirudo attest verify`` checks on the operator host, described in
-:doc:`/operate/attest`. The threat model covers exported telemetry in
+:doc:`/operate/run/attest`. The threat model covers exported telemetry in
:doc:`/security/threat-model`.
Related
-------
-- :doc:`/operate/telemetry` to set up export on a target
+- :doc:`/operate/run/telemetry` to set up export on a target
- :doc:`/reference/formats/otlp` for the exported documents
- :doc:`/reference/systemd-units` for the timers and services
- :doc:`luajit` for the decoder sandbox
diff --git a/Documentation/concepts/background/pqc.rst b/Documentation/concepts/background/pqc.rst
index 08ea3071..c050bff6 100644
--- a/Documentation/concepts/background/pqc.rst
+++ b/Documentation/concepts/background/pqc.rst
@@ -232,5 +232,5 @@ Related
- :doc:`dm-verity`
- :doc:`tpm`
- :doc:`oci`
-- :doc:`/operate/keys`
+- :doc:`/operate/maintain/keys`
- :doc:`/reference/formats/configuration`
diff --git a/Documentation/concepts/background/tpm.rst b/Documentation/concepts/background/tpm.rst
index f3606110..ba9773d5 100644
--- a/Documentation/concepts/background/tpm.rst
+++ b/Documentation/concepts/background/tpm.rst
@@ -15,7 +15,7 @@ the boot PCRs, so that an :term:`operator` can cryptographically verify the
target's state.
This page explains how shirudo uses the TPM. The event formats and the
:term:`eventlog` are in :doc:`/internals/measurement-register`, the
-verification procedure in :doc:`/operate/attest`.
+verification procedure in :doc:`/operate/run/attest`.
Every target needs a TPM 2.0 with an active SHA-256 PCR bank. There is
no unmeasured mode. The :term:`operator host` does not use a TPM.
@@ -412,7 +412,7 @@ of the document is the :term:`target`'s own account, which ``attest verify``
checks against the signed values. In particular, it recomputes the
register's Name from the PCR values and the writer key that the
:term:`init record` names. A register bound under other PCR values or with
-another writer key has another Name and fails. :doc:`/operate/attest` lists
+another writer key has another Name and fails. :doc:`/operate/run/attest` lists
the checks and the options that pin each value.
Credential activation
@@ -526,7 +526,7 @@ Related
- :doc:`boot` for measured boot, PCR 11 phases and NvPCRs
- :doc:`/internals/measurement-register` for events and the :term:`eventlog`
-- :doc:`/operate/attest` to attest a :term:`target`
+- :doc:`/operate/run/attest` to attest a :term:`target`
- :doc:`/security/threat-model` for the residual risks
- `TPM 2.0 Library specification
<https://trustedcomputinggroup.org/resource/tpm-library-specification/>`__
diff --git a/Documentation/concepts/comparisons.rst b/Documentation/concepts/comparisons.rst
index 01d449d8..2e69a7f5 100644
--- a/Documentation/concepts/comparisons.rst
+++ b/Documentation/concepts/comparisons.rst
@@ -41,7 +41,7 @@ error injection, and it can observe or filter
(:doc:`/upatches/attach-kinds`). In exchange, the BPF verifier checks
every program, CO-RE lets one artifact load on more than one kernel
build, and each load and unload is measured. A target can run both:
-shirudo does not gate module loading (:doc:`/operate/interoperability`).
+shirudo does not gate module loading (:doc:`/operate/plan/interoperability`).
Used together, an upatch blocks a vulnerable path until a live patch or a
fixed kernel is in place, and a signed unload directive removes it then.
@@ -208,7 +208,7 @@ Related
- :doc:`/concepts/operator-and-target`
- :doc:`/concepts/upatches-and-packages`
-- :doc:`/operate/interoperability`
+- :doc:`/operate/plan/interoperability`
- :doc:`/security/threat-model`
- `Livepatch <https://docs.kernel.org/livepatch/livepatch.html>`__ and
`Integrity Policy Enforcement
diff --git a/Documentation/concepts/glossary.rst b/Documentation/concepts/glossary.rst
index 6e4d6c67..0c90394d 100644
--- a/Documentation/concepts/glossary.rst
+++ b/Documentation/concepts/glossary.rst
@@ -94,7 +94,7 @@ it.
attest --challenge=<path>`` only when both keys are in that TPM, and
``shirudo attest verify --expect-credential`` checks the recovered
value. It shows that the attestation key sits in the TPM the
- endorsement key identifies. See :doc:`/operate/attest`.
+ endorsement key identifies. See :doc:`/operate/run/attest`.
config image
A dm-verity image, mounted read-only and ``noexec`` at
@@ -149,7 +149,7 @@ it.
register, both signed by the attestation key over the nonce,
together with the attestation and endorsement keys, this boot's
eventlog records and the boot measurement logs. ``shirudo attest
- verify`` checks it on the operator host. See :doc:`/operate/attest`.
+ verify`` checks it on the operator host. See :doc:`/operate/run/attest`.
failure category
A name for why an operation failed, such as ``tampered``,
@@ -185,7 +185,7 @@ it.
--otel --include-system`` about every five seconds, which sends one
when an OTLP endpoint is configured. A missing keepalive tells a
collector that a target stopped reporting; a present one is still
- the target's own account. See :doc:`/operate/telemetry`.
+ the target's own account. See :doc:`/operate/run/telemetry`.
load artifact
A ``.upatch`` file that installs an upatch: a header with the name
@@ -201,7 +201,7 @@ it.
every five seconds, which reads the maps of every loaded upatch,
runs their serializers and decoders, and sends the records to the
destinations that the config image's ``map_export`` settings name.
- See :doc:`/operate/telemetry`.
+ See :doc:`/operate/run/telemetry`.
measurement register
The TPM NV extend index, ``0x01818E00`` by default, that records
@@ -295,7 +295,7 @@ it.
signs its index. On a target, repositories come from the config
image's ``etc/shirudo/bpm/registries.d/``, and ``shirudo bpm install
<repository>/<package>`` installs from one. See
- :doc:`/operate/deliver-packages`.
+ :doc:`/operate/run/deliver-packages`.
revocation
Withdrawing trust from a signing key through a signed config image
@@ -303,7 +303,8 @@ it.
``shirudo image update`` activates such a config, shirudo unlinks the
key from the ``.bpf`` keyring, measures a key revocation event, and
unloads and purges every upatch the key signed. ``shirudo keys
- revoke`` refuses and points to this path. See :doc:`/operate/keys`.
+ revoke`` refuses and points to this path. See
+ :doc:`/operate/maintain/keys`.
runtime authority
The right that a task mark grants: to run the ``bpf()`` commands,
@@ -424,7 +425,7 @@ it.
the config image's ``keys/trusted/`` whose vouch verifies under a
member, less those the config revokes. It holds at most 16
certificates, and the ``init`` event covers its digest. See
- :doc:`/operate/keys`.
+ :doc:`/operate/maintain/keys`.
unload directive
A signed ``.upatch`` with the unload flag set that removes one
@@ -452,7 +453,7 @@ it.
overall status of ``ok``, ``degraded``, ``reboot-pending``,
``init-pending``, ``lsm-off`` or ``tampered``, and ``OK``, ``WARN``
or ``ALERT`` for each condition. ``shirudo attest verify`` ends with
- ``verdict: ok`` or ``verdict: FAIL``. See :doc:`/operate/read-status`.
+ ``verdict: ok`` or ``verdict: FAIL``. See :doc:`/operate/run/read-status`.
vouch
A detached CMS signature by a trusted key over the prefix
@@ -461,4 +462,4 @@ it.
beside that certificate under ``keys/trusted/``, which admits the
certificate to the trusted set at the next boot. A vouch carries no
date, so it stays valid after its signer is revoked. See
- :doc:`/operate/keys`.
+ :doc:`/operate/maintain/keys`.
diff --git a/Documentation/concepts/measurement-register.rst b/Documentation/concepts/measurement-register.rst
index 6ba4314c..b7b83c07 100644
--- a/Documentation/concepts/measurement-register.rst
+++ b/Documentation/concepts/measurement-register.rst
@@ -190,7 +190,7 @@ TPM:
- with the certificates and artifacts, that the ``init`` event covers
them, and with an expected value, that the register equals it.
-:doc:`/operate/attest` shows the procedure.
+:doc:`/operate/run/attest` shows the procedure.
What attestation proves
~~~~~~~~~~~~~~~~~~~~~~~
@@ -241,7 +241,7 @@ Related
- :doc:`/internals/measurement-register` for the policy, the binding and
the evidence format
-- :doc:`/operate/attest` for enrolling and verifying targets
+- :doc:`/operate/run/attest` for enrolling and verifying targets
- :doc:`/security/threat-model` for the residual risks of the
measurement
- :doc:`/concepts/background/boot` for PCRs 9 and 11 in a measured boot
diff --git a/Documentation/concepts/operator-and-target.rst b/Documentation/concepts/operator-and-target.rst
index 5b995e89..7c50fab3 100644
--- a/Documentation/concepts/operator-and-target.rst
+++ b/Documentation/concepts/operator-and-target.rst
@@ -45,7 +45,7 @@ config image roots and vouches for further keys, all with ML-DSA-87.
The operator also verifies. ``shirudo attest verify``, ``shirudo attest
predict`` and ``shirudo attest challenge`` work offline on the operator
host, from files. The operator never opens a TPM and never touches a
-kernel keyring. :doc:`/operate/keys` covers the custody of the key.
+kernel keyring. :doc:`/operate/maintain/keys` covers the custody of the key.
shirudo-build helper
~~~~~~~~~~~~~~~~~~~~
@@ -212,7 +212,7 @@ signature verifies against its trusted set, including an old one.
Signers are added only at boot. A live config activation can revoke a
key, but a new signer enters the ``.bpf`` keyring only when ``init``
-enrolls the trusted set. :doc:`/operate/keys` describes what can change
+enrolls the trusted set. :doc:`/operate/maintain/keys` describes what can change
when.
Related
diff --git a/Documentation/concepts/upatches-and-packages.rst b/Documentation/concepts/upatches-and-packages.rst
index 1c08aa8e..88d8e335 100644
--- a/Documentation/concepts/upatches-and-packages.rst
+++ b/Documentation/concepts/upatches-and-packages.rst
@@ -158,7 +158,7 @@ choose versions from that copy, and check the manifest and package digests
they download against it before unpacking. ``upgrade`` removes the
installed version's upatches through their directives, loads the new
version's upatches, and restores the old set when a load fails.
-:doc:`/operate/deliver-packages` shows the commands.
+:doc:`/operate/run/deliver-packages` shows the commands.
upatch tree
-----------
diff --git a/Documentation/contribute/develop-locally.rst b/Documentation/contribute/develop-locally.rst
index 8409f5e9..6caf749d 100644
--- a/Documentation/contribute/develop-locally.rst
+++ b/Documentation/contribute/develop-locally.rst
@@ -112,7 +112,7 @@ Start the registry and the collector
Both containers speak plain HTTP, which is safe only on your own
host. A production target speaks HTTPS with TLS 1.3 and a hybrid
- ML-KEM key exchange, see :doc:`/operate/telemetry`.
+ ML-KEM key exchange, see :doc:`/operate/run/telemetry`.
Boot the target
---------------
@@ -156,7 +156,7 @@ Connect the target to the registry and the collector
A target reads its repositories and its export destination from the
signed config image, not from files on its root file system (see
-:doc:`/operate/deliver-packages`). Build a config that adds both, starting
+:doc:`/operate/run/deliver-packages`). Build a config that adds both, starting
from the config the target runs, and activate it.
1. On the target, copy the running config into the VM's result share:
@@ -560,6 +560,6 @@ Next steps
- :doc:`/upatches/decoders` for decoders and metrics
- :doc:`/upatches/maps-arenas-serializers` for upatches that keep
records
-- :doc:`/operate/deliver-packages` and :doc:`/operate/telemetry` for the
+- :doc:`/operate/run/deliver-packages` and :doc:`/operate/run/telemetry` for the
production setup this page reproduces
- :doc:`testing` to write and run tests
diff --git a/Documentation/contribute/support.rst b/Documentation/contribute/support.rst
index bb208f34..ff809864 100644
--- a/Documentation/contribute/support.rst
+++ b/Documentation/contribute/support.rst
@@ -24,7 +24,8 @@ https://github.com/shirudo-dev/shirudo.
- A GitHub issue that describes the problem the feature would
solve.
* - Bug reports
- - A GitHub issue with what :doc:`/operate/bug-report` asks for.
+ - A GitHub issue with what
+ :doc:`/operate/troubleshoot/bug-report` asks for.
* - Security problems
- Never a public issue. Report them privately, as
:doc:`/security/reporting` describes.
diff --git a/Documentation/contribute/test-coverage.rst b/Documentation/contribute/test-coverage.rst
index dc4a394a..85f1a2e7 100644
--- a/Documentation/contribute/test-coverage.rst
+++ b/Documentation/contribute/test-coverage.rst
@@ -739,7 +739,7 @@ Commands and procedures
- The ``kernel-cve`` package. Its Beefile is a seed of the ``beefile``
fuzz target only.
- The recovery, upgrade and decommissioning procedures of
- :doc:`/operate/backup-recovery` and :doc:`/operate/upgrade`.
+ :doc:`/operate/maintain/backup-recovery` and :doc:`/operate/maintain/upgrade`.
- Exit statuses. ``t8001``, ``t4003`` and ``t4102`` check a few, but no
test checks the exit status of every command. No test names the
failure categories ``already_unloaded``, ``attach_target_missing``,
diff --git a/Documentation/internals/boot-flow.rst b/Documentation/internals/boot-flow.rst
index eee5da8c..c1dee261 100644
--- a/Documentation/internals/boot-flow.rst
+++ b/Documentation/internals/boot-flow.rst
@@ -216,7 +216,7 @@ Related
- :doc:`/concepts/background/initrd-dracut` and
:doc:`/concepts/background/boot` for the boot chain
-- :doc:`/operate/boot-integration` for setting up the initrd and the
+- :doc:`/operate/deploy/boot-integration` for setting up the initrd and the
UKI
- :doc:`config-images` for the images and the activation journal
- :doc:`/security/threat-model` for what a failed or skipped ``init``
diff --git a/Documentation/internals/config-images.rst b/Documentation/internals/config-images.rst
index 29df1f6c..53af4181 100644
--- a/Documentation/internals/config-images.rst
+++ b/Documentation/internals/config-images.rst
@@ -280,7 +280,7 @@ selection exists. And it enrolls the config verification certificate of
the runtime image before it maps that config. A reboot therefore does not
pick up a config that was never activated, and a runtime image with
another config verification certificate needs a selected config that
-certificate verifies. :doc:`/operate/keys` covers key changes.
+certificate verifies. :doc:`/operate/maintain/keys` covers key changes.
Limits
------
@@ -302,7 +302,7 @@ Related
-------
- :doc:`/concepts/background/dm-verity` for the mechanism
-- :doc:`/operate/boot-integration` for building the images and the
+- :doc:`/operate/deploy/boot-integration` for building the images and the
initrd
- :doc:`/reference/cli/image` for the ``shirudo image`` commands
- :doc:`/reference/formats/configuration` for the settings
diff --git a/Documentation/internals/measurement-register.rst b/Documentation/internals/measurement-register.rst
index a39ca192..f738e747 100644
--- a/Documentation/internals/measurement-register.rst
+++ b/Documentation/internals/measurement-register.rst
@@ -438,5 +438,5 @@ Related
- :doc:`/concepts/background/tpm` for TPM PCRs, NV indices and
sessions
- :doc:`/concepts/measurement-register` for the concept
-- :doc:`/operate/attest` for attesting a target
+- :doc:`/operate/run/attest` for attesting a target
- :doc:`/reference/formats/eventlog` for the eventlog format
diff --git a/Documentation/operate/boot-integration.rst b/Documentation/operate/deploy/boot-integration.rst
similarity index 93%
rename from Documentation/operate/boot-integration.rst
rename to Documentation/operate/deploy/boot-integration.rst
index e58e42df..9f2ef4cd 100644
--- a/Documentation/operate/boot-integration.rst
+++ b/Documentation/operate/deploy/boot-integration.rst
@@ -23,8 +23,8 @@ signed UKI that carries the initrd and the kernel command line.
Before you begin
----------------
-- A target that meets :doc:`/operate/system-requirements`, with the
- kernel options and command line from :doc:`/operate/hardening`
+- A target that meets :doc:`/operate/plan/system-requirements`, with the
+ kernel options and command line from :doc:`/operate/plan/hardening`
planned.
- The target package installed on the target. It installs the static
``shirudo`` binary, the systemd units, ``shirudo-gen-initrd`` and the
@@ -39,7 +39,7 @@ Before you begin
target package. Use the same build on the target and in the runtime
image.
- The BPF signing certificate and the config signing key, created as
- described in :doc:`/operate/keys`. They may be the same key.
+ described in :doc:`/operate/maintain/keys`. They may be the same key.
- Tooling to build and sign a UKI for Secure Boot, for example systemd's
``ukify``.
@@ -109,9 +109,10 @@ and accepts only ``eventlog.max_bytes`` and ``map_export.*`` keys.
shirudo refuses a config image whose file holds any other key, a line
longer than 1023 bytes, or a line that is not a comment and has no
``=``. Repository definitions, the upatch tree subscription, node
- labels and further trusted keys go in the same tree. :doc:`/operate/deliver-packages` and
- :doc:`/operate/keys` describe them. The tree holds only regular files
- and directories, at most 65536 entries and 32 levels deep.
+ labels and further trusted keys go in the same tree.
+ :doc:`/operate/run/deliver-packages` and :doc:`/operate/maintain/keys`
+ describe them. The tree holds only regular files and directories, at
+ most 65536 entries and 32 levels deep.
3. Build and sign the image:
@@ -155,8 +156,8 @@ Build the runtime image
shown. ``config.pcr`` is the TPM PCR that records config activations:
0 to 15, except 9 and 11. Choose a PCR that nothing extends after the
initrd has run, because a later extension makes every command but
- ``status`` refuse until the next reboot. :doc:`/operate/hardening` discusses
- the choice. The test VM uses 14. A target needs a ``device:`` TCTI.
+ ``status`` refuse until the next reboot. :doc:`/operate/plan/hardening`
+ discusses the choice. The test VM uses 14. A target needs a ``device:`` TCTI.
2. Build the runtime image and the drop-in for ``shirudo.service``:
@@ -369,7 +370,7 @@ Build and sign the UKI
Without the parameters the kernel seals both keyrings empty at boot,
and init fails. The command line also needs ``bpf`` in the ``lsm=``
list, unless ``CONFIG_LSM`` has it already, and the settings from
- :doc:`/operate/hardening`.
+ :doc:`/operate/plan/hardening`.
3. Install the UKI on the target's EFI system partition and make it the
default boot entry.
@@ -452,7 +453,7 @@ Boot and verify
Check for ``Mode: production``, ``Status: ok``, five ``OK``
conditions and ``Bound in: initrd``. ``ConfigActive`` names the first
- 12 hex digits of the active config root. :doc:`/operate/read-status`
+ 12 hex digits of the active config root. :doc:`/operate/run/read-status`
explains every section.
3. Check the config activation:
@@ -477,14 +478,14 @@ Boot and verify
PCR 9 anchored, <n> upatches in set)`` and
``init: complete (LSM active, writable state sealed)``. The root run
logs ``tpm: register already bound this boot; chain unchanged`` and
- completes. :doc:`/operate/initialize` describes both runs and what to
+ completes. :doc:`/operate/deploy/initialize` describes both runs and what to
do when one fails.
Next steps
----------
-- :doc:`/operate/initialize` to check init after every boot and handle
+- :doc:`/operate/deploy/initialize` to check init after every boot and handle
its failures
-- :doc:`/operate/attest` to enroll the target's attestation key
-- :doc:`/operate/deliver-packages` to deliver upatches from a registry
-- :doc:`/operate/upgrade` to replace the runtime image or the kernel
+- :doc:`/operate/run/attest` to enroll the target's attestation key
+- :doc:`/operate/run/deliver-packages` to deliver upatches from a registry
+- :doc:`/operate/maintain/upgrade` to replace the runtime image or the kernel
diff --git a/Documentation/operate/deployment-checklist.rst b/Documentation/operate/deploy/deployment-checklist.rst
similarity index 79%
rename from Documentation/operate/deployment-checklist.rst
rename to Documentation/operate/deploy/deployment-checklist.rst
index 51c80478..3eb51519 100644
--- a/Documentation/operate/deployment-checklist.rst
+++ b/Documentation/operate/deploy/deployment-checklist.rst
@@ -25,19 +25,19 @@ Plan
- Hardware with a TPM 2.0, a kernel with the signed BPF loader
interface, the BPF LSM and the dm-verity keyring, and systemd and
dracut in the initrd.
- - :doc:`/operate/system-requirements`
+ - :doc:`/operate/plan/system-requirements`
* - 2
- Kernel configuration and command line chosen from the hardening
checklist, including the PCR for config measurements.
- - :doc:`/operate/hardening`
+ - :doc:`/operate/plan/hardening`
* - 3
- Operator host with the operator package, ``veritysetup`` and
``mkfs.ext4``. It never runs as a target.
- - :doc:`/operate/system-requirements`
+ - :doc:`/operate/plan/system-requirements`
* - 4
- BPF signing key and config signing key created, with their
custody decided.
- - :doc:`/operate/keys`
+ - :doc:`/operate/maintain/keys`
Build on the operator host
--------------------------
@@ -53,30 +53,30 @@ Build on the operator host
- Initial config image built and signed. Its
``etc/shirudo/shirudo.conf`` holds only ``eventlog.max_bytes`` and
``map_export.*`` keys.
- - :doc:`/operate/boot-integration`
+ - :doc:`/operate/deploy/boot-integration`
* - 6
- Repository definitions, the upatch tree subscription and node
labels placed in the config image.
- - :doc:`/operate/deliver-packages`
+ - :doc:`/operate/run/deliver-packages`
* - 7
- Collector endpoint in the config image's ``map_export.*`` keys.
- - :doc:`/operate/telemetry`
+ - :doc:`/operate/run/telemetry`
* - 8
- Runtime bootstrap file written with ``config.image``,
``config.verification_key``, ``config.pcr`` and ``tpm.tcti``.
- - :doc:`/operate/boot-integration`
+ - :doc:`/operate/deploy/boot-integration`
* - 9
- Runtime image built with the static target binary, the BPF
certificate and the config certificate. Its root hash and the
``shirudo.service`` drop-in kept.
- - :doc:`/operate/boot-integration`
+ - :doc:`/operate/deploy/boot-integration`
* - 10
- Version ID of the target binary recorded.
- - :doc:`/operate/upgrade`
+ - :doc:`/operate/maintain/upgrade`
* - 11
- UKI bootstrap file written with ``runtime.image`` and
``runtime.root_hash``.
- - :doc:`/operate/boot-integration`
+ - :doc:`/operate/deploy/boot-integration`
Prepare the target
------------------
@@ -90,11 +90,11 @@ Prepare the target
- Page
* - 12
- Target package and dracut installed.
- - :doc:`/operate/boot-integration`
+ - :doc:`/operate/deploy/boot-integration`
* - 13
- Runtime and config images placed in ``/var/lib/shirudo/images``
before the first boot with enforcement.
- - :doc:`/operate/boot-integration`
+ - :doc:`/operate/deploy/boot-integration`
* - 14
- Drop-ins installed for ``shirudo.service``,
``shirudo-keepalive.service``, ``shirudo-map-export.service``,
@@ -104,16 +104,16 @@ Prepare the target
* - 15
- Environment files ``/etc/shirudo/map-export.env`` and
``/etc/shirudo/bpm/environment`` reviewed.
- - :doc:`/operate/hardening`
+ - :doc:`/operate/plan/hardening`
* - 16
- Initrd generated with ``shirudo-gen-initrd --bootstrap-conf`` and
passed ``shirudo-gen-initrd --check``.
- - :doc:`/operate/boot-integration`
+ - :doc:`/operate/deploy/boot-integration`
* - 17
- UKI built with ``bpf.keyring_unsealed=1`` and
``dm_verity.keyring_unsealed=1`` on its command line, signed for
Secure Boot and installed as the default entry.
- - :doc:`/operate/boot-integration`
+ - :doc:`/operate/deploy/boot-integration`
Boot and enroll
---------------
@@ -128,19 +128,19 @@ Boot and enroll
* - 18
- First boot completed: ``status`` reports ``ok``, ``Bound in:
initrd``, and ``image status`` reports no pending activation.
- - :doc:`/operate/initialize`
+ - :doc:`/operate/deploy/initialize`
* - 19
- Attestation key name recorded and the target's endorsement key
checked with a credential challenge.
- - :doc:`/operate/attest`
+ - :doc:`/operate/run/attest`
* - 20
- Expected PCR 9 and PCR 11 values at binding, the expected register
and the approved config root recorded for the verifier.
- - :doc:`/operate/attest`
+ - :doc:`/operate/run/attest`
* - 21
- First packages installed and their delivery through the timers
observed.
- - :doc:`/operate/deliver-packages`
+ - :doc:`/operate/run/deliver-packages`
Run
---
@@ -155,19 +155,19 @@ Run
* - 22
- Alerts on the ``status`` field of ``status --json``, on tamper
counters and on a missing keepalive, not on the exit status.
- - :doc:`/operate/read-status`, :doc:`/operate/telemetry`
+ - :doc:`/operate/run/read-status`, :doc:`/operate/run/telemetry`
* - 23
- Attestation scheduled with a fresh nonce and the verifier's
required flags.
- - :doc:`/operate/attest`
+ - :doc:`/operate/run/attest`
* - 24
- Backup of ``/var/lib/shirudo`` and of the operator's build inputs.
- - :doc:`/operate/backup-recovery`
+ - :doc:`/operate/maintain/backup-recovery`
* - 25
- Incident procedure for a ``tampered`` target agreed with the
security team.
- - :doc:`/operate/incident-tampered`
+ - :doc:`/operate/troubleshoot/incident-tampered`
* - 26
- Upgrade procedure for shirudo and the kernel tried on a canary
target, with the previous UKI kept as a boot entry.
- - :doc:`/operate/upgrade`
+ - :doc:`/operate/maintain/upgrade`
diff --git a/Documentation/operate/deploy/index.rst b/Documentation/operate/deploy/index.rst
new file mode 100644
index 00000000..1495797b
--- /dev/null
+++ b/Documentation/operate/deploy/index.rst
@@ -0,0 +1,18 @@
+..
+ SPDX-License-Identifier: BSD-2-Clause
+ Copyright (c) 2026 Authors of shirudo
+
+Deploy
+======
+
+Bring a target from a built kernel to an enforcing first boot. The
+deployment checklist lists every step, boot integration puts shirudo
+into the initrd of a signed unified kernel image, and the last page
+checks ``init`` after every boot.
+
+.. toctree::
+ :titlesonly:
+
+ deployment-checklist
+ boot-integration
+ initialize
diff --git a/Documentation/operate/initialize.rst b/Documentation/operate/deploy/initialize.rst
similarity index 95%
rename from Documentation/operate/initialize.rst
rename to Documentation/operate/deploy/initialize.rst
index 664f9972..4065709c 100644
--- a/Documentation/operate/initialize.rst
+++ b/Documentation/operate/deploy/initialize.rst
@@ -17,7 +17,7 @@ worked, and what to do when it did not.
Before you begin
----------------
-- A target set up as described in :doc:`/operate/boot-integration`.
+- A target set up as described in :doc:`/operate/deploy/boot-integration`.
- A root shell on the target. On the target, ``shirudo`` means the
runtime image's binary, ``/run/shirudo/runtime/usr/bin/shirudo``. See
:ref:`runtime-invocation`.
@@ -100,7 +100,7 @@ Check that init worked
found them. The output comes from the test VM, which boots the kernel
and initrd without a UKI, so both are zero. A target that boots a
measured UKI shows its own values, and a verifier pins them as
- :doc:`/operate/attest` describes.
+ :doc:`/operate/run/attest` describes.
2. Check the fields a script reads:
@@ -206,7 +206,8 @@ not run at all and nothing reports an error.
``status`` reports a config condition that does not belong to
this boot.
- Keep the journal, fix the cause and reboot. When the journal does
- not explain the state, follow :doc:`/operate/incident-tampered`.
+ not explain the state, follow
+ :doc:`/operate/troubleshoot/incident-tampered`.
* - After the config BOOT event: restoring upatches, binding the
register or completing the boot.
- Enforcement is on and the config activation stays pending.
@@ -261,7 +262,7 @@ not advanced`` after one of these lines:
- The TPM refused the authorization, usually because the owner
hierarchy has a password that shirudo does not have. Set
``tpm.owner_auth`` in both bootstrap files as
- :doc:`/operate/boot-integration` describes. The environment
+ :doc:`/operate/deploy/boot-integration` describes. The environment
variable that the message names is refused on a target.
* - ``tpm: register extend failed -- chain NOT advanced while LSM
active (tpm_error); operator must reconcile``
@@ -271,7 +272,7 @@ not advanced`` after one of these lines:
refusing to bind another before the next TPM reset (tampered)``
- Something removed or replaced the register after init bound it
this boot. Handle it as an incident:
- :doc:`/operate/incident-tampered`.
+ :doc:`/operate/troubleshoot/incident-tampered`.
The threat model lists the boot paths that leave a target unprotected and
what detects them: :doc:`/security/threat-model`.
@@ -279,7 +280,7 @@ what detects them: :doc:`/security/threat-model`.
Next steps
----------
-- :doc:`/operate/read-status` for every section and verdict of the
+- :doc:`/operate/run/read-status` for every section and verdict of the
status report
-- :doc:`/operate/troubleshooting` for refusals after init
-- :doc:`/operate/attest` to prove the boot to a remote verifier
+- :doc:`/operate/troubleshoot/troubleshooting` for refusals after init
+- :doc:`/operate/run/attest` to prove the boot to a remote verifier
diff --git a/Documentation/operate/index.rst b/Documentation/operate/index.rst
index 971065ac..d9c60939 100644
--- a/Documentation/operate/index.rst
+++ b/Documentation/operate/index.rst
@@ -7,34 +7,33 @@ Operate
These pages are for the engineers who deploy, run and troubleshoot
shirudo targets in production. Start with the
-:doc:`/operate/deployment-checklist`, which lists every step from the
-operator keys to a verified first boot and links the page that does each
-one.
+:doc:`/operate/deploy/deployment-checklist`, which lists every step from
+the operator keys to a verified first boot and links the page that does
+each one.
-On a running target, :doc:`/operate/read-status` tells you what the
-target reports about itself, and :doc:`/operate/attest` gets the same
+On a running target, :doc:`/operate/run/read-status` tells you what the
+target reports about itself, and :doc:`/operate/run/attest` gets the same
answer signed by the target's TPM. When something fails, start from the
-message in :doc:`/operate/troubleshooting`. A ``tampered`` refusal or
-verdict is an incident: follow :doc:`/operate/incident-tampered`.
+message in :doc:`/operate/troubleshoot/troubleshooting`. A ``tampered``
+refusal or verdict is an incident: follow
+:doc:`/operate/troubleshoot/incident-tampered`.
+
+- :doc:`plan/index`: what a target needs and costs, how shirudo scales,
+ what runs beside it and how to harden it
+- :doc:`deploy/index`: from the checklist through boot integration to an
+ initialized target
+- :doc:`run/index`: deliver packages, read status, export telemetry and
+ attest targets
+- :doc:`maintain/index`: signing keys, upgrades, backup, recovery and
+ decommissioning
+- :doc:`troubleshoot/index`: failures by symptom, tampered targets and bug
+ reports
.. toctree::
- :titlesonly:
+ :hidden:
- system-requirements
- overhead
- scalability
- deployment-checklist
- boot-integration
- initialize
- deliver-packages
- keys
- attest
- read-status
- telemetry
- upgrade
- backup-recovery
- troubleshooting
- bug-report
- incident-tampered
- hardening
- interoperability
+ plan/index
+ deploy/index
+ run/index
+ maintain/index
+ troubleshoot/index
diff --git a/Documentation/operate/backup-recovery.rst b/Documentation/operate/maintain/backup-recovery.rst
similarity index 92%
rename from Documentation/operate/backup-recovery.rst
rename to Documentation/operate/maintain/backup-recovery.rst
index 2e2deaf2..634f51c6 100644
--- a/Documentation/operate/backup-recovery.rst
+++ b/Documentation/operate/maintain/backup-recovery.rst
@@ -53,10 +53,10 @@ What to back up
* - ``/etc/systemd/system/shirudo*.d/``
- The runtime drop-ins of the shirudo units.
* - On the operator host
- - The signing keys (:doc:`keys`), the image source directories and
- bootstrap files, the UKI build inputs, and each target's
+ - The signing keys (:doc:`/operate/maintain/keys`), the image source
+ directories and bootstrap files, the UKI build inputs, and each target's
attestation key name, endorsement key pin and expected values
- (:doc:`attest`).
+ (:doc:`/operate/run/attest`).
Back up a target
~~~~~~~~~~~~~~~~
@@ -89,8 +89,10 @@ shirudo has no restore command, and while enforcement is up the seal
refuses root's writes into ``/var/lib/shirudo``. You cannot restore files
into a running target. Rebuild a lost target instead:
-#. Provision it again (:doc:`boot-integration`, :doc:`initialize`).
-#. Install its packages from the registry (:doc:`deliver-packages`).
+#. Provision it again (:doc:`/operate/deploy/boot-integration`,
+ :doc:`/operate/deploy/initialize`).
+#. Install its packages from the registry
+ (:doc:`/operate/run/deliver-packages`).
#. Keep the old eventlog, journal and activation journal with your
records as the history of the old installation.
@@ -127,8 +129,8 @@ that takes a few thousand boots with no other events, and fewer with
loads and tree operations.
Watch ``assets.eventlog_bytes`` in ``shirudo status --json`` or the
-keepalive (:doc:`telemetry`), and decommission and reprovision a target
-well before it reaches the limit.
+keepalive (:doc:`/operate/run/telemetry`), and decommission and reprovision a
+target well before it reaches the limit.
Nothing removes old bundles from ``/var/lib/shirudo/images`` either.
Each config you activate stays there under its root hash, so size config
@@ -204,8 +206,8 @@ A second ``init`` in the same boot does not help. It stops with:
target# journalctl -b -u shirudo-initrd.service -u shirudo.service
#. Fix the cause. A cause in the boot inputs needs new boot inputs
- (:doc:`boot-integration`). An archived upatch that fails to load
- needs the next procedure.
+ (:doc:`/operate/deploy/boot-integration`). An archived upatch that fails to
+ load needs the next procedure.
#. Reboot.
@@ -244,7 +246,7 @@ What works is to remove the upatch from a boot on which it loads:
If no kernel loads the upatch, shirudo offers no recovery in place.
Decommission the target and provision it again. To avoid the state,
make sure every archived upatch loads on a new kernel before you reboot
-into it (:doc:`upgrade`).
+into it (:doc:`/operate/maintain/upgrade`).
TPM reset or restarted without a reboot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -266,8 +268,9 @@ If you know the TPM was reset, reboot. Do not run ``init`` again: after a
TPM reset it binds the register from the root file system, which a
verifier that pins PCR 11 rejects, and after a restart alone it refuses
to bind and leaves a config activation pending. If you do not know why
-the counts changed, handle the target as in :doc:`incident-tampered`
-before you reboot. :doc:`hardening` covers turning hibernation off.
+the counts changed, handle the target as in
+:doc:`/operate/troubleshoot/incident-tampered` before you reboot.
+:doc:`/operate/plan/hardening` covers turning hibernation off.
Decommission a target
---------------------
@@ -358,7 +361,9 @@ tpm2-tools.
Next steps
----------
-- :doc:`troubleshooting` for messages by symptom
-- :doc:`incident-tampered` when ``status`` reports ``tampered``
-- :doc:`upgrade` to change the kernel without stranding an upatch
+- :doc:`/operate/troubleshoot/troubleshooting` for messages by symptom
+- :doc:`/operate/troubleshoot/incident-tampered` when ``status`` reports
+ ``tampered``
+- :doc:`/operate/maintain/upgrade` to change the kernel without stranding an
+ upatch
- :doc:`/reference/files` for every file shirudo keeps
diff --git a/Documentation/operate/maintain/index.rst b/Documentation/operate/maintain/index.rst
new file mode 100644
index 00000000..c0a0c1ca
--- /dev/null
+++ b/Documentation/operate/maintain/index.rst
@@ -0,0 +1,17 @@
+..
+ SPDX-License-Identifier: BSD-2-Clause
+ Copyright (c) 2026 Authors of shirudo
+
+Maintain
+========
+
+Keep targets current over their lifetime: manage the signing keys they
+trust, upgrade shirudo and the kernel, and back up, recover or
+decommission a target.
+
+.. toctree::
+ :titlesonly:
+
+ keys
+ upgrade
+ backup-recovery
diff --git a/Documentation/operate/keys.rst b/Documentation/operate/maintain/keys.rst
similarity index 97%
rename from Documentation/operate/keys.rst
rename to Documentation/operate/maintain/keys.rst
index 72fa71d9..c39b37dc 100644
--- a/Documentation/operate/keys.rst
+++ b/Documentation/operate/maintain/keys.rst
@@ -26,7 +26,7 @@ Before you begin
(mode ``0600``, the signing helper refuses any other mode) and
``cert.der``.
- The source tree of the config image the target runs, as built in
- :doc:`/operate/boot-integration`.
+ :doc:`/operate/deploy/boot-integration`.
- Root on the target. On the target, ``shirudo`` is the runtime image's
binary, as :ref:`runtime-invocation` sets up.
@@ -67,7 +67,7 @@ Key inventory
- Config images as well. The kernel checks these keyrings before
``.dm-verity``, so their keys, including the kernel build's module
signing key, can sign a config the target activates.
- :doc:`/operate/hardening` lists the kernel options.
+ :doc:`/operate/plan/hardening` lists the kernel options.
* - Repository index certificates
- ``etc/shirudo/bpm/keys/`` in the config image, named by
``key_file`` in ``etc/shirudo/bpm/registries.d/``
@@ -78,7 +78,7 @@ Key inventory
fixed templates, so one TPM always yields the same keys.
- The AK signs the evidence. The EK proves at enrollment that the AK
sits in the same TPM. You record both names when you enroll the
- target, as :doc:`/operate/attest` describes.
+ target, as :doc:`/operate/run/attest` describes.
* - NV writer key
- The TPM. Init creates an RSA-3072 key from a random seed at every
boot and freezes its public key in the kernel.
@@ -257,7 +257,7 @@ explains. Do this before the target's first boot with enforcement.
verifies.
4. Build, sign and place the initial config as
- :doc:`/operate/boot-integration` describes.
+ :doc:`/operate/deploy/boot-integration` describes.
5. After the first boot, check that ``shirudo keys`` on the target lists
the standby signer in the trusted set and the ``.bpf`` keyring.
@@ -351,7 +351,7 @@ needs it until the config is active, and unlinks it again when the
config revokes it. It removes the archived upatches the revoked keys
signed before it restores the archive. The init event covers the set
after revocation, so ``shirudo attest predict`` takes the remaining
-certificates only. :doc:`/operate/attest` shows how to predict the
+certificates only. :doc:`/operate/run/attest` shows how to predict the
register, and ``--event=revoke:<label>=<cert-sha256>`` adds a revocation
made after boot.
@@ -390,8 +390,8 @@ discusses the residual risks.
Next steps
----------
-- :doc:`/operate/attest` to enroll a target and verify evidence
-- :doc:`/operate/deliver-packages` for repositories and their keys
+- :doc:`/operate/run/attest` to enroll a target and verify evidence
+- :doc:`/operate/run/deliver-packages` for repositories and their keys
- :doc:`/reference/cli/keys` and :doc:`/reference/cli/image` for the
command options
- :doc:`/security/cryptography` for the algorithms
diff --git a/Documentation/operate/upgrade.rst b/Documentation/operate/maintain/upgrade.rst
similarity index 92%
rename from Documentation/operate/upgrade.rst
rename to Documentation/operate/maintain/upgrade.rst
index cda5b631..a0dc4cb1 100644
--- a/Documentation/operate/upgrade.rst
+++ b/Documentation/operate/maintain/upgrade.rst
@@ -37,13 +37,13 @@ no reboot:
- Packages, published to a registry
- Within a minute, through the timers
-:doc:`/operate/deliver-packages` covers packages, and
+:doc:`/operate/run/deliver-packages` covers packages, and
:doc:`/reference/cli/image` covers ``image update``.
Before you begin
----------------
-- A target set up as described in :doc:`/operate/boot-integration`, and
+- A target set up as described in :doc:`/operate/deploy/boot-integration`, and
the files you built for it: ``runtime.conf``, the BPF signing
certificate and the config signing key.
- A root shell on the target. On the target, ``shirudo`` means the
@@ -188,14 +188,14 @@ Verify the upgrade
The ID must be the one you recorded on the operator host.
-2. Check init as described in :doc:`/operate/initialize`:
+2. Check init as described in :doc:`/operate/deploy/initialize`:
``shirudo status`` reports ``ok`` and ``Bound in: initrd``, and
``shirudo image status`` reports ``"pending":false`` and
``"consistent":true``.
3. Update your verifiers. The new initrd and UKI change the PCR values
that init records when it binds the register, which a verifier pins
- with ``--expect-bind-pcr``. :doc:`/operate/attest` describes how to
+ with ``--expect-bind-pcr``. :doc:`/operate/run/attest` describes how to
record them.
When the new build fails to initialize, boot the previous UKI and read the
@@ -210,10 +210,10 @@ the risk: init restores every one of them at boot, and a upatch that
does not load on the new kernel stops the restore. Check them on a
canary target before you upgrade the fleet.
-1. Confirm that the new kernel meets :doc:`/operate/system-requirements`.
+1. Confirm that the new kernel meets :doc:`/operate/plan/system-requirements`.
2. Boot the new kernel on a canary target with steps 4 to 8, and check
- it as described in :doc:`/operate/initialize`.
+ it as described in :doc:`/operate/deploy/initialize`.
3. On every target, remove the upatches that do not load on the new
kernel before you reboot into it. Uninstall such a package:
@@ -223,7 +223,7 @@ canary target before you upgrade the fleet.
target# shirudo bpm uninstall <package>
Retract a upatch that the upatch tree manages with a delete operation,
- as :doc:`/operate/deliver-packages` describes. Unload a upatch that
+ as :doc:`/operate/run/deliver-packages` describes. Unload a upatch that
you loaded by hand with its unload directive.
4. Install the new kernel package.
@@ -252,7 +252,7 @@ canary target before you upgrade the fleet.
target# systemctl reboot
-8. Check init as described in :doc:`/operate/initialize`, and update the
+8. Check init as described in :doc:`/operate/deploy/initialize`, and update the
PCR values your verifiers pin.
.. _boot-restore-lockout:
@@ -283,7 +283,7 @@ What works is the previous kernel, on which the upatch still loads:
2. Boot the previous kernel's UKI from the boot menu. Its runtime image
must still be where its UKI bootstrap file names it.
-3. Check that init completed, as described in :doc:`/operate/initialize`.
+3. Check that init completed, as described in :doc:`/operate/deploy/initialize`.
4. Uninstall the package that holds the upatch, retract it from the
upatch tree, or unload it with its unload directive. For a package:
@@ -300,6 +300,6 @@ upatch.
Next steps
----------
-- :doc:`/operate/initialize` for the checks after every boot
-- :doc:`/operate/attest` to update what verifiers expect
-- :doc:`/operate/backup-recovery` for the state to keep across upgrades
+- :doc:`/operate/deploy/initialize` for the checks after every boot
+- :doc:`/operate/run/attest` to update what verifiers expect
+- :doc:`/operate/maintain/backup-recovery` for the state to keep across upgrades
diff --git a/Documentation/operate/hardening.rst b/Documentation/operate/plan/hardening.rst
similarity index 96%
rename from Documentation/operate/hardening.rst
rename to Documentation/operate/plan/hardening.rst
index b0b578e0..327cde0e 100644
--- a/Documentation/operate/hardening.rst
+++ b/Documentation/operate/plan/hardening.rst
@@ -12,7 +12,7 @@ shirudo keeps root from loading BPF, changing its state and extending
its register. It relies on the kernel and the boot chain for the rest:
root with a way to write kernel memory, replace the kernel or talk to the
TPM directly goes around every check shirudo makes. This checklist lists
-what a production target needs beyond :doc:`/operate/system-requirements`,
+what a production target needs beyond :doc:`/operate/plan/system-requirements`,
and says for each item whether shirudo checks it.
The ``Checked`` column reads:
@@ -200,7 +200,7 @@ TPM
* - Protection of the TPM device node
- shirudo opens the TPM by its device path and does not
authenticate the answers to its own commands. Evidence that
- :doc:`/operate/attest` verifies is signed by the TPM's attestation
+ :doc:`/operate/run/attest` verifies is signed by the TPM's attestation
key and does not depend on that path.
- no
@@ -237,9 +237,9 @@ Host files
Related
-------
-- :doc:`/operate/system-requirements` for what shirudo needs to run
-- :doc:`/operate/boot-integration` for the UKI, the command line and the
+- :doc:`/operate/plan/system-requirements` for what shirudo needs to run
+- :doc:`/operate/deploy/boot-integration` for the UKI, the command line and the
config PCR
-- :doc:`/operate/attest` for the checks that catch a target booted
+- :doc:`/operate/run/attest` for the checks that catch a target booted
without these items
- :doc:`/security/threat-model` for the threats and residual risks
diff --git a/Documentation/operate/plan/index.rst b/Documentation/operate/plan/index.rst
new file mode 100644
index 00000000..d9c5cd77
--- /dev/null
+++ b/Documentation/operate/plan/index.rst
@@ -0,0 +1,21 @@
+..
+ SPDX-License-Identifier: BSD-2-Clause
+ Copyright (c) 2026 Authors of shirudo
+
+Plan
+====
+
+Check what a target needs and what it costs before you deploy: the
+kernel, boot chain and TPM shirudo requires, what it uses on a target,
+how the pull from registries scales to a fleet, which other software
+can run beside it, and what a production target needs beyond the
+requirements.
+
+.. toctree::
+ :titlesonly:
+
+ system-requirements
+ overhead
+ scalability
+ interoperability
+ hardening
diff --git a/Documentation/operate/interoperability.rst b/Documentation/operate/plan/interoperability.rst
similarity index 97%
rename from Documentation/operate/interoperability.rst
rename to Documentation/operate/plan/interoperability.rst
index c0b7d718..45df6152 100644
--- a/Documentation/operate/interoperability.rst
+++ b/Documentation/operate/plan/interoperability.rst
@@ -20,7 +20,7 @@ tamper counter that moves, and what to do. The refusals start when
processes move counters too. Software that probes for BPF support at
startup, systemd among it, moves several counters on every target, which
is why
-:doc:`/operate/read-status` asks you to learn the baseline of your hosts.
+:doc:`/operate/run/read-status` asks you to learn the baseline of your hosts.
Other BPF users
---------------
@@ -228,7 +228,7 @@ BPF loaded before init
previous section applies to them.
:What to do: Keep the initrd free of BPF loaders you do not trust. The
initrd is part of the trusted computing base, and its PCR 9 and
- PCR 11 measurements are what a verifier pins (:doc:`/operate/attest`).
+ PCR 11 measurements are what a verifier pins (:doc:`/operate/run/attest`).
systemd-keyring-setup
---------------------
@@ -284,7 +284,7 @@ Module loading and kernel live patching
or the kernel's ``klp-build`` produce, is a kernel module like any
other.
:Symptom: None from shirudo.
-:What to do: Enforce module signatures, as :doc:`/operate/hardening`
+:What to do: Enforce module signatures, as :doc:`/operate/plan/hardening`
lists, and sign livepatch modules with a key the kernel trusts. A
module runs as kernel code outside every shirudo check. Unloading a
module that a kprobe upatch targets leaves the upatch loaded and
@@ -335,13 +335,13 @@ Hibernation and suspend
:Symptom: After a resume, shirudo commands refuse with ``shirudo: image
state: Stale file handle`` and exit 1, and ``shirudo status`` reports
``tampered``.
- :doc:`/operate/backup-recovery` describes the state. For suspend to
+ :doc:`/operate/maintain/backup-recovery` describes the state. For suspend to
RAM this is a reading of the code and of the TPM's counters and is not
tested.
-:What to do: Turn hibernation off as :doc:`/operate/hardening` lists, and
+:What to do: Turn hibernation off as :doc:`/operate/plan/hardening` lists, and
keep targets from sleeping, for example with ``AllowSuspend=no`` and
``AllowHibernation=no`` in ``/etc/systemd/sleep.conf``. After an
- unplanned resume, follow :doc:`/operate/backup-recovery`.
+ unplanned resume, follow :doc:`/operate/maintain/backup-recovery`.
Containers and Kubernetes
-------------------------
@@ -467,6 +467,6 @@ Related
- :doc:`/security/threat-model`
- :doc:`/security/tamper-counters`
-- :doc:`/operate/hardening`
-- :doc:`/operate/read-status`
-- :doc:`/operate/troubleshooting`
+- :doc:`/operate/plan/hardening`
+- :doc:`/operate/run/read-status`
+- :doc:`/operate/troubleshoot/troubleshooting`
diff --git a/Documentation/operate/overhead.rst b/Documentation/operate/plan/overhead.rst
similarity index 99%
rename from Documentation/operate/overhead.rst
rename to Documentation/operate/plan/overhead.rst
index 3d18cea4..1e7a8a2c 100644
--- a/Documentation/operate/overhead.rst
+++ b/Documentation/operate/plan/overhead.rst
@@ -396,7 +396,7 @@ nothing.
signature.
Each request opens a new connection with its own TLS 1.3 handshake.
-:doc:`/operate/telemetry` and :doc:`/operate/deliver-packages` describe
+:doc:`/operate/run/telemetry` and :doc:`/operate/run/deliver-packages` describe
the settings.
Disk writes
@@ -526,8 +526,8 @@ a program of its own on each hook they pass, ``task_alloc``,
Related
-------
-- :doc:`/operate/system-requirements`
-- :doc:`/operate/scalability`
+- :doc:`/operate/plan/system-requirements`
+- :doc:`/operate/plan/scalability`
- :doc:`/reference/systemd-units`
- :doc:`/reference/files`
- :doc:`/reference/formats/eventlog`
diff --git a/Documentation/operate/scalability.rst b/Documentation/operate/plan/scalability.rst
similarity index 97%
rename from Documentation/operate/scalability.rst
rename to Documentation/operate/plan/scalability.rst
index 18b2e24d..63311520 100644
--- a/Documentation/operate/scalability.rst
+++ b/Documentation/operate/plan/scalability.rst
@@ -13,7 +13,7 @@ where shirudo and the kernel limit what one target and one upatch can
hold. shirudo's limits come from its code. Kernel limits come from the
kernel source and can differ between kernel versions and architectures;
each one names its constant so that you can look it up in your kernel.
-:doc:`/operate/overhead` describes what one target uses.
+:doc:`/operate/plan/overhead` describes what one target uses.
Fleet
-----
@@ -95,7 +95,7 @@ Staged rollouts
512 of them. ``bpm tree append`` refuses the 513th, and targets refuse a
publication that does not start at the first operation.
-:doc:`/operate/deliver-packages` sets up repositories and the tree.
+:doc:`/operate/run/deliver-packages` sets up repositories and the tree.
Collectors
~~~~~~~~~~
@@ -105,7 +105,7 @@ request per map of every loaded upatch every 5 seconds after the previous
run ends, about 12 a minute each. A collector serves N targets with M
exported maps each about 12 × N × (M + 1) requests a minute. A request
waits 10 seconds by default and is retried 3 times. See
-:doc:`/operate/telemetry`.
+:doc:`/operate/run/telemetry`.
One target
----------
@@ -252,7 +252,7 @@ One upatch
Related
-------
-- :doc:`/operate/overhead`
-- :doc:`/operate/deliver-packages`
+- :doc:`/operate/plan/overhead`
+- :doc:`/operate/run/deliver-packages`
- :doc:`/upatches/attach-kinds`
- :doc:`/security/threat-model`
diff --git a/Documentation/operate/system-requirements.rst b/Documentation/operate/plan/system-requirements.rst
similarity index 98%
rename from Documentation/operate/system-requirements.rst
rename to Documentation/operate/plan/system-requirements.rst
index 0833eb60..5043394d 100644
--- a/Documentation/operate/system-requirements.rst
+++ b/Documentation/operate/plan/system-requirements.rst
@@ -178,7 +178,7 @@ The dm-verity root-hash check also accepts a config signed by a key in
the kernel's built-in trusted keyring, and in the secondary or platform
keyring when ``CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG_SECONDARY_KEYRING`` or
``CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG_PLATFORM_KEYRING`` is set.
-:doc:`/operate/hardening` lists what that means for who can sign a
+:doc:`/operate/plan/hardening` lists what that means for who can sign a
config, and the options the trust model assumes beyond this table:
lockdown, module signature enforcement, ``CONFIG_COMPAT`` and others.
@@ -207,7 +207,7 @@ Kernel command line
``shirudo-gen-initrd --print-cmdline`` prints the two keyring parameters.
In production the command line is part of the signed unified kernel
-image. See :doc:`/operate/boot-integration`.
+image. See :doc:`/operate/deploy/boot-integration`.
Attach points for upatches
~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -478,8 +478,8 @@ distribution it is installed on.
Related
-------
-- :doc:`/operate/deployment-checklist`
-- :doc:`/operate/hardening`
-- :doc:`/operate/boot-integration`
+- :doc:`/operate/deploy/deployment-checklist`
+- :doc:`/operate/plan/hardening`
+- :doc:`/operate/deploy/boot-integration`
- :doc:`/internals/kernel-interfaces`
- :doc:`/start/install`
diff --git a/Documentation/operate/attest.rst b/Documentation/operate/run/attest.rst
similarity index 98%
rename from Documentation/operate/attest.rst
rename to Documentation/operate/run/attest.rst
index a1e8d09c..e6a43871 100644
--- a/Documentation/operate/attest.rst
+++ b/Documentation/operate/run/attest.rst
@@ -27,7 +27,7 @@ Before you begin
need no TPM. A target running shirudo refuses any argument that starts
with ``--cert``, so do not run them on a target.
- A target that completed init: ``shirudo status`` reports ``ok``.
- :doc:`/operate/read-status` explains the report.
+ :doc:`/operate/run/read-status` explains the report.
- On the target, ``shirudo`` is the runtime image's binary, as
:ref:`runtime-invocation` sets up.
- For enrollment: the PEM bundle of your TPM manufacturer's
@@ -358,8 +358,8 @@ set only, but a load and an unload happened after boot:
The init event line fails too, because that target enrolled two
certificates and the verifier passed one. A failed state check does not
tell you which side is wrong. Compare the notes with your records before
-you conclude anything, and follow :doc:`/operate/incident-tampered` when
-the target ran something you did not install.
+you conclude anything, and follow :doc:`/operate/troubleshoot/incident-tampered`
+when the target ran something you did not install.
A verify that pins nothing
~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -390,7 +390,7 @@ verification.
Next steps
----------
-- :doc:`/operate/incident-tampered` when a target refuses with
+- :doc:`/operate/troubleshoot/incident-tampered` when a target refuses with
``tampered`` or fails verification
- :doc:`/reference/cli/attest`, :doc:`/reference/cli/attest-verify`,
:doc:`/reference/cli/attest-predict` and
diff --git a/Documentation/operate/deliver-packages.rst b/Documentation/operate/run/deliver-packages.rst
similarity index 96%
rename from Documentation/operate/deliver-packages.rst
rename to Documentation/operate/run/deliver-packages.rst
index 8cc5327e..bf484f72 100644
--- a/Documentation/operate/deliver-packages.rst
+++ b/Documentation/operate/run/deliver-packages.rst
@@ -101,8 +101,8 @@ with it.
Before you begin
----------------
-- An initialized target (:doc:`initialize`) whose services run the
- runtime binary (:ref:`unit-drop-ins`).
+- An initialized target (:doc:`/operate/deploy/initialize`) whose services run
+ the runtime binary (:ref:`unit-drop-ins`).
- On the target, ``shirudo`` stands for the runtime image's binary,
``/run/shirudo/runtime/usr/bin/shirudo`` (:ref:`runtime-invocation`).
- A package published to a repository (:doc:`/start/guides/publish-package`).
@@ -213,7 +213,7 @@ while it runs.
update, ``root_hash`` is the root that ``image verify`` printed and
``sequence`` is higher. ``pending`` must be ``false`` and
``consistent`` must be ``true``. The command exits 1 otherwise. If an
- activation stays pending, follow :doc:`backup-recovery`.
+ activation stays pending, follow :doc:`/operate/maintain/backup-recovery`.
Install a package
-----------------
@@ -368,7 +368,7 @@ Keep these rules of the tree in mind:
- The target verifies tree publications only against the runtime
image's primary certificate, ``keys/cert.der``. A vouched key cannot
sign them, and revoking the primary in the signed config does not stop
- them. :doc:`keys` describes the limit.
+ them. :doc:`/operate/maintain/keys` describes the limit.
Timers and locks
----------------
@@ -397,11 +397,11 @@ without a time limit. Every ``shirudo`` command on a target also holds
the config operation lock for its whole run, and a command that waits
longer than 30 seconds for it fails. A long download therefore delays
the status keepalive and the map export, and a keepalive can fail while
-it runs. :doc:`troubleshooting` has the message.
+it runs. :doc:`/operate/troubleshoot/troubleshooting` has the message.
Every command except ``status`` is refused while a config activation is
-pending, ``bpm uninstall`` included. :doc:`backup-recovery` describes
-that state.
+pending, ``bpm uninstall`` included. :doc:`/operate/maintain/backup-recovery`
+describes that state.
Next steps
----------
@@ -409,7 +409,7 @@ Next steps
- :doc:`/start/guides/publish-package` to publish a package
- :doc:`/upatches/publishing` for packages, indexes and the tree on the
operator side
-- :doc:`telemetry` to export what the installed upatches collect
+- :doc:`/operate/run/telemetry` to export what the installed upatches collect
- :doc:`/reference/cli/bpm` for every ``bpm`` option
- :doc:`/reference/formats/bpm-formats` for the index, package and tree
formats
diff --git a/Documentation/operate/run/index.rst b/Documentation/operate/run/index.rst
new file mode 100644
index 00000000..eb94a7f8
--- /dev/null
+++ b/Documentation/operate/run/index.rst
@@ -0,0 +1,17 @@
+..
+ SPDX-License-Identifier: BSD-2-Clause
+ Copyright (c) 2026 Authors of shirudo
+
+Run
+===
+
+Deliver upatches to running targets, read what a target reports about
+itself, export its telemetry and have its TPM attest what it runs.
+
+.. toctree::
+ :titlesonly:
+
+ deliver-packages
+ read-status
+ telemetry
+ attest
diff --git a/Documentation/operate/read-status.rst b/Documentation/operate/run/read-status.rst
similarity index 96%
rename from Documentation/operate/read-status.rst
rename to Documentation/operate/run/read-status.rst
index 2b1d3d52..36a9f517 100644
--- a/Documentation/operate/read-status.rst
+++ b/Documentation/operate/run/read-status.rst
@@ -14,7 +14,7 @@ the first command to run on a target that misbehaves, and the keepalive
timer sends the same data to your collector. It is the target's account
of itself: anyone with root on the target can lie to a reader of this
report, so it proves nothing to a third party. TPM-signed evidence does,
-see :doc:`/operate/attest`.
+see :doc:`/operate/run/attest`.
This page walks through a healthy report section by section, then
explains every verdict and what to do about it.
@@ -134,7 +134,7 @@ Header
``target, operator``, or ``none``. A production target shows
``target`` alone. A private signing key on a target breaks the
operator and target split: remove it and treat the key as exposed,
- see :doc:`/operate/keys`.
+ see :doc:`/operate/maintain/keys`.
``Mode``
``production`` when the ``lsm/bpf`` link is pinned in the private
@@ -147,7 +147,7 @@ Header
``Version-ID``
The identifier of the shirudo build that runs. Compare it with the
- build you deployed, see :doc:`/operate/upgrade`.
+ build you deployed, see :doc:`/operate/maintain/upgrade`.
Conditions
~~~~~~~~~~
@@ -216,7 +216,7 @@ roots, read the same way.
primary certificate and the vouched certificates of the active
signed config, less its revocations; ``unvouched`` counts
certificates in the config without a valid vouch, which are
- therefore not members. :doc:`/operate/keys` explains the set. For
+ therefore not members. :doc:`/operate/maintain/keys` explains the set. For
``.dm-verity`` it is the config certificate the runtime image names,
marked ``(config)``.
@@ -271,7 +271,7 @@ TPM Measurement
``PCR before init`` and ``Phase at init``
The values of PCR 9 and PCR 11 that ``init`` bound the register to.
A verifier pins them with ``--expect-bind-pcr``, see
- :doc:`/operate/attest`. In the capture above both are zero because
+ :doc:`/operate/run/attest`. In the capture above both are zero because
the test VM boots its kernel and initrd directly, without a measured
UKI. On a production target booted from a measured UKI, PCR 11 holds
the ``enter-initrd`` phase measurement. ``init`` warns in the journal
@@ -358,7 +358,7 @@ precedence: ``tampered``, ``lsm-off``, ``init-pending``,
- Enforcement is up, the keyring is the sealed one, the register
replays from the eventlog and the config is active.
- Nothing. Verify with the TPM regularly, see
- :doc:`/operate/attest`.
+ :doc:`/operate/run/attest`.
* - ``degraded``
- Enforcement is up, but this report has no register to check.
- Read the ``Chain`` line. See :ref:`status-degraded`.
@@ -371,7 +371,7 @@ precedence: ``tampered``, ``lsm-off``, ``init-pending``,
- The ``lsm/bpf`` link is pinned but no keyring was recorded:
``init`` did not finish.
- Read the journal of ``shirudo-initrd.service``, see
- :doc:`/operate/initialize`.
+ :doc:`/operate/deploy/initialize`.
* - ``lsm-off``
- The ``lsm/bpf`` link is not pinned. Enforcement is off and the
target is unprotected.
@@ -450,7 +450,7 @@ The detail of ``ConfigActive`` names the cause:
(tamper?)``: the config PCR does not hold the value the activation
records predict. Something extended the PCR after this boot's config
measurement. Software that measures into the same PCR causes this
- too, see :doc:`/operate/hardening` for the PCR choice.
+ too, see :doc:`/operate/plan/hardening` for the PCR choice.
- ``the config activation record does not belong to this TPM boot
(tamper?)``: the TPM was reset since the config was measured, for
example by a resume from hibernation.
@@ -460,11 +460,11 @@ The detail of ``ConfigActive`` names the cause:
In each of the config states every command except ``status`` and
``image status`` refuses with ``shirudo: image state:`` and the error,
-see :doc:`/operate/troubleshooting`.
+see :doc:`/operate/troubleshoot/troubleshooting`.
For every reason, do not retry anything and do not reboot first: the
journal and the state of this boot are the evidence. Follow
-:doc:`/operate/incident-tampered`.
+:doc:`/operate/troubleshoot/incident-tampered`.
.. _status-lsm-off:
@@ -488,7 +488,7 @@ in this state. So does a target booted without the shirudo initrd.
target# journalctl -b -u shirudo-initrd.service
-2. Fix the cause that :doc:`/operate/initialize` lists for the failed
+2. Fix the cause that :doc:`/operate/deploy/initialize` lists for the failed
step.
3. Reboot.
@@ -526,7 +526,7 @@ its own.
3. Check the verdict again. A ``reboot-pending`` verdict after the next
boot, with ``boot-restore`` errors in the journal, means an archived
- upatch fails to load at every boot. :doc:`/operate/backup-recovery`
+ upatch fails to load at every boot. :doc:`/operate/maintain/backup-recovery`
describes what works in that case.
.. _status-degraded:
@@ -552,7 +552,7 @@ verdict whose ``Chain`` line says ``register not bound this boot``
therefore means the register was bound and then disappeared. Undefining
the index takes TPM owner authorization, which root has on a TPM whose
owner authorization is empty. Collect the evidence as for ``tampered``,
-see :doc:`/operate/incident-tampered`, then reboot.
+see :doc:`/operate/troubleshoot/incident-tampered`, then reboot.
The reason ``no TPM answered`` means the TPM stopped answering while
``status`` ran. On a production target every command first checks that
@@ -623,7 +623,7 @@ Monitor with ``status --json``
``status --json`` prints the same data as one JSON document. The
keepalive timer sends it to your collector, see
-:doc:`/operate/telemetry`.
+:doc:`/operate/run/telemetry`.
.. warning::
@@ -718,9 +718,9 @@ on a healthy target, ``shirudo status --json | jq -r .status`` prints
Next steps
----------
-- :doc:`/operate/attest` to have the TPM confirm what the report says
-- :doc:`/operate/incident-tampered` for a ``tampered`` verdict
-- :doc:`/operate/troubleshooting` for refused commands and failure
+- :doc:`/operate/run/attest` to have the TPM confirm what the report says
+- :doc:`/operate/troubleshoot/incident-tampered` for a ``tampered`` verdict
+- :doc:`/operate/troubleshoot/troubleshooting` for refused commands and failure
categories
-- :doc:`/operate/telemetry` to send the report to a collector
+- :doc:`/operate/run/telemetry` to send the report to a collector
- :doc:`/reference/cli/status` for every option
diff --git a/Documentation/operate/telemetry.rst b/Documentation/operate/run/telemetry.rst
similarity index 96%
rename from Documentation/operate/telemetry.rst
rename to Documentation/operate/run/telemetry.rst
index 49ff0288..2e52e466 100644
--- a/Documentation/operate/telemetry.rst
+++ b/Documentation/operate/run/telemetry.rst
@@ -17,7 +17,7 @@ and decide what to alert on.
Telemetry is the target's own account of itself. It carries no proof of
origin, so it tells you where to look, not what is true. Evidence that a
-target cannot forge comes from the TPM, through :doc:`attest`.
+target cannot forge comes from the TPM, through :doc:`/operate/run/attest`.
What a target sends
-------------------
@@ -352,8 +352,8 @@ What to alert on
----------------
The keepalive body is the ``shirudo status --json`` document.
-:doc:`read-status` explains each field and :doc:`/reference/formats/status-json`
-lists them.
+:doc:`/operate/run/read-status` explains each field and
+:doc:`/reference/formats/status-json` lists them.
.. list-table::
:header-rows: 1
@@ -368,7 +368,7 @@ lists them.
more than 30 seconds, during a long package download for
example.
* - ``shirudo.status`` other than ``ok``
- - Read :doc:`read-status` for each verdict.
+ - Read :doc:`/operate/run/read-status` for each verdict.
* - A condition with ``status`` ``ALERT``
- ``LsmAttached``, ``KeyringSealed``, ``ChainIntact`` or
``ConfigActive`` found tampering or lost enforcement.
@@ -381,7 +381,7 @@ lists them.
``status`` is refused until then.
* - ``tpm.chain_matches_eventlog`` is ``false``
- The register holds a value the eventlog does not explain. Handle
- it as in :doc:`incident-tampered`.
+ it as in :doc:`/operate/troubleshoot/incident-tampered`.
* - ``tpm.register_rebound`` is ``true``
- The register was bound twice in one TPM reset.
* - ``tpm.bound_in`` is not ``initrd``
@@ -389,7 +389,7 @@ lists them.
the initrd.
* - ``assets.eventlog_bytes`` nears 8388608
- The eventlog approaches the size that readers refuse. See
- :doc:`backup-recovery`.
+ :doc:`/operate/maintain/backup-recovery`.
* - ``version_id`` is not the build you deployed
- The target runs another shirudo build.
@@ -398,7 +398,7 @@ Limits
- Telemetry has no proof of origin. Root on a target, or anyone who can
reach the collector with valid credentials, can send records in a
- target's name. Use :doc:`attest` for evidence.
+ target's name. Use :doc:`/operate/run/attest` for evidence.
- While the config cannot be verified, ``status`` uses only the runtime
image's settings and the environment. While an activation is pending,
it uses the pending config's settings only when that config is the one
@@ -412,9 +412,9 @@ Limits
Next steps
----------
-- :doc:`read-status` to read what the keepalive carries
+- :doc:`/operate/run/read-status` to read what the keepalive carries
- :doc:`/reference/formats/otlp` for the records on the wire
- :doc:`/upatches/decoders` to give a map a decoder
- :doc:`/reference/cli/upatch-map` and :doc:`/reference/cli/status` for
every option
-- :doc:`attest` for evidence that the target cannot forge
+- :doc:`/operate/run/attest` for evidence that the target cannot forge
diff --git a/Documentation/operate/bug-report.rst b/Documentation/operate/troubleshoot/bug-report.rst
similarity index 95%
rename from Documentation/operate/bug-report.rst
rename to Documentation/operate/troubleshoot/bug-report.rst
index 6f79ce7e..db6d950a 100644
--- a/Documentation/operate/bug-report.rst
+++ b/Documentation/operate/troubleshoot/bug-report.rst
@@ -23,12 +23,12 @@ Before you begin
open a public issue.
- If a command refused with ``tampered`` or ``shirudo status`` reports
``tampered``, preserve the evidence first, as
- :doc:`/operate/incident-tampered` describes, and do not reboot the
- target before it is safe.
+ :doc:`/operate/troubleshoot/incident-tampered` describes, and do not reboot
+ the target before it is safe.
- Reproduce the problem on the ``main`` branch. shirudo has no releases
yet (:doc:`/reference/versions`).
- Root on the target. On a target, ``shirudo`` is the binary on the
- runtime image (:doc:`/operate/boot-integration`).
+ runtime image (:doc:`/operate/deploy/boot-integration`).
- A directory on the target for the files, here ``bug/``, outside
``/var/lib/shirudo``. shirudo refuses to write a report into sealed
state.
@@ -115,7 +115,7 @@ Collect on the target
9. Add the kernel tree, the commit and the patches applied to it. A
release number does not identify a bpf-next kernel, see
- :doc:`/operate/system-requirements`.
+ :doc:`/operate/plan/system-requirements`.
Collect on the operator host
----------------------------
@@ -229,8 +229,9 @@ cleaned copy.
Next steps
----------
-- :doc:`/operate/troubleshooting` for known symptoms and their causes
+- :doc:`/operate/troubleshoot/troubleshooting` for known symptoms and their
+ causes
- :doc:`/reference/failure-categories` for the category and phase in a
report
-- :doc:`/operate/interoperability` when the problem involves other
+- :doc:`/operate/plan/interoperability` when the problem involves other
software on the target
diff --git a/Documentation/operate/incident-tampered.rst b/Documentation/operate/troubleshoot/incident-tampered.rst
similarity index 94%
rename from Documentation/operate/incident-tampered.rst
rename to Documentation/operate/troubleshoot/incident-tampered.rst
index 68fc9938..42d3e4d4 100644
--- a/Documentation/operate/incident-tampered.rst
+++ b/Documentation/operate/troubleshoot/incident-tampered.rst
@@ -46,7 +46,7 @@ Before you begin
- The operator host with the operator package, and a place off the
target for the evidence.
- The target's enrolled attestation key name, and the values
- :doc:`/operate/attest` pins: the endorsement key name, the PCR 9 and
+ :doc:`/operate/run/attest` pins: the endorsement key name, the PCR 9 and
PCR 11 binding values of its UKI, and the approved config root and PCR.
- Your records of what the target should run: the certificates it
enrolled, the upatches it restored at boot, and every load and unload
@@ -126,7 +126,7 @@ Verify with the TPM
-------------------
1. Predict the register from your records, as
- :doc:`/operate/attest` describes. Never take the certificates or the
+ :doc:`/operate/run/attest` describes. Never take the certificates or the
events from the target's eventlog: that would check the target
against itself.
@@ -150,7 +150,7 @@ Verify with the TPM
--require-initrd --expect-chain=<register> \
--expect-config-root=<config-root> --expect-config-pcr=<config-pcr>
- :doc:`/operate/attest` explains each option and the report.
+ :doc:`/operate/run/attest` explains each option and the report.
Read the result
---------------
@@ -206,15 +206,15 @@ After the investigation
3. Remove what you did not authorize: unload an upatch with a signed
unload directive, or revoke its signer through a signed config as
- :doc:`/operate/keys` describes.
+ :doc:`/operate/maintain/keys` describes.
The timers you stopped start again at boot when they are enabled.
Related
-------
-- :doc:`/operate/attest` for enrollment and the verification options
-- :doc:`/operate/read-status` for the verdicts and conditions
-- :doc:`/operate/troubleshooting` for the other failure messages
+- :doc:`/operate/run/attest` for enrollment and the verification options
+- :doc:`/operate/run/read-status` for the verdicts and conditions
+- :doc:`/operate/troubleshoot/troubleshooting` for the other failure messages
- :doc:`/reference/failure-categories` for every category
- :doc:`/security/threat-model` for what the measurement does not cover
diff --git a/Documentation/operate/troubleshoot/index.rst b/Documentation/operate/troubleshoot/index.rst
new file mode 100644
index 00000000..fbdd27ea
--- /dev/null
+++ b/Documentation/operate/troubleshoot/index.rst
@@ -0,0 +1,17 @@
+..
+ SPDX-License-Identifier: BSD-2-Clause
+ Copyright (c) 2026 Authors of shirudo
+
+Troubleshoot
+============
+
+Find the cause of a failure from its message, respond to a target that
+reports ``tampered``, and report a bug with what the developers need to
+reproduce it.
+
+.. toctree::
+ :titlesonly:
+
+ troubleshooting
+ incident-tampered
+ bug-report
diff --git a/Documentation/operate/troubleshooting.rst b/Documentation/operate/troubleshoot/troubleshooting.rst
similarity index 94%
rename from Documentation/operate/troubleshooting.rst
rename to Documentation/operate/troubleshoot/troubleshooting.rst
index b9e48012..0a7a8611 100644
--- a/Documentation/operate/troubleshooting.rst
+++ b/Documentation/operate/troubleshoot/troubleshooting.rst
@@ -14,7 +14,7 @@ entry says what the symptom means, what causes it and what to do. The
output shown was captured from the test VM.
:doc:`/reference/failure-categories` lists every category and exit
-status. :doc:`/operate/read-status` explains the status report.
+status. :doc:`/operate/run/read-status` explains the status report.
Before you begin
----------------
@@ -69,7 +69,7 @@ Action
:ref:`runtime-invocation`.
- Install the drop-ins for every unit, see :ref:`unit-drop-ins`.
- A different TPM is an incident, see
- :doc:`/operate/incident-tampered`.
+ :doc:`/operate/troubleshoot/incident-tampered`.
``shirudo: image state: Operation not permitted``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -137,9 +137,9 @@ Causes
Action
Do not retry. Handle the target as an incident, see
- :doc:`/operate/incident-tampered`, and reboot once you have the
+ :doc:`/operate/troubleshoot/incident-tampered`, and reboot once you have the
evidence. If other software extends the PCR, choose another config
- PCR, see :doc:`/operate/hardening`.
+ PCR, see :doc:`/operate/plan/hardening`.
``image: waiting for another shirudo command to release the config operation lock``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -217,7 +217,7 @@ Causes
Action
Do not repeat the command with the value the message prints. Keep the
journal and the eventlog, and follow
- :doc:`/operate/incident-tampered`. TPM-signed evidence, checked
+ :doc:`/operate/troubleshoot/incident-tampered`. TPM-signed evidence, checked
against the events you expect, decides whether the change was yours.
``version_mismatch``
@@ -238,7 +238,7 @@ Causes
- The target was not upgraded, or was upgraded to another build.
- The id you expect comes from a binary built on another host. The
identifier covers the build configuration, so two builds of one
- commit on different hosts differ, see :doc:`/operate/upgrade`.
+ commit on different hosts differ, see :doc:`/operate/maintain/upgrade`.
Action
1. Read the identifier of the target:
@@ -295,7 +295,7 @@ Action
3. Compare the ``SPKI fingerprint`` of the operator's certificate
with the members of the target's ``Trusted set``. Sign with a
- trusted key, or see :doc:`/operate/keys` for how a key becomes
+ trusted key, or see :doc:`/operate/maintain/keys` for how a key becomes
trusted.
``<keys-dir>`` is the directory that holds the signing key the artifact
@@ -411,7 +411,7 @@ Causes
The target booted a kernel without the required ABI.
Action
- Boot a kernel that meets :doc:`/operate/system-requirements`.
+ Boot a kernel that meets :doc:`/operate/plan/system-requirements`.
``eventlog_full``
~~~~~~~~~~~~~~~~~
@@ -430,7 +430,7 @@ Action
Raise ``eventlog.max_bytes`` in a signed config and activate it, see
:doc:`/reference/formats/configuration`. Keep the cap below 8 MiB:
every reader of the eventlog fails on a larger log.
- :doc:`/operate/backup-recovery` covers the eventlog's lifetime.
+ :doc:`/operate/maintain/backup-recovery` covers the eventlog's lifetime.
Boot and init
-------------
@@ -468,8 +468,8 @@ Causes
loader or the TPM.
Action
- Fix the requirement, see :doc:`/operate/system-requirements`, and
- reboot. :doc:`/operate/initialize` describes the init runs.
+ Fix the requirement, see :doc:`/operate/plan/system-requirements`, and
+ reboot. :doc:`/operate/deploy/initialize` describes the init runs.
``init: boot-restore failed; further changes and attestation remain blocked``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -489,7 +489,7 @@ Causes
Action
A reboot restores the same archive and fails the same way.
- :doc:`/operate/backup-recovery` describes what works and what does
+ :doc:`/operate/maintain/backup-recovery` describes what works and what does
not.
Status verdicts
@@ -498,8 +498,8 @@ Status verdicts
:ref:`status-verdicts` explains every verdict in full. The short form:
``tampered``
- Handle as an incident, see :doc:`/operate/incident-tampered`. Do not
- retry and do not reboot before you have the evidence.
+ Handle as an incident, see :doc:`/operate/troubleshoot/incident-tampered`. Do
+ not retry and do not reboot before you have the evidence.
``reboot-pending``
A config activation is pending. Reboot.
@@ -518,6 +518,6 @@ Next steps
- :doc:`/reference/failure-categories` for every category and exit
status
-- :doc:`/operate/incident-tampered` for a ``tampered`` refusal or
+- :doc:`/operate/troubleshoot/incident-tampered` for a ``tampered`` refusal or
verdict
-- :doc:`/operate/read-status` for the status report
+- :doc:`/operate/run/read-status` for the status report
diff --git a/Documentation/reference/cheat-sheet.rst b/Documentation/reference/cheat-sheet.rst
index 7aa7eafc..f5b101d8 100644
--- a/Documentation/reference/cheat-sheet.rst
+++ b/Documentation/reference/cheat-sheet.rst
@@ -38,7 +38,7 @@ Vouch for a second operator's certificate with :doc:`keys vouch
operator$ shirudo keys vouch other-cert.der -o other-cert.der.vouch --keys-dir ~/shirudo-keys
Prepare a new key pair beside the old one and vouch for it with the old
-key, before any target relies on it (:doc:`/operate/keys`):
+key, before any target relies on it (:doc:`/operate/maintain/keys`):
.. code-block:: console
diff --git a/Documentation/reference/cli/attest-challenge.rst b/Documentation/reference/cli/attest-challenge.rst
index 9b2f7646..c434a2ea 100644
--- a/Documentation/reference/cli/attest-challenge.rst
+++ b/Documentation/reference/cli/attest-challenge.rst
@@ -121,4 +121,4 @@ Related
- :doc:`attest`
- :doc:`attest-verify`
-- :doc:`/operate/attest`
+- :doc:`/operate/run/attest`
diff --git a/Documentation/reference/cli/attest-verify.rst b/Documentation/reference/cli/attest-verify.rst
index 7be645ed..27b92689 100644
--- a/Documentation/reference/cli/attest-verify.rst
+++ b/Documentation/reference/cli/attest-verify.rst
@@ -230,5 +230,5 @@ Related
- :doc:`attest`
- :doc:`attest-predict`
- :doc:`attest-challenge`
-- :doc:`/operate/attest`
+- :doc:`/operate/run/attest`
- :doc:`/security/threat-model`
diff --git a/Documentation/reference/cli/attest.rst b/Documentation/reference/cli/attest.rst
index 39107726..d3b1155d 100644
--- a/Documentation/reference/cli/attest.rst
+++ b/Documentation/reference/cli/attest.rst
@@ -53,7 +53,7 @@ lives in the same TPM as the endorsement key (:doc:`attest-challenge`).
Without ``--nonce``, ``attest`` warns that the evidence proves no
freshness.
-:doc:`/operate/attest` describes the procedure from enrollment to
+:doc:`/operate/run/attest` describes the procedure from enrollment to
verification.
Options
@@ -147,5 +147,5 @@ Related
- :doc:`attest-verify`
- :doc:`attest-challenge`
- :doc:`attest-predict`
-- :doc:`/operate/attest`
+- :doc:`/operate/run/attest`
- :doc:`/internals/measurement-register`
diff --git a/Documentation/reference/cli/bpm.rst b/Documentation/reference/cli/bpm.rst
index 6a355d9f..0488d368 100644
--- a/Documentation/reference/cli/bpm.rst
+++ b/Documentation/reference/cli/bpm.rst
@@ -403,7 +403,7 @@ Print the fingerprint of the certificate a package carries:
Related
-------
-- :doc:`/operate/deliver-packages`
+- :doc:`/operate/run/deliver-packages`
- :doc:`/upatches/publishing`
- :doc:`/upatches/beefile`
- :doc:`/reference/formats/bpm-formats`
diff --git a/Documentation/reference/cli/gen-tools.rst b/Documentation/reference/cli/gen-tools.rst
index 7f8db644..02279e3d 100644
--- a/Documentation/reference/cli/gen-tools.rst
+++ b/Documentation/reference/cli/gen-tools.rst
@@ -323,7 +323,7 @@ Related
-------
- :doc:`image`
-- :doc:`/operate/boot-integration`
+- :doc:`/operate/deploy/boot-integration`
- :doc:`/internals/boot-flow`
- :doc:`/internals/config-images`
- :doc:`/reference/formats/configuration`
diff --git a/Documentation/reference/cli/genkey.rst b/Documentation/reference/cli/genkey.rst
index 8b02b45b..1dbe59f7 100644
--- a/Documentation/reference/cli/genkey.rst
+++ b/Documentation/reference/cli/genkey.rst
@@ -59,7 +59,7 @@ an explicit ``--keys-dir`` or ``--index-key`` and ``--index-cert``.
old certificate refuses everything the new key signs, and nothing can
sign for the old certificate any more. Generate the new pair in
another directory and vouch for it with the old key first, as
- :doc:`/operate/keys` describes.
+ :doc:`/operate/maintain/keys` describes.
Options
-------
@@ -119,5 +119,5 @@ Related
-------
- :doc:`keys`
-- :doc:`/operate/keys`
+- :doc:`/operate/maintain/keys`
- :doc:`/security/cryptography`
diff --git a/Documentation/reference/cli/image.rst b/Documentation/reference/cli/image.rst
index 02f3dcc4..a0c2f4e1 100644
--- a/Documentation/reference/cli/image.rst
+++ b/Documentation/reference/cli/image.rst
@@ -216,4 +216,4 @@ Related
- :doc:`/concepts/background/dm-verity`
- :doc:`gen-tools`
- :doc:`/reference/formats/configuration`
-- :doc:`/operate/keys`
+- :doc:`/operate/maintain/keys`
diff --git a/Documentation/reference/cli/init.rst b/Documentation/reference/cli/init.rst
index 73e0f059..c586a7cc 100644
--- a/Documentation/reference/cli/init.rst
+++ b/Documentation/reference/cli/init.rst
@@ -70,7 +70,7 @@ register, leaves the config activation pending. The help text of
``init`` calls it idempotent, but in that state a second run fails and the
image gate refuses every command except ``status`` until the next reboot.
The next boot restores the same archive. See
-:doc:`/operate/troubleshooting`.
+:doc:`/operate/troubleshoot/troubleshooting`.
Pre-flight checks
~~~~~~~~~~~~~~~~~
@@ -181,7 +181,7 @@ Run the pre-flight checks on a target:
Related
-------
-- :doc:`/operate/initialize`
+- :doc:`/operate/deploy/initialize`
- :doc:`/internals/boot-flow`
-- :doc:`/operate/boot-integration`
+- :doc:`/operate/deploy/boot-integration`
- :doc:`status`
diff --git a/Documentation/reference/cli/keys.rst b/Documentation/reference/cli/keys.rst
index 26c52a67..3e8c2c52 100644
--- a/Documentation/reference/cli/keys.rst
+++ b/Documentation/reference/cli/keys.rst
@@ -63,7 +63,7 @@ directory, so that ``init`` enrolls it at the next boot:
production target has, with ``target: add vouched BPF signers to the
signed config selected for boot and reboot to enroll them``. On such a
target, add vouched signers to the signed config image instead (see
- :doc:`/operate/keys`).
+ :doc:`/operate/maintain/keys`).
#. It requires an ML-DSA-87 certificate and a trusted set under the keys
directory, and refuses a certificate listed under ``<dir>/revoked``.
#. The vouch must verify under a certificate already in the set. With the
@@ -104,7 +104,7 @@ A revocation is the revoked certificate, placed in a signed config image as
lowercase hexadecimal SHA-256 of its public key (SPKI). When :doc:`image` ``update`` activates that image, the target
removes the certificate from the ``.bpf`` keyring, measures a
``key_revoke`` event in the register and unloads every archived upatch the
-certificate signed (see :doc:`/operate/keys`).
+certificate signed (see :doc:`/operate/maintain/keys`).
Options
-------
@@ -228,7 +228,7 @@ Vouch for a second operator's certificate:
Related
-------
-- :doc:`/operate/keys`
+- :doc:`/operate/maintain/keys`
- :doc:`genkey`
- :doc:`image`
- :doc:`/security/cryptography`
diff --git a/Documentation/reference/cli/status.rst b/Documentation/reference/cli/status.rst
index 753e11df..3d24adc3 100644
--- a/Documentation/reference/cli/status.rst
+++ b/Documentation/reference/cli/status.rst
@@ -71,7 +71,7 @@ The human report follows the verdict with the tamper counters that moved
this boot, the ``.bpf`` and ``.dm-verity`` keyrings with the
certificates each should hold and the key that holds each one, the
loaded upatches, the TPM measurement state and the assets under
-``/var/lib/shirudo``. :doc:`/operate/read-status` explains each field and
+``/var/lib/shirudo``. :doc:`/operate/run/read-status` explains each field and
:doc:`/reference/formats/status-json` the JSON document.
With ``--otel``, ``status`` builds the JSON report and sends it as one
@@ -258,8 +258,8 @@ The eventlog section of that report:
Related
-------
-- :doc:`/operate/read-status`
+- :doc:`/operate/run/read-status`
- :doc:`/reference/formats/status-json`
- :doc:`/security/tamper-counters`
-- :doc:`/operate/incident-tampered`
-- :doc:`/operate/telemetry`
+- :doc:`/operate/troubleshoot/incident-tampered`
+- :doc:`/operate/run/telemetry`
diff --git a/Documentation/reference/cli/upatch-load.rst b/Documentation/reference/cli/upatch-load.rst
index f2e696f3..0f62cd15 100644
--- a/Documentation/reference/cli/upatch-load.rst
+++ b/Documentation/reference/cli/upatch-load.rst
@@ -176,7 +176,8 @@ Exit status and failure categories
``attach_target_missing``, ``binary_mismatch``,
``attach_scope_mismatch``, ``tpm_error`` and ``unknown``.
:doc:`/reference/failure-categories` gives the cause and the action for
-each. Handle ``tampered`` as an incident (:doc:`/operate/incident-tampered`).
+each. Handle ``tampered`` as an incident
+(:doc:`/operate/troubleshoot/incident-tampered`).
Files and environment
---------------------
@@ -219,7 +220,7 @@ differs, ``load`` refuses before it touches the kernel:
The message suggests repeating the command with the live value. Do not.
A register that differs from your prediction is an incident
-(:doc:`/operate/incident-tampered`).
+(:doc:`/operate/troubleshoot/incident-tampered`).
A refusal for an artifact signed by a key the target does not trust:
diff --git a/Documentation/reference/cli/upatch-map.rst b/Documentation/reference/cli/upatch-map.rst
index 3aae55f6..fcbb6e50 100644
--- a/Documentation/reference/cli/upatch-map.rst
+++ b/Documentation/reference/cli/upatch-map.rst
@@ -193,7 +193,7 @@ Send one map to a collector:
Related
-------
-- :doc:`/operate/telemetry`
+- :doc:`/operate/run/telemetry`
- :doc:`/reference/formats/otlp`
- :doc:`/upatches/maps-arenas-serializers`
- :doc:`/upatches/decoders`
diff --git a/Documentation/reference/cli/version.rst b/Documentation/reference/cli/version.rst
index da80b48b..3effe74b 100644
--- a/Documentation/reference/cli/version.rst
+++ b/Documentation/reference/cli/version.rst
@@ -83,4 +83,4 @@ Related
-------
- :doc:`upatch-load`
-- :doc:`/operate/upgrade`
+- :doc:`/operate/maintain/upgrade`
diff --git a/Documentation/reference/environment.rst b/Documentation/reference/environment.rst
index f3bd3ac9..57d08111 100644
--- a/Documentation/reference/environment.rst
+++ b/Documentation/reference/environment.rst
@@ -256,7 +256,7 @@ The units read these files with ``EnvironmentFile=-<file>``. A missing
file is not an error. They are host files on the root file system,
outside the sealed state under ``/var/lib/shirudo`` and outside the
signed config. Root can change them, and the next run of the unit uses
-what they hold. See :doc:`/operate/hardening`.
+what they hold. See :doc:`/operate/plan/hardening`.
.. list-table::
:header-rows: 1
@@ -287,5 +287,5 @@ Related
environment files
- :doc:`/reference/formats/configuration` for the settings these
variables complement
-- :doc:`/operate/telemetry` and :doc:`/operate/deliver-packages` for
+- :doc:`/operate/run/telemetry` and :doc:`/operate/run/deliver-packages` for
setting up export and registry access
diff --git a/Documentation/reference/failure-categories.rst b/Documentation/reference/failure-categories.rst
index 0b3ad0a3..e946f271 100644
--- a/Documentation/reference/failure-categories.rst
+++ b/Documentation/reference/failure-categories.rst
@@ -82,14 +82,14 @@ Categories
- ``--expect-version-id`` differs from the target's
``SHIRUDO_VERSION_ID``.
- Compare ``shirudo version --version-id`` on both hosts and
- deploy matching builds. See :doc:`/operate/upgrade`.
+ deploy matching builds. See :doc:`/operate/maintain/upgrade`.
* - ``kernel_abi_unsupported``
- ``pre_flight``, ``link_create``
- ``EOPNOTSUPP``
- In ``pre_flight``, the kernel lacks the signed-loader ABI; the
message names the missing part. In ``link_create``, the kernel
does not support the attach type.
- - Run a kernel that meets :doc:`/operate/system-requirements`.
+ - Run a kernel that meets :doc:`/operate/plan/system-requirements`.
* - ``keyring_missing``
- ``pre_flight``, ``signed_loader_load``
- errno of the read, ``ENOKEY``
@@ -98,7 +98,7 @@ Categories
signer's certificate is not in the ``.bpf`` keyring.
- Check ``shirudo status`` and the journal of ``init``. Compare the
signer with ``shirudo keys``; enroll a signer through the signed
- config, see :doc:`/operate/keys`.
+ config, see :doc:`/operate/maintain/keys`.
* - ``tampered``
- ``pre_flight``, ``tpm_extend``
- none, ``EPERM``, ``EACCES``
@@ -107,7 +107,7 @@ Categories
``--expect-chain`` or cannot be read (``EPERM``), or the register
is not the one ``init`` bound (``EACCES``, the load is undone).
- Do not retry. Keep the eventlog and the journal and handle the
- target as an incident: :doc:`/operate/incident-tampered`.
+ target as an incident: :doc:`/operate/troubleshoot/incident-tampered`.
* - ``eventlog_full``
- ``pre_flight``
- ``ENOSPC``
@@ -150,7 +150,7 @@ Categories
- ``ENOPKG``
- The kernel cannot verify ML-DSA signatures.
- Build the kernel with ``CONFIG_CRYPTO_MLDSA``, see
- :doc:`/operate/system-requirements`.
+ :doc:`/operate/plan/system-requirements`.
* - ``lsm_denied``
- ``target_verify``, ``signed_loader_load``, ``link_create``
- ``EACCES``, ``EPERM``
@@ -572,6 +572,6 @@ Related
-------
- :doc:`/reference/cli/upatch-load` and :doc:`/reference/cli/upatch-unload`
-- :doc:`/operate/troubleshooting`
-- :doc:`/operate/incident-tampered`
+- :doc:`/operate/troubleshoot/troubleshooting`
+- :doc:`/operate/troubleshoot/incident-tampered`
- :doc:`/security/tamper-counters`
diff --git a/Documentation/reference/files.rst b/Documentation/reference/files.rst
index 71faae28..f2c9d307 100644
--- a/Documentation/reference/files.rst
+++ b/Documentation/reference/files.rst
@@ -488,7 +488,7 @@ snapshot to ``$TMPDIR/shirudo-map-snapshot.XXXXXX`` (``/tmp`` when
Related
-------
-- :doc:`/operate/backup-recovery`
+- :doc:`/operate/maintain/backup-recovery`
- :doc:`/internals/seal`
- :doc:`/security/tamper-counters`
- :doc:`/reference/environment`
diff --git a/Documentation/reference/formats/bpm-formats.rst b/Documentation/reference/formats/bpm-formats.rst
index 357c2f19..c076115c 100644
--- a/Documentation/reference/formats/bpm-formats.rst
+++ b/Documentation/reference/formats/bpm-formats.rst
@@ -560,6 +560,6 @@ Related
-------
- :doc:`/upatches/publishing`
-- :doc:`/operate/deliver-packages`
+- :doc:`/operate/run/deliver-packages`
- :doc:`/reference/cli/bpm`
- :doc:`configuration` for repository and tree settings
diff --git a/Documentation/reference/formats/configuration.rst b/Documentation/reference/formats/configuration.rst
index 8f79560e..42b16a09 100644
--- a/Documentation/reference/formats/configuration.rst
+++ b/Documentation/reference/formats/configuration.rst
@@ -347,7 +347,7 @@ links, devices, FIFOs and sockets are refused with ``EPERM``.
- A revoked certificate. ``<fingerprint>`` is the lowercase hex
SHA-256 of its DER ``SubjectPublicKeyInfo``.
-See :doc:`/operate/keys` for the trusted and revoked sets and
+See :doc:`/operate/maintain/keys` for the trusted and revoked sets and
:doc:`/internals/config-images` for activation.
Runtime image
@@ -500,7 +500,7 @@ Related
- :doc:`/reference/environment` for the variables that override or
complement these settings
- :doc:`/reference/files` for every path shirudo reads and writes
-- :doc:`/operate/boot-integration` for building the bootstrap files and
+- :doc:`/operate/deploy/boot-integration` for building the bootstrap files and
images
-- :doc:`/operate/telemetry` for the export destinations
-- :doc:`/operate/deliver-packages` for repositories and the upatch tree
+- :doc:`/operate/run/telemetry` for the export destinations
+- :doc:`/operate/run/deliver-packages` for repositories and the upatch tree
diff --git a/Documentation/reference/formats/eventlog.rst b/Documentation/reference/formats/eventlog.rst
index 83c01615..a9adf6d1 100644
--- a/Documentation/reference/formats/eventlog.rst
+++ b/Documentation/reference/formats/eventlog.rst
@@ -255,7 +255,7 @@ name differs from the recorded ``nv_name``, when the recorded PCR values
and writer key do not give that name, and when two ``init`` records
name the same TPM reset count. ``shirudo attest`` puts the selected
records, verbatim, in the evidence's ``eventlog`` array, see
-:doc:`/operate/attest`.
+:doc:`/operate/run/attest`.
Pending record
--------------
@@ -360,6 +360,6 @@ Related
-------
- :doc:`/internals/measurement-register`
-- :doc:`/operate/attest`
+- :doc:`/operate/run/attest`
- :doc:`status-json`
- :doc:`/reference/cli/status`
diff --git a/Documentation/reference/formats/otlp.rst b/Documentation/reference/formats/otlp.rst
index a24b1329..91b7a4eb 100644
--- a/Documentation/reference/formats/otlp.rst
+++ b/Documentation/reference/formats/otlp.rst
@@ -30,7 +30,7 @@ one ``POST`` from a one-shot command:
The timers ``shirudo-keepalive.timer`` and ``shirudo-map-export.timer``
run these commands, see :doc:`/reference/systemd-units`. Setting up an
-export is in :doc:`/operate/telemetry`. Decoders are in
+export is in :doc:`/operate/run/telemetry`. Decoders are in
:doc:`/upatches/decoders`.
Transport
@@ -488,7 +488,7 @@ shortened to the first entries:
Related
-------
-- :doc:`/operate/telemetry`
+- :doc:`/operate/run/telemetry`
- :doc:`/reference/cli/status`
- :doc:`/reference/cli/upatch-map`
- :doc:`/upatches/decoders`
diff --git a/Documentation/reference/formats/status-json.rst b/Documentation/reference/formats/status-json.rst
index 45927d5f..8411595d 100644
--- a/Documentation/reference/formats/status-json.rst
+++ b/Documentation/reference/formats/status-json.rst
@@ -12,7 +12,7 @@ status JSON
object is the body of the status keepalive that ``status --otel``
sends, see :doc:`otlp`. Options and exit status are in
:doc:`/reference/cli/status`. How to read a report is in
-:doc:`/operate/read-status`.
+:doc:`/operate/run/read-status`.
.. code-block:: console
@@ -620,10 +620,10 @@ Fields to alert on
- Next step
* - ``status``
- ``tampered``
- - Handle as an incident: :doc:`/operate/incident-tampered`.
+ - Handle as an incident: :doc:`/operate/troubleshoot/incident-tampered`.
* - ``status``
- any value but ``ok``
- - :doc:`/operate/read-status`
+ - :doc:`/operate/run/read-status`
* - ``conditions[].status``
- ``ALERT``
- The ``detail`` names the cause.
@@ -885,7 +885,7 @@ Related
-------
- :doc:`/reference/cli/status`
-- :doc:`/operate/read-status`
+- :doc:`/operate/run/read-status`
- :doc:`/security/tamper-counters`
- :doc:`eventlog`
- :doc:`otlp`
diff --git a/Documentation/reference/systemd-units.rst b/Documentation/reference/systemd-units.rst
index 08667b65..0d0fc695 100644
--- a/Documentation/reference/systemd-units.rst
+++ b/Documentation/reference/systemd-units.rst
@@ -163,7 +163,7 @@ keepalive, map-export, repository-update and tree-sync services run
the runtime image is refused with ``shirudo: image state: Permission
denied`` and exit status 1, so each of these services needs its own
drop-in whose ``ExecStart=`` runs the runtime image's binary. See
-:doc:`/operate/boot-integration`.
+:doc:`/operate/deploy/boot-integration`.
shirudo-keepalive.service
-------------------------
@@ -244,7 +244,7 @@ shirudo-bpm-repo-update.service
installed from a repository, the highest version in its cached index
when that version is newer than the installed one. A package pulled
directly is left alone. See
-:doc:`/operate/deliver-packages`.
+:doc:`/operate/run/deliver-packages`.
shirudo-bpm-tree-sync.service
-----------------------------
@@ -335,5 +335,5 @@ Related
- :doc:`/reference/cli/init`, :doc:`/reference/cli/status`,
:doc:`/reference/cli/upatch-map` and :doc:`/reference/cli/bpm` for the
commands the services run
-- :doc:`/operate/boot-integration` for installing the units with the
+- :doc:`/operate/deploy/boot-integration` for installing the units with the
runtime image
diff --git a/Documentation/reference/versions.rst b/Documentation/reference/versions.rst
index b3693652..9fb88a53 100644
--- a/Documentation/reference/versions.rst
+++ b/Documentation/reference/versions.rst
@@ -116,7 +116,7 @@ Where it appears and what checks it:
The ID keeps an operator and a target of different builds apart when the
operator asks for it. It authenticates nothing (R5 in
-:doc:`/security/threat-model`). :doc:`/operate/upgrade` says where to
+:doc:`/security/threat-model`). :doc:`/operate/maintain/upgrade` says where to
take the expected ID from.
Format and schema numbers
@@ -223,7 +223,7 @@ the ``tpm_command`` LSM hook that it carries as a kernel patch. A
release number does not identify such a kernel. The pre-flight check
``signed_loader_kernel_abi`` reads the running kernel's BTF, and a load
on a kernel without the ABI fails with ``kernel_abi_unsupported``.
-:doc:`/operate/system-requirements` lists the kernel requirements and how
+:doc:`/operate/plan/system-requirements` lists the kernel requirements and how
to identify a kernel, :doc:`/internals/kernel-interfaces` every interface
shirudo uses, and :doc:`/internals/kernel-patches` the carried patches.
@@ -241,7 +241,7 @@ target on builds of the same commit.
* - Combination
- Behavior
* - Initrd binary and runtime image binary
- - Must be the same build (:doc:`/operate/boot-integration`).
+ - Must be the same build (:doc:`/operate/deploy/boot-integration`).
Nothing compares their IDs. The runtime binary reads the identity
map and the tamper counters that the initrd's ``init`` pinned and
refuses maps whose layout differs from its own: a different
@@ -264,7 +264,7 @@ target on builds of the same commit.
Related
-------
-- :doc:`/operate/upgrade`
+- :doc:`/operate/maintain/upgrade`
- :doc:`/reference/cli/version`
- :doc:`/reference/formats/index`
-- :doc:`/operate/system-requirements`
+- :doc:`/operate/plan/system-requirements`
diff --git a/Documentation/security/security-model.rst b/Documentation/security/security-model.rst
index 0a894236..9e48e493 100644
--- a/Documentation/security/security-model.rst
+++ b/Documentation/security/security-model.rst
@@ -118,15 +118,15 @@ The deployer and the verifier each have a part that no code does for
them. The :ref:`duties <tm-duties>` section lists it in full. The
essentials:
-- Build and boot the kernel as :doc:`/operate/hardening` describes.
+- Build and boot the kernel as :doc:`/operate/plan/hardening` describes.
- Start every shirudo unit from the runtime image, and keep the units'
environment files empty.
- Verify each target with ``shirudo attest verify`` and always pass
``--ak-name``, the binding PCRs, an expected state and the expected
- config root, as :doc:`/operate/attest` describes.
+ config root, as :doc:`/operate/run/attest` describes.
- Treat ``shirudo status``, keepalives and tamper counters as the
target's own account, and a ``tampered`` status as an incident
- (:doc:`/operate/incident-tampered`).
+ (:doc:`/operate/troubleshoot/incident-tampered`).
Related
-------
diff --git a/Documentation/security/tamper-counters.rst b/Documentation/security/tamper-counters.rst
index ebd64074..b487e042 100644
--- a/Documentation/security/tamper-counters.rst
+++ b/Documentation/security/tamper-counters.rst
@@ -298,7 +298,8 @@ A non-zero counter does not mean:
A counter does not change the verdict of ``shirudo status``. It is the
target's own account, like the rest of the status, and it travels
unauthenticated to the collector. Only ``shirudo attest verify`` is
-evidence. To act on a counter, see :doc:`/operate/incident-tampered`.
+evidence. To act on a counter, see
+:doc:`/operate/troubleshoot/incident-tampered`.
Related
-------
diff --git a/Documentation/security/threat-model.rst b/Documentation/security/threat-model.rst
index e57700e6..ebd79676 100644
--- a/Documentation/security/threat-model.rst
+++ b/Documentation/security/threat-model.rst
@@ -995,7 +995,7 @@ owner's policy.
The evidence boundary of :ref:`tm-trust-boundaries` applies: what is
not signed by the TPM is the target's account. Without ``--ak-name`` a
document can carry a software key's signatures (U1).
-:doc:`/operate/attest` is the procedure.
+:doc:`/operate/run/attest` is the procedure.
.. rst-class:: facts
@@ -1443,7 +1443,7 @@ U1 Verification passes without a pinned key or an expected state
:Meanwhile: Always pass ``--ak-name``, an expected state,
``--expect-bind-pcr=9=<value>`` and ``--expect-bind-pcr=11=<value>``,
and ``--expect-config-root`` with ``--expect-config-pcr``. See
- :doc:`/operate/attest`.
+ :doc:`/operate/run/attest`.
U2 Any key the kernel trusts for dm-verity signs a config
:Affects: Config images (A7).
@@ -1569,7 +1569,7 @@ U10 Kernel prerequisites are not checked
give.
:Status: Confirmed in code: the pre-flight checks none of them.
:Meanwhile: Boot with ``lockdown=integrity`` on an authenticated
- command line and build the kernel as :doc:`/operate/hardening`
+ command line and build the kernel as :doc:`/operate/plan/hardening`
describes.
U11 The boot continues when init fails
@@ -1637,7 +1637,8 @@ U16 Boot restore is not all or nothing
unmeasured.
:Status: Confirmed in code.
:Meanwhile: Treat a failed ``init`` as an incident; attestation fails
- for want of an init record. See :doc:`/operate/incident-tampered`.
+ for want of an init record. See
+ :doc:`/operate/troubleshoot/incident-tampered`.
U17 A stopped runtime command keeps its descriptors
:Affects: The descriptor checks of T2.
@@ -1721,7 +1722,7 @@ Duties
------
The mechanisms above hold only when the deployer and the verifier do
-their part. :doc:`/operate/hardening` and :doc:`/operate/attest` are
+their part. :doc:`/operate/plan/hardening` and :doc:`/operate/run/attest` are
the procedures.
The deployer:
@@ -1747,7 +1748,7 @@ The deployer:
it installs (U15)
- Watches the size of the eventlog (U6) and the keepalives, and treats a
``tampered`` status as an incident to understand, not a condition to
- retry (:doc:`/operate/incident-tampered`)
+ retry (:doc:`/operate/troubleshoot/incident-tampered`)
The verifier:
diff --git a/Documentation/start/guides/attest-target.rst b/Documentation/start/guides/attest-target.rst
index 2d103ef2..a19e7231 100644
--- a/Documentation/start/guides/attest-target.rst
+++ b/Documentation/start/guides/attest-target.rst
@@ -288,7 +288,7 @@ threat model lists this behavior among the threats to resolve.
Next steps
----------
-- :doc:`/operate/attest` attests production targets, with the binding
+- :doc:`/operate/run/attest` attests production targets, with the binding
PCRs and the approved config image.
- :doc:`/concepts/measurement-register` explains the register, its events
and its binding.
diff --git a/Documentation/start/guides/publish-package.rst b/Documentation/start/guides/publish-package.rst
index c18cd65f..96d6b707 100644
--- a/Documentation/start/guides/publish-package.rst
+++ b/Documentation/start/guides/publish-package.rst
@@ -204,6 +204,6 @@ Next steps
- :doc:`/upatches/beefile` describes every key of a ``Beefile``.
- :doc:`/upatches/publishing` publishes to a registry and to the signed
upatch tree.
-- :doc:`/operate/deliver-packages` registers repositories in the signed
+- :doc:`/operate/run/deliver-packages` registers repositories in the signed
config and lets the timers keep targets up to date.
- :doc:`/reference/cli/bpm` describes every ``shirudo bpm`` command.
diff --git a/Documentation/start/how-it-works.rst b/Documentation/start/how-it-works.rst
index 4bfe934e..b1b5c554 100644
--- a/Documentation/start/how-it-works.rst
+++ b/Documentation/start/how-it-works.rst
@@ -155,7 +155,7 @@ Attest
the shipped certificates and artifacts must produce, and ``shirudo
attest verify`` checks the signatures and the nonce, replays the records
to the certified value and compares it with that expectation. Neither
- command opens a TPM. :doc:`/operate/attest` shows the procedure, and
+ command opens a TPM. :doc:`/operate/run/attest` shows the procedure, and
:doc:`/concepts/background/tpm` explains the TPM operations.
Export
@@ -171,7 +171,7 @@ OTLP log record when an endpoint is configured. Both run five seconds after
the previous run ends.
Telemetry carries no proof of origin. It is the target's own account, and
-the TPM-signed evidence of step 7 is the check. :doc:`/operate/telemetry`
+the TPM-signed evidence of step 7 is the check. :doc:`/operate/run/telemetry`
covers the export settings.
Unload
diff --git a/Documentation/start/install.rst b/Documentation/start/install.rst
index 21869899..9fc4ba4e 100644
--- a/Documentation/start/install.rst
+++ b/Documentation/start/install.rst
@@ -20,7 +20,7 @@ Before you begin
- Decide which hosts are operators and which are targets.
:doc:`/concepts/operator-and-target` explains the split.
- A checkout of shirudo on a build host that meets the build requirements
- in :doc:`/operate/system-requirements`.
+ in :doc:`/operate/plan/system-requirements`.
- ``dpkg-deb`` (package ``dpkg-dev``) to build ``.deb`` packages, or
``rpmbuild`` (package ``rpm`` on Debian and Ubuntu, ``rpm-build`` on
Fedora) to build ``.rpm`` packages.
@@ -201,7 +201,7 @@ packages, with the binaries under ``/usr/local`` unless you set
This builds OpenSSL, libcurl and tpm2-tss from source first and links
the static target binary against them and the static archives that
- :doc:`/operate/system-requirements` lists. It enables no unit.
+ :doc:`/operate/plan/system-requirements` lists. It enables no unit.
3. Check the installation on either host:
@@ -219,7 +219,7 @@ Installing ``shirudo-target`` protects nothing by itself. A target
enforces once it boots through the shirudo initrd with everything that
``init`` verifies there:
-- A kernel that meets :doc:`/operate/system-requirements`, booted with
+- A kernel that meets :doc:`/operate/plan/system-requirements`, booted with
the BPF LSM active and with ``bpf.keyring_unsealed=1
dm_verity.keyring_unsealed=1``, so that ``init`` can enroll the trusted
certificates and then seal the ``.bpf`` and ``.dm-verity`` keyrings.
@@ -237,14 +237,14 @@ enforces once it boots through the shirudo initrd with everything that
so the timer services need the same change to work. The generator does
not write drop-ins for them.
-:doc:`/operate/boot-integration` sets these up. After the reboot,
+:doc:`/operate/deploy/boot-integration` sets these up. After the reboot,
``shirudo status`` on the target shows ``Status: ok``, ``Mode:
production`` and ``Bound in: initrd``.
Next steps
----------
-- :doc:`/operate/boot-integration` brings an installed target up.
-- :doc:`/operate/deployment-checklist` lists every step of a rollout.
-- :doc:`/operate/keys` creates the signing key on the operator host.
+- :doc:`/operate/deploy/boot-integration` brings an installed target up.
+- :doc:`/operate/deploy/deployment-checklist` lists every step of a rollout.
+- :doc:`/operate/maintain/keys` creates the signing key on the operator host.
- :doc:`quickstart` tries everything in a test VM first.
diff --git a/Documentation/start/quickstart.rst b/Documentation/start/quickstart.rst
index f1a214de..f39d5026 100644
--- a/Documentation/start/quickstart.rst
+++ b/Documentation/start/quickstart.rst
@@ -42,7 +42,7 @@ Before you begin
dependencies.
- ``jq`` and the ``openssl`` command, for the attestation step.
-:doc:`/operate/system-requirements` lists the requirements in full.
+:doc:`/operate/plan/system-requirements` lists the requirements in full.
Build shirudo
-------------
@@ -473,7 +473,7 @@ nothing but the evidence, your certificates and your artifacts.
that this value is the one you predicted. The command exits with 0 on
``verdict: ok`` and with 1 on ``verdict: FAIL``. The notes name checks
this page leaves out, such as the approved config image.
- :doc:`/operate/attest` covers them.
+ :doc:`/operate/run/attest` covers them.
Here you took the attestation key's name from the evidence itself,
which proves nothing about which TPM signed it. :doc:`guides/attest-target`
@@ -548,4 +548,4 @@ Next steps
evidence.
- :doc:`how-it-works` explains each step of this page.
- :doc:`install` installs shirudo on real hosts, and
- :doc:`/operate/boot-integration` brings a target up.
+ :doc:`/operate/deploy/boot-integration` brings a target up.
diff --git a/Documentation/start/what-is-shirudo.rst b/Documentation/start/what-is-shirudo.rst
index 52400929..0c6cb2ba 100644
--- a/Documentation/start/what-is-shirudo.rst
+++ b/Documentation/start/what-is-shirudo.rst
@@ -99,7 +99,7 @@ A target needs a bpf-next development kernel with the signed BPF loader
interface and the BPF LSM, the kernel patches listed in
:doc:`/internals/kernel-patches`, and a TPM 2.0. The operator host needs
current clang. Both run on x86-64, arm64 and riscv64.
-:doc:`/operate/system-requirements` lists the details.
+:doc:`/operate/plan/system-requirements` lists the details.
Next steps
----------
diff --git a/Documentation/upatches/attach-kinds.rst b/Documentation/upatches/attach-kinds.rst
index b171b819..e2ecb1f5 100644
--- a/Documentation/upatches/attach-kinds.rst
+++ b/Documentation/upatches/attach-kinds.rst
@@ -76,7 +76,7 @@ the link against the metadata and pins it.
- the base requirements
The base requirements are the kernel options shirudo itself needs, listed
-in :doc:`/operate/system-requirements`. They include BPF trampolines, BTF
+in :doc:`/operate/plan/system-requirements`. They include BPF trampolines, BTF
and the BPF LSM, which is why the BTF-based kinds need nothing more.
Every attached program becomes one link pinned at
diff --git a/Documentation/upatches/debugging.rst b/Documentation/upatches/debugging.rst
index aa9b1359..9db34a32 100644
--- a/Documentation/upatches/debugging.rst
+++ b/Documentation/upatches/debugging.rst
@@ -73,7 +73,7 @@ Find the cause
- ``kernel_abi_unsupported``
- The kernel's BTF lacks the signed-loader fields shirudo needs.
``message`` names the field. Boot a kernel that meets
- :doc:`/operate/system-requirements`.
+ :doc:`/operate/plan/system-requirements`.
* - ``pre_flight``
- ``keyring_missing``
- ``shirudo init`` has not frozen a trust anchor this boot. The
@@ -83,7 +83,7 @@ Find the cause
- The ``.bpf`` keyring is not the one ``init`` froze, shirudo's
LSM link is not pinned, or the register is not the
``--expect-chain`` value. Do not retry. Follow
- :doc:`/operate/incident-tampered`.
+ :doc:`/operate/troubleshoot/incident-tampered`.
* - ``pre_flight``
- ``eventlog_full``
- The eventlog would grow past ``eventlog.max_bytes``. Nothing was
diff --git a/Documentation/upatches/decoders.rst b/Documentation/upatches/decoders.rst
index cc835a7a..a78545ea 100644
--- a/Documentation/upatches/decoders.rst
+++ b/Documentation/upatches/decoders.rst
@@ -262,7 +262,7 @@ message, so give such a map a metric decoder.
Next steps
----------
-- :doc:`/operate/telemetry` to export every map on a schedule
+- :doc:`/operate/run/telemetry` to export every map on a schedule
- :doc:`/reference/formats/otlp` for the documents on the wire
- The decoders under ``upatches/kernel-obs/decoders/`` for complete log
decoders over arena tables, timestamps included
diff --git a/Documentation/upatches/examples.rst b/Documentation/upatches/examples.rst
index 5f97213d..01eb15cf 100644
--- a/Documentation/upatches/examples.rst
+++ b/Documentation/upatches/examples.rst
@@ -56,7 +56,7 @@ Its ``README.md`` is what ``shirudo bpm info`` prints for the package.
It follows here as it ships. Where it tells a target to add a key with
``bpm key add``, note that a production target takes its keys and
repositories from its signed config image and refuses local key changes.
-:doc:`/operate/deliver-packages` describes that setup.
+:doc:`/operate/run/deliver-packages` describes that setup.
.. include:: ../../upatches/kernel-obs/README.md
:parser: myst_parser.sphinx_
diff --git a/Documentation/upatches/kernel-fix-tutorial.rst b/Documentation/upatches/kernel-fix-tutorial.rst
index 1df5842a..348194e0 100644
--- a/Documentation/upatches/kernel-fix-tutorial.rst
+++ b/Documentation/upatches/kernel-fix-tutorial.rst
@@ -429,7 +429,7 @@ Next steps
----------
- :doc:`publishing` for the index, the tree and withdrawing an entry
-- :doc:`/operate/deliver-packages` for what a target does with them
+- :doc:`/operate/run/deliver-packages` for what a target does with them
- :doc:`maps-arenas-serializers` and :doc:`decoders` to export what the
upatch records
- :doc:`attach-kinds` for the other places an upatch can attach
diff --git a/Documentation/upatches/maps-arenas-serializers.rst b/Documentation/upatches/maps-arenas-serializers.rst
index 5e1ce476..136d30ed 100644
--- a/Documentation/upatches/maps-arenas-serializers.rst
+++ b/Documentation/upatches/maps-arenas-serializers.rst
@@ -186,7 +186,7 @@ with a dot in the name or the ``obs_i_`` prefix, are not visible at all.
The pages or entries then go to the map's decoder, which turns them into a
log record or a metric. :doc:`decoders` describes that step, and
-:doc:`/operate/telemetry` the export to a collector.
+:doc:`/operate/run/telemetry` the export to a collector.
Only tasks with shirudo's runtime authority can do any of this. The LSM
refuses ``BPF_PROG_TEST_RUN``, opening a pinned map or obtaining a map
diff --git a/Documentation/upatches/publishing.rst b/Documentation/upatches/publishing.rst
index 40c5915a..dad9d41a 100644
--- a/Documentation/upatches/publishing.rst
+++ b/Documentation/upatches/publishing.rst
@@ -137,7 +137,7 @@ What a target does with them
A target learns its repositories, their index certificates and the tree
it follows from its signed config image.
-:doc:`/operate/deliver-packages` shows the setup.
+:doc:`/operate/run/deliver-packages` shows the setup.
For a package by name, ``shirudo bpm repo update`` fetches the index and
verifies its signature. ``shirudo bpm install <source>/<name>`` checks the
@@ -165,5 +165,5 @@ Next steps
- :doc:`/reference/formats/bpm-formats` for the index and the tree
documents
-- :doc:`/operate/deliver-packages` to configure targets
-- :doc:`/operate/attest` to verify what targets loaded
+- :doc:`/operate/run/deliver-packages` to configure targets
+- :doc:`/operate/run/attest` to verify what targets loaded
diff --git a/README.md b/README.md
index 16a5f971..4c444a98 100644
--- a/README.md
+++ b/README.md
@@ -47,7 +47,7 @@ start, each release tag publishes its packages on
and the actively maintained releases are listed here.
For upgrades of shirudo and the kernel on a target, consult
-[Upgrade shirudo and the kernel](Documentation/operate/upgrade.rst).
+[Upgrade shirudo and the kernel](Documentation/operate/maintain/upgrade.rst).
### Architectures