mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
e1e98fd8dc8b862007ef0138c0c3ffbbdad2e30f
1840
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
17e02edad9 |
feat(dynamodb): resource policies and GSI-level OnDemandThroughput (#2976)
PutResourcePolicy/GetResourcePolicy/DeleteResourcePolicy previously fell through to the default 400 UnknownOperationException branch, and a GSI created with an explicit OnDemandThroughput never stored the value, so DescribeTable could not report it back. Both block the Terraform provider: aws_dynamodb_resource_policy fails at apply, and an on-demand GSI shows phantom drift on every plan. Policies live on TableDefinition with an opaque RevisionId honoring ExpectedRevisionId on Put/Delete (PolicyNotFoundException on mismatch or absence); the GSI parse/emit mirrors the existing table-level OnDemandThroughput handling. |
||
|
|
6c9cc95d54 |
feat(elasticache): add validation for cache parameter group existence in replication group operations (#2957)
Signed-off-by: Matheus André <matheusandr2@gmail.com> |
||
|
|
17ea9a9aac |
feat(redshift): rewrite Redshift table DDL keywords for a PostgreSQL backend (#2947)
* feat(redshift): rewrite Redshift table DDL keywords for a PostgreSQL backend * fix(redshift): isolate DDL rewrites per statement in multi-query batches * fix(redshift): mask dollar-quoted literals to prevent unintended rewrite of DDL fragments * fix(redshift): support arbitrary dollar quote tags in literal masking * fix(redshift): support column constraints following distkey and sortkey |
||
|
|
8440e201e1 |
refactor(ses): extract the identity domain into SesIdentityService (#2984)
* refactor(ses): extract the identity domain into SesIdentityService * fix(ses): persist identity mutations under the request-derived key |
||
|
|
ad0f4a1613 |
fix(sqs): honour ReceiveMessageWaitTimeSeconds when ReceiveMessage omits WaitTimeSeconds (#2989)
* fix(sqs): honour ReceiveMessageWaitTimeSeconds when ReceiveMessage omits WaitTimeSeconds ReceiveMessage treated a missing WaitTimeSeconds as 0 and returned immediately, ignoring the queue's ReceiveMessageWaitTimeSeconds attribute. AWS applies that attribute as the default wait, and only an explicit WaitTimeSeconds in the request overrides it, so consumers that enable long polling on the queue were short polling against Floci. Both protocol handlers now pass -1 when the parameter is absent, and the service resolves the wait from the queue attribute, mirroring the existing VisibilityTimeout fallback. CreateQueue stores the AWS default of 0 so GetQueueAttributes reports the attribute like AWS does. * fix(sqs): reject ReceiveMessage WaitTimeSeconds outside 0 to 20 An explicit negative or non-integer WaitTimeSeconds was parsed to the "omitted" sentinel and inherited the queue's long poll instead of failing. Carry the parameter as a nullable Integer, reject malformed values at the protocol boundary and out-of-range values in the service with InvalidParameterValue, and cap the queue attribute fallback at the AWS maximum of 20 seconds. * fix(sqs): reject fractional WaitTimeSeconds on the SQS JSON protocol canConvertToInt() accepts fractional JSON numbers such as 1.5, which asInt() then truncated before the range check, so a malformed request ran as a one second poll instead of failing with InvalidParameterValue. Signed-off-by: Kurt McAlpine <kurt.mcalpine@halter.co.nz> --------- Signed-off-by: Kurt McAlpine <kurt.mcalpine@halter.co.nz> |
||
|
|
4bf17a1fe2 |
fix(cognito): fail listUsers/listUserPoolClients on an absent user pool (#2962)
listUsers scanned its store by a "{poolId}::" prefix and
listUserPoolClients by a userPoolId field, neither of which touched
poolStore, so a pool id that does not exist was indistinguishable from
an empty pool: both returned 200 with an empty list instead of
ResourceNotFoundException. list-groups and list-resource-servers
already resolved the pool via describeUserPool and were correct;
this brings the other two list actions in line with them and with
real Cognito, where all four behave identically.
Fixes #2952
|
||
|
|
262495df67 |
fix(dynamodb): reject unused ExpressionAttributeNames/Values on PutItem, DeleteItem, Scan, Query (#2923)
* fix(dynamodb): reject unused ExpressionAttributeNames/Values on PutItem, DeleteItem, Scan, Query The checkUnusedEan / checkUnusedEav helpers were only wired into handleUpdateItem and (names only) handleQuery, so PutItem, DeleteItem and Scan accepted expression attribute entries not referenced by any expression and performed the operation, where AWS returns ValidationException. Query accepted unused values for the same reason. Wire both helpers into handlePutItem, handleDeleteItem and handleScan, and add the missing checkUnusedEav call to handleQuery, each checking against the tokens actually referenced by that operation's expressions. Closes #2893 * fix(dynamodb): also reject unused EAV on legacy KeyConditions + FilterExpression Query Addresses PR review: the unused ExpressionAttributeNames/Values check in handleQuery was gated on KeyConditionExpression != null, so a Query combining legacy KeyConditions with FilterExpression skipped it. Widen the guard to fire whenever any expression parameter (KCE, FilterExpression, ProjectionExpression) is present, and add an integration case for the mixed path. Also replace an em dash in the new test comment per repo style. * test(dynamodb): reference the aliased name in the reserved-word conformance case The sdk-test-node "reserved word aliased via ExpressionAttributeNames passes" case supplied ExpressionAttributeNames {#st: status} on a PutItem whose ConditionExpression (attribute_not_exists(pk)) never referenced #st. Real AWS — and now Floci, per #2893 — rejects unused ExpressionAttributeNames entries with ValidationException. Point the ConditionExpression at #st so the alias is actually used; the reserved-word aliasing behaviour under test is unchanged. * fix(dynamodb): run Query unused EAN/EAV check unconditionally Addresses PR review: the previous guard (keyConditionExpr || filterExpr || projectionExpression) still let a legacy KeyConditions Query carrying a stray ExpressionAttributeNames/Values map through without validation. Drop the guard so the checks always run; the token sets are still derived only from the expressions that can legitimately reference those maps, so a correct request is unaffected. Add an integration case for legacy KeyConditions with no expression parameter. * test(dynamodb): reference the aliased name in the sdk-test-java reserved-word case Mirror of the sdk-test-node fix: reservedWordWithAliasPasses supplied an unused ExpressionAttributeNames {#st: status} on a PutItem whose ConditionExpression referenced pk, which #2893 now correctly rejects. Point the condition at #st. * fix(dynamodb): AWS "can only be specified when using expressions" wording for PutItem/DeleteItem Addresses PR review: when ExpressionAttributeNames/Values is supplied with no expression parameter at all, this PR's new checkUnusedEan/checkUnusedEav calls reported "Value provided in ExpressionAttributeNames unused in expressions: keys: {...}". Real AWS answers that sub-case with "<param> can only be specified when using expressions: ConditionExpression is null" instead. Add rejectExprAttrsWithoutExpression, parameterised on the null-expression message, and wire it into handlePutItem and handleDeleteItem ahead of the unused-alias checks. Both operations only accept ConditionExpression, so the named param is unambiguous; the wording matches the pre-existing PutItem+EAV guard from #826. EAV is checked before EAN to preserve that guard's order. Scan and Query still return the "unused in expressions" 400 for this sub-case: those ops accept multiple expression parameters and AWS's exact wording there is unverified. The helper is parameterised so it is a one-line change per op once the strings are measured. |
||
|
|
732e009207 |
fix(ecr): clean up registry storage (#2982)
Remove every manifest for a forced repository deletion and reclaim the shared registry volume only when storage pruning is configured. |
||
|
|
906717a510 |
feat(cognito): implement SetUserPoolMfaConfig (#2831)
* feat(cognito): implement SetUserPoolMfaConfig
The action was unrouted, so the dispatcher answered UnsupportedOperation
and any caller configuring pool MFA failed. GetUserPoolMfaConfig already
existed but reported only MfaConfiguration, so a software-token setting
could not round-trip even once it could be set.
SetUserPoolMfaConfig now stores the MFA mode and the software-token
setting, and both actions answer with the shape measured on the live
service: only configured factors appear, so SoftwareTokenMfaConfiguration
is omitted until it is set.
SMS, email and WebAuthn MFA are accepted and deliberately not stored —
Floci has no path to deliver those factors, and retaining the config
would claim a capability that does not exist.
* test(cognito): cover MFA configuration through the AWS SDK
The integration test drives the endpoint over raw HTTP, so nothing
exercised the new action through a real SDK client. Adds coverage for
the three cases that matter to a caller: an unconfigured pool reports
OFF with no software-token member, a set round-trips through Get, and an
invalid MfaConfiguration is rejected.
* fix(cognito): follow the measured SetUserPoolMfaConfig semantics
Three behaviours were taken from the API reference and turned out wrong
when measured against the live service:
- an absent MfaConfiguration means OFF, not "leave the current mode
alone", so a pool set to OPTIONAL is reset by a request that omits it
- turning MFA off drops the factor configuration with it; the service
answers OFF alone afterwards
- sending a factor while the effective mode is OFF is rejected with
"can't turn off MFA and configure an MFA together"
The enum in the validation message is also ordered [OPTIONAL, OFF, ON],
as the service emits it. Two tests asserted the previous guesses and
passed, which is how a guess becomes apparent evidence; both now pin the
measured behaviour.
* fix(cognito): apply the MFA factor rules to email and SMS, not just the software token
Review flagged that a request combining an effective OFF mode with
EmailMfaConfiguration or SmsMfaConfiguration was accepted, since only
SoftwareTokenMfaConfiguration was read. Measured against the live
service, and the finding holds for email and SMS but not for WebAuthn:
- OFF + EmailMfaConfiguration is rejected with the same message as
OFF + SoftwareTokenMfaConfiguration
- OFF + WebAuthnConfiguration returns 200 and echoes the block back
- the rule fires on the member being present, not on Enabled: OFF
alongside SoftwareTokenMfaConfiguration{Enabled:false} is rejected
The same pass turned up the mirror rule, which was also missing: ON or
OPTIONAL with none of the three factors present is rejected with
"SMS MFA, Email MFA, or Software Token MFA must be enabled". Despite
that wording it is again presence, not value - ON alongside
SoftwareTokenMfaConfiguration{Enabled:false} is accepted - and WebAuthn
does not satisfy it, so it sits outside both rules in both directions.
One existing test set ON with no factor at all, which the live service
refuses; it now sends a factor.
* test(cognito): read the MFA config tests in their execution order
The methods were laid out 1, 2, 3, 4, 5, 8, 6, 10, 7, 9, 11, 12, 13, an
artifact of adding cases across three review rounds. The chain is stateful,
so a reader following the pool through it had to jump around the file.
Pure move: the methods are reordered to match their @Order values, no
annotation value and no test body is changed, so the execution order is
exactly what it was.
* chore(cognito): drop the em-dashes this branch introduced
AGENTS.md asks for none in any content. Seven had leaked into the MFA
prose: the docs table row, two service comments, the handler javadoc and
two in the test class. Replaced with colons and commas, no wording change
beyond the punctuation.
Pre-existing em-dashes elsewhere in these files are left alone.
* revert: "chore(cognito): drop the em-dashes this branch introduced"
This reverts commit
|
||
|
|
c30ca8fb5f |
fix(cognito): name missing user pools in errors (#2936)
* fix(cognito): name missing user pools in errors * test(cognito): address missing pool review |
||
|
|
14ca62d9f7 |
feat(ecs): honor UpdateService forceNewDeployment and emit EventBridge lifecycle events (#2938)
* feat(ecs): honor UpdateService forceNewDeployment (#2557) * feat(ecs): add EcsEventPublisher for aws.ecs lifecycle events (#2557) * feat(ecs): emit ECS Task State Change events on task start/stop (#2557) * feat(ecs): emit ECS Deployment State Change events (#2557) * test(ecs): end-to-end ECS EventBridge lifecycle events + docs (#2557) * fix(ecs): log diagnostic when task ARN region parse fails (#2557) * fix(ecs): synthesize lifecycle events from a task snapshot, not the shared instance emitTaskLadder toggled the live task's lastStatus in place to synthesize each phase, so a concurrent DescribeTasks/ListTasks could observe a status the task never actually occupied while the four-phase ladder was in flight. Build the ladder from a shallow copy instead. Also bump the ARN region-parse fallback log from debug to warn, since debug is off by default and made the fallback effectively invisible. |
||
|
|
58b2e5ff96 |
fix(dynamodb): name the table in the ResourceNotFoundException message (#2929)
Every table lookup returned a bare "Requested resource not found", omitting the
table name that real AWS includes. DynamoDB is the service most people exercise
first and error-text assertions are common in its test suites, so the mismatch
tends to surface in the first hour rather than late.
The expected text is not settled by the botocore model, which declares only a
message member with no template. It comes from AWS's own SDK tests: the
aws-sdk-js-v3 DynamoDB e2e spec asserts "Requested resource not found: Table:
DynamoDB not found", and aws-sdk-ruby's client.feature asserts the same shape
against a real endpoint. moto composes the identical string.
resourceNotFoundException already accepted the table name and discarded it. All
fifteen call sites are table lookups, so interpolating in the helper is correct
for every caller and matches findTableByArn, which already names the resource it
failed to find. That method keeps its ARN-shaped message because it resolves by
ARN rather than by name.
Verified on the wire: DescribeTable on a missing table now returns
{"__type":"ResourceNotFoundException","message":"Requested resource not found:
Table: nope not found"}. No test asserted the old text, and the DynamoDB suites
stay green at 1362 tests.
|
||
|
|
812911fd03 |
feat(ses): support tag operations on tenant ARNs (#2832)
* feat(ses): support tag operations on tenant ARNs * fix(ses): shield the stored tenant record from tag-callback mutation * test(ses): cover the cross-region guard for tenant TagResource/UntagResource * docs(ses): drop em dashes from the tenant tag additions |
||
|
|
5dc0808bda |
feat(cloudformation): report a stubbed unsupported resource type instead of hiding it (#2971)
An unsupported resource type was stubbed at debug, so the stack reached CREATE_COMPLETE and a green stack did not prove its resources existed. The stub is now reported at warn, naming the type, and the resource carries a status reason saying nothing was created, which DescribeStackEvents returns. A new floci.services.cloudformation.allow-stub-unsupported-resource-types setting (default true) turns the stub into a stack failure for suites that need a green stack to mean every resource exists. An unexpanded SAM resource type warns on its own, and the delete path names the physical id it does not remove. Closes #2967 |
||
|
|
9e2c03158d |
fix(cloudformation): persist FunctionResponseTypes on Lambda::EventSourceMapping (#2964)
provisionLambdaEventSourceMapping never read the FunctionResponseTypes property, so a CFN-provisioned mapping always came back with an empty list even when the template declared it, unlike the direct CreateEventSourceMapping path. Partial batch responses were therefore ignored for CFN-deployed SQS to Lambda mappings. The property is resolved the way the arm's other array properties are, through resolveStringList, and the integration test pins the persisted value. Fixes #2848 |
||
|
|
8c2619f965 |
fix(cloudtrail): serialize trail mutations to prevent lost updates (#2911)
AddTags, RemoveTags, UpdateTrail, PutEventSelectors, StartLogging and StopLogging all did an unlocked get-then-put of the whole CloudTrailEntry, so two overlapping mutations of the same trail could silently drop one another's change. Every trail mutation's read-modify-write now goes through withTrailLock, a per-trail-key mutex built on ConcurrentHashMap#compute's per-key atomicity; the remapping function runs the mutation and returns null, so no bookkeeping entry accumulates per trail. UpdateTrail reads its merge basis inside the lock and raises TrailNotFoundException if the entry is gone by the time it acquires it. CreateTrail stays unlocked, matching AwsConfigService. Closes #2904 |
||
|
|
44655751c6 |
feat(bedrock-runtime): implement ConverseStream for stub and proxy backends (#2889)
Both backends now emit the real application/vnd.amazon.eventstream framing Bedrock SDK clients expect: a messageStart/contentBlockDelta/contentBlockStop/ messageStop/metadata event sequence, framed with the same AwsEventStreamEncoder helper already used by S3 Select and Kinesis SubscribeToShard. The proxy backend posts to /chat/completions with stream:true (matching Converse) and translates the OpenAI SSE response into Bedrock stream events, including basic tool-call accumulation. A response - streaming or not - that never produces real completion content surfaces as a ModelErrorException instead of a fabricated empty success: - ConverseStream: no usable SSE chunks, chunks that only carry role/usage/ finish_reason with no text or tool_calls, a stream that ends without a finish_reason or "[DONE]" (truncated mid-generation), or a tool_calls fragment missing its id/name or with arguments that never form valid JSON. - Converse: a 2xx response with no choices at all. |
||
|
|
342f58b2b7 |
fix(glue): populate CatalogId on GetDatabase and GetDatabases (#2814)
* fix(glue): populate CatalogId on GetDatabase and GetDatabases The Glue database responses never set CatalogId, so terraform-provider-aws built the aws_glue_catalog_database resource id as ":name" and failed with "unexpected format for ID, expected catalog-id:database-name". Resolve it per request from the caller's account, matching the convention LakeFormationService already uses, rather than persisting it with the database, so existing stores need no migration. Refs #2793 * fix(glue): set CatalogId at write time, backfill legacy rows on read Addresses review feedback: populating CatalogId on the read path mutated the Database instance owned by the store, so a GetDatabase call could persist a request-derived value. Set it when the database is created or updated instead. Reads only fill it in for rows persisted before the field existed, which is stable because the store is namespaced by account -- the same migrate-on-read AccountAwareStorageBackend already does for un-prefixed keys. |
||
|
|
1528c65df3 |
fix(cloudformation): keep a generated physical name across stack updates (#2788)
provision runs again on every UpdateStack. Seven provisioners generated a fresh random name unconditionally, so an update created a second resource and left the first behind with its data while the stack's physical id moved to the new, empty one. For these types the name is a createOnlyProperty, so an unchanged template must keep its physical id. ProvisionContext.stablePhysicalName encapsulates the rule: the template's name, else the name the resource already had, else a generated one. S3::Bucket, SSM::Parameter, ECR::Repository, Pipes::Pipe, KinesisFirehose::DeliveryStream and CloudWatch::Alarm use it. SNS cannot: a topic's physical id is its ARN, so the prior name is read back from the TopicName attribute instead. A stable name means the second UpdateStack reaches the create API with a name that already exists, so the provisioners whose service rejects a duplicate now reconcile instead of creating. ProvisionContext.reusesPriorEntity answers whether the derived name is the entity the resource already had; it is deliberately not isUpdate, because a replacing update also carries a prior id but under a new name and must still create. Firehose goes to UpdateDestination, Pipes to UpdatePipe, S3 skips CreateBucket (idempotent only in us-east-1, BucketAlreadyOwnedByYou elsewhere), and ECR reconciles the repository it owns. The reconcile paths drive tags to the template's desired state: neither UpdateDestination nor UpdatePipe carries tags and a tag call alone never removes one, so dropped keys are untagged before the desired set is applied, as the registry schemas' update handlers declare. ECR no longer adopts a repository whose name is already taken: a create on a colliding name fails with RepositoryAlreadyExistsException as on CloudFormation (a CDK bootstrap re-run is an update of the existing CDKToolkit stack and stays on the reuse path), a template that drops its lifecycle or repository policy deletes the stored one, and a dropped ImageTagMutability resets to the MUTABLE default the API applies when the parameter is omitted. A Pipes update that changes the createOnly Source while reusing the name is refused with ValidationError. CfnStableNameUpdatePathTest provisions each type twice and pins exactly one create, the tag diff, the source rejection and the collision failure. AWS::SQS::Queue and AWS::Lambda::MicrovmImage share the original defect and are left for a follow-up. |
||
|
|
309043baf6 |
fix(eks): validate IAM authentication tokens (#2912)
Reject forged, expired, and cross-cluster EKS authentication tokens before granting cluster-admin access. |
||
|
|
3d2b8828ad |
fix(lambda): honour the CodeSha256 precondition on PublishVersion (#2939)
* fix(lambda): honour the CodeSha256 precondition on PublishVersion CodeSha256 is documented as a precondition: "only publish a version if the hash value matches the value that's specified". The controller parsed only Description out of the request body, so the field never reached the service and a publish that should have been rejected succeeded and produced a version. A caller that raced someone else's deploy published code it had never authorised, with nothing to say so. A mismatch is now InvalidParameterValueException carrying the message shape AWS uses, and no version is created. The check sits inside the lock UpdateFunctionCode takes, so the hash cannot be validated against one state of $LATEST and the snapshot then taken from another. Opt in: a request without the field behaves exactly as before, which omittingCodeSha256StillPublishes pins. Part of #2822; the unchanged-publish half follows separately because it changes behaviour for existing callers. * fix(lambda): close the CodeSha256 race and reject malformed preconditions Two gaps found in review of the precondition itself. The check was not atomic with UpdateFunctionCode. The earlier claim that it sat inside that lock was wrong: extractZipCodeBytes sets codeLocalPath, codeSizeBytes and codeSha256 with no lock held, and the only synchronized block in there wraps an unrelated legacy-directory cleanup further down. So PublishVersion holding its own lock serialised nothing, and a deploy landing between the hash matching and the snapshot being taken still published code the caller had not authorised. Make the writer take the lock. Hashing stays outside it, being pure computation on bytes already in hand, as does extraction to disk so a large package does not serialise unrelated work; only the fields that decide what a snapshot copies are published inside it. A malformed precondition also bypassed the check. {"CodeSha256": 12345} throws a ClassCastException into the body-parse catch, leaving the field null and indistinguishable from omitted, so the publish succeeded with 201. An unparseable body behaved the same way. Both are now 400: field extraction rejects a wrong JSON type rather than letting the cast fail silently, and a body that cannot be parsed is an error rather than an empty request. * fix(lambda): reject a null JSON body on PublishVersion A body of literal "null" is valid JSON that parses cleanly to a null map, so it never reaches the parse-failure path and then threw a NullPointerException on the field reads, surfacing as a 500 rather than a 400. Guarded outside the try rather than inside it. Inside, the exception would be caught by that method's own catch and rewrapped as a parse failure, which it is not, giving "Could not parse request body: Request body must be a JSON object". * fix(lambda): compare a blank CodeSha256 rather than treating it as absent An isBlank() check short-circuited the whole condition, so an explicit empty or whitespace-only CodeSha256 skipped the comparison and published without checking anything: the same present-but-malformed value behaving like an absent one that the rest of this branch addresses. The exclusion is simply removed, so an empty string is compared like any other value and fails as a mismatch. Rejecting it with a dedicated error would mean inventing an error shape for the empty case that has not been measured against the live service; a mismatch is one AWS demonstrably produces for a hash that does not match. |
||
|
|
97ce09f22a |
fix(lambda): replace the fabric8 kubernetes client with a plain REST client (#2919)
* fix(lambda): replace the fabric8 kubernetes client with a plain REST client quarkus-kubernetes-client was an always-on dependency, so the fabric8 client and its generated Kubernetes model classes were reachable in every native image regardless of whether floci.services.lambda.executor was ever set to kubernetes. That was the single largest contributor to a ~20% native image size increase last month (issue #2914). The kubernetes executor only ever needs a handful of plain REST calls (create/get/list/delete pods, create-or-update a ConfigMap, stream logs) against a plain JSON HTTPS API, the same shape Floci already talks to AWS in without an SDK. KubernetesApiClient replaces the fabric8 client with the JDK HttpClient (as FlinkRestClient already does for another container orchestrator's REST API), so the dependency is gone entirely rather than merely unused: it no longer appears anywhere in the packaged application, native or JVM. Connection resolution mirrors kubectl's for the common cases: in-cluster service account (token re-read per call since projected tokens rotate, CA loaded once), or a kubeconfig's current-context with a static bearer token or client-certificate/client-key (PKCS#8) credential. exec/auth-provider credential plugins (e.g. aws eks get-token) are not supported and fail with a clear error naming the limitation. LambdaPodSpecFactory now builds the pod manifest as a plain JSON tree instead of fabric8 builders. Tests keep using fabric8's kubernetes-server-mock as a fake API server (test-scope only, so it never reaches the shipped artifact) and point KubernetesApiClient at it over HTTP(S) instead of constructing a fabric8 client directly. * fix(lambda): support insecure-skip-tls-verify and drop stale test devservices config kubeconfig's insecure-skip-tls-verify (the common kind/minikube dev-cluster case) fell through to the default trust store and failed with a generic PKIX error instead of a named limitation like every other unsupported kubeconfig case. Honor it: skip both chain and hostname validation, matching kubectl. Verified against a real self-signed HTTPS server, both with and without the flag, so a regression here fails loudly. Also drops src/test/resources/application.yml's leftover quarkus.kubernetes-client.devservices block: with the extension gone from pom.xml that key is unrecognized config pointing at a dependency that no longer exists. |
||
|
|
671628b525 |
feat(cloudtrail): implement AddTags, RemoveTags and ListTags (#2934)
* feat(cloudtrail): implement AddTags, RemoveTags and ListTags CloudTrailJsonHandler dispatched none of the three tag actions, so any trail lookup went through the unsupported-action path — including the Terraform AWS provider's transparent-tagging ListTags call on every read of aws_cloudtrail, which broke refresh/plan/destroy for any state containing a trail regardless of whether it was tagged. Tags are tracked per-trail in CloudTrailEntry (not the wire-serialized Trail record, which AWS never includes tags on) and are resolved by ARN only, matching AWS's actual request shape for these three actions. An ARN that isn't a well-formed CloudTrail trail ARN raises CloudTrailARNInvalidException; a well-formed ARN with no matching trail raises ResourceNotFoundException, so a stale Terraform state entry surfaces as a real error instead of an empty tag list. Fixes floci-io/floci#2297 * fix(cloudtrail): omit Value from ListTags response for valueless tags AddTags only requires Key, so a tag can legitimately have no Value. listTags() was serializing that as an explicit "Value":null, but AWS omits absent optionals from the response entirely. |
||
|
|
39b19d1c92 |
refactor(config): move max-request-size and ecr-base-uri into sub-mappings (#2902)
floci.max-request-size and floci.ecr-base-uri sat at the config root but belong with related settings. Relocate them: - max-request-size -> floci.protocols.max-request-size (ProtocolsConfig) - ecr-base-uri -> floci.services.lambda.ecr-base-uri (LambdaServiceConfig) A new FlociConfigRelocationsInterceptor (SmallRye ConfigSourceInterceptor, registered via META-INF/services) keeps the old flat keys and their FLOCI_MAX_REQUEST_SIZE / FLOCI_ECR_BASE_URI env vars working: the legacy key is consulted when the new key is requested, and iterateNames() rewrites it so config-mapping validation does not flag it as unknown. Future relocations are one entry in its RELOCATIONS list. ImageResolver, both application.yml files, the affected tests and the configuration docs are updated to the new keys. |
||
|
|
3db883d003 |
fix(iam): resolve DynamoDB table ARN from request body for IAM enforcement (#2928)
* fix(iam): resolve DynamoDB table ARN from request body for IAM enforcement (#2925) * fix(iam): evaluate multi-table DynamoDB batch and transact requests per table * fix(iam): support table ARN resolution for DynamoDB PartiQL statements * fix(iam): handle quoted PartiQL table names with special characters * fix(iam): use DynamoDbPartiQLParser to extract table from PartiQL statements |
||
|
|
cf628ba2b9 |
fix(lambda): honour Qualifier on GetFunction and GetFunctionConfiguration (#2932)
* fix(lambda): honour Qualifier on GetFunction and GetFunctionConfiguration Both read paths ignored Qualifier and answered with $LATEST for everything, including versions that were never published. A caller pinning version 1 silently got whatever $LATEST held at the time, which defeats the immutability guarantee that is the point of publishing, and a read against a version that does not exist returned 200 instead of 404, so a typo or a stale alias looked live. Resolve the qualifier through the same target resolver the invoke path uses, so a qualifier means the same thing whether a caller reads it or runs it. That covers published versions, aliases, and an explicit $LATEST, and turns an unresolvable qualifier into the ResourceNotFoundException AWS returns. A qualifier may also ride on the name, as fn:1 or a qualified ARN. An explicit Qualifier and one carried on the name must agree; disagreeing is InvalidParameterValueException rather than a silent pick of one. Scoped to the read paths. The invoke path already resolves qualifiers, and the remaining invoke-side gap is the warm pool keying in #1988, which has an approved fix awaiting a rebase in PR #2028. Closes #2821 * fix(lambda): resolve aliases deterministically when reading, not by weight Routing a qualified read through the invoke resolver also inherited its alias behaviour. An alias carrying AdditionalVersionWeights shifts traffic, so pickAliasVersion chooses at random among the weighted versions, which is right for running a function and wrong for describing one: two reads of the same alias could report different versions. Split the resolver on how aliases resolve rather than copying it, so the two cannot drift. Invoke keeps the weighted pick; a read follows the alias's primary FunctionVersion, which is what AWS reports. |
||
|
|
c54b237cd8 | fix(ec2): include network metadata in instance type responses (#2943) | ||
|
|
30b8f88467 |
fix(kinesis): handle minimum partition key hash (#2950)
* fix(kinesis): handle minimum partition key hash * fix(kinesis): preserve negative hash shard routing |
||
|
|
82ee3605c8 |
feat(cognito): implement user MFA preferences (#2896)
* feat(cognito): implement user MFA preferences * fix(cognito): register email MFA settings for reflection |
||
|
|
96c55ec2e2 |
fix(opensearch): keep publishing the domain's host port when floci runs in a container (#2798)
* fix(opensearch): keep publishing the domain's host port when floci runs in a container The container-IP endpoint fix dropped the Docker host-port binding in the in-container topology, copying the Neptune/MemoryDB pattern - but those services front their backends with floci-internal proxies, and OpenSearch has none, so the binding was the only path to the domain from outside the Docker network. Publish it in both topologies again; the stored endpoint stays the container-IP one. * fix(opensearch): release a domain's host-port reservation when its container is removed Repeated create/delete cycles reserved a fresh port each time and never handed one back, eventually exhausting the configured range. The domain now records its host port, releases it when the container is removed (teardown or restart), and keeps the reservation when keep-running shutdown leaves the container holding the binding. (cherry picked from commit 91507b191abda6f30ee42022add797bff1584487) |
||
|
|
b85dd2b7f7 |
fix(apigateway): import x-amazon-apigateway-any-method on OpenAPI import (#2876)
* fix(apigateway): import x-amazon-apigateway-any-method on OpenAPI import * fix(apigateway): review comments * fix(apigateway): replace em-dash |
||
|
|
0a3bc030f6 |
feat(cognito): implement identity provider configuration CRUD (#2858)
* feat(cognito): implement identity provider configuration CRUD CreateIdentityProvider, DescribeIdentityProvider, ListIdentityProviders, UpdateIdentityProvider and DeleteIdentityProvider were unsupported, so infrastructure tooling could not manage a user pool's federated providers. Stores provider configuration alongside the other user pool sub-resources and matches the response and update semantics measured against the live API: - IdpIdentifiers is echoed by create and update only when the request supplied the member, whatever the stored value; describe always returns it - AttributeMapping defaults to username -> sub when the member is absent at create, while an explicitly empty map is stored as given - members a request omits are preserved rather than cleared - a duplicate provider name raises DuplicateProviderException - ListIdentityProviders returns name/type/date summaries, never ProviderDetails Federated sign-in itself is out of scope: Floci has no /oauth2/authorize or /oauth2/idpresponse endpoint, so providers are stored configuration only. * test(cognito): match identity provider exceptions on the SDK error name `rejects.toThrow(/re/)` matches the error message, but the JS SDK maps the wire `__type` onto `error.name` and puts the AWS text in `message`, so the duplicate provider assertion never matched. Assert the name, and pin the enum text with an explicit message matcher. * fix(cognito): delete a pool's identity providers with the pool, and update a copy Two review findings, both reproduced first. DeleteUserPool left provider records behind. A pool recreated on a pinned id (`floci:override-id`) then inherited the dead pool's providers, ProviderDetails client_secret included. Pool deletion now removes them the way it already removes groups. UpdateIdentityProvider mutated the instance the store handed back, so two concurrent updates could interleave into a state matching neither request. It now writes a copy, which makes the losing update simply lose — what AWS does. * fix(cognito): serialise identity provider mutations UpdateIdentityProvider is a read-modify-write: it copies the stored provider, applies only the members the request supplied and writes the whole record back. Two overlapping updates copied the same base, so the later write restored the other's omitted members to their stale values and silently dropped an update. Live Cognito merges omitted members rather than clearing them, and applies that merge atomically, so both updates survive there. One lock now guards every mutating path, since create (check-then-put) and delete (check-then-act) carry the same race, matching the existing identityLinkLock idiom. The regression test runs two writers touching different optional members across 25 rounds; it fails on the first round with the lock reverted. * fix(cognito): guard the pool deletion provider cascade with the same lock DeleteUserPool clears a pool's identity providers outside identityProviderLock, so a create or update interleaving with the cascade could reinstate a provider for a pool that is going away. It now takes the same lock as the mutations it races, closing the last unguarded path in that set. * fix(cognito): recheck the pool under the lock when creating a provider CreateIdentityProvider validated the pool before taking identityProviderLock and never rechecked it, so a DeleteUserPool whose cascade ran in between left the create writing a provider for a pool that no longer exists. It now reasserts the pool inside the lock, immediately before the duplicate check and the write. UpdateIdentityProvider needs no equivalent: the cascade deletes the provider, so its own lookup throws ResourceNotFoundException. The outer validation stays where it is to keep error ordering unchanged for ordinary single-request calls. |
||
|
|
1e4e8b9ee8 |
feat(cognito): implement managed login branding (#2869)
* feat(cognito): implement managed login branding CreateManagedLoginBranding, DescribeManagedLoginBranding, DescribeManagedLoginBrandingByClient, UpdateManagedLoginBranding and DeleteManagedLoginBranding were unsupported, so a config declaring `aws_cognito_managed_login_branding` could not be applied against Floci. A branding belongs to one app client and is stored on it. Behaviour matches what the live API does: - a second branding for the same client raises ManagedLoginBrandingExistsException - ManagedLoginBrandingId must be a version 4 UUID, checked before the lookup - Settings is omitted from the response when the caller supplied none, while Assets is always returned - members an update omits are left unchanged Settings is stored opaquely rather than validated against AWS's unpublished schema, and ReturnMergedResources does not merge Cognito's default corpus. Closes #2856 * fix(cognito): reject malformed CreateManagedLoginBranding members Create coerced an absent UseCognitoProvidedValues to false and silently ignored a wrongly typed Settings or Assets, so a malformed request produced persisted state. Measured against AWS: neither UseCognitoProvidedValues nor Settings -> InvalidParameterException: useCognitoProvidedValues or settings should be specified (but not both) Assets of the wrong type -> SerializationException: Unexpected field type UseCognitoProvidedValues of the wrong type -> accepted, not rejected Create now enforces the first rule and type-checks Settings and Assets. A non-boolean UseCognitoProvidedValues is still accepted, because AWS accepts it. AWS answers a wrongly typed Settings with a 500 InternalErrorException; Floci returns the same client error it returns for Assets rather than reproducing that, and the divergence is documented. * fix(cognito): check Assets elements before converting them The Assets reader validated only the outer array, so a scalar element reached Jackson's convertValue and escaped as a 500 InternalFailure. This is the same class of bug as the LogConfigurations one, which I fixed in that reader without applying it here. AWS separates the two failures, and they differ from the LogConfigurations rules: [1, 2] / ["str"] -> SerializationException: Unexpected value type in payload [null] -> InvalidParameterException: 1 validation error detected: Value '[null]' at 'assets' failed to satisfy constraint: Member must satisfy constraint: [Member must not be null] A null element is rejected here, where LogConfigurations drops it. * fix(cognito): match AWS branding source validation A managed login branding request must select exactly one source of branding, and the same rule governs create and update. Measured against Cognito in ap-southeast-1: useCognitoProvidedValues settings result absent absent InvalidParameterException true absent accepted false absent InvalidParameterException absent present accepted true present InvalidParameterException false present accepted Create rejected only the neither case, update validated nothing at all, so naming both members and updating with no source both succeeded where the service rejects them. Presence of the member is not the test: false selects no source, which is why it needs settings alongside it. Reading the flag had to move with it. AWS coerces a JSON string rather than rejecting it, storing true for "true" and for "yes" and false for "false", while Jackson maps every string except "true" to false. That turned "yes" into a request selecting no source, so the coercion now follows the service. * fix(cognito): reject malformed UseCognitoProvidedValues types Jackson's asBoolean() maps a number, a JSON null, an object and an array all to false, so a malformed flag alongside valid Settings passed source validation and persisted as branding state that was never requested. Measured against Cognito in ap-southeast-1: 1, null, {} and [] are each a SerializationException, with or without Settings, while omitting the member is accepted and stores false. Only booleans and strings are read now, strings still coerced the way the service coerces them, and everything else raises SerializationException the way SesController already does. * fix(cognito): bound managed login branding assets at 40 Neither create nor update checked the documented 40-item maximum on Assets, so an oversized request was accepted and stored where AWS rejects it. Measured against Cognito in ap-southeast-1: create 40 assets passes the bound, reaches the source rule create 41 assets InvalidParameterException, length constraint create 41 + unknown client the length error, not the missing client update 41 + malformed id 2 validation errors, the length one first update malformed id alone 1 validation error, before the pool lookup The asset and branding-id checks now run before anything is looked up and share one message, matching those last three rows. DescribeManagedLoginBranding ran its pool lookup ahead of the branding-id check, which the fourth row shows is the wrong way round, so it moved with them. The length message embeds the request model's toString. The blob renders as the decoded buffer, confirmed at three payload sizes; the decoder used here is the lenient one so that building a rejection cannot itself fail. |
||
|
|
b8f1e22c74 |
feat(cognito): implement log delivery configuration (#2867)
* feat(cognito): implement log delivery configuration SetLogDeliveryConfiguration and GetLogDeliveryConfiguration were unsupported, so a config declaring `aws_cognito_log_delivery_configuration` could not be applied against Floci. The configuration is stored on the user pool and validated the way the live API validates it: - LogLevel accepts ERROR or INFO, EventSource accepts userNotification or userAuthEvents, both reported with AWS's 1-based member path - every entry must name a CloudWatch, Firehose or S3 destination - Set replaces the list rather than merging, so an empty list clears it - Get always returns LogConfigurations, as [] when nothing is configured Floci stores the configuration and delivers nothing: the destination is neither written to nor required to exist, and the pricing-tier gate AWS applies to userAuthEvents is not reproduced. Closes #2855 * fix(cognito): reject a null LogConfigurations instead of clearing the configuration SetLogDeliveryConfiguration treated an omitted, null or wrongly typed LogConfigurations as an empty replacement, so a malformed request returned 200 and erased the pool's stored configuration. AWS rejects all three. An omitted or null member fails validation, and a value of the wrong JSON type fails deserialization: omitted / null -> InvalidParameterException: 1 validation error detected: Value null at 'logConfigurations' failed to satisfy constraint: Member must not be null wrong type -> SerializationException: Expected list or null Also drops two em-dashes from the docs, per AGENTS.md. * fix(cognito): translate malformed LogConfigurations elements the way AWS does A scalar inside the array reached Jackson's convertValue directly, so an IllegalArgumentException escaped as a 500 InternalFailure instead of a client error, and a null element would have failed on the validation loop. AWS answers both without a 500: [1, 2] / ["a string"] -> SerializationException: Expected null [null] -> 200, the null element is dropped Elements are now checked before conversion: nulls are skipped and non-objects raise SerializationException. * fix(cognito): bound LogConfigurations and reject a repeated event source SetLogDeliveryConfiguration validated each element but never checked the list itself, so a request with three or more well-formed configurations, or two naming the same event source, was accepted and stored where AWS rejects it. Measured against Cognito in ap-southeast-1: 3 well-formed configs InvalidParameterException, length constraint on 'logConfigurations', max 2 2 duplicate sources InvalidParameterException, "appear more then once" 3 configs, one bad enum 2 validation errors, the length one reported first unknown pool, bad enum the validation error, not ResourceNotFoundException 0 configs 200 OK The shape checks now run before the pool lookup, matching that last row, and collect every violation into one message instead of throwing on the first. The duplicate and missing-destination complaints share one message with the missing-destination clause first, and each event source is named once however many configurations carry it, as measured. "more then once" is the service's own spelling, kept so the message matches. The length message embeds the request model's toString, which the emulator now reproduces for all three destination shapes and for an absent destination. |
||
|
|
7d693de663 |
fix(dynamodb): reject QueryFilter with KeyConditionExpression (#2935)
* fix(dynamodb): reject QueryFilter with key expression * test(dynamodb): keep QueryFilter test legacy |
||
|
|
de6bf8f599 |
feat(glue): jobs and crawlers (#2591)
* feat(glue): implement CRUD operations for Jobs and Crawlers * fix(glue): resolve edge cases in jobs, crawlers, and tagging implementation - Fix DynamoDBTarget ScanAll/ScanRate JsonProperty casing - Support MaxResults and NextToken pagination in GetJobs and GetCrawlers - Throw EntityNotFoundException for unknown Job/Crawler deletions - Retain existing configuration values during Crawler updates - Use centralized ResourceGroupsTaggingService for non-schema TagResource/UntagResource/GetTags actions * test(glue): add CRUD, pagination, and tagging tests for Jobs and Crawlers * fix(glue): validate pagination limits and ARN existence for tagging * fix(glue): enforce AWS-compliant validation, semantics, and responses - Add required field validation to Job and Crawler CRUD operations. - Persist SourceControlDetails and ProfileName across Job updates. - Set default State (READY) and Version for Crawlers on creation. - Standardize empty-body responses to bare Response.ok() per AWS specs. - Add handler-level integration tests for request payload parsing. - Refactor GlueServiceTest to use valid mock objects and standard imports. * fix(glue): add missing ARN validation for databases, tables, and UDFs - Restore EntityNotFoundException when attempting to tag nonexistent Databases, Tables, or UserDefinedFunctions. - Expand tagging tests to verify behavior for these resources. * chore(glue): apply AWS defaults for Job creation and remove unused Crawler DTOs - Apply default GlueVersion (5.1) and Timeout (480/2880 based on version) for newly created Jobs. - Remove empty Create/Update/DeleteCrawlerResponse models since they are unused. * fix(glue): throw EntityNotFoundException for unmodeled resource ARNs - Prevent validateResourceExists from silently passing when an ARN type isn't supported (e.g. connections). - Any ARN not matching jobs, crawlers, databases, tables, or UDFs now throws. |
||
|
|
146753b094 |
fix(kms): give ECC_NIST_EDWARDS25519 an actual Ed25519 key (#2930)
* fix(kms): give ECC_NIST_EDWARDS25519 an actual Ed25519 key The spec carried secp521r1 from the line above it, so it made an EC key and every Sign failed. Ed25519 now has its own key type. Message type rules and errors match real KMS, measured in ap-northeast-1. Closes #2924 * fix(kms): reject an ED25519_PH_SHA_512 digest of the wrong length Sign and Verify took any DIGEST value, where real KMS requires exactly one SHA-512 digest and answers otherwise with a ValidationException. Measured in ap-northeast-1 against both operations. |
||
|
|
6dec21479b |
fix(dynamodb): reject ConsistentRead on GSI Scan (#2931)
Query already rejected ConsistentRead=true on a global secondary index, but Scan silently performed the read. AWS returns ValidationException 'Consistent reads are not supported on global secondary indexes' for both operations. Extract the check into rejectConsistentReadOnGsi and apply it to both handlers; strongly consistent reads on tables and LSIs stay legal. Reproduced with paritysuite/dynamodb-conformance (tests/tier3/error-messages/indexReads.test.ts): the Scan case failed against 2.0.1 and passes with this change; the in-repo DynamoDbAccessPathIntegrationTest gains a wire-level Scan case plus an LSI-acceptance guard, and the Java SDK compat twin covers both ops. Signed-off-by: Kévin Dehoux <dehoux.kevin@gmail.com> |
||
|
|
fad54f3c7a |
fix(stepfunctions): fail an intrinsic argument that matches nothing (#2872)
* fix(stepfunctions): fail an intrinsic argument that matches nothing
States.Format('{}', $.nope) resolved to null and the state succeeded. Real AWS
fails it with States.Runtime and names the whole expression. An index past the
end of an array is a miss here, where the same path written directly resolves
to null.
Closes #2870
* docs(stepfunctions): drop the States.Format template gap note
The gap is not fixed or caused by this change, so it is tracked on its
own issue instead of riding along in this pull request.
* test(stepfunctions): point the format template gap at issue #2927
|
||
|
|
3d3ab0023f |
fix(cloudfront): persist and echo LambdaFunctionAssociations and FunctionAssociations (#2915)
* fix(cloudfront): persist and echo LambdaFunctionAssociations and FunctionAssociations CreateDistribution accepted LambdaFunctionAssociations and then silently dropped them: the parser never read the element and the serializer hardcoded Quantity 0. A distribution meant to run a viewer-request Lambda@Edge function ended up with no function attached and no error. FunctionAssociations (CloudFront Functions) had the same bug, so it is fixed in the same change. - parseDefaultCacheBehavior + parseCacheBehaviors: read LambdaFunctionARN, EventType, IncludeBody for Lambda and FunctionARN, EventType for Functions into the existing model fields. - xmlDefaultCacheBehavior + xmlCacheBehavior: replace the two hardcoded blocks with xmlLambdaFunctionAssociations / xmlFunctionAssociations, still emitting <Quantity>0</Quantity> when empty. - Validate EventType: Lambda allows all four event types, Functions only viewer-request and viewer-response; an empty ARN or an invalid EventType returns 400 InvalidArgument. Closes #2835 * fix(cloudfront): validate association Quantity and brace association parsers Address review feedback on the LambdaFunctionAssociations / FunctionAssociations round-trip: - The parsers now read the declared <Quantity> for each association block. A malformed value returns 400 InvalidArgument; a value that differs from the number of items returns 400 InconsistentQuantities, matching the existing TrustedKeyGroups handling, instead of being silently recomputed on read-back. An omitted Quantity is still accepted. - Add braces to every conditional in the new association parsing paths, per the repository convention in AGENTS.md. |
||
|
|
5c71713cad |
fix(ec2): guard null group entries in DescribeNetworkInterfaces group-id filter (#2887)
The group-id filter dereferenced each of an interface's group entries with no null check, unlike the sibling filters in the same switch (attachment.instance-id already guards getAttachment() != null). When an interface's group list carried a null entry, matchesFilter threw a NullPointerException and DescribeNetworkInterfaces returned a 500. Terraform and Pulumi poll DescribeNetworkInterfaces filtered by group-id while deleting a security group, so the 500 turned an SG delete into an indefinite retry loop until the client timed out. Guard each entry, matching the null-tolerant style of the adjacent cases. |
||
|
|
e44df51a79 |
fix(ec2): tolerate a null groupId in the network-interface group-id filter (#2921)
The group-id filter for DescribeNetworkInterfaces resolves to matchesValue(List<String>, String), which called value.matches(...) with no null guard. A real GroupIdentifier entry whose groupId is null (a name-only association) therefore NPE'd the whole request, unlike the sibling matchesValue(String, List<String>) overload that already normalizes with Objects.toString. Normalize the value the same way so every network-interface leaf filter (group-id, subnet-id, status, private-dns-name, ...) tolerates a null field instead of failing. Adds a regression test that carries a null-groupId entry ahead of a real group on the same interface, so the null path is exercised and the real group still matches. |
||
|
|
5b3c0e01e3 |
refactor(rds): split PostgresProtocolHandler into authenticate and bridge primitives (#2913)
Extract handleAuth into authenticate(...), which returns the post-startup client Socket (or null when the handshake ended early), and a public bridge(...) that relays. RdsAuthProxy and RedshiftAuthProxy now call authenticate then bridge in sequence; RDS and Redshift relay behaviour is unchanged. This lets a later change replace the Redshift relay with an intercepting bridge without touching the handshake. |
||
|
|
660e7613bf |
refactor(ses): extract the configuration-set domain into SesConfigurationSetService (#2881)
* refactor(ses): extract the configuration-set domain into SesConfigurationSetService * refactor(ses): rename SesServiceEventDestinationTest to match its subject * fix(ses): drop em dashes from new Javadoc and pin the list-order test timestamps * docs(ses): untangle the resolveSuppressionReason Javadoc after the extraction |
||
|
|
9b582b309a | fix(lambda): apply Architectures on UpdateFunctionCode (#2907) | ||
|
|
047db09d54 |
fix(opensearch): include CognitoOptions in domain status (#2860)
Fixes #2801 |
||
|
|
77b4881fe4 |
fix(cloudformation): merge Fn::Transform AWS::Include before provisioning, and honour GetTemplate TemplateStage (#2886)
* test(cloudformation): pin Fn::Transform AWS::Include merging against the deployed template
The expected values come from a deployed stack's original and processed templates,
read with get-template, and from get-template-summary probes against real AWS.
Every assertion states its expected value as a literal, including the spliced
multi-line Fn::Sub value with its line breaks intact.
* fix(cloudformation): merge Fn::Transform AWS::Include before provisioning
The template engine evaluated ten intrinsics and Fn::Transform was not among them,
so an AWS::Include node was neither expanded nor rejected: it reached provisioning
as an ordinary key. A state machine whose DefinitionSubstitutions came from a
snippet therefore reached CreateStateMachine with a key literally named
Fn::Transform and without any of the snippet's keys, leaving every ${placeholder}
unsubstituted in the stored definition. The stack still reported CREATE_COMPLETE.
Measured against a deployed stack: 41 Fn::Transform nodes in the original template,
all Name AWS::Include, all with the same s3:// Location, all at
Resources.<id>.Properties.DefinitionSubstitutions; 0 in the processed template. At
one of those positions the six sibling keys keep their original order and the five
snippet keys are appended after them, and the spliced multi-line Fn::Sub value keeps
its line breaks: nothing is folded or re-serialized.
Three controlled get-template-summary probes settle the summary contract. A template
with no transform reports DeclaredTransforms null and its ResourceTypes; the same
template with an embedded Fn::Transform, and one with a top-level Transform, both
report DeclaredTransforms AWS::Include. GetTemplate keeps returning the body as
submitted, matching AWS's TemplateStage=Original default, while the change-set
baseline uses the merged body so a byte-identical resubmission reports no change.
* test(cloudformation): pin Fn::Transform AWS::Include rejection when Parameters is absent entirely
* test(cloudformation): pin Fn::Transform AWS::Include rejection when Location is present but blank
* fix(cloudformation): name the Fn::Transform node when AWS::Include Parameters is absent or Location is blank
* test(cfn-transform): pin AWS::Include Location error message for blank and null-Parameters shapes
Renames the existing empty-string test to name the shape it actually feeds,
adds coverage for a whitespace-only Location (which today leaks its raw
value with no quoting) and for an explicit null Parameters (which already
renders the Fn::Transform node, with no test pinning that literal).
* fix(cfn-transform): reject whitespace-only Location and stop leaking non-object Parameters
describeLocation checked isEmpty() where its own javadoc promised blank, so a
whitespace-only Location leaked its raw unquoted value into the rejection
message instead of a quoted string. It also enumerated missing and null as
the only non-mapping Parameters shapes, so a scalar or a list Parameters fell
through to Location's MissingNode and the message rendered Parameters itself
as if it were the rejected Location. Both guards now ask a single question
each: isBlank() for the Location text, and isObject() for the Parameters
shape, dropping the OR out of the second guard.
* test(cfn-transform): pin AWS::Include Location error message for scalar and list Parameters
Closes the coverage gap for defect 2: before the isObject() guard, a scalar
or list Parameters fell through to Location's MissingNode and the rejection
message rendered Parameters itself as if it were the Location, which a
reader could mistake for a valid rejected URI. Both templates go red against
the pre-hunk isMissingNode()||isNull() guard and green against isObject().
* test(cloudformation): pin GetTemplate TemplateStage selecting Processed vs Original
Processed must return the SAM-expanded, AWS::Include-merged body with no
AWS::Serverless::Function or Fn::Transform node left; Original and the
no-stage default must return the caller's raw YAML byte for byte; an
invalid stage must reject with the AWS enum ValidationError; and a plain
stack with no transform must return identical bodies for both stages and
advertise StagesAvailable on every GetTemplate call.
* fix(cloudformation): honor GetTemplate TemplateStage instead of always returning Original
GetTemplate accepted no TemplateStage, so a caller asking for Processed was
silently answered with Original. It now validates the parameter against
AWS's Original/Processed enum, returns stack.templateBody (the SAM- and
AWS::Include-merged body) for Processed and stack.originalTemplateBody
(the caller's raw submission, also the default) otherwise, and reports
StagesAvailable on every response, matching real AWS.
* test(cloudformation): pin GetTemplate TemplateStage validation ordering and empty-string rejection
Pins two AWS-measured behaviors GetTemplate does not have yet: TemplateStage
Bogus is rejected with the enum ValidationError even when the named stack was
never created, proving AWS validates the request shape before the stack
lookup; and TemplateStage="" (present but empty) is rejected the same as any
other value outside the enum, distinct from the omitted case which defaults
to Original.
* fix(cloudformation): validate GetTemplate TemplateStage before the stack lookup and reject an empty value
Two ordering and parsing gaps measured against a real account: an invalid
TemplateStage was rejected with "Stack ... does not exist" instead of the
enum ValidationError when the stack was absent, because the lookup ran
first; and TemplateStage="" (present but empty) was silently accepted as
Original instead of rejected, because isBlank() treated it the same as the
omitted case. Both are hoisted/tightened to match AWS. The two stage names
are also named once as constants instead of retyped across the enum list,
the StagesAvailable list, the stage-selection check and the default, and the
rollback comment and docs are rewritten to describe today's two-stage
behavior instead of the pre-TemplateStage one.
* docs(cloudformation): correct GetTemplate Processed-stage claim, drop a self-evident comment
The GetTemplate doc claimed AWS::LanguageExtensions, a third-party macro, and the
top-level Transform AWS::Include short form always leave Processed unexpanded.
SamTransformProcessor removes the whole Transform section unconditionally when the
template also declares the SAM transform, so any of those three shapes co-declared
with SAM is gone from Processed too; the sentence now states that condition.
Also drops the block comment above STAGE_PROCESSED/STAGE_ORIGINAL: it restated what
the constant names already show.
* docs(cloudformation): drop the CAPABILITY_AUTO_EXPAND deviation, measured as parity
A CreateChangeSet carrying an embedded Fn::Transform/AWS::Include was
accepted against a real account with CAPABILITY_IAM alone, so requiring
no capability for AWS::Include matches AWS rather than deviating from
it. The known-deviation count drops from three to two, and the
unmeasured CreateStack path is named as unmeasured.
---------
Co-authored-by: Facundo Paredes <25681464+facuparedes@users.noreply.github.com>
|
||
|
|
f2b4c08481 |
fix(cloudformation): expand AWS::Serverless::StateMachine, and reject every unresolvable DefinitionUri on both StateMachine and HttpApi (#2885)
* test(cloudformation): pin AWS::Serverless::StateMachine expansion against the deployed template
The expected values come from a deployed stack's processed template, read with
get-template --template-stage Processed, and from change-set probes against real
AWS. Every assertion states its expected value as a literal.
* fix(cloudformation): expand AWS::Serverless::StateMachine into the native resource
The SAM transform switched on four resource types. A state machine fell through
the default arm, kept its AWS::Serverless:: type, and was stubbed by the
provisioner with a physical id of <logicalId>-<8 hex> and an attribute Arn of
arn:aws:stub:::<logicalId>. The stack reported CREATE_COMPLETE, ListStateMachines
was empty, and Fn::GetAtt on the resource handed downstream resources an ARN that
named no state machine.
Measured against a deployed stack, both template stages: 67 AWS::Serverless::StateMachine
in the original template, 67 AWS::StepFunctions::StateMachine in the processed one,
0 AWS::Serverless:: survivors. Eight properties are mapped on 67 of 67: Name to
StateMachineName, Type to StateMachineType, Role to RoleArn, DefinitionUri to
DefinitionS3Location, Logging to LoggingConfiguration, Tracing to
TracingConfiguration, DefinitionSubstitutions unchanged, and the Tags map to a list
of {Key, Value} with stateMachine:createdBy first. Every mapped value stays an
unevaluated intrinsic and tag values keep their JSON type. Metadata is carried
through, not synthesized: it is already present in the original template on 67 of 67.
Three further behaviours come from change-set probes against real AWS. A local
DefinitionUri does not raise an HTTP error: the change set is created with
Status FAILED, ExecutionStatus UNAVAILABLE, zero changes, and the transform's own
sentence in StatusReason. ExecuteChangeSet on that change set is refused with
InvalidChangeSetStatus. A DefinitionUri carrying ?versionId= is accepted and split
into a third field, Version.
* test(cloudformation): pin rejection of an intrinsic DefinitionUri on AWS::Serverless::StateMachine
An intrinsic DefinitionUri (Fn::Sub, Ref, ...) with no literal Bucket/Key
carries neither key, so samUriToS3Location passes it through unchanged and
the SAM transform accepts it silently. CloudFormation later collapses the
intrinsic into a TextNode and CloudFormationResourceProvisioner throws
"DefinitionS3Location requires Bucket and Key" at provisioning, one step
later than real AWS's own change-set-time failure.
* fix(cloudformation): reject an intrinsic DefinitionUri on AWS::Serverless::StateMachine
samUriToS3Location passes an object DefinitionUri through unchanged when it
carries neither Bucket nor Key, so an intrinsic value (Fn::Sub, Ref, ...)
reached DefinitionS3Location unresolved. CloudFormation then collapsed it
into a TextNode, and CloudFormationResourceProvisioner only caught the
missing Bucket/Key once provisioning started, one step later than real
AWS's own change-set-time failure.
expandServerlessStateMachine now accepts DefinitionS3Location only when it
resolves to a literal Bucket and Key, and rejects both the textual and the
object shape with the SAM transform's own wording, matching the FAILED
change set AWS reports for either.
Also drops the SamTransformProcessorTest case that pinned the old
pass-through behaviour for an intrinsic DefinitionUri (it asserted the
exact defect this fixes: the value surviving unsplit into
DefinitionS3Location) and adds a companion case for an object DefinitionUri
that names Bucket but not Key, closing the boundary the new guard leaves
otherwise untested.
* test(cloudformation): pin DefinitionUri rejection for a null Key, a non-string/object shape, and HttpApi
expandSamTemplate_stateMachineWithNullKeyDefinitionUriIsRejected and
expandSamTemplate_stateMachineWithArrayDefinitionUriIsRejected pin real AWS's rejection of a
DefinitionUri whose Key is an explicit null and of a DefinitionUri that is neither a string nor
an object (array, number, boolean); today's guard silently accepts both.
expandSamTemplate_httpApiWithIntrinsicDefinitionUriIsRejected replaces
expandSamTemplate_httpApiPreservesIntrinsicDefinitionUriForProvisioning:
both assert an HttpApi DefinitionUri with no literal Bucket/Key, but the one it replaces asserted
the value was preserved unresolved for the provisioner, a behaviour measured against real AWS
(us-east-1, create-change-set) to be wrong. AWS rejects it with the object-form wording, the same
one the StateMachine arm already carries.
samHttpApi_intrinsicDefinitionUriIsRejected replaces
samHttpApi_intrinsicDefinitionUriCreatesApiGatewayV2Routes: the test it replaces asserted the
opposite outcome, that routes were successfully created from a real spec uploaded to S3 and
imported through the intrinsic DefinitionUri, which real AWS does not accept for this shape.
expandSamTemplate_httpApiWithObjectDefinitionUriMissingKeyIsRejected and
expandSamTemplate_httpApiWithArrayDefinitionUriIsRejected pin the same two shapes on the HttpApi
arm; the array case is measured directly against real AWS via create-change-set.
* fix(cloudformation): reject every unresolvable SAM DefinitionUri, on both StateMachine and HttpApi
samUriToS3Location's object branch checked has("Bucket") && has("Key") on its own passthrough
copy of DefinitionUri, so a Key present as an explicit null (YAML's Key: with no value) counted
as resolved; and a DefinitionUri that was neither textual nor an object (array, number, boolean)
matched neither disjunct of the guard, so nothing was thrown and no definition was set at all.
Both callers now go through one guard, applyDefinitionUri: samUriToS3Location returns null
whenever it cannot produce a literal, non-null Bucket and Key, and applyDefinitionUri throws for
every non-null return with the wording definitionUriRejectionReason selects from the shape of
DefinitionUri, matching real AWS (measured against us-east-1 via create-change-set) for all three
JSON shapes. The predicate for "an S3 location is a Bucket and a Key" lives once, in
samUriToS3Location.
This also closes the split between the two callers: the HttpApi arm used to preserve an
unresolved DefinitionUri (an intrinsic, or an object missing Key) as BodyS3Location for the
provisioner to fail on later, or silently emit no definition at all for a non-object,
non-string DefinitionUri. It now rejects every one of those shapes at transform time, the same
as the StateMachine arm, matching AWS's own transform-time rejection (measured directly for the
array/number/boolean shape via create-change-set, not previously measured on this branch).
* test(cloudformation): pin the missing Definition/DefinitionUri mutual-exclusion cases
expandSamTemplate_stateMachineWithNeitherDefinitionNorDefinitionUriIsRejected and
expandSamTemplate_stateMachineWithBothDefinitionAndDefinitionUriIsRejected pin real AWS's
rejection (measured via create-change-set) of a StateMachine declaring neither Definition nor
DefinitionUri, and of one declaring both; today's expandServerlessStateMachine handles neither
case, emitting a definition-less resource for the first and a resource carrying both Definition
and DefinitionS3Location for the second.
expandSamTemplate_httpApiWithBothDefinitionBodyAndDefinitionUriIsRejected pins the equivalent
HttpApi rejection, with AWS's own reversed property order in the message; the else at
expandServerlessHttpApi's DefinitionBody check hides this shape today, always preferring
DefinitionBody with no error.
expandSamTemplate_httpApiWithLocalDefinitionUriIsRejected and
samHttpApi_definitionUriCreatesApiGatewayV2Routes are coverage additions, not new pins: both
pass unmodified against the previous commit's production code. The first mirrors the existing
expandSamTemplate_stateMachineWithLocalDefinitionUriIsRejected on the HttpApi arm, the most
common real shape (an unpackaged sam template) and previously untested there. The second
restores the only end-to-end proof that a literal s3://bucket/key DefinitionUri creates routes,
lost when an earlier commit on this branch replaced
samHttpApi_intrinsicDefinitionUriCreatesApiGatewayV2Routes with
samHttpApi_intrinsicDefinitionUriIsRejected.
* fix(cloudformation): enforce Definition/DefinitionUri mutual exclusion on SAM StateMachine and HttpApi
expandServerlessStateMachine copied Definition and resolved DefinitionUri independently, so a
StateMachine declaring both ended up with one native resource carrying both Definition and
DefinitionS3Location, and one declaring neither expanded to a resource with no definition at
all. Real AWS (measured via create-change-set, us-east-1) rejects both shapes before a single
resource is provisioned. expandServerlessHttpApi's DefinitionBody check silently preferred
DefinitionBody over DefinitionUri with no error when a resource declared both; AWS rejects that
too, naming DefinitionUri first, the reverse of the StateMachine wording.
Both arms now check presence of their two definition-source properties up front and share a
rejectBothDefinitionSources helper for the "not both" wording; the StateMachine arm additionally
rejects "neither". A neither-property HttpApi is left alone: measured against real AWS via
create-change-set, that shape is accepted and expands to an empty ApiGatewayV2 API, unlike the
StateMachine arm.
Renames applyDefinitionUri to resolveDefinitionUriOrThrow, naming the effect its old name left
unstated (it either sets the target property or throws), and inlines its lone-caller helper
definitionUriRejectionReason: the merged function stays a handful of decision points, well under
the cognitive-complexity budget, and reads as one "resolve or throw" unit instead of two.
Both callers now guard DefinitionUri's presence before calling resolveDefinitionUriOrThrow, so
its own absent/null guard, and the duplicate of the same guard at the top of samUriToS3Location,
were both unreachable; deletes both and rewrites the javadoc that claimed a caller-side check
already existed for the state machine arm, which it did not.
SamTransformProcessorTest fixture updates: four pre-existing StateMachine tests exercising
Metadata/DependsOn/Tags/intrinsic-property preservation declared neither Definition nor
DefinitionUri, a shape the new guard now rejects; each gains a minimal literal DefinitionUri so
its own assertions keep exercising what they always asserted.
* refactor(cloudformation): collapse rejectBothDefinitionSources booleans and duplicated presence checks
rejectBothDefinitionSources took two independent booleans read only as their
conjunction; because && is commutative, swapping them at a call site went
undetectable, while swapping the two property name strings would silently
reverse AWS's own wording. Both callers now pass the conjunction they already
compute, so the signature no longer promises a per-argument correspondence the
body never used.
copyRenamed and isPropertyPresent asserted the identical "not missing, not
null" presence check in two places; copyRenamed now delegates to
isPropertyPresent so the predicate lives once. expandServerlessStateMachine's
Definition copy re-tested a presence its own hasDefinition guard already
established; it now copies the already-known-present node directly.
Reworded the HttpApi DefinitionBody/DefinitionUri comment: "Neither X nor Y is
accepted too" read as its own opposite of the fall-through it documents, where
an HttpApi declaring neither property is accepted and still expands to a bare
AWS::ApiGatewayV2::Api and its default Stage.
Realigned two continuation lines that sat one column past their opening paren
to the file's own prevailing continuation style.
Behaviour-neutral: no assertion or error message changes.
* test(cloudformation): pin AWS::Serverless::Api DefinitionBody/DefinitionUri expansion
Pins the RestApi Body/BodyS3Location expansion an AWS::Serverless::Api's
DefinitionBody or DefinitionUri must produce, the rejection of a
local-path DefinitionUri, and that the declared Name survives a
DefinitionBody carrying a different info.title, all currently unmet.
* fix(cloudformation): materialize AWS::Serverless::Api DefinitionBody/DefinitionUri
expandServerlessApi carried only Name and Description onto the emitted
AWS::ApiGateway::RestApi, silently dropping a declared OpenAPI document
so the stack reached CREATE_COMPLETE with an API serving no method.
The transform now maps DefinitionBody to Body and DefinitionUri to
BodyS3Location, rejecting both together or a local-path DefinitionUri,
mirroring the AWS::Serverless::HttpApi arm. The REST API provisioner
resolves that document (renaming the ApiGatewayV2-only resolver into
resolveRestApiOpenApiDocument, now shared by both API Gateway
versions) and runs it through the existing putRestApi/applyOpenApiSpec
OpenAPI materializer, then re-applies the resolved Name since
putRestApi overwrites it from the document's info, which real AWS
does not do.
* test(cloudformation): pin AWS::Serverless::Api both-Definition rejection wording
Measured against real AWS, us-east-1, create-change-set: an Api
declaring both DefinitionBody and DefinitionUri is rejected with
DefinitionUri named first. Nothing pinned this sentence's property
order, so it could be transposed silently; rejectBothDefinitionSources
already enforces it, this only adds the missing regression test.
* refactor(cloudformation): rename ApiGatewayV2BodyS3Location to OpenApiBodyS3Location
parseOpenApiBodyS3Location now feeds both the ApiGatewayV2 and the
native/SAM ApiGateway RestApi provisioning paths; its return type kept
the V2-only name after the parser itself was renamed, leaving one
representation of an S3 body location claiming to be v2-only. No
behaviour changes, five sites in one file, all within this record's
own declaration and its own callers.
* test(cloudformation): pin AWS::ApiGateway::RestApi Body materialization outside SAM
A native RestApi's Body was ignored before the provisioner started
resolving it for AWS::Serverless::Api's DefinitionBody, since both
paths share provisionApiGatewayRestApi. Nothing covered the
hand-written-template shape; this pins that a declared Body's OpenAPI
document creates its resources and methods, not only a SAM-expanded
one.
* test(cloudformation): pin SAM Api Description reapply and DefinitionBody materialization together
samApi_declaredNameSurvivesDefinitionBodyTitle only proved the Name-reapply
line against a partial revert, so it passed even with the entire fix
reverted: a provisioner that never reads DefinitionBody at all trivially
never overwrites Name either. Renamed and rewritten so it also asserts the
declared Description survives putRestApi (which overwrites Description from
DefinitionBody's info exactly the way it overwrites Name) and that the
/hello method from DefinitionBody actually materializes, so a provisioner
that skips DefinitionBody cannot pass. Red against both production files
reverted to cbdebe10: item.path doesn't match, expected a collection
containing "/hello", actual [/].
* refactor(cloudformation): rename resolveRestApiOpenApiDocument to resolveOpenApiDocument
The method is also the OpenAPI-document resolver for AWS::ApiGatewayV2::Api
(reconcileApiGatewayV2BodyRoutes), never called for a RestApi in that path:
"RestApi" in the name reintroduces the exact naming defect commit 7da9a7c4
existed to fix. No caller or behavior changes.
* fix(cloudformation): reapply Description after putRestApi overwrites it from DefinitionBody
putRestApi overwrites both Name and Description from the DefinitionBody's
info, but only Name was re-applied afterward: an undeclared Name falls back
to the generated physical name (a text field, never null), while an
undeclared Description resolves to null, and Map.of rejects a null value,
so the previous single-entry patch could not carry a Description operation
at all. Reapplies both through a HashMap-backed replace op that allows null,
clearing an undeclared Description rather than leaving whatever putRestApi
last wrote. Narrows the comment above the reapply to what the create-
change-set probe actually measured (the processed template keeps Name and
Description separate from Body.info) rather than a runtime-preference claim
the probe never tested, since create-change-set never executes the change.
Isolated red (only the Description reapply removed, Name reapply and
materialization intact): item.find { it.name == '<apiName>' }.description
doesn't match, expected the declared description, actual
"description-from-document".
* style(cloudformation): drop em-dash from committed test comment
AGENTS.md:314 forbids an em-dash or en-dash on any added line, and CI does
not catch it. Comment text only, no assertion changes.
* refactor(cloudformation): extract shared DefinitionBody/DefinitionUri handling, fix stale docs
Extracts the identical DefinitionBody/DefinitionUri resolution (reject-both
check plus the Body/BodyS3Location assignment) duplicated between
expandServerlessApi and expandServerlessHttpApi into applyDefinitionSource,
called from both arms. Updates the four javadoc caller lists that named
expandServerlessHttpApi as the sole AWS::Serverless::Api-adjacent caller of
rejectBothDefinitionSources, samUriToS3Location and
resolveDefinitionUriOrThrow, now inaccurate with applyDefinitionSource as
the actual (shared) caller. Corrects the expandServerlessApi comment on an
Api declaring neither DefinitionBody nor DefinitionUri: AWS does synthesize
a default Body in that case, floci does not, and the comment now says so
while noting the runtime outcome (no method reachable) is the same either
way, rather than claiming AWS leaves Body unset.
No behavior change: both arms' existing tests pass unedited.
* docs(cloudformation): drop the corpus size from the state machine javadoc
The unhandled-properties note carried a count a reader cannot verify. State
what was measured instead.
---------
Co-authored-by: Facundo Paredes <25681464+facuparedes@users.noreply.github.com>
|
||
|
|
7095641e25 |
fix(cloudformation): set Fn::GetAtt attributes the schemas declare (#2761)
* fix(cloudformation): set Fn::GetAtt attributes the schemas declare An attribute a provisioner never sets is invisible at runtime: GetAtt resolution returns the literal "LogicalId.Attr" when a resource has no such attribute, so a template referencing one receives that string as a value instead of failing. Auditing every migrated type against its registry schema found 24 such attributes across 15 types. Sets the three whose correct value is unambiguous: AWS::SNS::Topic gains TopicArn, the attribute aws-sns-topic.json actually declares. Arn stays alongside it, since templates written against earlier releases reference it. AWS::S3::Bucket gains DualStackDomainName, in the same form as the RegionalDomainName it already builds. AWS::CodePipeline::Pipeline gains Arn, which the schema describes as the pipeline's ARN and which is constructible from the region, account and name already in hand. The remaining 21 are recorded in getatt-attribute-gaps.tsv, each with a reason. Most are attributes Floci cannot set because it does not emulate the behaviour behind them, such as VPC CIDR associations or pipe lifecycle timestamps. A few are simply undecidable from the schema alone, and inventing a value would be worse than leaving the gap recorded. CfnSchemaCoverageTest makes the set a ratchet rather than a snapshot: closing a gap requires deleting its row, introducing one requires adding a row with a reason where a reviewer sees it, and a row that stops being real fails until it is removed. * test(cloudformation): await the async stack operations in the VPC gateway test The test asserted the results of CreateStack and DeleteStack immediately. Both are asynchronous: CloudFormationService submits them to a background executor and the HTTP call returns as soon as the work is queued, so each assertion only passed while the executor happened to win the race. The delete assertion lost that race on CI. Adding a test class elsewhere in the suite re-partitioned the deterministic CI shards, which moved this class to different neighbours and changed the timing it had been relying on. Both assertions now poll to a deadline, matching the awaitStackStatus pattern the other CloudFormation integration tests use. A genuinely unperformed detach still fails, just ten seconds later, so this removes the timing sensitivity without hiding a real regression. * fix(cloudformation): scope the GetAtt coverage scan per resource type The scan read each provisioner as a whole file, so a class serving several types credited every one of them with what any single arm sets. That is a false negative in the only direction that matters: the gap the ratchet exists to record stops being reported. It was hiding a real one. Ec2NetworkAclCfnProvisioner sets Id for NetworkAcl and never for NetworkAclEntry, whose schema declares Id as its primaryIdentifier and sole readOnlyProperty, so Fn::GetAtt on it resolved to the literal "LogicalId.Id" while the audit reported clean. Set it to the composite physical id so the attribute agrees with Ref. The scan now walks the switch on getResourceType() in provision, takes each arm plus the same-class methods it transitively calls, and adds whatever provision writes outside the switch to every type, since that is the shared path. Two shapes need the care: - Only a switch in statement position is a dispatch. A switch expression such as `boolean ingress = switch (r.getResourceType())` picks a value on one shared path. Reading its arms as per-type paths reported SecurityGroupIngress and SecurityGroupEgress Id as gaps when both are set after the switch. - A class with a dispatch switch but no arm for a type it owns now fails the scan, so an unrecognised shape cannot quietly fall back to the class-wide reading it replaced. Raised by pgermosen in review. |
||
|
|
ab26a42096 | feat(cloudformation): provision Route 53 hosted zones (#2722) |