You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Nathan Lawrence (Jira)" <ji...@apache.org> on 2021/02/12 10:48:00 UTC
[jira] [Created] (CAMEL-16189) AWS2S3Producer not setting
serverside encryption values
Nathan Lawrence created CAMEL-16189:
---------------------------------------
Summary: AWS2S3Producer not setting serverside encryption values
Key: CAMEL-16189
URL: https://issues.apache.org/jira/browse/CAMEL-16189
Project: Camel
Issue Type: Bug
Components: camel-aws2-s3
Affects Versions: 3.7.2
Reporter: Nathan Lawrence
When using creational object requests for s3 operations camel supports using awsKms and supplying a KMS key. However when using these values the serverSideEncryption value is not set. This means the s3Client will not set the correct headers causing the object request to fail with s3Client giving the reason of
{quote}Server Side Encryption with AWS KMS managed key requires HTTP header x-amz-server-side-encryption : aws:kms"
{quote}
A potential easy fix for this would be to call objectRequest.serverSideEncryption("aws:kms")
when setting the KMSKeyId.
[Example of where camel does this|https://github.com/apache/camel/blob/60928aadcd90a10865168fa9d12daa6eb9f892f5/components/camel-aws2-s3/src/main/java/org/apache/camel/component/aws2/s3/AWS2S3Producer.java#L367]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)