Skip to content

DGS-21595 Allow alternate KMS key IDs on a KEK #352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rayokota
Copy link
Member

@rayokota rayokota commented Aug 8, 2025

Please prefix all TypeScript pull-requests with [Typescript]

What

Checklist

  • Contains customer facing changes? Including API/behavior changes
  • Did you add sufficient unit test and/or integration test coverage for this PR?
    • If not, please explain why it is not required

References

JIRA:

Test & Review

Open questions / Follow-ups

@Copilot Copilot AI review requested due to automatic review settings August 8, 2025 23:19
@rayokota rayokota requested review from a team as code owners August 8, 2025 23:19
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for alternate KMS key IDs when working with KEK (Key Encryption Key) operations. The change allows specifying multiple KMS keys as fallback options for encryption and decryption operations, improving resilience when primary KMS keys are unavailable.

  • Introduces a new configuration parameter encrypt.alternate.kms.key.ids to specify alternate KMS key IDs
  • Creates a KmsClientWrapper class that handles failover logic between multiple KMS keys
  • Updates encryption/decryption logic to use the wrapper instead of direct KMS client calls

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
schemaregistry/rules/encryption/encrypt-executor.ts Adds KmsClientWrapper class with failover logic and updates KMS client instantiation
schemaregistry/test/serde/avro.spec.ts Adds test case to verify encryption with alternate KEKs functionality

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.

1 participant