[
https://issues.apache.org/jira/browse/CAMEL-16189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino reassigned CAMEL-16189:
----------------------------------------
Assignee: Andrea Cosentino
> 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
> Assignee: Andrea Cosentino
> Priority: Minor
>
> 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)