aws / aws/aws-encryption-sdk-java

KmsMasterKeyProvider regionalClientSupplier_ does not appear to be getting set correctly by default

Open
#93 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
240
Forks
125
PR merge metrics
No merged PRs in 30d

Description

When a `KmsMasterKeyProvider` is constructed using the default builder[1] and is then used to attempt to decrypt a ciphertext message from another region, the decrypt call fails with this error[2].

It appears that something is not connecting with the default supplier in `build()`[3].

[1] `KmsMasterKeyProvider.builder().build()`
[2] https://github.com/aws/aws-encryption-sdk-java/blob/6cb1c4256e26f26ecfd557608b80c9ed2bba4141/src/main/java/com/amazonaws/encryptionsdk/kms/KmsMasterKeyProvider.java#L526
[3] https://github.com/aws/aws-encryption-sdk-java/blob/6cb1c4256e26f26ecfd557608b80c9ed2bba4141/src/main/java/com/amazonaws/encryptionsdk/kms/KmsMasterKeyProvider.java#L245-L259

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.