Skip to content

P2: KMS key material leak and missing encryption context #669

Closed

Description

@agbishop

Summary

Bugs

  • Key material never rotated: EnableKeyRotation / DisableKeyRotation defined but don't actually rotate keys.
  • Encryption context not used: AAD set to keyID only — custom encryption context from API ignored.

Memory Leaks

  • Key deletion doesn't purge key material: keyMaterials map entry never deleted after deletion period.

Missing Features

  • ImportKeyMaterial / DeleteImportedKeyMaterial
  • Custom key stores
  • Multi-region key replication
  • Key policy enforcement (stored but never enforced)
  • Grant constraint validation

Files

  • services/kms/backend.go

Activity

  1. agbishop commented on Mar 15, 2026

    @agbishop
    CollaboratorAuthor

    copilot-autodev: agent task created for issue #669 (initial invoke).

  2. agbishop commented on Mar 15, 2026

    @agbishop
    CollaboratorAuthor

    copilot-autodev: Tracking PR #808 for this issue.

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