Encrypt cached tokens at rest #7

Merged
benvin merged 1 commits from benvin/encrypt-cache into main 2026-10-23 23:19:45 +11:00
Member

Cached Vault tokens sit on disk as plaintext JSON, readable by anything that can read the cache dir or a backup of it.

  • seal token files with a per-boot kernel keyring key via golib/keyring (shared by vcm and vctx)
  • report undecryptable (post-reboot or legacy plaintext) tokens as locked with a vcm login hint
  • report corrupt token files with the file path
  • write token files via a unique temp file instead of a fixed .tmp
  • document encryption and re-login after reboot
Cached Vault tokens sit on disk as plaintext JSON, readable by anything that can read the cache dir or a backup of it. - seal token files with a per-boot kernel keyring key via `golib/keyring` (shared by vcm and vctx) - report undecryptable (post-reboot or legacy plaintext) tokens as locked with a `vcm login` hint - report corrupt token files with the file path - write token files via a unique temp file instead of a fixed `.tmp` - document encryption and re-login after reboot
unkin-agent added 1 commit 2026-10-23 23:07:46 +11:00
Encrypt cached tokens with a kernel keyring key
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
42048ae6ee
Author
Member

No findings.

No findings.
benvin merged commit c89657b347 into main 2026-10-23 23:19:45 +11:00
benvin deleted branch benvin/encrypt-cache 2026-10-23 23:19:46 +11:00
Sign in to join this conversation.