|
|
@@ -6,6 +6,9 @@
|
|
|
|
customer-held recovery code R. The hub stores only the opaque blob + a non-reversible password hash;
|
|
|
|
customer-held recovery code R. The hub stores only the opaque blob + a non-reversible password hash;
|
|
|
|
neither Felhom nor a hub compromise can open it. Cross-validated live: fork-4 validation (blob →
|
|
|
|
neither Felhom nor a hub compromise can open it. Cross-validated live: fork-4 validation (blob →
|
|
|
|
recover → decrypted the real repo) and the offsite arc (auto-confirm on hash match).
|
|
|
|
recover → decrypted the real repo) and the offsite arc (auto-confirm on hash match).
|
|
|
|
|
|
|
|
v0.127.0/v0.88.0 (TASK 2026-07-13): the PRIMARY path is the controller wizard — the customer runs
|
|
|
|
|
|
|
|
the ceremony themselves; the CLI remains the operator fallback. Mechanics validated by
|
|
|
|
|
|
|
|
audits/SPIKE-controller-escrow-2026-07-13.md (all five GO).
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
## When a ceremony runs
|
|
|
|
## When a ceremony runs
|
|
|
@@ -15,45 +18,82 @@
|
|
|
|
`pending` until the hub-verified auto-confirm.
|
|
|
|
`pending` until the hub-verified auto-confirm.
|
|
|
|
3. **Any new unrecoverable secret / suspected R exposure**: re-ceremony (R cannot be retro-fitted —
|
|
|
|
3. **Any new unrecoverable secret / suspected R exposure**: re-ceremony (R cannot be retro-fitted —
|
|
|
|
it is never retained).
|
|
|
|
it is never retained).
|
|
|
|
|
|
|
|
4. **Stale-blob warning** (v0.127.0, Scenario F): the controller re-checks the hub blob's password
|
|
|
|
|
|
|
|
hash on every report ACK even in the `escrowed` state. If the CURRENT blob does not cover the
|
|
|
|
|
|
|
|
current offsite password (hash mismatch, or a hash-less superseding blob — e.g. a CLI ceremony
|
|
|
|
|
|
|
|
run without the staged secret), the Távoli mentés card shows "A letétben lévő helyreállítási
|
|
|
|
|
|
|
|
csomag nem fedi a jelenlegi távoli mentési jelszót" and offers a re-ceremony. Runs are NOT
|
|
|
|
|
|
|
|
blocked (offsite copies still protect against non-total loss); the fix is one wizard run.
|
|
|
|
|
|
|
|
|
|
|
|
## Prerequisites (check BEFORE scheduling with the customer)
|
|
|
|
## PRIMARY PATH — the controller wizard (customer-driveable, agent ≥ v0.88.0, controller ≥ v0.127.0)
|
|
|
|
- **Agent version:** ≥ v0.79.0 (the ceremony records `restic_pw_sha256` — older agents produce a blob
|
|
|
|
|
|
|
|
auto-confirm can never match).
|
|
|
|
The customer (or the operator in the customer's session) opens **Távoli mentés →
|
|
|
|
- **⚠ No-PBS hosts: the ceremony CANNOT run — and that is now POLICY, not a gap.** The previously
|
|
|
|
"Helyreállítási kód létrehozása"** (`/backup/escrow`) and clicks through:
|
|
|
|
documented "identity-only mode (≥ v0.80.0)" was NEVER implemented — v0.80.0's actual feature was
|
|
|
|
|
|
|
|
seeding `escrow.pbs_storage_id` on PBS hosts. `escrow-create` hard-requires a PBS storage id +
|
|
|
|
1. **Preflight** — the wizard checks: PBS storage id configured, DR tier applied, `age` present,
|
|
|
|
its key file (drill-proven 2026-07-12, finding F-6 of DRILL-day0-vm-2026-07-12.md).
|
|
|
|
hub upload target configured, the FELHOM_ESCROW sudo grant listed (list-mode probe), staged
|
|
|
|
**Operator decision 2026-07-12 (DR-tier-by-default, decision 4): identity-only escrow is
|
|
|
|
secret (informational). Red rows block the start.
|
|
|
|
formally PARKED — F-6 is closed by policy, not by implementation.** Every install ships the
|
|
|
|
2. **Warnings** — the R-is-final copy; a re-ceremony additionally shows the supersede warning
|
|
|
|
full DR plumbing (host-install ≥ v1.15.0); activation is the hub's per-customer DR-tier flag
|
|
|
|
("a korábbi kód érvényét veszti…").
|
|
|
|
(default ON), and offsite backup REQUIRES that flag (hub v0.51.0 enforces the coupling:
|
|
|
|
3. **Re-auth** — the dashboard password, typed again (rides the login rate-limiter).
|
|
|
|
"Offsite backup requires the DR tier"). A box therefore always reaches the ceremony THROUGH
|
|
|
|
4. **Run** — the controller RE-STAGES the current offsite password first (when offsite is
|
|
|
|
the tier: WG peer → PBS-DR descriptor applied → ceremony. Revisit identity-only ONLY if a
|
|
|
|
configured; a staging failure ABORTS the start — a ceremony without the staged secret would
|
|
|
|
customer class demands lean-tier offsite — this line is here so a future session knows the
|
|
|
|
mint a hash-less blob), then triggers the agent's local-API job. The agent runs
|
|
|
|
absence is a decision, not an oversight.
|
|
|
|
`sudo -n felhom-agent --config /etc/felhom-agent/agent.json --selftest=escrow-create --upload
|
|
|
|
- **Host packages:** `age` must be installed (identity wrap dependency; installed by host-install
|
|
|
|
--output=json` — ONE fixed argv, byte-matched by sudoers (spike §2.2).
|
|
|
|
since v1.15.0 — drill finding F-10 closed. Pre-v1.15.0 boxes: `apt-get install -y age`).
|
|
|
|
5. **Reveal** — R is delivered by a ONE-SHOT claim: displayed exactly once in the browser,
|
|
|
|
- **K gate (PBS hosts):** `escrow.pbs_storage_id` set and the key file present
|
|
|
|
`Cache-Control: no-store`, never rendered server-side, never logged, wiped agent-side the
|
|
|
|
(`cfg.Backup.PBSEncKeyPath(<id>)`).
|
|
|
|
moment it is claimed. Unclaimed R expires after **10 minutes** → the ceremony is VOID and a
|
|
|
|
- **Staged secret (offsite):** offsite enabled → `EscrowState="pending"` on the controller and the staged
|
|
|
|
re-run supersedes it (nothing is lost — the blob is already on the hub; the old R simply never
|
|
|
|
password file present on the agent (`escrow-stage/restic_repo_password` — pushed automatically at
|
|
|
|
existed for it).
|
|
|
|
enable; re-saving the offsite config re-pushes it if missing).
|
|
|
|
6. **Typed-back** — the customer re-types two random words of R (client-side check), ticks the
|
|
|
|
- The customer is present/reachable: R is displayed ONCE and must land in their hands.
|
|
|
|
"felírtam" confirmation, finishes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Then the existing **auto-confirm** flips `pending → escrowed` hands-free within one report cycle
|
|
|
|
|
|
|
|
(hash match in the ACK) and wipes the staged copy — same as ever.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Supersede/void semantics:** every new ceremony's blob REPLACES the hub blob; the previous R keeps
|
|
|
|
|
|
|
|
opening only the previous blob (pre-existing offsite history). An unclaimed/void R requires nothing
|
|
|
|
|
|
|
|
but a re-run. An agent restart mid-ceremony or pre-claim loses R safely (in-memory by design) — the
|
|
|
|
|
|
|
|
wizard reports it honestly; re-run.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### F1 threat model (operator ruling 2026-07-13 — carried verbatim into the product)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
R is displayed in the customer's browser, which means it transits the Cloudflare tunnel ONCE at
|
|
|
|
|
|
|
|
the reveal moment (TLS end-to-end, `no-store`, one-shot). **This is an accepted, documented risk**
|
|
|
|
|
|
|
|
— the same trust class as the claim code and the login password, which already ride the same
|
|
|
|
|
|
|
|
channel: an adversary positioned to read this leg already owns the dashboard session and the box.
|
|
|
|
|
|
|
|
The agent→controller leg (local API, pinned TLS) never leaves the box. A LAN-direct delivery
|
|
|
|
|
|
|
|
variant (à la plex.direct) is PARKED, not forgotten — revisit only if the trust class of the
|
|
|
|
|
|
|
|
tunnel changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## OPERATOR FALLBACK — the CLI (text mode, unchanged)
|
|
|
|
|
|
|
|
|
|
|
|
## The ceremony (ONE command, on the host, as the agent's operator context)
|
|
|
|
|
|
|
|
```bash
|
|
|
|
```bash
|
|
|
|
felhom-agent --selftest=escrow-create --upload
|
|
|
|
felhom-agent --selftest=escrow-create --upload
|
|
|
|
```
|
|
|
|
```
|
|
|
|
- `--storage <pbs-storage-id>` only if `escrow.pbs_storage_id` isn't configured (the PBS DR
|
|
|
|
- On the host, over SSH, as before; output byte-identical to the historical text mode. R is
|
|
|
|
apply-bridge seeds it automatically). No-PBS hosts: see the prerequisite warning above — the
|
|
|
|
printed once inside the write-it-down banner.
|
|
|
|
ceremony refuses without a PBS key; identity-only mode does not exist yet.
|
|
|
|
- `--storage <pbs-storage-id>` only if `escrow.pbs_storage_id` isn't configured.
|
|
|
|
- What it does, in order: generates a fresh **R** (EFF-wordlist passphrase; entropy printed) → seals K
|
|
|
|
- **⚠ Staged-secret rule:** when offsite is configured, ensure the staged secret is present
|
|
|
|
(if present, via proxmox-backup-client re-key) and the IdentityBundle (age-under-R; the staged restic
|
|
|
|
(re-save the offsite config to re-push it) BEFORE a CLI run — a CLI ceremony without it uploads
|
|
|
|
password auto-injected; the live WG key auto-captured if present) → **self-verifies by recovering its
|
|
|
|
a hash-less blob, which trips the Scenario-F stale warning and can never auto-confirm.
|
|
|
|
own blob** ("an escrow you haven't recovered isn't an escrow") → uploads the opaque blob +
|
|
|
|
- `--output=json` exists for the wizard's job runner (machine mode: ONE JSON object with R on
|
|
|
|
`restic_pw_sha256` to the hub → **wipes the staged secret**.
|
|
|
|
stdout, humans to stderr). Never run json mode by hand into a terminal you are screen-sharing.
|
|
|
|
- Output hygiene: the ONLY secret ever displayed is R. Nothing else in the output is sensitive; the
|
|
|
|
|
|
|
|
command is safe to run over a screen-share EXCEPT the R moment.
|
|
|
|
## Prerequisites (the wizard preflight checks these for you)
|
|
|
|
|
|
|
|
- **Agent ≥ v0.88.0** (wizard endpoints + `--output=json`); ≥ v0.79.0 for `restic_pw_sha256`.
|
|
|
|
|
|
|
|
- **⚠ No-PBS hosts: the ceremony CANNOT run — POLICY, not a gap.** Identity-only escrow is
|
|
|
|
|
|
|
|
formally PARKED (operator decision 2026-07-12, DR-tier-by-default decision 4); every install
|
|
|
|
|
|
|
|
ships the full DR plumbing (host-install ≥ v1.15.0), activation is the hub's per-customer
|
|
|
|
|
|
|
|
DR-tier flag (default ON), and offsite backup REQUIRES that flag. A box always reaches the
|
|
|
|
|
|
|
|
ceremony THROUGH the tier: WG peer → PBS-DR descriptor applied → ceremony.
|
|
|
|
|
|
|
|
- **Host packages:** `age` (installed by host-install since v1.15.0).
|
|
|
|
|
|
|
|
- **K gate (PBS hosts):** `escrow.pbs_storage_id` set and the key file present.
|
|
|
|
|
|
|
|
- **Sudo grant:** the `FELHOM_ESCROW` alias in `/etc/sudoers.d/felhom-agent` (ships with
|
|
|
|
|
|
|
|
host-install ≥ v1.16.0 via the canonical sudoers fetch; on older installs re-ship the sudoers
|
|
|
|
|
|
|
|
with the agent deploy).
|
|
|
|
|
|
|
|
- The customer is present: R is displayed ONCE and must land in their hands.
|
|
|
|
|
|
|
|
|
|
|
|
## R handling — the rules to say out loud to the customer
|
|
|
|
## R handling — the rules to say out loud to the customer
|
|
|
|
1. R is displayed **once**; the system keeps no copy anywhere. Write it down / password manager /
|
|
|
|
1. R is displayed **once**; the system keeps no copy anywhere. Write it down / password manager /
|
|
|
@@ -69,8 +109,9 @@ Within one report cycle the hub serves the blob's presence + hash in the ACK; th
|
|
|
|
`sha256(local repo password)` and flips `pending → escrowed` on its own, wiping the agent-staged copy.
|
|
|
|
`sha256(local repo password)` and flips `pending → escrowed` on its own, wiping the agent-staged copy.
|
|
|
|
**Verify remotely:** the customer page / report shows `escrow_state: "escrowed"` with zero manual clicks;
|
|
|
|
**Verify remotely:** the customer page / report shows `escrow_state: "escrowed"` with zero manual clicks;
|
|
|
|
the next scheduled offsite run proceeds and snapshots appear. Hash-mismatch warning instead → the blob
|
|
|
|
the next scheduled offsite run proceeds and snapshots appear. Hash-mismatch warning instead → the blob
|
|
|
|
does not cover the CURRENT password (stale blob) → re-run the ceremony; do NOT manual-confirm around it.
|
|
|
|
does not cover the CURRENT password (stale blob) → re-run the ceremony (wizard); do NOT manual-confirm
|
|
|
|
(The manual confirm endpoint exists solely as a deprecated fallback for pre-hash legacy blobs.)
|
|
|
|
around it. (The manual confirm ENDPOINT exists solely as a deprecated fallback for pre-hash legacy
|
|
|
|
|
|
|
|
blobs; its button is gone from the card since v0.127.0.)
|
|
|
|
|
|
|
|
|
|
|
|
## Recovery (the other half — operator-assisted, sketch)
|
|
|
|
## Recovery (the other half — operator-assisted, sketch)
|
|
|
|
Total loss → the customer's R + the hub blob:
|
|
|
|
Total loss → the customer's R + the hub blob:
|
|
|
@@ -82,6 +123,10 @@ secrets writer) → restore through the real endpoints. Live-proven end-to-end 2
|
|
|
|
password opened the production repo).
|
|
|
|
password opened the production repo).
|
|
|
|
|
|
|
|
|
|
|
|
## Do NOT
|
|
|
|
## Do NOT
|
|
|
|
- Run a ceremony unattended or pipe its output to a log (R would land in it).
|
|
|
|
- Pipe the CLI ceremony's output to a log or run it unattended (R would land in it). The wizard's
|
|
|
|
|
|
|
|
machine mode is exempt BY DESIGN: its pipe terminates in the agent's in-memory one-shot holder,
|
|
|
|
|
|
|
|
nowhere else.
|
|
|
|
- Manual-confirm a hash-mismatch; skip the self-verify; retain or transmit R on Felhom systems.
|
|
|
|
- Manual-confirm a hash-mismatch; skip the self-verify; retain or transmit R on Felhom systems.
|
|
|
|
- Treat the SFTP credential as escrow-worthy (it's regenerable access; only the ENCRYPTION secrets ride R).
|
|
|
|
- Treat the SFTP credential as escrow-worthy (it's regenerable access; only the ENCRYPTION secrets ride R).
|
|
|
|
|
|
|
|
- Run a CLI ceremony on an offsite-configured box without the staged secret (hash-less blob →
|
|
|
|
|
|
|
|
stale warning; the wizard's re-stage-first makes this impossible from the UI).
|
|
|
|