[seal] Sealed boxes and key import: custos-seal (X25519 + XChaCha20-Poly1305, match code, at-rest sealing), custos_keys::import, Vault::factor_ids; v0.5.0

This commit is contained in:
2026-11-02 18:05:00 +01:00
parent 7893dd199c
commit 7a7a628fa5
16 changed files with 566 additions and 25 deletions
+6
View File
@@ -58,6 +58,12 @@ just as plainly, what it does not.
revealed or copied value passes through JavaScript strings, which cannot be wiped. Lock (or close the tab)
when done.
- **The factor service holds one factor.** It releases the TOTP factor after a valid code, so whoever
controls the home server has that factor. It is one factor, never enough alone. Approval material and
cloud secrets pass through it only as sealed boxes (`docs/SEAL.md`), which it cannot open.
- **An approval is only as careful as the person approving.** Compare the six-digit match code on both
screens; a request you did not start is someone else's.
## Design rules that follow from this
- No custom cryptography: Argon2id (`argon2`), XChaCha20-Poly1305 (`chacha20poly1305`), the OS CSPRNG