Skip to content

Missing Vault key backup — FHE keys permanently lost on named volume deletion #28

Description

@jh-lee-cryptolab

Current State

  • FHE keys (SecKey, EncKey, EvalKey, MetadataKey) in the Vault container exist only in a Docker named volume (vault-keys)
  • docker-compose.yml mounts ./backups:/secure/backups:rw, but no backup logic is implemented (directory is empty)
  • vault_core.py's ensure_vault() handles key generation but never copies generated keys to the host

Risk

  • Running docker compose down -v or docker volume rm permanently destroys all keys including SecKey
  • Loss of SecKey makes all previously encrypted data unrecoverable

Proposal

  • Add automatic key backup to /secure/backups/ on container startup (via entrypoint or dedicated script)
  • Implement periodic backup to host ./backups/ directory (cron or healthcheck integration)
  • Encrypt backup files and restrict permissions (600)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions