Repository navigation
feat(#1612): request-validation pilots — SESv2, Route 53, ElastiCache, EC2 key pairs and placement groups - #1686
Merged
Merged
Conversation
scttfrdmn
force-pushed
the
feat/v0133-wire-validation-pilots
branch
from
November 24, 2026 10:03
b5b4fb9 to
c41f434
Compare
… key pairs and placement groups Each pilot's code, status and message form is in validatedServices with its source. Route 53 and SESv2 opt into enums on observed AWS answers. EC2 is validated per operation. Plugin checks the gate duplicates are kept and answer in the gate's words, since dispatches the gate does not see still reach them.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
scttfrdmn
force-pushed
the
feat/v0133-wire-validation-pilots
branch
from
November 24, 2026 10:08
c41f434 to
e1ee544
Compare
…oute 53 batch through the gate's walk - wireCheckMember and wireRequireMember take the plugin's own service and operation, and a member the tables do not hold returns the plugin's previous refusal. - ChangeResourceRecordSets checks its ChangeBatch through the gate's walk, and its Type list is read from the model; the hand-kept enum is gone. - A blank member the model does not bound is refused as blank, not null. - A service's missing-member sentence names the first missing member anywhere in the list. - EC2 names a missing parameter by the model's locationName. - CHANGELOG lists every newly enforced member; follow-ups #1687 and #1688.
…n helpers' declines
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.
Part of #1612. This PR turns on the validation pilots on top of V1, which merged as #1683 (62fc10a). It is rebased onto
main, so the diff is V2 only.What remains under #1612 after this PR is the follow-up work: #1680 (validate the remaining services in protocol batches), #1681 (generated serializers) and #1682 (REST bindings beyond the pilots).
For each pilot, the code, status and message form are in
validatedServices(emulator/wire_validate_errors.go), and each cites its source in a comment beside the row.BadRequestException/400. Every routed operation publishes this code ("The input you provided is invalid.").Value at 'deliveryOptions.maxDeliverySeconds' … Member must have value greater than or equal to 300(terraform-provider-aws#40591).… Member must satisfy constraint: [Member must satisfy enum value set: [BOUNCE, COMPLAINT]](terraform-provider-aws#38207).Value null atform for a missing member is substrate's reading for SESv2. No source shows it for this service.InvalidInput/400. Every routed operation publishes this code ("The input is not valid.").InvalidInput: 1 validation error detected: Value '/hostedzone/…' at 'resourceId' … less than or equal to 32(terraform-provider-aws#37817).Value 'to' at 'startRecordType' … Member must satisfy enum value set: [...](terraform-provider-aws#11677).changeBatch.changes.1.member.resourceRecordSet.tTL(ttl for route53 should be sent as seconds caddy-dns/route53#17).InvalidParameterValue/400, from the ElastiCache common-errors page.The parameter CacheSubnetGroupName must be provided and must not be blank.(Stack Overflow 64722305; The parameter CacheSubnetGroupName must be provided and must not be blank. cloudposse/terraform-aws-elasticache-redis#89). Only the first missing member is named.validatedServicescan now be scoped per operation (ops). This PR validatesCreateKeyPair,ImportKeyPair,DeleteKeyPair,DescribeKeyPairs,CreatePlacementGroup,DeletePlacementGroupandDescribePlacementGroups.MissingParameterwithThe request must contain the parameter KeyName, naming the parameter by the model'slocationName(publicKeyMaterial,groupName), or by the member name where there is none (KeyName). The observed answers nameinstanceIdandebsthe same way.ec2MissingParameter.missingSentenceand thewireStyleElidedandwireStyleEC2message styles. The walker computes EC2 wire names.wireRequireMember. For an absent member, and for a blank one the model gives a minimum length, it runs the gate's own walk over that member (wireCheckMember), so the answer is the gate's byte for byte. A blank member the model doesn't bound is refused in the same form.TestWireValidation_PilotPluginChecksAnswerInTheGatesWordsbyte-compares the answers with the gate on and off. The sites:X is requiredsites, viaelasticacheMissing;CreateKeyPairandImportKeyPair(KeyName,PublicKeyMaterial), andDeletePlacementGroup(GroupName), viaec2MissingParameter;CreateEmailIdentity;CreateHostedZoneName, andChangeResourceRecordSets'Typecheck, which now reports the change's index and the enum.CreateVpcis unaffected).CreateCacheSubnetGroupwithout the requiredSubnetIds, and one SESv2 test sentSendEmailwithout the requiredContent. They now send both.Routed-operation catalog unchanged.
Gates run locally:
make lint test e2e;wire-model-check,scheduler-query-model-check,comment-history-checkanddoc-links-check;nondeterminism-check docs-versions docs-counts-check cfn-schema-check;SUBSTRATE_IAC=1 make iac-e2e: Terraform and CDK pass. Neither journey uses Route 53 or ElastiCache today.Review fixes (dbf753d).
wireCheckMemberandwireRequireMembertake the plugin's own service and operation. If the tables hold no such member, the plugin's previous refusal is returned instead.ChangeResourceRecordSetschecks its wholeChangeBatchthrough the gate's walk. The record-type list is read from the model withwireEnumAt; the hand-kept enum is gone.Member must not be blank, which is substrate's own wording.Service;Type, and with a badTypeplus a badTTL, compared byte for byte between gate on and gate off.Follow-up issues: #1680, #1681, #1682, #1687 (ElastiCache drops
SubnetIds) and #1688 (Terraform coverage of the pilot services), all on v0.137.0.