apupier commented on PR #31343:
URL: https://github.com/apache/camel/pull/31343#issuecomment-7411713261

   ## Why this PR fails
   
   The only failing test is `S3CopyObjectCustomerKeyIT.sendIn` (camel-aws2-s3): 
its first `putObject` gets `403 AccessDenied`. All other AWS modules pass.
   
   **Cause:** floci 2.6.0 emulates a recent AWS change. Since April 2026, S3 
blocks SSE-C (customer-provided keys) by default on new general purpose buckets 
and rejects the uploads with `403 AccessDenied` ([AWS 
doc](https://docs.aws.amazon.com/AmazonS3/latest/userguide/blocking-unblocking-s3-c-encryption-gpb.html),
 floci [#9247](https://github.com/floci-io/floci/issues/9247) / 
[#9414](https://github.com/floci-io/floci/pull/9414)). The buckets of this IT 
are created fresh (`autoCreateBucket=true`) with `useCustomerKey=true`.
   
   **Verified** by sending the same SSE-C `PutObject` (key + MD5 + AES256) to 
both images: it succeeds on `floci:2.5.0` and fails with 403 on `floci:2.6.0`. 
A plain upload and an SSE-S3 upload work on both. Bumping only the property 
locally reproduces the CI failure.
   
   ## Proposed fix
   
   A fix is on my fork, branch 
[`CAMEL-aws2-s3-sse-c-blocked-buckets`](https://github.com/apupier/camel/tree/CAMEL-aws2-s3-sse-c-blocked-buckets)
 (commit 0f0faf474e44). It does not touch `container.properties`, so it can be 
merged before or together with this bump (the IT passes with 2.5.0 and with 
2.6.0):
   
   - `S3CopyObjectCustomerKeyIT`: unblocks SSE-C on `mycamel` and `mycamel1` 
with `PutBucketEncryption` and `BlockedEncryptionTypes=NONE` (the documented 
AWS way) before the routes are used.
   - Docs: the `useCustomerKey` option description and the `aws2-s3` component 
page now say that S3 blocks SSE-C on new buckets and how to allow it (generated 
catalog files regenerated).
   
   ## Impact for Camel users
   
   The component code is unchanged and correct, but this is a real AWS behavior 
change, not just a test-container quirk: users of `useCustomerKey=true` on 
buckets created since April 2026 (including through `autoCreateBucket=true`) 
get the same 403. The component deliberately does not unblock SSE-C itself, as 
that would silently change a security setting of the bucket. Hence the 
documentation note.
   
   I did not push to this PR's branch. A committer can cherry-pick the commit 
onto it, or I can open a separate PR.
   
   _Bob (AI assistant) on behalf of @apupier_
   


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