Commit Graph
3698 Commits
Author SHA1 Message Date
Liron Cohen 4fffb5a8c1 feat(apigatewayv2): route VPC link integrations to Cloud Map service instances (#6753) 2026-10-27 19:06:02 -04:00
Jimmy Liu Jia a8151ff56b fix(stepfunctions): paginate ListExecutions (#6727)
* fix(stepfunctions): paginate ListExecutions

Honor maxResults and nextToken after applying statusFilter, with newest-first scoped cursors. Add regression coverage for continuation pages and token isolation.

* fix(stepfunctions): snapshot ListExecutions status

* fix(stepfunctions): order terminal executions by stop time

* fix(stepfunctions): expire signed ListExecutions tokens

* fix(stepfunctions): compact ListExecutions continuation scope

* fix(stepfunctions): reuse expiring history pagination

* fix(stepfunctions): validate history token before execution lookup
2026-10-27 19:05:29 -04:00
Liron CohenandliRONCO11 41717057c5 refactor(apigateway): decide execute-api host routing before applying it (#6763)
* refactor(apigateway): decide execute-api host routing before applying it

ApiGatewayExecuteApiHostFilter.decide() returns a RouteDecision for a
host and path without touching the request. filter() applies it:
account and region of the API owner, the REST or HTTP API rewrite, or
the 404 for a disabled endpoint. The lookups for an API with an owner
run under the owner's account, and the caller's account and region are
restored afterwards. No change in behavior for execute-api requests.

* test(apigateway): give the API owner its own region in the restore tests

The owner and the caller used the same region, so the tests passed even
if underAccountOf() did not restore the caller's region. The owner now
uses eu-west-1, and each restore test asserts the caller's region.

---------

Co-authored-by: liRONCO11 <7966063+liRONCO11@users.noreply.github.com>
2026-10-27 19:04:45 -04:00
Jimmy Liu Jia 4bf399b5a1 fix(sagemaker): honor list sorting options (#6745) 2026-10-27 18:53:54 -04:00
TATSUNO “Taz” Yasuhiro 3370d0ff62 chore(style): remove var and inline qualified names from more files no open PR touches (#6768)
Each var now names the type javac inferred for it, and each fully qualified type name is
imported instead. The suppression list keeps only the files that open pull requests edit.
2026-10-27 17:53:15 -05:00
Priamo Germosen 32cbf73adc fix(eventbridge): answer PutEvents to a missing event bus as AWS does (#6748)
A PutEvents entry naming an event bus that does not exist failed with
InvalidArgument "EventBus not found" and counted in FailedEntryCount.
The EventBridge User Guide, on handling PutEvents failures: "If you use
PutEvents to publish an event to an event bus that does not exist,
EventBridge event matching will not find a corresponding rule and will
drop the event. Although EventBridge will send a 200 response, it will
not fail the request or include the event in the FailedEntryCount value
of the request response." botocore models no not-found error for
PutEvents, only InternalException, and the API Reference lists none.

Such an entry is now answered as published, with an event id and not
counted as failed, and dropped: it reaches no rule and no archive.
Floci logs the drop at INFO. An entry that is not valid, missing a
required field or with a Detail that is no JSON object, still fails as
before, whichever bus it names.

Only the PutEvents action changes. Floci's own deliveries to a bus, for
a rule's event bus target, a pipe, a schedule, a Lambda destination or
a replay, still fail an entry for a bus that does not exist: the
guide's sentence is about the action, and no document says how AWS
answers those deliveries.

Step Functions' optimized events:putEvents integration calls the
action, so a task publishing to a missing bus no longer fails with
EventBridge.FailedEntry; step-functions.md listed that as a deviation,
which is gone. Its two tests that used a missing bus to have an entry
rejected now leave out the entry's Source instead, and a third checks
that a task publishing to a missing bus succeeds.
2026-10-27 17:34:34 -05:00
Andre Kurait b6d9e4c7a4 feat(lambda): list provisioned concurrency configurations (#6758)
* feat(lambda): list provisioned concurrency configurations

Dispatch List=ALL to a paginated view of existing provisioned concurrency allocations. Preserve qualified ARNs, current status and existing pool lifecycle.

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

* fix(lambda): share function ARN region resolution

Share the existing Lambda region validation and error message across function resolution and provisioned-concurrency lookup/listing.

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

---------

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-27 18:13:24 -04:00
Aniket Shukla c37e0aaba9 fix(ecr): explain unavailable registry responses (#6752)
* fix(ecr): explain unavailable registry responses

* refactor(ecr): share registry errors and data-plane fixtures
2026-10-27 18:13:10 -04:00
Jackson Price c2482e2844 fix(appconfig): list deployments with the settings they started with (#6759)
ListDeployments built each deployment's summary from the deployment
strategy as it is now: once a strategy that one of an environment's
deployments used was deleted, ListDeployments on that environment
answered 404 "Deployment strategy not found", while GetDeployment
still returned the deployment. The summary also took the profile's
current name over the one the deployment recorded. AWS documents these
values as the deployment's own (GetDeployment's
DeploymentDurationInMinutes is "Total amount of time the deployment
lasted"), and DeleteDeploymentStrategy, unlike DeleteEnvironment and
DeleteConfigurationProfile, has no ConflictException for a resource
in use.

- StartDeployment records the strategy's DeploymentDurationInMinutes,
  FinalBakeTimeInMinutes, GrowthFactor and GrowthType on the
  deployment, and StartDeployment and GetDeployment return them, as
  AWS documents for both.
- ListDeployments reports the recorded profile name and strategy
  settings, so deleting the strategy leaves earlier deployments as
  they started. Floci serves no UpdateDeploymentStrategy or
  UpdateConfigurationProfile yet; the recorded values also keep
  earlier deployments as they were once anything changes a strategy
  or renames a profile in place.
- Deployments stored by earlier builds load unchanged: GetDeployment
  still omits the settings they never recorded, and ListDeployments
  reads them from the strategy while it exists and reports them as
  null once it is gone, instead of failing.

Type is unchanged: it is still read from the profile.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-27 16:44:29 -04:00
Andre Kurait 0332b5cc24 fix(lambda): preserve alias identity in qualified reads (#6757)
Preserve the requested alias ARN while returning the resolved published version configuration. Retain snapshot-versus-latest regressions for both read APIs.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-27 16:24:36 -04:00
Jackson Price 65df465fc3 fix(ec2): create the EBS volumes a launch's block device mappings describe (#6734)
* fix(ec2): create the EBS volumes a launch's block device mappings describe

RunInstances gave every instance one 8 GiB root at /dev/xvda and took
only the root's VolumeType from its block device mappings. Launches now
plan their volumes before anything is stored: the AMI's mappings, or an
8 GiB root when it maps none, with the launch's own entries merged over
them field by field, under either spelling of a device. The instance is
rooted at the AMI's RootDeviceName. NoDevice removes an AMI device and a
VirtualName entry takes one over, never the root. Snapshot sizes apply,
a smaller size, a missing snapshot, a missing or invalid device name and
a device named twice are refused with nothing stored, and IOPS and
throughput are kept only for the types that take them.

DescribeInstances lists every attached volume with its own state and
DeleteOnTermination, and termination treats the root like any other
volume. Volume reads settle attachments to an instance that ended
terminated without TerminateInstances, as a failed container launch does.

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

* fix(ec2): delete every volume of a launch that is rolled back

A launch undone after its instances were stored, an instant CreateFleet
whose later launch fails or a RunInstances whose capacity reservation
was taken in the meantime, terminated its instances. Termination keeps
the volumes whose DeleteOnTermination is false, so the refused launch
left them behind as available.

Each launch now records the volumes it creates on its reservation, and
the rollback deletes those termination left unattached. The ids do not
depend on attachments, which a read can end first when a failed
container's volumes are settled. DeleteOnTermination is never changed,
so an instance whose termination fails keeps its volumes as they were,
and a volume attached to another instance since stays.

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

* fix(ec2): size a snapshot-only root from its snapshot

For an AMI that maps no root device, the launch gave the root a fallback
8 GiB size before merging the launch's own entries, so a root entry
naming only Ebs.SnapshotId kept that size and a larger snapshot was
refused with InvalidBlockDeviceMapping. The fallback size now applies
only after the merge, when the root names neither a size nor a
snapshot.

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

* perf(ec2): read volume attachments once per DescribeInstances

Listing an instance's block device mapping scanned the whole volume
store, once for every instance in a RunInstances or DescribeInstances
response. The attachments of all the response's instances are now
gathered in one scan per region and looked up per instance.

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

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-27 16:13:37 -04:00
Aniket Shukla ecb39dd7e0 fix(backup): paginate backup plan listings (#6714)
* fix(backup): paginate backup plan listings

* test(backup): share SDK clients and seed large fixtures locally
2026-10-27 15:52:32 -04:00
jwoa95 9303ec2872 fix(cloudtrail): isolate account buffers and partition matching (#6689)
* fix(cloudtrail): isolate account buffers and partition matching

* fix(cloudtrail): honor deployment partitions and cover region deletion

* refactor(cloudtrail): share account delivery test helpers
2026-10-27 15:49:38 -04:00
Andre Kurait 196ae07aa8 fix(lambda): preserve Kubernetes bootstrap paths (#6585) 2026-10-27 15:47:30 -04:00
Kenshin Okinaka 24d989cb07 refactor(ses): build not-null violations with SmithyValidationErrors (#6746)
The "Value at '<path>' failed to satisfy constraint: Member must not be
null" violation was still written by hand in 26 places across the SES
services and controllers. They now call
SmithyValidationErrors.notNullWithoutValue(path), keeping each site's
badRequest or validationError factory.

The length checks on websiteURL, additionalContactEmailAddresses and
certificateArn, which tested a lower and an upper bound side by side,
now go through SmithyValidationErrors.sizeOutOfRange.

The message text is unchanged, and the private wrappers stay because
their enum and other constraint callers still use them.
2026-10-27 12:03:18 -04:00
Kenshin Okinaka afdd4b46ec fix(ses): answer invalid v1 bulk destination entries on their own (#6742)
SendBulkTemplatedEmail rejected the whole call for an entry with more
than 50 recipients, for template data that is not a JSON object, and
for a tag with an empty name. AWS answers each of these with a 200 and
that entry's InvalidParameterValue ("Recipient count exceeds 50.",
"The template data is invalid", "The tag name must be specified."),
while the other entries still send. DefaultTemplateData that is not a
JSON object, or a DefaultTags tag with an empty name, fails every
entry. Within one entry an address syntax error wins over an empty tag
name, which wins over invalid template data, which wins over the
recipient count.

A DefaultTags or ReplacementTags tag without a Name or a Value is a
model violation, and a skipped tag index is a tag with neither, listed
in the 400 ValidationError after the top-level members. A missing or
empty DefaultTemplateData is a 400 InvalidParameterValue, "The default
template data does not exist".

The handler marks such an entry with its message, and the send answers
it in the per-entry loop after the address syntax. The recipient limit
stays in the service: per entry for v1, whole call for v2 SendBulkEmail,
which was not probed.
2026-10-27 11:43:25 -04:00
TATSUNO “Taz” Yasuhiro 33e74f7728 chore(style): remove var and inline qualified names from files no open PR touches (#6710)
* chore(style): remove var and inline qualified names from files no open PR touches

Each var now names the type javac inferred for it, and each fully qualified type name is
imported instead. The suppression list keeps only the files that open pull requests edit.

* chore(style): catch qualified names before a member, a nested type or .class, and on annotations

UnnecessaryFullyQualifiedType does not report those. A MatchXpath rule under the same id now
does, with the same exemption for a simple name that another type in the file uses. The files
no open PR touches import them instead.
2026-10-27 11:38:32 -04:00
Vũ Thế Huy 3d30bbcf7a feat(redshift): add event subscriptions with SNS delivery (#6705)
* feat(redshift): add event subscriptions with SNS delivery

Add Create, Modify, Delete and DescribeEventSubscriptions, subscription tagging, and publication of matching events to the subscription's SNS topic, honouring the topic policy.

* fix(redshift): deliver events from a consistent subscription snapshot and reject nameless subscription ARNs

Delivery copied no state under the lock modifySubscription holds, so a concurrent
update could change the topic between matching and publishing. Match and publish
from a snapshot taken under that lock.

A tag ARN ending in eventsubscription: passed an empty name to
describeSubscriptions, which lists all subscriptions. Reject it up front.
2026-10-27 11:34:38 -04:00
Liron CohenandliRONCO11 c538fb5520 feat(cloudfront): model AWS managed cache policies (#6698)
* feat(cloudfront): model AWS managed cache policies

Serve the 7 AWS managed cache policies that AWS documents with full
settings through GetCachePolicy, GetCachePolicyConfig and
ListCachePolicies, by their AWS IDs. ListCachePolicies honors
Type=managed|custom. UpdateCachePolicy and DeleteCachePolicy refuse a
managed policy with IllegalUpdate and IllegalDelete, as for managed
origin request policies. A cache behavior that references a managed
policy now forwards what that policy selects.

The 4 Amplify-only policies are not modeled: AWS publishes their IDs
but not their settings.

Closes #6691

* refactor(cloudfront): share the policy list merge and the managed ETag

listCachePolicies, listOriginRequestPolicies and listResponseHeadersPolicies
now call one helper for the Type check, the merge of custom and managed
policies, and the sort by name. Each method keeps its own paging, so the
response headers list still rejects an unknown marker.

The managed policy ETag is one constant beside the managed policy maps.

---------

Co-authored-by: liRONCO11 <7966063+liRONCO11@users.noreply.github.com>
2026-10-27 11:34:06 -04:00
jwoa95 3890378728 fix(elasticache): enforce user permissions in backend ACL sessions (#6608)
* fix(elasticache): enforce user permissions in backend ACL sessions

* fix(elasticache): block replication commands for ACL users

* fix(elasticache): deny persistence and migration commands
2026-10-27 10:36:05 -04:00
Andre Kurait d58ce5c31c fix(cloudformation): validate prefix list entries before update diffing (#6725) 2026-10-27 10:33:15 -04:00
Aniket Shukla a4ef9eaa6a fix(ecs): renew task role credentials at the published URI (#6728) 2026-10-27 10:32:00 -04:00
Oleksandr Nikolaichuk 0d74eb5eeb fix(cloudformation): treat an AWS::NoValue property as omitted before provisioning (#6726) 2026-10-27 10:31:02 -04:00
Mario Toffia 3f294c3529 fix(apigateway): send x-amzn-ErrorType on REST gateway responses (#6687)
* fix(apigateway): send x-amzn-ErrorType on the API key 403

* fix(apigateway): send x-amzn-ErrorType on every REST gateway response

Authorizer, validation, media-type, configuration and Lambda proxy
failures now carry the error type AWS pairs with their gateway response
type, customised or not, measured on a REST API in eu-west-1.

* fix(apigateway): keep a gateway response's own x-amzn-ErrorType where AWS does

A gateway response that maps gatewayresponse.header.x-amzn-ErrorType sends
only that value for the validation, media type, configuration and
integration types, and sends it ahead of the default for the authorizer
and API key types, as measured on AWS.
2026-10-27 10:28:34 -04:00
Jackson Price 64069f9ccd fix(cloudwatch): report StateTransitionedTimestamp and AWS's StateValue enum order (#6719) 2026-10-27 10:26:26 -04:00
lex00 0c44312101 fix(cloudformation): read network ACL entry PortRange and RuleNumber with resolveOptionalInt (#6724) 2026-10-27 10:26:21 -04:00
TiM 77f2477641 fix(kinesis): signal closed shard exhaustion and return child shards (#6716)
Return a terminal iterator and direct child metadata from coherent shard snapshots. Preserve final-batch delivery and prevent replay in Pipes and Firehose without changing checkpoint commit boundaries.
2026-10-27 10:24:57 -04:00
Mario Toffia 7ca109b595 fix(apigateway): route greedy resources below a path parameter (#6690)
A REST API resource such as /v1/admin/catalog/{kind}/{name+} never
matched: greedy resources were matched by the literal text prefix
"/v1/admin/catalog/{kind}/", which no request path starts with, and the
template matcher skipped greedy resources. Every parameterised resource
also ranked ahead of every greedy one.

Match every resource segment by segment and rank all matches the way
AWS does: more literal segments, then more segments before the greedy
parameter, then the leftmost literal. extractPathParams now yields the
parameters before a greedy one, so {kind} reaches the proxy event,
$input.params and integration parameter mappings.

Closes #6686
2026-10-27 10:24:07 -04:00
Hector Ventura 52a2e37f69 chore: import fully qualified types, appsync to iot (#6738) 2026-10-27 10:17:55 -04:00
Jimmy Liu Jia 28e72d2496 fix(stepfunctions): paginate state machine listings (#6717) 2026-10-27 10:17:13 -04:00
Hector Ventura 2eaf268727 chore: import fully qualified types, lifecycle to verifiedpermissions (#6739) 2026-10-27 10:15:26 -04:00
TATSUNO “Taz” Yasuhiro 1f9b3993e2 chore(iam): build the remaining access denied reasons with AccessDeniedMessages (#6715)
Lambda's layer check, Lambda Web's cross-account check, DSQL's cluster
checks and the S3 denial event in the enforcement filter wrote the refusal
reasons by hand, and DSQL kept its own copy of the message builder. They now
use AccessDeniedMessages. The messages stay the same.
2026-10-27 10:13:24 -04:00
Matheus Oliveira 97ecbdd656 fix(iam): authorize S3 Control routes as their own s3 actions (#6681)
* fix(iam): authorize S3 Control routes as their own s3 actions

S3 Control clients sign with the s3 scope, so under IAM enforcement its
/v20180820 routes fell through to the S3 data-plane rules and were
checked as s3:GetObject, PutObject or DeleteObject on a bucket named
v20180820, which no policy can name: a role allowed
s3:ListTagsForResource on a bucket was denied its tag list, and
Terraform's AWS provider, which reads bucket tags through S3 Control,
never fell back to GetBucketTagging, leaving aws_s3_bucket unrefreshable.

Map the routes to the actions the Service Authorization Reference gives
them: ListTagsForResource, TagResource and UntagResource are checked
against the ARN the route names, as written and decoded as the handler
decodes it; ListAccessPoints and the account-level Block Public Access,
to which the S3 User Guide gives no resource, against every bucket in
the request's partition; the account control takes the
PutAccountPublicAccessBlock and GetAccountPublicAccessBlock actions. A
data-plane operation under the same prefix keeps its own bucket-and-object
ARN. A denial now answers in S3 Control's own ErrorResponse envelope, the
only one the s3control SDK deserializers read, so the message naming the
missing action survives to the client.

Closes #6537

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

* fix(iam): answer the three control-route gaps the review found

A tagging query on a control route still reached the data-plane override,
so GET /v20180820/tags/<arn>?tagging was checked as s3:GetObjectTagging
while the handler read the bucket's tags: the control rules now match
before the query overrides, and a caller holding only the object action
is denied where one holding the control action passes. A tagging ARN in
the regional form was rewritten to the global form downstream and its
bucket misread, so a policy naming the regional form the API reference
requires was denied; the provider now keeps a control tagging ARN as
written and reads the bucket it names. The account actions returned
arn:<partition>:s3:::*, which a bucket-scoped statement matches; they
now return the literal wildcard, so a bucket-scoped statement grants no
account-wide action, the convention the KMS no-resource actions
follow.

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

* fix(iam): drive S3 Control route authorization from AWS's own data

The s3control model is vendored in rest-routes.json, regen_rest_routes
carries it under the s3 scope, as s3control signs with s3, and
IamRestRouteCoverageTest checks every S3 Control route Floci serves
against the Service Reference. The hand-written S3_CONTROL_RULES and
S3_CONTROL_ACTIONS lists are gone: the control routes are entries of the
one rules table, flagged to match before the S3 data-plane query
overrides so ?tagging on a tagging route cannot re-point the
authorization, and a denial answers in S3 Control's ErrorResponse
envelope by following the route instead of an action-name list. The
account-level Block Public Access is the one written-down exception, as
the reference files S3's and S3 Control's Get, Put and
DeletePublicAccessBlock under the bucket actions and the Block Public
Access page gives the account level its own actions.

A tagging ARN is read once, by the handler, the IAM check and the
bucket-policy lookup together: S3ControlArnUtils decodes and parses it
with AwsArnUtils.parse, and the regional form's account is the account
whose bucket the request acts on, so a grant on
arn:aws:s3:us-east-1:222222222222:bucket/reports no longer lets a
caller in 111111111111 read and change the tags of its own same-named
bucket: it reads and writes 222222222222's bucket, and answers
NoSuchBucket when that account holds no bucket of the name.

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

* fix(s3): read the policy provider's ARNs without decoding them

The provider received every ARN already decoded, the data plane's from
the request path and a control tagging one re-minted by the rule that
read it off the wire, but the one-parse helper decoded again, so an
object key carrying a plus sign or a literal percent sequence changed
its bytes before IAM checked it: a policy on arn:aws:s3:::example/a+b.txt
denied the very object it named. The provider parses without decoding
now; the wire decode stays where it belongs, at the control request
boundary.

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

---------

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-10-27 10:12:51 -04:00
Hector Ventura 6b10bf24c9 chore: import fully qualified types in events, pipes and scheduler (#6736)
Replaces inline fully-qualified class names with imports in five files and drops the two NoFqcn suppressions that covered them. ScheduleInvoker and its test each import one of the two NetworkConfiguration types and keep the other qualified, with a comment naming the clash.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-27 10:08:57 -04:00
Andre Kurait 52c9c51a7b fix(dynamodb): enforce the default Select for IAM (#6702)
* fix(dynamodb): enforce effective read selection in IAM policies

Preserve generated action and request-member coverage, effective read projections, PartiQL attributes and independent BatchGetItem contexts. Rebase on current main and scope condition data verification to its vendored file, generator, tests and imported modules, retaining all existing IAM data gates.

Signed-off-by: Andre Kurait <akurait@amazon.com>

* fix(dynamodb): derive transaction read conditions from modeled members

Use the generated transaction Get member paths before GetItem IAM extraction, so ignored legacy projection members cannot authorize whole-item reads.

Signed-off-by: Andre Kurait <akurait@amazon.com>

---------

Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-10-27 10:05:55 -04:00
Jackson Price c6927cca96 fix(ec2): write Amazon-provided VPC IPv6 blocks in canonical form (#6692)
CreateVpc and AssociateVpcCidrBlock with AmazonProvidedIpv6CidrBlock built
the /56 by concatenating random hex digits, so a group that drew a leading
zero kept it: about one block in eight came back as, for example,
2600:1f18:21c4:0200::/56 instead of 2600:1f18:21c4:200::/56, and one in
256 wrote out an all-zero fourth group instead of folding it into the
"::". The block now goes through CidrCanonicalizer, which writes RFC 5952
text. VPCs already held in a persistent store keep the text they were
created with.

The endpoint test that derives /64 subnets from the VPC block now works
from the address bytes, because canonical text drops a zero fourth group.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-26 23:01:59 -05:00
Aniket Shukla f24cab1622 fix(ssm): resolve parameter ARNs in public reads (#6713) 2026-10-27 00:00:36 -04:00
Hector Ventura 31b48c30be refactor(cloudformation): check ARNs through AwsArnUtils (#6486)
* refactor(rds): read and check ARNs through AwsArnUtils

RdsQueryHandler read the region of an instance ARN and rebuilt its subnet
group ARN by splitting it; those now use regionOrDefault and parse, and the
service-local regionFromRdsArn copy is gone. Six startsWith("arn:") probes in
RdsService become isArn where the result is the same for every input: replica
link names Floci stored itself, the instance and cluster list filters, the
tag-resource region default and the cluster lookup by reference.

The seven other probes stay. They treat any value starting with arn: as an
attempted ARN, so a malformed one gets InvalidParameterValue (or its own not
found error); isArn would send it down the identifier path and change the
error.

No behaviour change. The partition baseline drops from 144 to 136.

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

* refactor(cloudformation): check ARNs through AwsArnUtils

Seven startsWith("arn:") probes become AwsArnUtils.isArn where the result is
the same for every input: the deleted-stack and live-stack lookups by ARN,
where a malformed ARN resolves to no stack either way; the change set ARN
check that only runs after resolveChangeSetName has rejected malformed ARNs;
and the Batch, Bedrock AgentCore and IAM policy provisioners' checks of
physical ids Floci minted itself.

The six other probes stay: DeleteChangeSet, DeleteStack, the change set name
resolver and the change set's stack lookup give a malformed ARN its own
ValidationError or no-op, and the EC2 instance and ECS provisioners read
template values, where isArn would change how an "arn:" value resolves.

No behaviour change. The partition baseline drops from 136 to 129.

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

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-26 22:59:04 -05:00
Jimmy Liu Jia fc5598c579 fix(codebuild): paginate ListBuilds and ListBuildsForProject (#6707)
* fix(codebuild): paginate build list operations

* fix(codebuild): reject missing project name on paged build listing

* refactor(codebuild): share pagination cursor handling
2026-10-26 23:51:35 -04:00
Mario Toffia 989f714c21 feat(cloudwatch): record alarm history and serve DescribeAlarmHistory (#6670) 2026-10-26 23:50:59 -04:00
Aniket Shukla ed77a1d4ee fix(eventbridge): paginate ListConnections results (#6709) 2026-10-26 23:45:30 -04:00
Hector Ventura 258994c1b9 feat(ui): serve the Console Contract v2 manifest and pass its URL to the console (#6711)
* feat(ui): serve the Console Contract v2 manifest and pass its URL to the console

/_floci/info and /_localstack/info now carry manifest_version, console_contract, cloud, endpoint, health_url, tls, services, defaults and ui, keeping their existing keys. FlociUiManager injects FLOCI_INFO_URL so the console can read it.

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

* test(ui): drop the DisplayName from the manifest test

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

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-26 23:42:00 -04:00
Hector Ventura 78278f4a04 refactor(rds): read and check ARNs through AwsArnUtils (#6485) 2026-10-26 23:34:32 -04:00
TATSUNO “Taz” Yasuhiro b0cd70401b feat(iam): check lambda:PassNetworkConnector from a table generated from the Service Reference (#6699)
* feat(lambdaweb): check lambda:PassNetworkConnector as AWS does

A revision that sets egressNetworkConnectorArn needs
lambda:PassNetworkConnector on the connector version ARN as given.
Lambda checks it after the connector ARN checks and before it looks
the connector up.

A refusal names the first policy type that refuses, in the order
identity policies, permissions boundary, session policy. An explicit
deny in a managed policy or a boundary also names that policy's ARN.

* fix(lambdaweb): apply service control policies to the account root when passing a connector

* fix(lambdaweb): name the managed policy that denies a session token caller

* feat(iam): check lambda:PassNetworkConnector from a generated table

Move the check out of Lambda Web into the IAM enforcement filter, where
iam:PassRole is checked. tools/aws/regen_iam_passed_network_connectors.py
joins AWS's Service Reference and botocore's models into
src/main/resources/aws/iam-passed-network-connectors.json, and the filter
reads it for Web Functions, MicroVM images and MicroVMs.

A MicroVM request that names no egress connector, or an empty list, passes
the Lambda-managed INTERNET_EGRESS connector, and RunMicrovm with no ingress
connector passes HTTP_INGRESS, as AWS checks them. AppSync's data source
operations are listed too, but botocore's model has no member for their
connector, so they are not read.

The refusal text now comes from AccessDeniedMessages, which
LambdaTaskAuthorizer and GetStackOutputRoleAuthorizer use as well.
2026-10-26 23:26:25 -04:00
lex00 8a3d769c70 refactor(route53): use DomainNames.isWithin for the record set zone check (#6712) 2026-10-26 23:24:34 -04:00
lex00 9e14ffe92a fix(ec2): keep Ipv6CidrBlock and IcmpTypeCode on network ACL entries (#6680) 2026-10-26 23:24:00 -04:00
Priamo Germosen 454d7b6ebd feat(codeartifact): add ListPackages for every format (#6622)
Lists every package a repository holds across all five formats, with
each package's origin-control restrictions, filterable by format,
namespace prefix, package-name prefix, and publish/upstream
restriction. generic is enumerated by scanning stored package-version
and origin-config records repository-wide; each container-backed
format gets a new RepositorySidecarManager#listPackages primitive,
confirmed live against each real sidecar: Reposilite has no
list-everything endpoint, so Maven walks its directory tree, peeking
one representative child per directory to tell a group/artifact
directory apart from a plain namespace segment (both look identical
one level up); Verdaccio's /-/all, pypiserver's root simple index, and
BaGetter's Search resource (pressed into service for this admin
listing only, not the native NuGet protocol) answer directly.
2026-10-26 21:52:20 -05:00
Priamo Germosen 0410a2b4ea fix(iam): check PutEvents on each entry's event bus (#6704)
PutEvents was checked on `*`: the request-resources table gave it no
resources, as its bus is a field of each entry, which no rule read. A
policy allowing or denying events:PutEvents on one event bus therefore
did not hold for publishing.

Each entry's EventBusName is "the name or ARN of the event bus to
receive the event", and "if you omit this, the default event bus is
used". Bus policies grant events:PutEvents on `event-bus/<name>`. The
EventBridge User Guide checks events:PutEvents against "the bus, once
per entry in the request", and says "Publishing is authorized against
the bus ARN for every entry in the request. If one entry fails an
authorization condition, EventBridge denies the whole request." It says
so in its section on the Custom Event Bus, which keeps the events: IAM
namespace of the Classic one; nothing in the guide says otherwise for a
Classic bus, whose API model lists AccessDeniedException among the error
codes of an entry without saying when.

The table now reads PutEvents' `Entries[].EventBusName`, a field of each
of a list's structures, one resource for each entry:

- The generator takes a correction filling a variable from such a field,
  and finds a field whose pattern takes an ARN before a name inside a
  list's structures, as it does a top-level member, so the field gets
  `arnOf` from botocore.
- The loader reads `Name[].Field` in `fill`, and in `absent` and `arnOf`
  when it fills a variable.
- The reader gives one value for each entry, the `absent` value for an
  entry that names no bus, gives a null or a blank, as the handler's
  `asText(null)` does, and none for no entries, which stay on `*`. Each
  value that is an ARN puts its own entry's bus in that ARN's account and
  Region, checked as given and as the caller's, which the handler
  publishes to; until now the first ARN a request gave set the account
  and Region of every value.

The filter checks every resource, so one entry for a bus the caller may
not publish to refuses the whole request, as the guide gives it.

Not in this change: the events:source and events:detail-type condition
keys (Floci supplies neither), EndpointId (the handler ignores it), and
PutPartnerEvents, which stays on `*`.

The upstream drift check on a pull request now verifies only the
vendored IAM files the pull request changes, each with its generator,
its tests and the modules that generator imports. It verified all six
files whichever one a pull request touched, so this change, which
touches only the table of the resources requests name, failed on the
service namespace list, which AWS's index stopped matching when it
dropped `codestar`: drift in a file the change leaves alone. The
pull request's job passes the paths its merge commit changes to
`make iam-data-verify CHANGED=...`, which names each check it skips;
the weekly and manual runs, and a diff that cannot be read, still
check every file, so the namespace list's drift is reported there.
2026-10-26 21:52:09 -05:00
Priamo Germosen 5c9eb3eb30 feat(emr-serverless): send Spark driver output to CloudWatch Logs (#6703)
With CloudWatch logging enabled on a job run in the docker runner mode,
its Spark driver's standard output and error now go line by line, while
it runs, to Floci's CloudWatch Logs, as well as to Floci's log.

- Which configuration: the run's cloudWatchLoggingConfiguration, or
  else the application's; the user guide merges them by configuration
  type, and "enabled": false at the run removes it.
- Where: the log group logGroupName, /aws/emr-serverless by default,
  and the log streams <logStreamNamePrefix>/applications/<applicationId>
  /jobs/<jobRunId>/SPARK_DRIVER/stdout and .../stderr, with attempts/1/
  before SPARK_DRIVER for a retried run on 7.1.0 or later, as for S3.
  The guide gives the default group and the stream up to its worker
  type; the stdout and stderr streams under it are as Dagster's EMR
  Serverless client reads them, and Airflow's operator builds the same
  prefix. Group and streams are created as needed, in the run's account
  and Region.
- What: the driver's stdout and stderr, "By default, EMR Serverless
  publishes only the driver stdout and stderr logs". A logTypes that
  names some types sends only the driver's it names, so none of them
  when it names only SPARK_EXECUTOR: the API reference's logTypes is
  "The types of logs that you want to publish to CloudWatch".

ContainerLogStreamer gets attachByStreamForAccount, which sends a
container's standard output and error to log streams of their own; its
reassembly callback now keeps the stream each line came from. The
shared Spark runner uses it when a job carries a CloudWatch destination.
2026-10-26 21:51:57 -05:00
TATSUNO “Taz” Yasuhiro 0cc4984356 fix(dynamodb): bill each BatchGetItem key like a GetItem (#6708)
* fix(dynamodb): bill each BatchGetItem key like a GetItem

DynamoDB bills each key of a BatchGetItem as a GetItem of the whole item. That is half a
unit per 4KB, doubled for a consistent read, with the minimum charged for a key that finds
nothing. A projection does not lower it, and a vector attribute counts at its billed size.

* fix(dynamodb): size BatchGetItem items only when capacity is requested
2026-10-26 22:05:20 -04:00