Skip to content

Conversation

@Quinn-With-Two-Ns
Copy link
Contributor

Add sample showing how a user could use the AWS encryption SDK to encrypt payloads with AWS KMS

@Quinn-With-Two-Ns Quinn-With-Two-Ns marked this pull request as ready for review November 4, 2024 00:03
private Payload encodePayload(Payload payload) {
byte[] plaintext = payload.toByteArray();
byte[] ciphertext =
crypto.encryptData(kmsKeyring, plaintext, getEncryptionContext()).getResult();
Copy link
Member

Choose a reason for hiding this comment

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

Is this call potentially slow (i.e. meaning ever makes a network call, even once lazily)? Should the deadlock detector be disabled or is it already disabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah good point, I added a line to disable the deadlock detector.

@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit 56fb8d7 into temporalio:main Nov 4, 2024
4 checks passed
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