Skip to content

Partially patch AWS crates for qos_enclave#607

Draft
cr-tk wants to merge 1 commit into
mainfrom
christian/aws-bump
Draft

Partially patch AWS crates for qos_enclave#607
cr-tk wants to merge 1 commit into
mainfrom
christian/aws-bump

Conversation

@cr-tk
Copy link
Copy Markdown
Collaborator

@cr-tk cr-tk commented Jan 15, 2026

Summary & Motivation (Problem vs. Solution)

AWS has recently announced GHSA-g59m-gf8j-gjf5 which classifies a recent improvement in their API across in many of their Rust SDK crates as a security patch. This is a motivation to adopt newer versions of the AWS SDK crates that we use for qos_enclave.

At the time of writing, we can not switch aws-sdk-kms to a new enough version since other AWS crates such as aws-nitro-enclaves-image-format explicitly require use of older versions, see aws/aws-nitro-enclaves-image-format#49.

Additional restrictions on aws-config version ranges, combined with cargo restrictions on allowed parallel usage of different major versions of the same crate (such as aws-types 1.1.9 and 1.3.11) unfortunately make it difficult for us to adopt the newer versions.
For example, our tests build with aws-types 0.101.0 but the fail with

the trait aws_config::meta::region::ProvideRegion is not implemented for aws_types::region::Region

during runtime, and newer 1.0.x or 1.1.x versions aren't allowed due to the previously mentioned cargo rules. This holds back what this PR can currently do.

The aws-nitro-enclaves-image-format development has finally dropped atty as a transitive dependency, allowing us to get rid of it and the related security warnings (unmaintained crate) as described in aws/aws-nitro-enclaves-image-format#44 . Since there's no official release for that yet, we have to use the Cargo patch mechanism as a workaround to enforce this. https://github.com/advisories/GHSA-g98v-hv3f-hcf is also related, but not relevant for us.

How I Tested These Changes

TBD

@cr-tk cr-tk changed the title Patch AWS crates for qos_enclave Partially patch AWS crates for qos_enclave Jan 15, 2026
@cr-tk cr-tk force-pushed the christian/aws-bump branch from 4bdd6d1 to 7f175a7 Compare January 15, 2026 21:23
@cr-tk cr-tk force-pushed the christian/aws-bump branch from 7f175a7 to d1571c2 Compare February 4, 2026 18:02
@cr-tk
Copy link
Copy Markdown
Collaborator Author

cr-tk commented May 12, 2026

The situation unfortunately hasn't improved since the AWS crates and repositories have not been updated to be compatible with patched versions.

@cr-tk cr-tk force-pushed the christian/aws-bump branch from d1571c2 to 6fbecce Compare May 20, 2026 17:11
@cr-tk cr-tk force-pushed the christian/aws-bump branch from 6fbecce to da91231 Compare May 20, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant