Commit Graph
4128 Commits
Author SHA1 Message Date
Jimmy Liu Jia 35b496124e fix(lambda): omit unsupported Podman host gateway mapping (#7564) 2026-11-04 22:44:34 -04:00
Ronald Li 🛠️ d280f451fa fix(cloudformation): roll back an AWS::EC2::SecurityGroup updated in place (#7562) 2026-11-04 22:37:06 -04:00
Jackson PriceandAndre Kurait 31227106b1 fix(elbv2): omit absent certificates and terminal markers (#7561)
Match observed HTTP listener DescribeListenerCertificates responses by omitting the absent Certificates list. Preserve configured HTTPS certificates and cover both Java SDK and XML response shape.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-04 22:34:06 -04:00
TATSUNO “Taz” Yasuhiro 4adde48324 perf(sqs): hash message MD5s with the optimized Digests helper (#7563) 2026-11-04 22:26:14 -04:00
TATSUNO “Taz” Yasuhiro c767d2deb5 perf(sns): log each Publish at debug level (#7558) 2026-11-04 22:00:04 -04:00
Andre Kurait 284ce958d0 fix(pem): normalize provider-specific EC key aliases (#7555) 2026-11-04 21:53:18 -04:00
ShryukGrandhi 4e7d4a1104 fix(ecr): replace a backing registry left on another Docker network (#7544)
* fix(ecr): replace a backing registry left on another Docker network

Signed-off-by: ShryukGrandhi <85529990+ShryukGrandhi@users.noreply.github.com>

* refactor(docker): share the surviving-container network check between ECR and EKS

Signed-off-by: ShryukGrandhi <85529990+ShryukGrandhi@users.noreply.github.com>

---------

Signed-off-by: ShryukGrandhi <85529990+ShryukGrandhi@users.noreply.github.com>
2026-11-04 21:37:39 -04:00
Priamo Germosen 4abccec0c8 fix(iam): read every Query list and map off the indices the request numbers (#7547)
The Query protocol numbers a list's members rather than ordering them, and the constraint walk
reads every index a request names. The handler read a run from 1 that stopped at the first gap, so
the two halves disagreed about what a request carried: a request numbering tags 1 and 3 was held to
both tags and then stored the first alone, and a simulator whose first action is numbered 2 answered
`At least one ActionNames member is required.` for a list that had a member in it.

Every list and map `IamQueryHandler` reads now goes through `AwsQueryLists.members`, the same call
with the same arguments the constraints read them with: tags and tag keys with the count each is
held to, the two generic value readers, which had the same body once both read indices and are one
reader now, the context entries at both of their levels, and the `Properties` map of
`PutAccountProperties`. The last site was the reader a delegation request's policy parameters had to
themselves, which read its indices but only in the generic spelling: those parameters take the bare
form with it, and the handler reads a list in one place rather than three.

A member numbered only under a deeper key carries no value of its own and is no member of a list of
values, and a tag or a property numbered with a value and no key is nothing a map could hold, so
neither is counted nor stored.

The tags a create is authorized with are read the same way. `TagOnCreate` says how each Query
handler numbers a create's tag list, so the policy is checked with the tags the resource will get,
and it had IAM reading `Tags.member` to the first gap, as this handler did. On its own this change
would have left the authorizer reading a different list than the one stored: a tag numbered only at
2 met no policy requiring it, the model saying the handler applies none, and tags split across the
two spellings were a set each, where a deny naming both keys matched neither.

IAM reads there by the rule the handler reads by, rather than by a copy of it: the member comes from
the generated tag-on-create table and the spellings from `AwsQueryLists.memberKeys`, so no spelling
is written twice and a later change to that rule moves both sides at once. The handlers that number
a list their own way keep their own readings, untouched.

Seventeen wire tests over four classes, one for each reader, one for each spelling it missed, and
three holding the authorization. The provider one deletes what it creates: the emulator is shared
between test classes, so the next class to list providers unscoped would read it. Fifteen of them fail against the readings this replaces. The
reading is recorded in `docs/services/iam.md`, in the list section and beside the account properties
map.
2026-11-04 17:10:00 -06:00
Priamo Germosen 09132855a6 fix(codeartifact): stop npm retention from clobbering a real local dist-tags.latest (#7510)
storeVersion (the one write path storePackageVersionAsset/copyPackageVersionAsset/
storeRetainedVersionAsset all go through) always sent dist-tags.latest pointed at
whichever version it was writing, so copying or retaining any other version,
even an old one, silently moved what an unpinned npm install resolves to.

Confirmed live against the pinned Verdaccio image that this was never actually
needed: a PUT that omits dist-tags entirely leaves an existing package's own
dist-tags.latest untouched, while a package's genuinely first-ever version still
gets it set by Verdaccio's own default (there is nothing yet to preserve). So
this write simply stops sending the field at all, rather than needing its own
"is this the right version to call latest" decision.

Corrected two test comments that had over-generalized this as "no retention
write can ever suppress it" to the narrower, now-verified truth: only a
package's very first-ever version is forced.

Also confirmed live, specifically because CopyPackageVersions' own overwrite
path deletes a conflicting version before recreating it (clearing dist-tags.latest
if it pointed there): Verdaccio auto-recomputes latest from whatever versions
remain once it's cleared, rather than leaving the package tagless, so this
write's own change plays correctly with that existing delete-time behavior.
Added a live regression test for exactly that interaction (overwriting the
current latest version while a sibling version exists must neither lose latest
nor wrongly hand it back to the version just overwritten).
2026-11-04 17:09:49 -06:00
Priamo Germosen 26cd74e6f8 fix(iam): read a REST request's path and query members under a form too (#7527)
A member the table locates in a REST request's path or query was laid
over a JSON body alone: a request sending a form skipped the overlay,
so a form's DomainName was read in place of the path's. OpenSearch
answers a form with 415, so no such request reaches its handlers
today, but the next REST namespace the table reads whose handler does
not refuse a form would be checked on the form's name while it acts on
the path's.

RequestResources now lays the located members over a form as it lays
them over a JSON body, for the resources a request names and for those
it creates: each is dropped from the form and read from the path or
the query alone.

RequestResourceMembersTest checks every resource of the table from a
form as from a JSON body, each located member given in the path or the
query and another value in the body and in the form; RequestResourcesTest
sends OpenSearch requests as forms naming another domain than the path
or the query does. iam.md says so.
2026-11-04 17:09:37 -06:00
Jimmy Liu Jia af0461af91 fix(cloudformation): return stack IDs before provisioning completes (#7491) 2026-11-04 18:36:23 -04:00
Ronald Li 🛠️ cfbf86b8a1 fix(cloudformation): keep tags added outside the stack on EC2 VPCs, security groups and instances (#7534) 2026-11-04 18:17:51 -04:00
Mario Toffia b35e51374c feat(cloudformation): provision signing profiles and code signing configs (#7546) 2026-11-04 18:11:33 -04:00
Jackson Price ee038af772 fix(autoscaling): validate tag propagation per action (#7537) 2026-11-04 18:05:44 -04:00
Jimmy Liu Jia 6e16b80281 fix(efs): paginate access points and resource tags (#7538) 2026-11-04 17:32:57 -04:00
syedali032-creator 68271ef6b8 fix(stepfunctions): return the HTTP task result on the native image (#7543) 2026-11-04 17:17:54 -04:00
Andre Kurait 87c7a9ce7d fix(memorydb): restore persistent cluster runtimes after restart (#7540)
* fix(memorydb): restore persistent cluster runtimes after restart

Restore account-scoped cluster backends, authentication and stable proxy endpoints from persisted metadata. Retain data storage across restart and preserve retryable ownership on failed provisioning cleanup.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(memorydb): retain default backend and log names

Keep default-account/default-region container and engine-log names stable while retaining scoped runtime and proxy keys. Pass the logical name and stored owner through creation, restoration, deletion and rollback. Use an unambiguous separator for foreign Docker names in the retained hyphen-prefix collision case, without changing foreign log names or persisted volume identities. Preserve restore and cleanup coverage; new naming regressions fail the former manager. Local mocked-Docker and loopback RESP qualification only, no managed AWS or native runtime claim.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* test(memorydb): share container naming fixtures

Move the two naming cases into MemoryDbContainerManagerTest and reuse its manager setup. Share the four loopback PONG responders through one helper, observing completion and propagating responder failures. Preserve naming, collision, cleanup and lifecycle assertions. No production change.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-04 17:10:19 -04:00
Matheus Oliveira 7b3f5812e2 fix(sqs): handle '*' selector in MessageAttributeNames (#7515)
The '*' selector was missing from SqsMessageAttributeSelector.includes(),
so ReceiveMessage with MessageAttributeNames: ["*"] returned no
message attributes. AWS treats '*' the same as 'All' and '.*'.

- Add '*' to the includes() check
- Add '*' to the test loop that already covers 'All' and '.*'

Closes #7503

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-11-04 16:41:37 -04:00
Oleksandr Nikolaichuk 0c3af7dc4b fix(cloudformation): roll back an AppSync update when a later resource fails (#7186)
A failed stack update left AppSync entities changed or cleared by the update:
the provisioner had no rollbackUpdate, so the stack ended in
UPDATE_ROLLBACK_FAILED with "Rollback is not implemented".

Before an in-place update of a GraphQL API, data source, function, resolver or
API key, the provisioner records the members the update can change or clear.
The service applies an update member by containsKey, so replaying them puts
back both the changed and the cleared values. An update that fails part way
undoes itself through CfnRollback.guarded, and a failed undo keeps the
snapshot for ContinueUpdateRollback.

GraphQLSchema and a replaced AppSync resource are not covered.

tagResource, untagResource and putEnvironmentVariables change the stored API in place while updateGraphqlApi saves a copy, so a copy could overwrite a tag or variable written in between. Every method that writes a store now holds the service monitor, as startSchemaCreation does, and startSchemaCreation checks the API under it too. refreshGraphqlApiUris refreshes the stored API under the monitor instead of putting the instance it read earlier.
2026-11-04 16:25:04 -04:00
Niels Kootstra e0b8da1b6c fix(ecs): close an ECS Exec stream that attaches after the client has left (#7530) 2026-11-04 15:57:28 -04:00
Matheus Oliveira 0f242e9ee0 fix(rds): keep BackupRetentionPeriod on DB clusters (#7094) 2026-11-04 15:53:14 -04:00
PiotrDuz 57a961fdb8 perf(rds): run proxy relays on platform threads and buffer the IAM relay input (#7401)
Every request and every response wakes a relay thread blocked on a socket
read. On a virtual thread that wakeup goes through the JDK poller and a
carrier handoff, which made the relay itself cost about 0.13 ms per
roundtrip in one Docker network (0.063 ms direct, 0.198 ms through the
proxy). The relay loops of the PostgreSQL, MySQL and opaque TCP bridges now
run on daemon platform threads; the accept loop and the handshake stay
virtual.

The IAM session guard read each backend message's type, length and payload
straight from the socket, plus an available() call per message. Its input
is now buffered, and the flush-on-pause check asks the socket only once the
buffer is drained.

A MySQL or MariaDB client that disconnects without COM_QUIT ended the
client-to-backend relay but left the backend-to-client relay blocked on a
backend that never speaks, and bridge() waited for both before closing
either socket. Close both sockets as soon as either relay ends, as the
PostgreSQL bridge already does, so a dropped client no longer holds a relay
thread and a backend connection open.
2026-11-04 14:15:20 -04:00
Jackson Price 31451dfff3 fix(cloudformation): preserve mapped list values (#7511) 2026-11-04 14:05:30 -04:00
jibin-jusdb ecd1138d86 feat(ec2): support GetConsoleOutput with the guest's SSH host keys (#7385)
Returns a console log carrying the instance's SSH host public keys between the markers cloud-init prints, read from the running instance container, so clients can verify the host before connecting. An instance without a running container has an empty log.

Look the instance up in the request's region, read host keys only from a running container and treat a failed read as an empty log, build the response with XmlBuilder, and cover the SDK reading of the response.

AWS returns DryRunOperation for DryRun=true even for an empty or malformed instance id, so check the dry run first.

The key files are the guest's to write, so capture at most 16 KiB of stdout (and 1 KiB of stderr) through bounded streams, and answer an empty log, with a warning, when the output is larger than host keys can be.
2026-11-04 14:04:55 -04:00
Matheus Oliveira e95af9cbf6 feat(servicequotas): implement ListServices action (#7254) 2026-11-04 13:52:00 -04:00
Niels Kootstra fab3e7b923 fix(storage): record the owning account on putAll, so a cross-account lookup finds the entries (#7520) 2026-11-04 13:48:41 -04:00
Andre Kurait 5762323bb5 fix(cognito): offer configured providers in managed login (#7518)
* fix(cognito): offer configured providers in managed login

Preserve native authentication eligibility and request parameters for federated-only and mixed clients.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(cognito): explain unavailable sign-in providers

Show an actionable managed-login error after every provider is removed, without enabling native credentials.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-04 13:45:05 -04:00
luiseterc 3b8c524df0 fix(ec2): include processor manufacturer metadata (#7517)
Populate existing instance types with AWS-verified manufacturer values and expose them through DescribeInstanceTypes. Add SDK regression coverage for all 84 catalog entries.

Closes floci-io/floci#7516
2026-11-04 13:25:04 -04:00
Abhigya 861d2ea259 fix(apigateway): keep the caller's path encoding on HTTP integrations (#7489)
The controller read path parameters from the decoded JAX-RS path and
substituted them into the integration URI, so a path with an encoded space
threw from URI.create and answered 500 without reaching the backend. An
encoded ? or # cut the backend path short, %2F became a separator and %252F
lost a level of encoding.

Read the target URL's path parameters from the raw request path, for REST
HTTP_PROXY, REST HTTP and HTTP API HTTP_PROXY integrations. A value mapped
from elsewhere is percent-encoded. $request.path.X and header mappings keep
the decoded value. An integration URI that cannot be parsed now answers 502.

Routes match on the decoded path, so an encoded slash ahead of a parameter
shifts the segments read off the raw path. /a%2Fb/c/d on /a/b/{proxy+} called
the backend with /backend/d. A raw value that does not decode to the decoded
parameter is now ignored, and the decoded value is encoded instead. Comparing
values rather than literal segments also covers templates with no literals,
such as /{x}/{y}/{z+} and the HTTP API route /{x}/{y+}.
2026-11-04 13:24:51 -04:00
TATSUNO “Taz” Yasuhiro 05eed7a0a9 fix(sns): format message Timestamps with three-digit milliseconds (#7513)
AWS gives Timestamp in notifications and subscription confirmations as milliseconds with three digits, such as 2026-11-04T10:54:48.430Z.
2026-11-04 12:11:05 -04:00
TATSUNO “Taz” Yasuhiro 5080093a2a fix(dynamodb): check the condition members of a PutItem or DeleteItem in order inside the validation envelope (#7505)
* fix(dynamodb): check the condition members of a PutItem or DeleteItem in order inside the validation envelope

* fix(dynamodb): reuse the expression member helper in the older PutItem and DeleteItem check
2026-11-04 12:02:59 -04:00
Aniket Shukla 1d6ec2b9d1 fix(appsync): preserve resolver callback execution scope (#7512) 2026-11-04 12:00:12 -04:00
Priamo Germosen 9062572948 feat(iam): read a REST request's resources from its path and query (#7499)
The table of request resources read only a request's body or Query
form, so no REST namespace was read: a REST request names its
resources in its path and its query. An OpenSearch Service request
naming its domain, DescribeDomain on
/2021-01-01/opensearch/domain/{DomainName}, was left unchecked by the
routes the previous change reads, as Floci could not check it on the
domain AWS checks it on.

- The generator reads a rest-json request's members in its path and
  its query as members, under their botocore names, and records where
  each one a resource reads is (`located`): a path label, `{Label}`, or
  a query parameter, `?name`. RequestResources lays them over the body,
  a label's value from the route the request matched in the vendored
  routes (IamActionRegistry.pathLabels, IamRestRoutes now capturing
  each label), a query parameter's from the query, so every kind of
  resource reads them as it reads the body's. A located member is read
  from where it is alone, as its handler reads it: one the body also
  gives is dropped.
- A namespace read this way also takes the operations of each botocore
  model Floci reads routes for under it (regen_rest_routes.MODELS) that
  the reference lists for none of its clients, each the action of its
  own name with that action's resource types, when the reference has
  that action: the reference lists OpenSearch Service's `es` client
  alone, while the `opensearch` client's operations are named after
  `es` actions. --verify checks such an operation's action and types
  against the reference's Actions, and reports one whose action AWS no
  longer has.
- `es` moves from NOT_COVERED to NAMESPACES: 120 operations, both API
  versions', 1505 over 34 namespaces. Every domain route Floci serves
  reads its domain, from the path, the body or `?arn`, on
  `domain/<DomainName>`, the ARN Floci mints. Those whose resource the
  table does not find (outbound connections, applications, insights)
  are routes Floci does not serve.
- Reading rest-json would also have read the Payment Cryptography data
  plane's key from its path; Floci serves only the control plane, so
  `payment-cryptography-data` joins CLIENTS_NOT_READ with its reason
  and its operations stay as they were. No other entry changes.

With the domain operations in the table, the routes check them by the
resources-read half of the join rule. IamActionRegistryTest checks the
domain routes and the labels a request's path gives;
RequestResourcesTest reads a path label, a query parameter and a body
together; IamRestRouteEnforcementIntegrationTest checks DescribeDomain,
DescribeElasticsearchDomain and ListTags on the domain they name; the
generator tests cover the located members, a member two clients locate
apart, the REST models' operations and a round trip through --check and
--verify. iam.md says so.
2026-11-04 08:05:50 -06:00
Andre Kurait 8f69e81893 fix(bedrock-agentcore): serialize runtime endpoint mutations (#7502) 2026-11-04 09:55:00 -04:00
TATSUNO “Taz” Yasuhiro e657225711 fix(sns): give all subscribers of a message the same Timestamp (#7508) 2026-11-04 08:28:18 -04:00
Jackson PriceandAndre Kurait ee78a41f16 fix(ec2): honor network interface selectors in AssociateAddress (#7506)
* fix(ec2): associate elastic addresses with primary and detached interfaces

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
(cherry picked from commit 28c17835d6e7dc480f5f5716e206fbbe5b81bee0)
Signed-off-by: Jackson Price <jxnprice@amazon.com>

* test(ec2): clean up partial address-association fixtures

Signed-off-by: Jackson Price <jxnprice@amazon.com>

* fix(ec2): serialize interface deletion and resolve managed interfaces

Signed-off-by: Jackson Price <jxnprice@amazon.com>

---------

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-04 08:28:01 -04:00
Ronald Li 🛠️ dbbf22957f fix(cloudformation): apply an AWS::EC2::FlowLog's Tags (#7490) 2026-11-04 06:49:14 -04:00
Jackson PriceandAndre Kurait 7b4e568ce4 fix(ec2): validate launch template selectors and honor dry runs (#7497)
* fix(ec2): honor launch template modification dry runs

Signed-off-by: Andre Kurait <akurait@amazon.com>
(cherry picked from commit a76af5e62cf32eacdab4ce71dc0b5c0866de7b25)
Signed-off-by: Jackson Price <jxnprice@amazon.com>

* fix(ec2): reject conflicting launch template selectors

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
(cherry picked from commit 50dfad42ed80c9694e77dcb24be3825b8ed32552)
Signed-off-by: Jackson Price <jxnprice@amazon.com>

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-04 06:47:31 -04:00
Daniël van Ziel f8408ae3d4 fix(elbv2): fail DescribeRules with RuleNotFound for an unknown rule ARN (#7492) 2026-11-04 06:34:34 -04:00
Andre Kurait c456847899 fix(lambda): validate VPC resources before configuration changes (#7483)
* fix(lambda): validate VPC resources before configuration changes

Require declared subnets and security groups in the request account and region to belong to one VPC. Validate replacement settings before mutating the function. Preserve detachment, published-version snapshots and actual declared-resource fixtures.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(lambda): preserve unknown VPC placeholder compatibility

Keep unknown subnet and security-group IDs in responses without inferring VpcId. Reject mixed known VPCs before mutation even when unknown IDs are also present. Restore placeholder EFS/CloudFormation fixtures and cover partial unknowns, updates and version snapshots. Addresses maintainer review 5766333414.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-04 06:33:17 -04:00
TATSUNO “Taz” Yasuhiro f53ba4a4a2 perf(sqs): copy the queue once when messages expire or move to a dead-letter queue (#7493) 2026-11-04 06:24:01 -04:00
jibin-jusdb efe6cbc78a feat(ec2): report the service-network address as public IP when Floci runs in a container (#7384)
* feat(ec2): report the service-network address as public IP when Floci runs in a container

Adds FLOCI_SERVICES_EC2_PUBLIC_IP_FROM_SERVICE_NETWORK (default false). When Floci itself runs as a container and the option is on, an instance's public IP is its address on Floci's own Docker network, so clients on that network reach the guest's real ports, port 22 included.

* fix(ec2): record the service-network address and follow protected guests to their helper

Resolve the address once at launch, start and restore instead of asking Docker on every public-address read, which DescribeAddresses does under a lock. A security-group protected guest shares its firewall helper's network namespace, so its address is the helper's.

* fix(ec2): share the helper lookup and retry a failed service-network lookup

Use one container: network-mode lookup for protectedNamespace and the service-network address. A lookup that fails on a Docker error is no longer recorded as the answer; the next address read retries it on the executor without waiting.

* fix(ec2): run service-network lookup retries off the launch pool

Retries ran on the bounded launch executor, whose blocking backpressure could leave launch workers waiting on each other. They now get their own virtual-thread executor, and a retry that cannot be scheduled is logged with the instance id.

* fix(ec2): publish a service-network lookup only for the container it read

A lookup records the container it starts for, asks Docker outside the instance lock, and publishes under the lock only while the instance still runs that container, so a lookup that outlives a replacement or a teardown cannot overwrite what came after it. The retry executor now comes in through the package-private constructor and is final.
2026-11-04 06:18:14 -04:00
Ronald Li 🛠️ 3b68495018 feat(sfn): apply the EventBridge connection to HTTP Tasks (#7479)
* feat(sfn): apply the EventBridge connection to HTTP Tasks

An HTTP Task now resolves the connection named by InvocationConfig or
Authentication. Its authorization, headers, query parameters and body
parameters are merged over the task's, and the connection's value wins on
a duplicate key, as the AWS HTTP Task guide describes. The body is merged
before Transform encodes it. A string body with connection body
parameters fails with States.Runtime, and an unknown connection fails
with Events.ConnectionResource.ResourceNotFound.

The connection logic is the API destination's: EventBridgeInvoker exposes
it as connectionHttpParameters, so both callers share one implementation,
OAuth client credentials included.

* fix(sfn): keep case-distinct query parameters and bound OAuth by the HTTP Task timeout

A connection query parameter now replaces only a task parameter of the exact same name, since query names are case-sensitive. The connection's OAuth token exchange now spends the task's TimeoutSeconds, so the API request gets only the time left.

* chore: retrigger CI
2026-11-04 05:58:02 -04:00
TATSUNO “Taz” Yasuhiro e105843426 fix(dynamodb): use the older check order and wording for a PutItem or DeleteItem without Item or Key or nested too deep (#7480) 2026-11-04 05:57:17 -04:00
Niels Kootstra eaefd55980 fix(cloudformation): drop a DynamoDB table's update snapshot once the update commits (#7448)
* fix(cloudformation): drop a DynamoDB table's update snapshot once the update commits

* test(cloudformation): clean up the rollback retry test's stack and table even when it fails, using a shared ContinueUpdateRollback helper
2026-11-04 05:51:43 -04:00
Jackson Price 1743cb5f75 fix(autoscaling): derive group zones from selected subnets (#7475) 2026-11-04 05:26:03 -04:00
Hector Ventura 86f8434ef6 fix(cognito): name a custom domain's CloudFront distribution like the others (#7486)
CreateUserPoolDomain built its CloudFrontDistribution by hand from 14 hex
characters with no leading d, unlike the names an edge-optimized API Gateway
domain and an AppSync custom domain get. Use CloudFrontEdgeDomain.create, so
the name is d plus 13 hex on the partition's suffix. The name is stored, so
existing domains keep theirs.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-11-04 05:17:53 -04:00
Hector Ventura e46579ec03 fix(apigateway): report the published regional hosted zones (#7487)
* fix(apigateway): report the published regional hosted zones

A regional custom domain reported the invented Z2FDTNDATAQYL2 everywhere outside
GovCloud, so a Route 53 alias built from it pointed at a zone AWS does not have.
Vendor the data plane table of the API Gateway General Reference page into
region-facts.json, with the GovCloud guide kept as a cross-check. A region with no
row keeps the placeholder, now documented as one. Stored domains keep their id.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* test(apigateway): read the regional hosted zone through the SDK clients

Create and read the custom domains with ApiGatewayClient and ApiGatewayV2Client, so the test also shows both SDKs parse the zone fields.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-11-04 05:17:48 -04:00
Priamo Germosen 27057e2c00 fix(ssoadmin): provision to all accounts only those the check covered (#7463)
Under IAM enforcement, a ProvisionPermissionSet for
ALL_PROVISIONED_ACCOUNTS is checked on each account the permission set
is provisioned to, which the permission check finds through
SsoAdminService.through. The handler then found those accounts again
and provisioned to each. Another request could provision the permission
set to one more account in between, with an account assignment of its
own, and a permission set change could leave that account
LATEST_PERMISSION_SET_NOT_PROVISIONED: this request then provisioned it
again, changing the account's state with no policy checked against it.

The accounts are now found once for the request and kept, in a
request-scoped SsoAdminRequestContext, as PaymentCryptographyRequestContext
keeps the key an alias named: the check and the provisioning use the
same accounts, and an account provisioned to since is left as the other
request left it. Each request finds them afresh, so the next one is
checked on it.

SsoAdminServiceTest replays the race: the check finds one account,
another account is assigned and a policy attached, and the provisioning
leaves the second account not provisioned. The IAM integration test
assigns a third account after a request was let through on two, and the
same grant no longer covers the next request. iam.md says so.
2026-11-03 23:18:56 -06:00
Priamo Germosen 251bb39375 feat(iam): check REST routes no rule maps by botocore's models (#7461)
A REST request gets its IAM action from IamActionRegistry's
hand-written rules, and a route no rule maps gets none, which the
caller allows: under enforcement such a request runs unchecked.
IamRestRoutes (#7085) reads botocore's routes at runtime, but only for
the operations a hand-written list enrolls, ValidatePolicy alone, and
only by literal paths.

A request no rule maps is now the operation whose route in botocore's
model it matches, and it is checked as that operation's action
(IamAuthorizedActions), as a Query or JSON request naming its
operation is, when Floci checks it on the resources AWS does: those
its request names, which ResourceArnBuilder builds for its namespace
or the vendored request resources read for the operation, or none,
when the Service Reference gives the action no resource type, as AWS
authorizes such an action on `*`. An action AWS checks on a resource
Floci neither builds nor reads stays unchecked, as before: checked on
`*`, a grant scoped to its resource would be refused. That is the
reason #7085 gave for enrolling ValidatePolicy alone, now read from
generated data instead of a list.

- The actions of no resource type come from the Service Reference's
  Actions, through regen_iam_authorized_actions.py, into
  iam-authorized-actions.json, for each credential scope whose routes
  rest-routes.json reads: 88 over 7 scopes. They are read from Actions,
  not Operations, because the reference lists one SDK client's
  operations per namespace, OpenSearch's `es` client alone. --check
  fails until a scope rest-routes.json adds is listed, and --verify
  fails when AWS gives a listed action a resource type.
- IamRestRoutes now matches every route of a model: literal segments,
  a label taking one segment, a greedy label the rest of the path, and
  the query a route names, which must be on the request. Of the routes
  a request matches, the most specific wins, segment by segment from
  the left a literal, then a segment mixing a literal and a label, then
  a label, then a greedy label; then the route naming more of the
  query. The path is the one the rules match, still percent-encoded and
  without a trailing slash, and a segment may still end in a matrix
  parameter, which the router ignores.
- The rules come first, so nothing they map changes. S3 and API Gateway
  are listed as handRouted, with their reasons, and routed by their
  rules alone: S3 tells apart the operations of one route by their
  query and headers, and API Gateway is checked by HTTP method. The
  route generator fails when one route names two operations of any
  other scope.
- OpenSearch Service's models, both API versions, are read under `es`:
  59 of their 147 operations are checked by their routes (29 of the
  `es` model's 51, 30 of the `opensearch` model's 96), 53 of which ran
  unchecked, ListDomainNames and ListVersions among them. The other six
  are the VPC endpoint operations #7351 mapped by hand: their rules are
  removed, as their routes give the same actions.
- Access Analyzer's 9 operations of no resource type are checked by
  their routes, ListAnalyzers among those Floci serves, where
  ValidatePolicy alone was; its analyzer operations are not.

Lambda's, EKS's, Scheduler's, Pipes' and DSQL's resources are built
by hand and their routes all mapped by their rules, so none is checked
differently. IamRestRouteCoverageTest checks every route of a scope
not hand-routed: by the vendored routes alone it is its own operation,
and through the registry it is its action when its resources are built
by hand or read, or its action has no resource type, and unmapped
otherwise.
iam.md and access-analyzer.md say which routes are checked.
2026-11-03 23:18:31 -06:00