Deployment checklist#

Reference · Operators

Everything a production target needs, in the order you set it up. Each item names the page that does it.

Plan#

#

Item

Page

1

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.

System requirements

2

Kernel configuration and command line chosen from the hardening checklist, including the PCR for config measurements.

Hardening checklist

3

Operator host with the operator package, veritysetup and mkfs.ext4. It never runs as a target.

System requirements

4

BPF signing key and config signing key created, with their custody decided.

Manage signing keys

Build on the operator host#

#

Item

Page

5

Initial config image built and signed. Its etc/shirudo/shirudo.conf holds only eventlog.max_bytes and map_export.* keys.

Boot integration

6

Repository definitions, the upatch tree subscription and node labels placed in the config image.

Deliver packages

7

Collector endpoint in the config image’s map_export.* keys.

Monitor and export telemetry

8

Runtime bootstrap file written with config.image, config.verification_key, config.pcr and tpm.tcti.

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.

Boot integration

10

Version ID of the target binary recorded.

Upgrade shirudo and the kernel

11

UKI bootstrap file written with runtime.image and runtime.root_hash.

Boot integration

Prepare the target#

#

Item

Page

12

Target package and dracut installed.

Boot integration

13

Runtime and config images placed in /var/lib/shirudo/images before the first boot with enforcement.

Boot integration

14

Drop-ins installed for shirudo.service, shirudo-keepalive.service, shirudo-map-export.service, shirudo-bpm-repo-update.service, shirudo-bpm-tree-sync.service and shirudo-xdp-reconcile.service.

Install the unit drop-ins

15

Environment files /etc/shirudo/map-export.env and /etc/shirudo/bpm/environment reviewed.

Hardening checklist

16

Initrd generated with shirudo-gen-initrd --bootstrap-conf and passed shirudo-gen-initrd --check.

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.

Boot integration

Boot and enroll#

#

Item

Page

18

First boot completed: status reports ok, status --show-full shows Bound in: initrd, and image status reports Pending: no.

Initialize a target

19

Attestation key name recorded and the target’s endorsement key checked with a credential challenge.

Attest targets

20

Expected PCR 9 and PCR 11 values at binding, the expected register and the approved config root recorded for the verifier.

Attest targets

21

First packages installed and their delivery through the timers observed.

Deliver packages

Run#

#

Item

Page

22

Alerts on the status field of status --json, on tamper counters and on a missing keepalive, not on the exit status.

Read shirudo status, Monitor and export telemetry

23

Attestation scheduled with a fresh nonce and the verifier’s required flags.

Attest targets

24

Backup of /var/lib/shirudo and of the operator’s build inputs.

Back up, recover and decommission a target

25

Incident procedure for a tampered target agreed with the security team.

Respond to a tampered target

26

Upgrade procedure for shirudo and the kernel tried on a canary target, with the previous UKI kept as a boot entry.

Upgrade shirudo and the kernel