12 30 Operations and Runbooks
Nimmo edited this page 2026-09-13 13:14:49 +01:00

Operations and Runbooks

  • Type: Index
  • Status: Current
  • Scope: Fleet operations
  • Canonical sources: Justfile, justfiles/, deployment and maintenance scripts, service modules, host configurations, and backup configuration
  • Last verified: Source commit 556df88494686003b1c4f20c8e0b99b5afc16a6e (2026-09-12)
  • Review triggers: Changes to user-facing commands, deployment behavior, recovery mechanisms, service ownership, backups, secrets, or incident response

This section owns executable procedures for operating, investigating, repairing, and recovering the fleet. Every runbook states its prerequisites, safety boundary, ordered steps, success checks, and rollback or recovery path.

Current pages

  • Routine Fleet Operations — read-only starting points and routing to the procedure that owns a state-changing action.
  • Safe Testing and Deployment — validation, specialisation-preserving test activation, update holds, deployment, success checks, and recovery boundaries.
  • Host Provisioning — destructive Disko and nixos-anywhere boundary, first deployment, permanent SSH/SOPS identity, and bootstrap-key retirement.
  • Monitoring and Service Investigation — Beszel triage, deployment correlation, bounded systemd/container evidence, route checks, and diagnosis handoff.
  • Backup Verification and Partial Restore — check coverage and recency, stage and inspect individual restic/Btrfs paths, and distinguish a usable restore from a snapshot listing.
  • Full-Host Recovery — classify host loss, build a host-specific recovery manifest, reconstruct the declarative base, stage authoritative state, and verify each service without an unsafe root overwrite.
  • Electra Boot-Trust and TPM Recovery — separate signed-boot, firmware, managed-PCR, TPM-token, LUKS-header, and whole-disk failure cases while retaining independent passphrase access.
  • Secret Editing and Recipient Rotation — scoped SOPS editing, new-file rules, staged age recipient changes, credential revocation, and recovery when an ordinary host key is unavailable.
  • Auto-Update Incident Response — classify producer, candidate, publication, and consumer failures; inspect guarded remediation; recover stopped services; and review temporary pins.
  • Service Migration and Cutover — plan one writable authority, stage data, switch ingress and clients, verify the target and its backup, and retain a data-aware rollback route.
  • Wrapper-Repository Packaging — prove a separate package flake, classify its update consumers, integrate the fleet service, and validate deployment and rollback boundaries.

The original Electra Secure Boot hardening record is historical evidence, not an operating runbook. Retired manual chapters remain in wiki Git history. The operations rebuild is tracked by issue #222.