roadan commented on a change in pull request #60: CryptoUtil + AwsKms client for encryption/decryption URL: https://github.com/apache/incubator-amaterasu/pull/60#discussion_r301401320
########## File path: common/src/main/kotlin/org/apache/amaterasu/common/crypto/AwsKmsCryptoProvider.kt ########## @@ -0,0 +1,53 @@ +package org.apache.amaterasu.common.crypto + +import com.amazonaws.services.identitymanagement.model.AccessKey +import software.amazon.awssdk.auth.credentials.AwsBasicCredentials +import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider +import software.amazon.awssdk.auth.credentials.InstanceProfileCredentialsProvider +import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider +import software.amazon.awssdk.core.SdkBytes +import software.amazon.awssdk.services.kms.KmsClient +import software.amazon.awssdk.services.kms.model.DecryptRequest +import software.amazon.awssdk.services.kms.model.EncryptRequest +import software.amazon.awssdk.regions.Region + +class AwsKmsCryptoProvider(override val accessKeyId: String, Review comment: We need to also support IAM authentication ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services