You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found by the 2026-11-14 whole-PM-stack backup/DR audit (verdict issue filed same day).
Observed (2026-11-14, laptop amd):
The code repo's .sops.yaml names two age recipients: laptop-framework = age125acas5y8hnwl5uhcp364xm8zlhtwsjqvxxpge8k04dzzr67acrq0ttc34 and claude-sandbox.
age-keygen -y ~/.config/sops/age/keys.txt on the laptop returns exactly the laptop-framework public key — the laptop's SOPS private key lives only in that one file (75 bytes, dated 2024-10-14).
That file is in no backup set: laptop-state-backup covers only ~/.local/state/opencode, ~/secrets/*.sops.yaml, ~/.ssh; agent-backup is local-only and does not list it; no other routine names it.
The fleet secrets list (Bitwarden Secrets Manager, names only) contains sops.age-private-key-sandbox — the sandbox key — and no laptop/framework age key at all.
Consequence: the SOPS ciphertext is backed up (~/secrets/*.sops.yaml rides laptop-state-backup, and the .sops.yaml files are in git), but if the laptop disk dies, nothing can decrypt the laptop-recipient files on a new machine. The encrypted backups are then dead weight for every secret that is encrypted to the laptop recipient only.
Fix shape: store the laptop age private key by name in Bitwarden Secrets Manager (value never in git/chat), and/or add ~/.config/sops/age/keys.txt to the laptop-state restic set; verify by decrypting one laptop-recipient SOPS file in a scratch dir using only the vault-retrieved key.
Acceptance: a named vault entry (or an equivalent backed-up copy) exists and a scratch decrypt proof is recorded — key value never printed in the proof.
State: triaged — a real disaster-recovery gap with a clear fix shape. This triage deliberately does NOT perform the fix: the fix moves a private key into the vault, and that step belongs to a session using the dedicated secrets flow (value handled by tooling, never printed or read by the lane), not to an unattended triage pass. No key material was read, copied, or printed during this triage.
Fresh evidence (checked 2026-11-17):
Issue SOPS decryption key not recoverable #10295 is OPEN with no labels; no held / user/owned / do-not-merge / do-not-auto-edit labels. Its only comment is the Kaneo mirror (CODE-3703).
The body's audit evidence (2026-11-14, whole-PM-stack backup/DR audit) is specific and checkable: .sops.yaml names two age recipients (laptop-framework + claude-sandbox); the laptop's matching private key lives only in ~/.config/sops/age/keys.txt; that file is in no backup set (laptop-state-backup covers opencode state, ~/secrets/*.sops.yaml, ~/.ssh only; agent-backup is local-only); the vault holds the sandbox age key by name but no laptop/framework age key.
Consequence as filed: the SOPS ciphertext is backed up, but a laptop disk failure makes every laptop-recipient-only secret permanently undecryptable — silent, total loss of that secret class on the next hardware event.
Fix shape as filed (sound): store the laptop age private key by name in Bitwarden Secrets Manager and/or add keys.txt to the laptop-state restic set; acceptance = a named vault entry (or equivalent backed-up copy) exists AND a scratch decrypt proof using only the vault-retrieved key is recorded, with the key value never printed.
Triage verdict:
Work kind: task/small-fix (ops/DR) — the packet is complete: evidence, fix shape, and acceptance are all in the body.
Priority: priority/high — single point of failure for an entire secret class; the trigger event (disk death) is unannounced and the loss is irreversible. Not critical today only because nothing is currently broken.
Effort: effort/s — one vault store + one backup-set line + one scratch decrypt proof.
First concrete step for the implementing session: run the vault store through the approved secrets flow (fleet secrets / Bitwarden SM) reading the key file directly — never via chat, git, or a printed value — then the scratch decrypt proof in a temp dir, then record the proof (commands + result, no key) on this issue.
Acceptance check for this triage: this note + the audit evidence + the fix shape; task 19219 completes as triaged.
Triage — queue task 20560, openchamber scheduled lane (oc-code-03), 2026-11-18.
Fresh GitHub state (08:51 UTC): #10295 OPEN, labels task/small-fix, priority/high, effort/s, status/triaged. No native blockers.
Verdict: triaged, needs a dedicated secrets session. The fix (moving the laptop SOPS age private key into the vault and adding it to a backup set) handles secret material, so this unattended lane does not perform it and does not read the key. No code change or follow-on packet is enqueued here. Route to a session using the dedicated secrets flow. The key itself was not inspected.
Decided: Add ~/.config/sops/age/keys.txt to the laptop-state restic set (no vault write in this slice). Why: Ciphertext-only backups are dead weight on disk loss (#10295 audit); restic repos are encrypted with the Bitwarden-held password, so the key at rest is protected; the change touches only a path name, never the key value. Undo: Remove the one SOURCES line in nixos/home/laptop-state-backup.sh. By: lane oc-code-02
Slice 1 landed as PR #12949 (branch oc-code-02/10295-sops-key-backup, SHA eff12fc): laptop-state-backup.sh now backs up the sops age key as an optional source; test suite extended with fixture + assertion (20/20 pass, bash -n clean). Inventory updated. No key material read, printed, or committed; vault check was names-only (sops.age-private-key-sandbox present, no laptop entry).
Acceptance state:
Backed-up copy exists (restic set, this PR — pending daily run + flake rebuild to appear in a real snapshot).
Named vault copy of the laptop key (still missing).
Scratch decrypt proof using only the vault-retrieved key (needs the secrets flow).
Next slice: after its PR, bws secret list | grep sops.age-private-key-laptop shows the laptop key entry AND a scratch-dir sops decrypt of one laptop-recipient file using only that vault-retrieved key succeeds — via the dedicated secrets flow, value never printed.
Activity
developing-today commentedon Nov 14, 2026
CODE-3703
dezren39 commentedon Nov 17, 2026
Agent note — triage (lane any-j, task 19219)
State: triaged — a real disaster-recovery gap with a clear fix shape. This triage deliberately does NOT perform the fix: the fix moves a private key into the vault, and that step belongs to a session using the dedicated secrets flow (value handled by tooling, never printed or read by the lane), not to an unattended triage pass. No key material was read, copied, or printed during this triage.
Fresh evidence (checked 2026-11-17):
Triage verdict:
triaged.Queue: task 19219 (lane any-j) — claimed, triaged inline per runbook §1c.
dezren39 commentedon Nov 18, 2026
Triage — queue task 20560, openchamber scheduled lane (oc-code-03), 2026-11-18.
Fresh GitHub state (08:51 UTC): #10295 OPEN, labels task/small-fix, priority/high, effort/s, status/triaged. No native blockers.
Verdict: triaged, needs a dedicated secrets session. The fix (moving the laptop SOPS age private key into the vault and adding it to a backup set) handles secret material, so this unattended lane does not perform it and does not read the key. No code change or follow-on packet is enqueued here. Route to a session using the dedicated secrets flow. The key itself was not inspected.
docs(pm-stack): name the SOPS age key gap issue (#10295) on the boots…
Backup sops age key in laptop-state set (#10295 slice 1)
dezren39 commentedon Nov 23, 2026
Decided: Add ~/.config/sops/age/keys.txt to the laptop-state restic set (no vault write in this slice).
Why: Ciphertext-only backups are dead weight on disk loss (#10295 audit); restic repos are encrypted with the Bitwarden-held password, so the key at rest is protected; the change touches only a path name, never the key value.
Undo: Remove the one SOURCES line in nixos/home/laptop-state-backup.sh.
By: lane oc-code-02
Progress — queue task (lane oc-code-02), 2026-11-23.
Slice 1 landed as PR #12949 (branch oc-code-02/10295-sops-key-backup, SHA eff12fc): laptop-state-backup.sh now backs up the sops age key as an optional source; test suite extended with fixture + assertion (20/20 pass, bash -n clean). Inventory updated. No key material read, printed, or committed; vault check was names-only (sops.age-private-key-sandbox present, no laptop entry).
Acceptance state:
Next slice: after its PR,
bws secret list | grep sops.age-private-key-laptopshows the laptop key entry AND a scratch-dirsops decryptof one laptop-recipient file using only that vault-retrieved key succeeds — via the dedicated secrets flow, value never printed.