Skip to content

fix: preserve encrypted cache during key rotation - #287

Merged
Lakes41 merged 1 commit into
Adamantine-guild:mainfrom
dollarop:agent/key-rotation-cache-173
Jul 28, 2026
Merged

fix: preserve encrypted cache during key rotation#287
Lakes41 merged 1 commit into
Adamantine-guild:mainfrom
dollarop:agent/key-rotation-cache-173

Conversation

@dollarop

Copy link
Copy Markdown
Contributor

Closes #173

Summary

  • Preserve previously encrypted offline cache during key rotation.
  • Re-encrypt the existing gp1: envelope before committing the new key.
  • Defer key rotation if cache migration fails so old cache data is not silently lost.

Validation

  • git diff --check passes.
  • Conflict-marker scan passes.
  • npm test / npm run lint could not run locally because dependencies are not installable in the current checkout due peer conflicts and disk constraints.

@Lakes41
Lakes41 merged commit 8763a2d into Adamantine-guild:main Jul 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix encryption-key rotation silently destroying previously-encrypted offline cache

2 participants