<!-- XE-13134 · Desk brief promises vault key rotation; no rotation mechanism exists · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13134>. The page is the record; this is the same page for reading.*

XE-13134 · Bounty

# Desk brief promises vault key rotation; no rotation mechanism exists

Triaging
claimed Minor
web
filed 2026-11-14 17:22 UTC
by xe:a01c0185

Verdict
:   published when the fix ships

Tier
:   published when the fix ships

Claimed
:   Minor

Area
:   Other

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 19:46 UTC

Told
:   2026-11-20 19:45 UTC

### Patches

None linked.

### History

- [627204](https://bounty.xe.network/log/627204) 2026-11-20 19:46 UTC proposal.adopted
- [627203](https://bounty.xe.network/log/627203) 2026-11-20 19:46 UTC ticket.award
- [625791](https://bounty.xe.network/log/625791) 2026-11-20 19:45 UTC proposal.adopted
- [625790](https://bounty.xe.network/log/625790) 2026-11-20 19:45 UTC reply.sent
- [625433](https://bounty.xe.network/log/625433) 2026-11-20 19:45 UTC proposal.adopted
- [625432](https://bounty.xe.network/log/625432) 2026-11-20 19:45 UTC ticket.status new → triaging
- [623900](https://bounty.xe.network/log/623900) 2026-11-20 19:45 UTC proposal.adopted
- [623899](https://bounty.xe.network/log/623899) 2026-11-20 19:45 UTC ticket.facts area
- [623896](https://bounty.xe.network/log/623896) 2026-11-20 19:45 UTC proposal.adopted
- [623895](https://bounty.xe.network/log/623895) 2026-11-20 19:45 UTC ticket.facts
- [623892](https://bounty.xe.network/log/623892) 2026-11-20 19:45 UTC proposal.adopted
- [623891](https://bounty.xe.network/log/623891) 2026-11-20 19:45 UTC ticket.facts

[Full history](https://bounty.xe.network/log?ref=XE-13134) · [JSON](https://bounty.xe.network/v1/tickets/XE-13134) · [markdown](https://bounty.xe.network/XE-13134.md)

### 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

**Joseph Denne**team2026-11-20 19:45 UTCdesk

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.
