Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

fix: upload to Object Lock-enabled bucket fails #156

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Oct 30, 2024

We thought disabling a content checksum for S3 clients would work in all scenarios, so that we can use the same S3 client config for FIPS and non-FIPS environments. Turns out that yet another scenario requires content checksums: PutObject to an Object Lock-enabled S3 bucket.

Again, there's no way to make this work with SDKv2. We do the best we can do: turn off MD5 signing only for FIPS environments. Result: it will not be possible to use Object Lock in FIPS environments.

But at least we unbreak the scenario for non-FIPS customers.

Relates to aws/aws-cdk#31926

We thought disabling a content checksum for S3 clients would work in all
scenarios, so that we can use the same S3 client config for FIPS and
non-FIPS environments. Turns out that yet another scenario requires
content checksums: PutObject to an Object Lock-enabled S3 bucket.

Again, there's no way to make this work with SDKv2. We do the best
we can do: turn off MD5 signing only for FIPS environments. Result:
it will not be possible to use Object Lock in FIPS environments.

But at least we unbreak the scenario for non-FIPS customers.

Relates to aws/aws-cdk#31926
@github-actions github-actions bot enabled auto-merge October 30, 2024 08:28
@rix0rrr rix0rrr requested review from a team October 30, 2024 09:16
@github-actions github-actions bot added this pull request to the merge queue Oct 30, 2024
github-merge-queue bot pushed a commit that referenced this pull request Oct 30, 2024
We thought disabling a content checksum for S3 clients would work in all
scenarios, so that we can use the same S3 client config for FIPS and
non-FIPS environments. Turns out that yet another scenario requires
content checksums: PutObject to an Object Lock-enabled S3 bucket.

Again, there's no way to make this work with SDKv2. We do the best we
can do: turn off MD5 signing only for FIPS environments. Result: it will
not be possible to use Object Lock in FIPS environments.

But at least we unbreak the scenario for non-FIPS customers.

Relates to aws/aws-cdk#31926
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Oct 30, 2024
@mrgrain mrgrain added this pull request to the merge queue Oct 30, 2024
Merged via the queue into v2-main with commit 0fea04e Oct 30, 2024
8 checks passed
@mrgrain mrgrain deleted the huijbers/fips-assets-v2 branch October 30, 2024 10:37
@rix0rrr rix0rrr self-assigned this Nov 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants