Skip to content

Conversation

rayokota
Copy link
Member

@rayokota rayokota commented Aug 8, 2025

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:18
@rayokota rayokota requested review from a team as code owners August 8, 2025 23:18
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 on a Key Encryption Key (KEK) to provide fallback options during encryption/decryption operations. The implementation creates a wrapper that tries multiple key IDs in sequence, allowing for better resilience when one key becomes unavailable.

Key changes:

  • Introduces KmsClientWrapper class that handles multiple KMS key IDs with fallback logic
  • Adds configuration support for alternate KMS key IDs through properties or configs
  • Updates the encryption executor to use the new wrapper instead of direct KMS client instantiation

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
KmsClientWrapper.cs New wrapper class implementing fallback logic for multiple KMS key IDs
EncryptionExecutor.cs Updated to use KmsClientWrapper and removed duplicate GetKmsClient method
SerializeDeserialize.cs Added unit test for alternate KEK functionality

Copy link
Contributor

@Claimundefine Claimundefine left a comment

Choose a reason for hiding this comment

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

LGTM

@rayokota rayokota merged commit 08a16b3 into master Aug 14, 2025
1 of 2 checks passed
@rayokota rayokota deleted the multiple-kek branch August 14, 2025 22:35
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.

2 participants