oscerd opened a new pull request, #28553:
URL: https://github.com/apache/camel/pull/28553

   Jira: https://issues.apache.org/jira/browse/CAMEL-26336
   
   ### Problem
   
   While `MinioConfiguration` provides configuration options for 
`serverSideEncryption` and `serverSideEncryptionCustomerKey`, and 
`MinioConstants` defines `SERVER_SIDE_ENCRYPTION`, `MinioProducer` was not 
applying these settings when building requests for the MinIO SDK:
   - `doPutObject` did not set `sse` on `PutObjectArgs.Builder`.
   - `determineExtraHeaders` did not map 
`MinioConstants.SERVER_SIDE_ENCRYPTION` to `x-amz-server-side-encryption`.
   - `copyObject` did not set customer encryption options on the copy source 
builder or destination copy object request builder.
   - `getObject` and `getObjectRange` did not set customer encryption options 
on `GetObjectArgs.Builder`.
   
   ### Change
   
   - `MinioProducer`:
     - `doPutObject`: configure `sse` on `PutObjectArgs.Builder` from 
`serverSideEncryption` and `serverSideEncryptionCustomerKey`.
     - `determineExtraHeaders`: map header 
`MinioConstants.SERVER_SIDE_ENCRYPTION` to extra header 
`x-amz-server-side-encryption`.
     - `copyObject`: configure `ssec` on the source object builder and `sse` on 
the copy object request builder.
     - `getObject` / `getObjectRange`: configure `ssec` on 
`GetObjectArgs.Builder` from `serverSideEncryptionCustomerKey`.
   
   ### Tests
   
   - Added `MinioProducerEncryptionTest` in `camel-minio` to verify:
     - `putObject` applies configured `serverSideEncryption` to `PutObjectArgs`.
     - `putObject` applies configured `serverSideEncryptionCustomerKey` to 
`PutObjectArgs`.
     - `putObject` populates `x-amz-server-side-encryption` extra header when 
`MinioConstants.SERVER_SIDE_ENCRYPTION` is provided.
     - `copyObject` applies customer key to source object and sse to copy 
request.
     - `getObject` and `getObjectRange` apply customer key to `GetObjectArgs`.
   
   _Claude Code on behalf of oscerd_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to