Commit Graph
3519 Commits
Author SHA1 Message Date
Matheus Oliveira 9b4e27c80a fix(iam): authorize KMS operations against the key named in the request (#6458)
* fix(iam): authorize KMS operations against the key named in the request

KMS is JSON 1.1 posted to /, so the path-based key extraction never
found a key and every action was evaluated against key/*: a policy
allowing kms:Decrypt on one key refused that very key, and a policy
restricted to a key restricted nothing. Enforcement now derives the
request's resources the way the KMS permissions reference gives them:
the key-scoped operations name the key the KeyId member names, resolving
an id, an alias or an ARN to the stored key's own ARN; Decrypt without
a KeyId reads the key out of the CiphertextBlob; the alias operations
name the alias and the keys the alias pages give; CreateKey,
GenerateRandom, ListKeys, ListAliases and ListRetirableGrants stay at *.
A request nothing resolves falls back to key/* so the handler answers
its own NotFoundException. ReEncrypt stays the single action AWS splits
into ReEncryptFrom and ReEncryptTo, evaluated against both keys.

Closes #6256

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

* fix(iam): authorize ReEncrypt and the grant operations against the keys they act on

A ReEncrypt without SourceKeyId resolved its source through Decrypt's
reader and trusted a KeyId member ReEncrypt does not even have, so a
caller allowed only on key B could send ciphertext encrypted by a
denied key A, name B everywhere, and get A's data back under B. The
source now resolves the way the handler decrypts: SourceKeyId when the
request names one, otherwise the key the CiphertextBlob itself names.
A RetireGrant carrying only a GrantToken was checked against key/*,
which a key-scoped policy never matches; it now answers the key its
grant belongs to, with the documented key/* fallback for a token nothing
resolves. RevokeGrant and the KeyId-plus-GrantId form of RetireGrant
now name the grant's own key beside the key the request names, so a
pair naming one key while the grant belongs to another can no longer
retire or revoke it.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

* fix(iam): resolve a RevokeGrant target by its GrantId, never a GrantToken

The revoke target lookup preferred a GrantToken the RevokeGrant handler
never reads: a request could name the grant of an allowed key in a token
while its GrantId named the grant of a denied one, pass the check on the
token's key, and have the handler revoke the other grant. The lookup now
passes the GrantId alone, so the checked key is the key of the grant the
handler deletes.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

* fix(iam): fall back when a CiphertextBlob is not a string

A Decrypt or ReEncrypt carrying a CiphertextBlob that is not a string
made binaryValue answer null on the enforcement path and blow up before
the handler could answer its own client error. A blob that is not text
now names every key the account holds, the documented fallback, so the
request is authorized and the handler answers the error AWS answers for
a malformed blob.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

* fix(kms): share the grant token scan and its enforcement lookup

retireGrant scanned the region's grants for a token the same way the
enforcement lookup did; both now go through one findGrantByToken. The
builder's revoke target resolves through the shared grantKeyArn helper
with the members each handler actually reads, the token and the id for
RetireGrant and the id alone for RevokeGrant, whose handler never reads
a token. The two test javadocs that described the enforcement gap as a
review's finding now describe the gap itself.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

---------

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-10-25 21:19:18 -04:00
Andre Kurait 74a932bc50 fix(stepfunctions): honor explicit Lambda task qualifiers (#6563)
Use the effective Lambda qualifier for optimized task authorization, target resolution and executor handoff. Keep embedded qualifier conflict validation aligned with Lambda.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 17:53:47 -04:00
Andre Kurait 615e12dcff refactor(concurrency): add bounded work queues and versioned signals (#6547) 2026-10-25 17:33:29 -04:00
Jimmy Liu Jia bcae24f5fc feat(ssm): match parameter path label filters (#6560)
* feat(ssm): match parameter path label filters

* fix(ssm): match labeled version metadata in path filters
2026-10-25 17:29:17 -04:00
jwoa95 5f63ffb761 fix(rds): terminate target sessions during PostgreSQL restore (#6550) 2026-10-25 17:29:09 -04:00
Ridwan a79cc4d8c4 fix(bedrock-agentcore): delete a memory's events when the memory is deleted (#6554) 2026-10-25 17:21:51 -04:00
Jackson Price 6acd90640d feat(cloudformation): provision AWS::EC2::PrefixList (#6481)
* feat(cloudformation): provision AWS::EC2::PrefixList

An AWS::EC2::PrefixList was stubbed: Ref returned "<LogicalId>-<8 hex>",
Fn::GetAtt the literal "<LogicalId>.<Attribute>", and EC2 held no list, so
a route given its Ref pointed at nothing. Ec2NetworkCfnProvisioner now
creates the customer-managed list through Ec2Service. Ref is its pl- id,
and Fn::GetAtt serves PrefixListId, Arn, OwnerId and Version, the
attributes the registry schema declares.

The schema has no create-only property, and create-only-properties.json
now says so. Without the entry, the engine's name heuristic took
PrefixListName for create-only, so a rename was planned as a replacement
of the list and of the routes and rules that reference it. An update
changes the list in place: its name, capacity, entries and tags. Adding or
removing entries makes a new version and a rename does not, as the EC2 API
reference says. EC2 refuses a request that removes and adds the same CIDR,
which is how a description changes (Terraform's
aws_ec2_managed_prefix_list records the error), so such an entry is added
back by a second ModifyManagedPrefixList call. The first call carries
everything EC2 could refuse, and the capacity the second needs is checked
before the first, so a change EC2 refuses leaves the list as it was. A
rollback puts the prior name, capacity, entries and tags back, and Version
follows the list.

Two updates fail before anything changes: another AddressFamily, which no
EC2 call can change on an existing list, and a new MaxEntries together
with changed Entries, which the CloudFormation and EC2 references both say
cannot change at once. MaxEntries is required to create a list, as the
CloudFormation reference says (aws/aws-cdk#35360 reports the deploy
failing without it); an update that leaves it out keeps the capacity.
Entries and Tags are brought to the template when it, or the previous one,
declares them, so entries or tags no template declared stay. Tags go
through CreateTags after the create, as on the other types in the
provisioner, so EC2 checks them; a tag it refuses fails the create and
removes the new list. A list gone out of band, or a stub an older Floci
left, is replaced by a new one, and a stack delete tolerates only
InvalidPrefixListID.NotFound.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(cloudformation): cover AWS::EC2::PrefixList through boto3

A stack's prefix list is created, resized, given new entries and deleted
through the CloudFormation and EC2 clients of the pinned boto3: Ref and
Fn::GetAtt name the list EC2 describes, a resize keeps the version, new
entries make version 2 of the same list, dropping Tags removes them, and
the list is gone after the stack delete.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* refactor(cloudformation): share optionalInt through ProvisionContext

Ec2NetworkCfnProvisioner and ElbV2CfnProvisioner each carried the same
private optionalInt. An absent, null or AWS::NoValue property stays unset;
a value written into the template, a literal blank included, has to be an
integer; anything else fails with ValidationError "Value of property
<name> must be an integer." It is now ProvisionContext.resolveOptionalInt,
beside resolveOptional, and all seven callers use it: the prefix list's
MaxEntries, the target group's Port and four health check settings, and
the gateway listener's Port.

The two copies differed only in Integer.parseInt against Integer.valueOf
and in building the error through a helper, so neither provisioner
changes behaviour. ProvisionContextTest covers the method directly.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-25 17:16:19 -04:00
Tal Efraim 2ba3118373 fix(sns): report FilterPolicyScope only for subscriptions with a filter policy (#6532)
* fix(sns): report FilterPolicyScope only for subscriptions with a filter policy

* fix(sns): hide a stored FilterPolicyScope while the subscription has no filter policy
2026-10-25 17:07:44 -04:00
jwoa95 c910de57cc fix(ecs): add opt-in dynamic awsvpc host ports (#6509) 2026-10-25 16:56:08 -04:00
Matheus Oliveira f4cd3110e7 fix(elasticache): honor SecurityGroupIds on ModifyReplicationGroup (#6467)
* fix(elasticache): honor SecurityGroupIds on ModifyReplicationGroup

A modify that names SecurityGroupIds now replaces the whole stored list
on the replication group, so DescribeCacheClusters reports the new
groups on every member with Status=active; a modify that names none
leaves the memberships untouched, which the Query protocol cannot
distinguish from an empty list anyway.

Closes #6463

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

* fix(elasticache): read the modify security groups through the shared parse

optionalSecurityGroupIds walked the two Query spellings a second time;
it now reuses parseSecurityGroupIds with the same isEmpty-to-null check
the user group lists use, and the new compatibility test declares its
responses with explicit types.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

---------

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-10-25 16:55:00 -04:00
Andre Kurait 7c9c8ee398 fix(stepfunctions): retain Lambda qualifiers for provisioned capacity (#6540)
Carry the invoked Lambda alias or version into execution capacity selection after authorization, preserving the unqualified path.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 16:52:20 -04:00
Jimmy Liu Jia 28d934fd8e fix(codebuild): paginate ListReportGroups responses (#6524)
* fix(codebuild): paginate ListReportGroups responses

* fix(codebuild): snapshot report group pagination keys

* refactor(codebuild): share listing pagination and snapshot project keys
2026-10-25 16:48:57 -04:00
Mario Toffia 3389621dc6 fix(apigateway): take the usage plan lock on delete (#6546) 2026-10-25 16:47:45 -04:00
Hector Ventura 7b9e877f7a docs: document the standalone floci-aws binary (#6114)
* docs: document the standalone floci-aws binary

#5844 publishes a standalone floci-aws binary with every release but no
page says so. The installation guide gains a Native binary section: the
asset per platform, download and checksum, cosign and attestation
verification, the glibc 2.34 floor and the macOS quarantine, which
services need Docker and what happens without it, where persistent state
goes and the host-<port> container namespace, configuration, and running
it under systemd or launchd.

It also says the state directory is shared across ports, so two
persistent binaries need their own FLOCI_STORAGE_PERSISTENT_PATH, and a
persistent binary should restart on the port it used before.

The README points at the section, and the Docker images page no longer
says the arm64 baseline build is image-only.

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

* docs: say where the image listens and which binaries the image ships

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

* fix: report EC2 as metadata only without Docker, and create ~/.local/bin on install

Without a Docker daemon an EC2 launch does not fail by default:
Ec2ContainerManager marks the instance running as metadata only, and
fails the launch only when security-group enforcement is on. The startup
warning listed EC2 with the services that fail on use, and the binary
page did the same. EC2 now joins the metadata-only group, and moves to
the fail-on-use group when enforcement is enabled.

The install steps create ~/.local/bin before installing into it and run
the binary by its full path, and the namespace note says that binaries
on separate hosts sharing a port and a remote daemon need their own
FLOCI_DOCKER_RESOURCE_NAMESPACE.

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

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-25 16:41:47 -04:00
Jimmy Liu Jia 13d0452a20 fix(backup): paginate ListBackupVaults (#6541) 2026-10-25 16:35:11 -04:00
Hector Ventura 5fbc51f537 refactor(eks): build and read ARNs through AwsArnUtils (#6484)
EKS minted its access entry, addon and pod identity association ARNs and the
STS assumed-role username by concatenating the parts of a split cluster or
principal ARN, and read account and region from the cluster ARN by splitting
it. Those now go through AwsArnUtils: parse for the fields, Arn.global for the
assumed-role ARN, and one childArn helper that keeps the cluster's partition,
region and account. The role ARN checks keep their conditions and errors.

No behaviour change. EKS no longer has any arn-concat or arn-split site, so
the partition baseline drops by 15.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-25 16:34:42 -04:00
Andre Kurait 2bc53956fd fix(s3): preserve bucket collision errors with IAM enforcement (#6539)
Exclude foreign bucket policies from CreateBucket authorization while preserving caller permission checks, creation-setting checks and same-owner policy enforcement.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 16:33:29 -04:00
Priamo Germosen 413bb884aa fix(codeartifact): close two gaps left by #6435's status overrides (#6506)
The npm republish guard's lenient-scan fallback (for a readme over the
strict parser's string-length limit) only extracted version names for
the Archived/Disposed check, leaving readmeByVersion empty; forwardSpooled's
post-write bookkeeping (byte accounting, readme capture, and the
redispose-protection call) keys off that map, so a version going through
this fallback silently skipped all of it. The lenient envelope now
populates the full guard input.

A PyPI upload with no version form field skipped both the filename-vs-field
check and the Archived/Disposed guard outright, since neither had a
coordinate to check (hectorvent's follow-up on #6435). pypiserver trusts
the uploaded filename over the form regardless, so a missing field now
falls back to matching the filename against any version of the package
that currently carries a status override before letting the upload through.
2026-10-25 14:51:49 -05:00
Priamo Germosen 932af22f4a fix(iam): check requests on the resources they name (#6511)
Under IAM enforcement a request is checked against the resources it acts
on. ResourceArnBuilder builds their ARNs by hand for 17 namespaces;
every other request was checked on *, so a grant scoped to a resource
was refused and a deny scoped to one never applied.

AWS's Service Reference lists the resource types each action acts on and
each type's ARN formats, but not which request member names a resource;
botocore's models give the members. A new generator,
tools/aws/regen_iam_request_resources.py, joins the two into
src/main/resources/aws/iam-request-resources.json: for each operation,
the action it is checked as, that action's resource types and the
resources its request names, by a member holding a resource's ARN or by
members filling the variables of a type's format, matched by name. A
variable nothing fills is left open, as a service mints a new resource's
id; a type nothing names is not checked, as an action lists the optional
resources its requests may use; and types named only through the same
members are alternatives, of which the one named in full is kept.
Corrections give a v2 CreateLoadBalancer the load balancer of its Type,
application when it gives none (a Type outside application, network and
gateway is now refused, as AWS refuses it, rather than read as an
application load balancer the table does not name), and read
StartExecution's and StartSyncExecution's stateMachineArn up to a #, as
Floci runs the machine before Step Functions Local's test case. A state
machine's version or alias, stateMachine:<name>:<qualifier>, is checked
on the state machine's ARN, as Step Functions authorizes it, so an
execution started through one is the state machine's too.

RequestResources reads them from a JSON or CBOR body or a Query form,
for the namespaces the table reads, and ResourceArnBuilder uses them
where it has no branch. They are read for the operation the request is
dispatched as, which IamEnforcementFilter resolves and checks the action
of (the Query action, the JSON target or the Smithy RPC v2 path's
operation), never for an X-Amz-Target or Action the request names again,
and as the handlers read them: a list only from a list, a number or a
null as its text. A member whose botocore shape is an account id gives
the account of the types named by variables: ECR's registryId selects
the registry its handler acts in, and a JSON null is no registry, the
caller's, as ECR reads it. ECR's
BatchGetRepositoryScanningConfiguration, whose AWS request has no
registryId, no longer reads one: it acts in the caller's registry, where
IAM checks it. An ARN value counts when it matches the format of a type
the action acts on; one naming another account or Region is checked as
given and as each resource of that name a handler may act on instead, in
its account or the caller's and its Region or the request's (ECR's tag
handlers keep the ARN's account in the request's Region). A request
naming none, or whose action acts on no resource type, stays on *, as
AWS checks it. A create's tagging action is checked on the same
resources, except where the create makes a resource under a parent its
action acts on: CreateListener acts on a load balancer and CreateRule on
a listener, and their tags are checked on the new listener or rule,
built from the parent's ARN with the type word replaced and its own id
open. The table gives these from the formats: a child type's is its
parent's with one id appended. So the AWS Load Balancer Controller's
policy, which allows AddTags at creation only on target groups and
application and network load balancers, and on listeners and rules, now
holds.

The first namespaces read are Elastic Load Balancing, ECR, Step
Functions and Cognito user pools (298 operations); the 99 others Floci
serves are listed as not read yet, with their reason, and
RequestResourceNamespacesIntegrationTest fails for a served namespace in
none of the lists. make iam-request-resources-check, part of
aws-data-check, re-derives every operation from the pinned botocore;
make iam-request-resources-verify, part of iam-data-verify, checks the
actions, types and formats against AWS, and the IAM data drift workflow
also runs on a change to the table or its generator.

Not in this change: the 99 other namespaces, Query lists other than
Name.member.N, identifiers inside structures (SetRulePriorities,
CreateStateMachineAlias' routing configuration) and EventBridge.
2026-10-25 14:51:39 -05:00
Priamo Germosen b66ee9ecf0 feat(core): make the image pull timeout configurable (#6521)
ImageCacheService gave each attempt at pulling an image a hard-coded
five minutes, and a pull three attempts. An EMR Serverless runtime is
3.5 to 4.3 GB, so on an ordinary connection the first run of a release
Docker did not have yet failed with "Could not pull image" before the
pull could finish.

floci.docker.image-pull-timeout-seconds, or
FLOCI_DOCKER_IMAGE_PULL_TIMEOUT_SECONDS, now sets the limit for each
attempt. Its default, 300, keeps today's five minutes, and it must be
at least 1, checked with the other Docker timeouts in
DockerClientProducer.

Follow-up to #6469.
2026-10-25 14:08:34 -05:00
Priamo Germosen 1ea49d9432 fix(emr-serverless): end a cancelled run when Docker refuses the stop (#6510)
The Docker runner's stop() sent the driver a docker stop and caught
only a 404 or a 304. Any other Docker error escaped the executor task
that cancels a run, unlogged, and the run stayed CANCELLING until its
driver exited by itself, which a STREAMING run's never does.

stop() now only marks the run as stopping. The run's own thread, which
looks at the driver every 250 ms, reads the mark at its next look,
ends the run and removes the driver, as it does at a timeout, so no
Docker error can lose a cancel. The removal is
ContainerLifecycleManager's stopAndRemove, which logs what Docker
refuses and removes by force.

Follow-up to #6469.
2026-10-25 14:08:23 -05:00
Daniel Adler 08bd1c7938 fix(sqs): release dedup reservations after failed enqueue (#6535) 2026-10-25 14:17:46 -04:00
Niels Kootstra d1b9baeb4a fix(lambda): split a failed Kinesis batch with BisectBatchOnFunctionError (#6523)
* fix(lambda): split a failed Kinesis batch with BisectBatchOnFunctionError

* refactor(lambda): share the stream batch split rule between the pollers
2026-10-25 14:13:47 -04:00
Tal Efraim a4196c19e3 fix(sqs): store RedrivePolicy and RedriveAllowPolicy as compact JSON (#6531) 2026-10-25 14:13:02 -04:00
floverfelt 4d35617518 feat(lambda): add init-timeout-seconds so a cold runtime gets its own init budget (#6442)
* feat(lambda): add init-timeout-seconds so a cold runtime gets its own init budget

* fix(lambda): count the init budget from container start, apply it only until the first /next poll, and cover it in SQS visibility

* test(lambda): check the dispatch wait directly instead of on the clock, and correct the init budget docs
2026-10-25 14:03:34 -04:00
Daniel Adler 74b626870f fix(sqs): preserve delivery deadlines and receipts in storage (#6530) 2026-10-25 13:49:49 -04:00
Mario Toffia 74cab790f2 fix(apigateway): patch a usage plan's throttle, quota and stage throttles (#6418)
* fix(apigateway): patch a usage plan's throttle, quota and stage throttles

* fix(apigateway): parse a usage plan stage throttle patch value as API Gateway does

* fix(apigateway): validate an UpdateUsagePlan op as API Gateway does

* test(apigateway): pin how a usage plan stage throttle patch reads numbers and rolls back

* fix(apigateway): refuse removing a usage plan method throttle path that names no method

* fix(cloudformation): keep a stage's throttle when a usage plan update leaves the stage in place
2026-10-25 13:45:03 -04:00
Aniket Shukla 3aa8149d08 fix(globalaccelerator): paginate accelerator listings (#6522)
* fix(globalaccelerator): paginate accelerator listings

* fix(globalaccelerator): validate pagination field types
2026-10-25 13:38:39 -04:00
Jimmy Liu Jia 57257e198f fix(athena): paginate ListWorkGroups (#6519)
* fix(athena): paginate ListWorkGroups

* fix(athena): use stable workgroup pagination cursors
2026-10-25 13:23:36 -04:00
Andre Kurait 57889bbb45 perf(docker): decode completed log frames with JDK fast paths (#6525)
Use bulk fragment appends and direct UTF-8 decoding while preserving bounded line reassembly and callback lifecycle behavior.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 13:21:02 -04:00
Andre Kurait 4a6e59fb3e fix(route53): control time in VPC overlap integration tests (#6514)
Control monotonic time in the real HTTP overlap fixture without changing production delay semantics.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 13:14:57 -04:00
TATSUNO “Taz” Yasuhiro 2a5f52e014 fix(dynamodb): return set members in DynamoDB's order (#6520)
* fix(dynamodb): return set members in DynamoDB's order

DynamoDB stores a set's members in its own order, not as written. A string
set is ordered by code point, a number set by value and a binary set by
unsigned byte. Every read of the item shows that order, ReturnValues
included. Floci kept the order of the write, so a set came back as written
and an ADD appended its new members at the end.

Sets are now put in that order when an item is stored, on PutItem, batch
and transact writes, PartiQL inserts and the UpdateItem paths.

* perf(dynamodb): parse each set member once when ordering it

The number and binary comparators parsed both members on every comparison,
so one sort of a large set decoded each member many times. The key is now
computed once per member and per sort.

* chore(dynamodb): sort set members through one keyed sort

The three set types now share one sort that computes each member's key
once and keeps the member nodes. A string set is ordered by its UTF-8
bytes, which is code point order. The integration test uses the shared
DynamoDB request helper.

* chore(dynamodb): order export set members through DynamoDbSetOrder
2026-10-25 12:28:42 -04:00
Kenshin Okinaka ba82e0aeaa fix(ses): order the send checks and read v1 bulk destinations like SES (#6490)
* fix(ses): verify the sender before the stored template and tenant associations

A tenant-scoped SES v2 send refused an unassociated resource with the
403 before anything else, and SendEmail and SendBulkEmail looked a
stored template up before checking the sender. AWS reports a missing
configuration set, then an unverified sender or return path, then a
missing stored template, and the tenant association 403 last. The
tenant lookup and the DISABLED refusal stay early; the template lookup
and the association check now run inside the send, after sender
verification.

SendBulkEmail and SendBulkTemplatedEmail now verify the sender and
return path once for the whole call, unless no entry has a recipient.

* fix(ses): run the tenant gate inside the send and order v1 bulk like v2

The first half of the tenant gate (lookup and DISABLED refusal) moves
from the v2 controller into the send paths, so the association check
reuses the tenant it found, and a raw message is read for its
X-SES-CONFIGURATION-SET header only when the tenant is DISABLED.

v1 SendBulkTemplatedEmail passes its stored template to the send, which
looks it up after sender verification as v2 SendBulkEmail does.

* fix(ses): read every v1 bulk destination entry like AWS

SendBulkTemplatedEmail stopped reading Destinations.member.N at the first
entry with no addresses, replacement data or tags. An empty ToAddresses
list, which boto3 sends as a bare empty-valued key, ended the list there,
so later entries were dropped and a lone empty entry was answered "At
least one destination is required." instead of reaching the send.

The handler now reads up to the highest member index. A missing Template
(with no TemplateArn), missing Destinations, and an entry without a
Destination or a skipped index are model violations, answered together as
one 400 ValidationError ahead of the address syntax, the template selector
and the destination count. In the send, an entry with no recipient beside
entries with one fails alone with "Missing required header 'To'." on v1
and v2 alike, while a request in which no entry names a recipient still
answers every entry "Destination cannot be empty", ahead of sender
verification and the template lookup. All of it was probed.

* refactor(ses): build the value-less not-null violation in SmithyValidationErrors

Some operations answer a missing member as "Value at '<path>' failed to
satisfy constraint: Member must not be null", without the null that
SmithyValidationErrors.notNull puts after "Value". SesQueryHandler,
SesExportJobService and SesReceiptRuleService each built that text
themselves. SmithyValidationErrors.notNullWithoutValue now builds it
beside notNull, and the three use it.
2026-10-25 10:27:24 -04:00
TATSUNO “Taz” Yasuhiro 29eae434f6 feat(lambdaweb): delete the oldest unused revisions past 50 as AWS does (#6518)
* feat(lambdaweb): delete the oldest unused revisions past 50 as AWS does

When a revision turns Active and the function has more than 50, AWS
deletes the oldest revisions no endpoint routes to until 50 are left.
Failed revisions count and go too. A new Failed revision deletes nothing.

* docs(lambdaweb): place the revision cleanup note after the code copy note
2026-10-25 10:12:15 -04:00
Andre Kurait fe928d67ab perf(stepfunctions): wake nested waits on execution status changes (#6513) 2026-10-25 09:52:12 -04:00
Andre Kurait 985a2ea949 fix(elbv2): admit new targets after one successful health check (#6507)
* fix(elbv2): admit new targets after one successful health check

Preserve recovery thresholds and verify initial admission against a real HTTP target.

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

* fix(elbv2): scope initial health admission to application targets

Preserve network and gateway target-group health thresholds.

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

* fix(elbv2): retain initial health checking reason

Preserve the intermediate reason for network and gateway targets below their success threshold.

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

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 09:30:22 -04:00
Jimmy Liu Jia 4244e64833 fix(ec2): honor DHCP options dry runs and restore default set (#6448) 2026-10-25 09:15:34 -04:00
Aniket Shukla ddb94d6c15 fix(batch): paginate multi-node job listings (#6512)
Honor maxResults and nextToken for MNP node summaries using the existing Batch paging conventions. Keep exhausted pages terminal and avoid overflow for large offsets.
2026-10-25 09:09:12 -04:00
Jimmy Liu Jia b90b671c21 fix(cognito): verify admin contact attribute updates (#6474)
* fix(cognito): verify admin contact attribute updates

* fix(cognito): roll back failed admin contact updates

* fix(cognito): preserve verification during overlapping callbacks

* fix(cognito): scope verification cleanup to issued codes

* fix(cognito): retry undelivered admin attribute codes

* test(cognito): update tracked code fixtures

* fix(cognito): share contact updates after sender failures
2026-10-25 08:59:27 -04:00
Aniket Shukla 9c8d2ba58d fix(glue): paginate security configurations (#6496)
* fix(glue): paginate security configurations

Honor GetSecurityConfigurations page size and continuation tokens using the existing Glue paging helper. Enforce the documented 1-200 range and preserve account and region isolation.

* refactor(glue): share action-specific pagination limits

Centralize range validation for security configurations, workflows and triggers. Defer list loading until after validation to preserve dependent-job error ordering and keep the existing default and general helper limit.
2026-10-25 08:33:22 -04:00
Vũ Thế Huy 0a13e4259e feat(redshift-serverless): manage namespace admin credentials (#6491) 2026-10-25 08:24:23 -04:00
Jackson Price 93f1904106 fix(cloudformation): delete the REST API whose Body import fails on create (#6472) 2026-10-25 08:10:19 -04:00
Andre Kurait 73fc6fd0c1 fix(ec2): retain firewall identity during container teardown (#6492)
Capture the primary ENI before asynchronous termination can race with service-side interface release. Cover unregister after the interface list is cleared at the removal boundary.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 08:07:27 -04:00
Mario Toffia bab7af3a21 fix(apigateway): return a usage plan's API stages, throttle and quota (#6360)
* fix(apigateway): return a usage plan's API stages, throttle and quota

* fix(apigateway): refuse a usage plan create whose text or number member is a list, map or wrong scalar

* fix(apigateway): refuse an unknown usage plan quota period before any other create check

* fix(apigateway): check a usage plan create body against API Gateway's vendored request shapes

* fix(apigateway): read a usage plan create body the way API Gateway does

* fix(apigateway): truncate a usage plan's integer limits without a double rounding

* refactor(apigateway): reuse SmithyValidationErrors and a shared request shape lookup
2026-10-25 07:55:54 -04:00
Aniket Shukla da9f7e93b1 fix(cognito): keep attribute updates after sender failures (#6493)
* fix(cognito): keep attribute updates after sender failures

* fix(cognito): withdraw stale codes after sender failure

Invalidate prior verification codes when a failed sender handover retains a different active or pending contact destination. Preserve codes for unchanged contacts the send loop never reached.
2026-10-25 07:48:48 -04:00
Vũ Thế Huy b15bc708fa feat: deliver Redshift audit logs to CloudWatch Logs (#6432)
* feat: deliver Redshift audit logs to CloudWatch Logs

* fix: correct Redshift audit logging and account isolation

* docs: remove Redshift audit logging design document

* fix: reject transaction control in Redshift Data API batches

* fix: track Redshift batch audit changes through savepoints

* fix(redshift-data): guard explicit batch commits against cancellation

* fix(redshift): preserve audit regions and redact ambiguous passwords
2026-10-25 07:42:48 -04:00
TATSUNO “Taz” Yasuhiro 8f3a6eafeb fix(lambdaweb): give the code bucket check the version as s3:VersionId (#6483) 2026-10-25 07:39:20 -04:00
TATSUNO “Taz” Yasuhiro 3dc5d356d0 feat(dynamodb): export the changes of a period as an incremental export (#6480)
* feat(dynamodb): export the changes of a period as an incremental export

* fix(dynamodb): write characters above U+FFFF in export lines as UTF-8

* feat(dynamodb): refuse incremental export periods over 24 hours

* fix(dynamodb): wait for unfinished writes when an incremental export reads items

* fix(dynamodb): write no incremental export record when only the order of set members changes
2026-10-25 07:38:55 -04:00
Matheus Oliveira 9242c7003a fix(organizations): preconfigure the account access role in a new account (#6444)
* fix(organizations): preconfigure the account access role in a new account

CreateAccount was returning a member account with no OrganizationAccountAccessRole, so sts:AssumeRole into it failed on a role that does not exist. The role AWS preconfigures is now created through IAM's own creation, in the new account's namespace: it trusts the management account and carries AdministratorAccess. CreateAccount's RoleName is honored, defaulted to OrganizationAccountAccessRole, and validated with the pattern the reference publishes, including the AWSServiceRoleFor refusal. Invited accounts do not get the role, which is AWS behavior. IAM owns the how behind an interface, the way ScpProvider already decouples IAM's reads of organization policy.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

* fix(organizations): answer RoleName errors with their reasons and provision the role as the new account

CreateAccount's InvalidInputException for a bad RoleName now carries the
reference's Reason, INVALID_PATTERN for a pattern violation and
INVALID_ROLE_NAME for the reserved prefix, asserted at the service, the
wire and the SDK levels. The provisioner itself now runs createRole and
attachRolePolicy inside RequestScopes.callAs(memberAccountId), so
validation, ARN minting and storage stay IAM's own and the hand-built
role with its account-aware storage branch is gone. EntityAlreadyExists
is the one error caught, falling back to the role that is there, and
the integration test builds its requests and auth through the
OrganizationsRequests and EnforcementFixtures helpers.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

---------

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-10-25 07:31:36 -04:00
Hector Ventura e5d93dba5e chore(ci): gate hand-built ARN concatenation, probes and splits (#6482)
The partition-literal gate only saw ARNs that name a partition. Code that
builds, checks or cuts an ARN by hand names none, so it passed the gate while
bypassing the helpers that get every partition right, and the number of
startsWith("arn:") probes grew from 84 to 98 in two weeks.

Three code-scope categories join the per-file baseline:

- arn-concat: "arn:" + ..., except a pattern built from PARTITION_REGEX
- arn-probe: startsWith("arn:")
- arn-split: split(":") on a value named like an ARN

The baseline starts with today's 159 sites, so new ones fail and migrating
existing ones to AwsArnUtils shrinks it. AwsArnUtils's own formatter and
parser carry partition-literal escapes. PartitionSmokeInventoryTest also
counts a concatenated ARN as minting, and AGENTS.md names the categories.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-25 07:16:27 -04:00