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

   ## What
   
   Adds support for explicit ACL grant headers on the aws2-s3 producer, 
complementing the existing canned-ACL support (`CamelAwsS3CannedAcl` / 
`CamelAwsS3Acl`).
   
   Four new producer headers map to the S3 `grant*` request options on 
`PutObject` and `CreateMultipartUpload`:
   
   | Header | S3 request option |
   |--------|-------------------|
   | `CamelAwsS3GrantFullControl` | `grantFullControl` |
   | `CamelAwsS3GrantRead` | `grantRead` |
   | `CamelAwsS3GrantReadACP` | `grantReadACP` |
   | `CamelAwsS3GrantWriteACP` | `grantWriteACP` |
   
   Each value is an S3 grantee expression (`id=...`, `emailAddress=...` or 
`uri=...`). This lets a route set explicit grantee-based ACLs when uploading 
objects — as requested in the issue (referencing aws/aws-sdk-java-v2#1703) — on 
both the single `putObject` and the multipart-upload paths.
   
   ## Testing
   
   - New `AWS2S3ProducerAclGrantTest` (Mockito + AssertJ): verifies all four 
grant headers are applied to the captured `PutObjectRequest`, and that the 
grant fields stay `null` when the headers are absent.
   - Full-reactor `mvn clean install -DskipTests` passes; catalog and 
endpoint-DSL regenerated and committed.
   
   _Claude Code on behalf of oscerd_
   


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