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

AWS2S3Producer not setting serverside encryption values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.7.2
    • 3.7.3, 3.9.0
    • camel-aws2
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: