Commit Graph
5222 Commits
Author SHA1 Message Date
Hector Ventura 2402267966 test(ses): parse the writer-overflow message on a stack of its own (#9097)
relayRaw_nestingThatParsesButOverflowsTheWriter_isSkippedNotThrown parsed
its 10,000-layer message on the test thread and asserted the parse
succeeded, but how deep mime4j's recursive parser gets depends on the
thread's stack, and on smaller stacks it overflowed first, so message()
was null. The test now parses on a thread with a 256 MB stack, then
relays on the test thread as before, where the writer must still
overflow. SmtpRelay is unchanged.
2026-11-20 13:41:52 -04:00
mrfelek 29cd4a84ee feat(ecs): create the Cloud Map services of a Service Connect service's endpoints (#9022)
A Service Connect service that offers endpoints now has them in the
Cloud Map namespace it joined. CreateService and UpdateService create an
HTTP Cloud Map service for each services[] entry, named by its
discoveryName or else its portName, and one for a client configuration,
aws-ecs-sc.client.<UUID>.<service name>, described "Managed by" the ECS
service and tagged AmazonECSManaged=true. Each deployment reports them
as serviceConnectResources. UpdateService keeps, creates and deletes them
to match, turning Service Connect off or DeleteService deletes them all,
and a circuit-breaker rollback brings them back in line.

Discovery names are checked before anything is created, under a lock per
namespace: one outside ECS's naming rule, one named twice, one another
ECS service holds and one a Cloud Map service created outside ECS holds
are refused with ECS's messages, ClientException on CreateService and
InvalidParameterException on UpdateService. ECS only reuses or deletes
Cloud Map services it made. Cloud Map's duplicate-name check moves into
CloudMapService.findServiceByName, shared with the registrar.
2026-11-20 07:33:23 -04:00
Ignas 3ae5b8b6ea fix(elbv2): pass TCP health checks on an open connection (#9032)
A target group with a TCP health check was probed with an HTTP GET and
judged on the response code, so a target that accepts connections but
does not answer HTTP stayed unhealthy. A TCP check now opens a
connection to the target and passes once it is accepted, without
consulting the path or matcher, which AWS scopes to HTTP and HTTPS
checks. The ELB docs describe the TCP check.

Closes #9031
2026-11-20 07:32:37 -04:00
TATSUNO “Taz” Yasuhiro 4713120f3e fix(dynamodb): check WarmThroughput last on CreateTable (#9077) 2026-11-20 07:30:23 -04:00
Kenshin Okinaka 7c4ed46223 fix(ses): match SES v1 on a missing custom verification template and an absent MAIL FROM domain (#9081) 2026-11-20 07:24:33 -04:00
galsuchetzky-act a3c45a4ce2 fix(bedrock-agentcore): validate tag resource request maps (#9076)
AgentCore TagResource accepted any tags map. It now validates the map
before dispatch with the same rules create and update use: at most 50
entries, keys of 1 to 128 characters and values of 0 to 256 in the
AgentCore tag pattern. The handler opts into the strict tag payload
parser, so a malformed or non-object body is refused without changing
stored tags, while an empty map and an empty untag request stay valid.

Closes #7894
2026-11-20 07:18:43 -04:00
Allen Sanborn 704b5f1c3b fix(kms): keep import parameters valid across concurrent identical imports (#9004)
* fix(kms): keep import parameters valid across concurrent identical imports
* fix(kms): ImportKeyMaterial no longer re-enables a Disabled key
2026-11-20 07:11:09 -04:00
Murtuza Chhil 42707716cd test(paymentcryptography): the TR-34 codec answers the standard's own vectors (#9079) 2026-11-20 07:09:32 -04:00
Priamo Germosen dc97ce5cb1 fix(iam): check Resource Groups requests on the groups the generated table gives them (#9074)
Resource Groups was built by hand: ResourceArnBuilder read a group from
the body's Group or GroupName, or CreateGroup's Name, the request
resources table held no Resource Groups operation, and nothing gave a
policy condition a group's tags. resource-groups moves from HAND_BUILT
to NAMESPACES, so the table gives each operation the group its Group
names, by its name or its ARN, and the ARN a tagging route carries;
CreateGroup, for which the Service Reference lists no resource type, is
checked on *, as AWS checks it. ResourceArnBuilder's Resource Groups
branch goes. ResourceGroupsStoredResourceArns answers a group's stored
tags, read in place from the group record the service stores whole. Only
Resource Groups' operations change in the table.
2026-11-20 07:03:52 -04:00
Jackson PriceandAndre Kurait ab7fc6f81f feat(dynamodb): update Kinesis destination precision (#9072)
* feat(dynamodb): update Kinesis destination precision
* fix(dynamodb): reuse validation for Kinesis precision updates

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-20 06:54:51 -04:00
Don HavelbergandDolev Hacohen 546065dc53 fix(lambda): queue throttled asynchronous invocations with backoff (#9071)
Co-authored-by: Dolev Hacohen <dolev.hacohen@forcepoint.com>
2026-11-20 06:54:32 -04:00
Priamo Germosen e8f16911d2 fix(iam): check EKS requests on the resources the generated table gives them (#9070)
EKS was built by hand: ResourceArnBuilder walked an EKS path, looked
each resource up through EksService, and checked a tagging route on the
caller's cluster named after the ARN's last segment; the request
resources table held no EKS operation, and nothing gave a policy
condition an EKS resource's tags. eks moves from HAND_BUILT to
NAMESPACES, so the table gives each operation the cluster its path
names, the node group, add-on or Fargate profile EksStoredResourceArns
finds by its cluster and name, the ARN a tagging route carries, and
parts of an ARN the request does not give open. CreateCluster, for which
the Service Reference lists no resource type, is checked on the cluster
its body names from a MEASURED entry quoting the EKS user guide's
example policy for creating a cluster. ResourceArnBuilder's EKS section
and its EksService dependency go. EksStoredResourceArns answers the
stored tags of a cluster, node group, Fargate profile, add-on, Pod
Identity association or access entry; EKS's tag changes take one lock
and give a cluster, node group or Fargate profile a new map, whose tags
field is now volatile, and a cluster is tagged only when its ARN is the
whole ARN the request names. Tag changes and tag reads find a cluster,
node group or Fargate profile through one lookup, and an ARN with a part
left open is not looked up. Read from its model, EKS tags only on
/tags/{resourceArn} with the ARN encoded, as the SDKs send it, so the
tagging tests that sent it unencoded now encode it. Only EKS's
operations change in the table.
2026-11-19 23:25:25 -04:00
Jackson PriceandAndre Kurait e50e7dac36 feat(s3vectors): support resource tagging (#9059)
S3 Vectors buckets and indexes now support TagResource, UntagResource and
ListTagsForResource through the shared tag routes. A tag call reads the
resource ARN in the request's Region, partition and account as the other
ARN operations do, merges tags by key, and holds the 50-tag limit under
the bucket lock. Create, replace and TagResource validate tags the same
way, with the service's not-found wording and modeled constraint errors.
Strict tag handlers reject trailing JSON before calling their service.

Adapted from AndreKurait/floci#815.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-19 22:14:23 -04:00
Daniël van Ziel 41aa3ba2eb fix(apigateway): honor limit and position on GetRequestValidators (#9060) 2026-11-19 22:12:18 -04:00
TATSUNO “Taz” Yasuhiro d37698ea71 feat(dynamodb): store WarmThroughput from CreateTable and UpdateTable (#9069)
* feat(dynamodb): store WarmThroughput from CreateTable and UpdateTable
2026-11-19 22:12:08 -04:00
Priamo Germosen 1a888867ad fix(iam): check STS requests on the resources the generated table gives them (#9033)
STS was built by hand: ResourceArnBuilder checked AssumeRole on the role
its RoleArn named and every other operation on *, IamEnforcementFilter
sent STS requests there by action, and the request resources table held
no STS operation. sts moves from HAND_BUILT to NAMESPACES, so the table
gives each operation what the Service Reference and botocore give it:
AssumeRole the role its RoleArn names, as before, GetFederationToken the
federated user its Name names and AssumeRoot the root user, where the
hand builder checked both on *, and the operations that act on no
resource type * as before. StsStoredResourceArns answers that a role IAM
holds in the account its ARN names is assumed there, as the handler
finds it, so a cross-account AssumeRole is checked on that role alone
and not also on the caller's role of that name. ResourceArnBuilder's STS
section and the filter's STS case go. Only STS's operations change in
the table.
2026-11-19 21:56:53 -04:00
Kenshin Okinaka a769b77124 fix(ses): skip the raw relay when the message cannot be parsed or is nested too deeply (#9066) 2026-11-19 21:55:32 -04:00
Kenshin Okinaka 0af048a099 fix(ses): require a subject and a part in an inline send template (#9064)
A v2 SendEmail or SendBulkEmail with inline TemplateContent was accepted
as soon as one of the subject, text or html was set, and an empty one
was answered with a message of Floci's own.

SES needs a subject and a text or html part, each with a non-whitespace
character, and answers every incomplete shape with "Template is missing
required fields." It reports that ahead of a missing or malformed
sender, the destinations, the template data and the configuration set
and tenant lookups, so the check now runs first on both operations.

A stored template is no longer checked again when a send renders it: it
was validated when it was stored.

A template that names a stored template beside TemplateContent now
answers with the message SES uses on each operation.
2026-11-19 21:46:04 -04:00
Vũ Thế Huy 42fad08915 test(glue): reuse shared InMemoryStorageFactory and GlueRequests in remaining Glue tests (#9061)
Seven Glue service tests each declared a private InMemoryStorageFactory,
and four Glue integration tests built the AWSGlue.<action> request by
hand. They now use io.floci.aws.testing.InMemoryStorageFactory and
GlueRequests.call, which #8568 shared.
2026-11-19 21:23:55 -04:00
rajp33 3f51fdec34 feat(rds): honor DeletionProtection on cluster restores and AWS::RDS::DBCluster (#9057)
RestoreDBClusterFromSnapshot and RestoreDBClusterToPointInTime now read
DeletionProtection and set it on the new cluster before it is stored.

The AWS::RDS::DBCluster provisioner reads DeletionProtection, creates the
cluster with it, and applies a changed value on stack update. A stack
delete of a protected cluster is refused by DeleteDBCluster and reported
as the resource's DELETE_FAILED, as on AWS.

A restore, or a CloudFormation role attach, that fails after creating the
cluster goes through one cleanup that clears the flag and always attempts
the delete, adding any failure to the original error.

Closes #9056
2026-11-19 20:56:18 -04:00
Suja Shaj 3e1fe3c8b6 fix(cloudformation): resolve an RDS instance's previous template as it was deployed (#9058) 2026-11-19 20:55:19 -04:00
Andre Kurait a6a609d62f fix(ec2): report the network interface IPv6 address (#9027)
An ENI could have IPv6 addresses assigned while its top-level
ipv6Address was missing from CreateNetworkInterface and
DescribeNetworkInterfaces. The shared serializer now reports the first
assigned address there, keeps the ipv6AddressesSet list, and omits the
field when the interface has none.

Ported from Emanuel Aseghehey's AndreKurait/floci#1239.
2026-11-19 20:36:25 -04:00
Hector Ventura 2ab20905a2 chore(docker): raise the streaming pool default to 3072 connections (#9050)
* chore(docker): raise the streaming pool default to 3072 connections
2026-11-19 20:19:55 -04:00
galsuchetzky-act 3f16c0234b test(lambdamicrovms): share two-version image fixture (#9054) 2026-11-19 20:10:51 -04:00
Jackson Priceandoeyh b69d184c5c test(elbv2): cover pending replacement routing over HTTP and HTTPS (#9036)
* test(elbv2): cover pending replacement routing over HTTP and HTTPS
* test(elbv2): reuse shared TLS trust context
* test(elbv2): extend shared initial-health regressions

Co-authored-by: oeyh <8153134+oeyh@users.noreply.github.com>
2026-11-19 20:09:57 -04:00
rajp33 30503c4c2e fix(rds): persist DB cluster DeletionProtection and refuse to delete a protected cluster (#8985) 2026-11-19 19:53:59 -04:00
galsuchetzky-act fca7dfdd22 test(bedrock): reuse inference-profile metadata test helpers (#9044)
Share same-account client construction and successful summary lookup in
the existing metadata tests. Preserve each test assertion, region and
resource lifetime, including the unavailable-region negative control.

Closes #9043
2026-11-19 19:34:47 -04:00
Andre Kurait 875794c538 fix(iam): select EC2 interface and endpoint authorization resources (#8892)
* fix(iam): select EC2 interface and endpoint authorization resources
2026-11-19 19:24:56 -04:00
Kenshin Okinaka c91740de85 fix(ses): check a template's tags before its name and content (#9041)
CreateEmailTemplate validated the tags last, after the template name
and content. SES checks them first, as probed on us-west-2: the tag
count, character set, lengths, an empty key and duplicate keys are all
refused ahead of a blank name or a missing subject or part.

The reserved aws: key prefix is the exception. SES refuses it after
the name and the content, before it looks the name up, and words it
"Invalid tags" on this operation.
2026-11-19 19:24:53 -04:00
Ignas f08cc57437 fix(elbv2): omit HTTP-only fields from TCP target groups (#9030) 2026-11-19 19:20:35 -04:00
rajp33 9f959a3f27 feat(iot): support SetV2LoggingOptions and GetV2LoggingOptions (#8945)
* feat(iot): support SetV2LoggingOptions and GetV2LoggingOptions
* fix(iot): keep omitted V2 logging options and require role and level on first set
* fix(iot): validate SetV2LoggingOptions log level and member types
* fix(iot): answer SetV2LoggingOptions with an empty body
* test(iot): cover V2 logging setup, updates, errors and account scoping in the SDK suite
* test(iot): sign V2 logging requests with the shared EnforcementFixtures.auth helper
* test(iot): cover V2 logging persistence and document eventConfigurations and verbose limits
* docs(iot): count the V2 logging routes in the service matrix
* fix(iot): reject a SetV2LoggingOptions body that is not a JSON object
* fix(iot): reject a blank roleArn in SetV2LoggingOptions
* fix(iot): serialize the SetV2LoggingOptions read-merge-write
* test(iot): share one IoT client builder in the SDK fixtures
* fix(iot): stop refusing a blank roleArn in SetV2LoggingOptions
* fix(iot): build the V2 log level refusal with SmithyValidationErrors
* refactor(iot): share IoT request body readers between logging and fleet indexing
2026-11-19 19:14:50 -04:00
Jeremy Chapeau b8632351e8 fix(sts): let a same-account trust policy that names a user grant AssumeRole (#8918)
A role's trust policy now reaches IAM enforcement through a
ResourcePolicyProvider, the path every other resource-based policy
takes, instead of a branch on sts:AssumeRole in the enforcement filter.
RoleTrustPolicyProvider answers an STS action on a role ARN with the
role's stored trust policy, each statement that names no Resource given
the role's ARN, and with the account in the role's ARN as its owner.
IAM actions on the role, such as iam:GetRole and iam:PassRole, get
nothing from it.

evaluateResourcePolicyFor already returns ALLOW_DIRECT_IAM_USER for an
Allow naming the caller's user ARN, so a same-account grant to a user
is unchanged, and AssumeRolePolicyEvaluator.grantsToIamUser and its
request-key helper are removed. Within the role's account, an Allow
naming a role session's role, or "*", now grants the call too, as any
same-account resource-based policy does. Across accounts the filter
needs the trust policy's Allow beside the caller's identity policy, so
it refuses an IAM user or a role session the trust policy does not
allow before STS does, with its own AccessDenied message;
AssumeRoleTrustConditionsIntegrationTest checks that message for those
callers.

The STS guide's sentence that the caller's identity policy must allow
sts:AssumeRole now names the same-account exception.
2026-11-19 19:10:54 -04:00
David Acevedo 3aba098ee8 feat(lambda): add a process executor for provided runtimes (#9006) 2026-11-19 19:07:32 -04:00
Oleksandr Nikolaichuk 99a13cf067 test(cloudformation): hold every resource type to the engine's property changes or an exempt row (#8988) 2026-11-19 18:53:42 -04:00
Niels Kootstra a25c0435ee fix(ec2): list the DynamoDB gateway endpoint service in DescribeVpcEndpointServices (#9016)
* fix(ec2): list the DynamoDB gateway endpoint service in DescribeVpcEndpointServices
2026-11-19 18:44:04 -04:00
Ignas b6af0646d5 fix(rds): advertise the configured endpoint host on DB proxies (#9024) 2026-11-19 18:42:05 -04:00
Kenshin Okinaka b8a74a2a67 refactor(ses): share the name length and character checks (#9034)
Template, configuration set, event destination, tenant and metric
dimension names each carried their own copy of the 64-character limit,
the [A-Za-z0-9_-]+ pattern and the sentence that quotes a refused name.
SesNames now holds the limit, the pattern and the two checks; each
caller passes its error code and wording and keeps its own blank check
and its own order of the two.

Contact list, topic and policy names, which have their own sentences,
ask SesNames's predicates in place of two more copies of the pattern.

No behaviour change.
2026-11-19 18:41:43 -04:00
Matheus Oliveira dca36665b5 fix(ecs): emit empty arrays for empty mountPoints and volumesFrom (#9015)
* fix(ecs): emit empty arrays for empty mountPoints and volumesFrom
* test(ecs): an omitted volumesFrom reads back as [] too
2026-11-19 18:37:38 -04:00
galsuchetzky-act c1e7b240ea fix(lambda): keep MicroVM version update timestamps independent (#9021)
Each MicroVM image version now keeps its own updatedAt instead of
reporting the parent image's. Building another version leaves older
versions' timestamps alone, and a status update advances only the
version it changes. A stored version without the field reports its own
createdAt, including after a restart, and reading it does not rewrite
storage.

Closes #8616
2026-11-19 18:32:56 -04:00
mrfelek a283c7a49b fix(ec2): honour DryRun on the VPC, subnet, internet gateway and route table calls (#9018)
* fix(ec2): honour DryRun on the VPC, subnet, internet gateway and route table calls
2026-11-19 18:30:09 -04:00
galsuchetzky-act 683cb84080 fix(bedrock): report inference profile support in model metadata (#9020)
Derive INFERENCE_PROFILE support from existing system profile routes
while preserving regional ON_DEMAND support and request-filter
validation. Cover Get and List metadata through raw SDK strings,
including profile-only and unavailable regions.

Closes #8450
2026-11-19 18:26:50 -04:00
Joaquín Gamboa 1ffa5ed2c9 fix(cloudformation): pass a distribution's ViewerCertificate through (#8952)
* fix(cloudformation): pass a distribution's ViewerCertificate through
* fix(cloudformation): delete a replaced ACM certificate in the update cleanup
2026-11-19 18:26:08 -04:00
Ignas 82ac1eabaa fix(apigatewayv2): map $request.path to the request path without the stage (#8993)
AWS documents $request.path and ${request.path} as an HTTP API mapping
source that yields the request path without the stage name. The AWS
service integration validator accepted only $request.path.<name>, so
CreateIntegration rejected it, and ContextValueResolver had no case for
it, so it resolved to nothing. The resolver now returns
RequestContext.path(), which already excludes the stage, and the
validator accepts the bare source.

Closes #8991
2026-11-19 17:43:41 -04:00
Jackson Price ade40d7940 test(codeartifact): share npm transport mock helpers (#9019)
Extract the client construction and the mocked HttpClient.send call into
two private helpers, clientWithTransport and anySend, used by the six npm
transport tests. Each case now states its response or exception and its
expected send count without repeating the transport matchers.
2026-11-19 17:27:27 -04:00
Jeremy Chapeau 3a9f529158 fix(sts): give AssumeRole's identity-based policies the sts:RoleSessionName and sts:ExternalId keys (#8922)
With IAM enforcement on, the caller's identity-based policy, permissions boundary, session
policy and SCPs were evaluated for sts:AssumeRole without the request's sts:RoleSessionName
and sts:ExternalId, which the role's trust policy already sees, so a condition on either never
matched. The Service Authorization Reference lists both among the condition keys of
AssumeRole. STS now joins the generated request condition key table, which reads them from the
AssumeRole form; an AssumeRole without ExternalId names no sts:ExternalId. AssumeRoleWithSAML
carries no session name member, so it is listed as not reading it from the request.

sts:SourceIdentity, sts:TransitiveTagKeys and the session tag keys are not read: Floci does not
model source identity or session tags, as the STS page already says.

Closes #8921
2026-11-19 17:17:17 -04:00
Jackson PriceandAndre Kurait 76f9481bb1 fix(codeartifact): retry npm GET transport failures once (#9010)
* fix(codeartifact): retry npm GET transport failures once

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-19 13:50:41 -04:00
Niels Kootstra 9f0390b340 test(cloudformation): build the ElastiCache stack tests' clients through AwsTestClients (#9007)
* test(cloudformation): build the ElastiCache stack tests' clients through AwsTestClients
2026-11-19 13:36:33 -04:00
Murtuza Chhil 09125016fe feat(paymentcryptography): the modes and the keyed hash the reference names (#8984) 2026-11-19 13:33:35 -04:00
Priamo Germosen 66dbdd2935 fix(iam): check Aurora DSQL requests on the clusters they name, from the generated table (#9011)
Aurora DSQL was built by hand: ResourceArnBuilder read a cluster or
stream from its path, or a tagging route's ARN, IamEnforcementFilter
sent DSQL requests there without their operation, the request resources
table held no DSQL operation, and nothing gave a policy condition a
cluster's tags. dsql moves from HAND_BUILT to NAMESPACES, so the table
gives each operation the cluster or stream its path names, or the ARN
its modeled /tags/{resourceArn} carries, from botocore's REST model;
ListClusters, for which the Service Reference lists no resource type, is
checked on cluster/* from a MEASURED entry citing the AccessDenied
message AWS returned in #6328. ResourceArnBuilder's DSQL branch, with
the path and tagged-ARN helpers only it still used, and the filter's
DSQL case go, and the shared tags controller now serves DSQL's
tagging on its modeled route only, refusing the bare /tags. Only DSQL's
operations change in the table. DsqlStoredResourceArns answers a
cluster's stored tags; TagResource and UntagResource give the cluster a
new map under its lock, and its tags field is volatile.
2026-11-19 13:31:17 -04:00
Michael Edwards ede9601b82 fix(lambda): keep the visibility a function sets on failed SQS messages (#9003) 2026-11-19 13:26:45 -04:00