Desk brief promises vault key rotation; no rotation mechanism exists
Report
Summary
docs/DESK_BRIEF.md §13 promises that the vault key is rotated: "Private ticket bodies and attachments encrypted at rest with PyNaCl SecretBox under a scoped key in the service keyfile, the keyfile itself unlocked from an env-injected secret, rotated; decrypted per request for scoped readers only." No rotation mechanism exists anywhere in the desk: zero rotat* matches in any desk/ code, desk/vault.py uses a single vault key with no versioning or rekey path, desk/signer.py has no rotate function, the CLI offers only keys init / keys show, and the keyfile has no key-version field.
Impact
Minor. Operators believe the vault key rotates; a compromised key cannot be rotated without losing every sealed body, because there is no re-encryption path — the only recovery is generating a new keyfile and losing access to all previously sealed private reports. Long-lived key exposure is unmitigated. The desk holds working exploits for a live network, so the vault key is one of its most sensitive secrets.
Why this is not a duplicate
The rotation tickets are all about other keys: XE-0988/XE-1002/XE-1705/XE-1761/XE-2373/XE-3007/XE-7979/XE-11805/XE-12095 cover DAO keyset, session, and lease-key rotation. The vault tickets XE-0202/XE-0426/XE-0791/XE-1044/XE-5824/XE-6395/XE-7407 cover sealing, read-logging, disclosure, and loss — not rotation. A live search for "vault rotation" returns 0 tickets.
Suggested fix
Code-side preferred: key versioning in the keyfile plus a rekey procedure (decrypt sealed bodies under the old key, re-seal under the new one). Minimum: remove the "rotated" claim from DESK_BRIEF.md so operators are not misled.
Environment
Repo github.com/xeprotocol/desk, HEAD ab9df7f.
Payout address
XE address (also bound to this reporter account): a01c018553bc14456084cd784344d8e99a3b977b9ffc1646b9ec8e5a91a362e1
Thread
Thanks for the report. We have read it against the desk's code and the line of the brief you point to, and it describes the current state accurately. It is with the team for a decision.