Repository navigation
chore(model)!: re-pin AWS models to 3678d8a26 (2026-11-21) - #1665
Merged
Merged
Conversation
Re-pin model/s3.json, model/sts.json, their .sha256 sidecars, and model/PROVENANCE.md to upstream aws/api-models-aws commit 3678d8a26e38bf4855aff5bae7be447ca52e63a0 (2026-11-21), regenerate generated/**, spec/operations/**, and OPERATIONS.md, and classify previously unclassified Smithy traits in model/tools/drift.py. BREAKING CHANGE: Touches protected model/provenance/field-count files and adds optional fields to nine non-exhaustive-free generated DTO structs (six multipart outputs plus EncryptionConfiguration, ReplicationRuleFilter, and ReplicationRuleAndOperator). Bumps rustfs-gateway-types to 0.45.0+aws.2026-11-21, codegen to 0.23.0, core to 0.68.0, gateway to 0.71.0, and difftest to 0.3.0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HIGH-RISK: this PR re-pins protected AWS service models (
model/s3.json,model/sts.json, their.sha256sidecars, andmodel/PROVENANCE.md), updatesgenerated/dto/field_counts.txt, and touchescrates/core.Re-pins the vendored AWS Smithy models from
7eb6ab98(2026-10-02) to official upstreamaws/api-models-awscommit3678d8a26e38bf4855aff5bae7be447ca52e63a0(dated 2026-11-21; lastmodels/s3commit9f371492on 2026-11-18, lastmodels/stscommit4abb8273on 2026-11-19), regenerates all affected artifacts, and classifies the previously unclassified Smithy traits inmodel/tools/drift.py.Closes #1623.
Difftest-coupled change: new 2026-11-21 S3 model multipart version_id and replication filter/KMS members
Semantic Model Diff & ADR Assessment
python3 model/tools/drift.pyreports 35 wire-affecting changes, 2 breaking, 0 unclassified (39 in #1623 prior to classifying the 4 newly appearing Smithy traits):s3(14 additive changes, 0 breaking; 8 impacted operations):VersionId(x-amz-version-idheader / XML element) added toAbortMultipartUploadOutput,CreateMultipartUploadOutput,ListPartsOutput,MultipartUpload,UploadPartOutput, andUploadPartCopyOutput.EncryptionConfiguration.UseSourceMultiRegionKey(UseSourceMultiRegionKey,UseSourceMultiRegionKeyStatus) and optionalReplicationRuleAndOperator.Not/ReplicationRuleFilter.Not(ReplicationRuleNotOperator,ReplicationRuleOrOperator,ReplicationPrefixList).sts(21 changes, 2 breaking; 6 impacted operations):GetScopedCredentialsadded; optionalTrustedIdentityPropagationContextonAssumeRoleWithSAMLResponse/AssumeRoleWithWebIdentityResponse; optionalScope/SubjectModeonGetWebIdentityTokenRequest;InvalidContextAssertionExceptionadded toAssumeRole.com.amazonaws.sts#contextAssertionTypelength{"max":2048,"min":4}->{"max":3072,"min":4}) — no ADR needed: strictly widens the maximum length (every previously valid input remains valid), andmodel/sts.jsonis vendored for provenance only and is not yet consumed by codegen or any STS handler.com.amazonaws.sts#sourceIdentityTypelength{"max":64,"min":2}->{"max":256,"min":2}) — no ADR needed: strictly widens the maximum length (every previously valid input remains valid), andmodel/sts.jsonis not yet consumed by codegen or any STS handler.Code Changes
model/tools/drift.py,model/tools/verify.py,model/tools/test_drift.py,.github/workflows/ci.yml: classifiedaws.protocols#awsQueryError(WIRE_TRAITS+HTTP_TRAITS),smithy.api#sensitive,aws.protocols#awsQuery,aws.auth#sigv4a, andsmithy.api#eventPayload(WIRE_TRAITS), andsmithy.api#input/smithy.api#output(IGNORED_TRAITS).verify.pyenforces zero unclassified traits across both pinned models and disjoint trait sets;test_drift.py(11 unit tests: 9 negative, 2 positive) runs in CIStatic checks(~0.015s).crates/codegen: added 9Rule::GatewayOnlyentries incrates/codegen/src/emit/seam/overrides.rsso legacys3sconversion fails closed on replication<Not>/<UseSourceMultiRegionKey>and leaves the 6 multipart outputversion_idmembers absent backward; updatedall_unknown_tests.rsandnonempty_tests.rsfor the newReplicationRuleFilterchild (Not) andTag-bearing readers (ReplicationRuleNotOperator,ReplicationRuleOrOperator).crates/types:parse_replication_dtodecodes historical bytes withnot: Noneanduse_source_multi_region_key: None;serialize_replication_dtofails closed withPersistenceBridgeError::UnsupportedMemberwhen a caller passes a presentUseSourceMultiRegionKey,Filter.Not, orFilter.And.Not(+3 negative tests); added regression tests indto_tests.rsincludingEncryptionConfigurationDebugKMS key redaction withUseSourceMultiRegionKeypresent.crates/core:rule_filter::replicationcountsFilter.Notas a direct filter child andAnd.Notas a condition inside<And>(+positive/negative boundary tests inrule_filter_boundaries.rs;FilterNotExclusive.reason()kept unchanged forc-replication-0024).crates/difftest: updated exhaustive struct literals inconvert/{listing,multipart}.rs(version_id: None), added fail-closed findingssd-0059/sd-0060with 3 live request rows inseam/samples.rsandseam/samples/findings.rs, and registered the 4 nested structs intests/seam_overrides.rs.Breaking Change
BREAKING — this PR touches protected files and adds fields to non-
#[non_exhaustive]generated DTO structs.Protected files touched (6):
model/s3.json,model/s3.json.sha256,model/sts.json,model/sts.json.sha256,model/PROVENANCE.md, andgenerated/dto/field_counts.txt(crates/core/tests/golden/route-table.txtandmodel/overlays/**are untouched).Version bumps (
Cargo.toml, crate manifests,CHANGELOG.md,Cargo.lock,fuzz/Cargo.lock):rustfs-gateway-types:0.44.0+aws.2026-10-02->0.45.0+aws.2026-11-21(root workspace requirement0.45.0)rustfs-gateway-codegen:0.22.0->0.23.0rustfs-gateway-core:0.67.0->0.68.0rustfs-gateway:0.70.0->0.71.0rustfs-gateway-difftest:0.2.0->0.3.0Migration path: update the git revision and
Cargo.locktogether. Because generated DTO structs omit#[non_exhaustive](ADR-0004), exhaustive struct literals constructingAbortMultipartUploadOutput,CreateMultipartUploadOutput,ListPartsOutput,MultipartUpload,UploadPartOutput,UploadPartCopyOutput,EncryptionConfiguration,ReplicationRuleAndOperator, orReplicationRuleFiltermust add the new optional fields asNone(or..Default::default()). No wire break or stored-data migration is required; existing persisted replication XML remains readable (notanduse_source_multi_region_keydecode asNone).Mutation Proofs
Every new assertion was mutated against the implementation and confirmed red before restoring byte-for-byte:
aws.protocols#awsQueryErrorfromdrift.pyWIRE_TRAITS&HTTP_TRAITStest_drift.py::test_aws_query_error_change_is_breaking_http_binding&verify.pysmithy.api#sensitivefromdrift.pyWIRE_TRAITStest_drift.py::test_gaining_sensitive_on_existing_shape_is_reported&verify.pysmithy.api#input&smithy.api#outputfromdrift.pyIGNORED_TRAITStest_drift.py::test_input_and_output_marker_traits_are_ignored&verify.pysmithy.api#eventPayloadfromdrift.pyWIRE_TRAITStest_drift.py::test_pinned_models_have_no_unclassified_traits&verify.pyuse_source_multi_region_key.is_some()refusal inreplication.rsreplication_dto_bridge_refuses_to_drop_use_source_multi_region_keyvalue.not.is_some()refusal inreplication.rsreplication_dto_bridge_refuses_to_drop_filter_not_operatorand.not.is_some()refusal inreplication.rsreplication_dto_bridge_refuses_to_drop_and_not_operatorfilter.not.is_some()count inrule_filter.rsrule_filter_boundaries::n_replication_refuses_not_beside_direct_siblings_or_alone_inside_andand.not.is_some()count inrule_filter.rsrule_filter_boundaries::replication_accepts_not_alone_and_paired_inside_andVerification
python3 model/tools/verify.py: ok (0.02s,0unclassified traits, disjoint trait sets)python3 model/tools/test_drift.py:11/11passed (0.015s; 9 negative, 2 positive)cargo fmt --all --check: passcargo clippy --workspace --all-targets -- -D warnings: pass (32.38s)RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps: passcargo deny --locked(workspace--all-features+fuzz/Cargo.toml): passcargo test --workspace:11,832passed,0failed,3existing ignoredcargo xtask codegen --check&cargo xtask spec verify: clean (1558files,0differ)cargo xtask ir validate: ok (0.333s, 111 generated, 42 quirks)cargo xtask verify --crate:rustfs-gateway-types(prebuild22.60s/ loop7.82s),rustfs-gateway-codegen(8.55s/27.63s),rustfs-gateway-core(51.86s/14.46s),rustfs-gateway-difftest(7.57s/6.11s)145/145static +5/5REQUIRES-PR+5/5REQUIRES-BUILDpassedRole Verdicts
Checklist
cargo xtask verify)unsafe,inventory/linkme,#[non_exhaustive]on DTOs, or s3s code copied