Skip to content

Add key-rotation procedure and tooling for custodial wallet encryption #160

@robertocarlous

Description

@robertocarlous

Problem

Custodial wallets are encrypted with WALLET_ENCRYPTION_KEY. There is no implemented rotation tool/runbook, which is required for incident response and routine security hygiene.

Acceptance criteria

  • Add a CLI script to re-encrypt all custodial_wallets rows with a new key (old->new)
  • Support dual-key read during rotation window (optional but preferred)
  • Add runbook steps: backup, rotate, verify, rollback
  • Add metrics/logging for rotation progress (no secrets)

Key rotation / backup: rotate WALLET_ENCRYPTION_KEY by re-encrypting all rows

Priority

P1 / High

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions