Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16189

AWS2S3Producer not setting serverside encryption values

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7.2
    • Fix Version/s: 3.7.3, 3.9.0
    • Component/s: camel-aws2
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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 

       

      Server Side Encryption with AWS KMS managed key requires HTTP header x-amz-server-side-encryption : aws:kms"

       

      A potential easy fix for this would be to call objectRequest.serverSideEncryption("aws:kms")
      when setting the KMSKeyId.

      Example of where camel does this

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                acosentino Andrea Cosentino
                Reporter:
                OhDearMoshe Nathan Lawrence
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: