[vault] Hands off: take over a machine-key vault, the unattended rules (v0.13.0) #15
Reference in New Issue
Block a user
Delete Branch "feature/hands-off"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Core for Custos's hands-off mode (Custos
docs/12_hands_off.md): a machine-key vault Custos opens itself, then Take over the vault. v0.13.0.What
Vault::take_over(password, kdf, now): only on a machine-key vault, and only once.no-auto-connect,no-unattendedandcard-signingand writestaken-over.Vault::opens_with_machine_key(): the instance twin of the existingVault::is_machine_store(bytes).security:no-auto-connect,no-unattended,card-signing;auto-connected,unattended-stored,setup-item-removed,unattended-signed,taken-over;detailon audit entries, written bysecurity_notefor the four notes: names, never values, 1–500 characters, no control characters.is_setup_run;auto_connect_allowed;setup_on_connect;unattended_provision: in Setup, a setup run, new items only;ask --generateorofferintoarca/ custos/ fabrica/ aula/ gitea/, offers into the Claude Code store, TOTP unless it moved to the phone; neverdisplay;unattended_sign: a machine-key vault, a run, not Hardened, notcard-signing; the kindsminisign,manifest,authenticode,approval.Tests
tests/hands_off.rs: 12 tests, written first.custos-vault95). Clippy: the 3 warningsmainalready has, none new.cargo fmt --checkalready fails onmain(CRLF incustos-keys); the touched files are formatted.Adversarial self-review
take_overwith an error halfway: the slots and the KDF are restored; nothing is ticked before the factor is added.arcaalone,arcax/…,../arca/…,ARCA/…and items containing..are refused. Prefixes are compared on whole segments (arca/with a non-empty rest).existsis the caller's fact: the rule trusts the app to say whether the item exists. Custos reads its own vault for that, never the request.