Commit Graph
2063 Commits
Author SHA1 Message Date
Priamo Germosen d250eb276e fix(s3): refuse an unserved sub-resource and keep a key's own slashes (#8019)
A bucket request that names a sub-resource Floci does not serve fell through
to the bucket's own operation: DELETE ?metadataConfiguration and
?metadataTable deleted an empty bucket, GET ?abac and ?metadataTable listed
it, PUT ?abac created a bucket that did not exist, and HEAD ?acl ran
HeadBucket. The same happened to a sub-resource sent with a method AWS defines
none for, such as DELETE ?versioning. A POST naming one got a 400 asking for
?delete, and no IAM check at all.

The bucket handlers, HEAD and POST among them, now refuse such a request
where they would have run the bucket's operation. A sub-resource the AWS model
defines for the method is answered 501 NotImplemented, and one it defines for
other methods only 405 MethodNotAllowed, as DELETE ?accelerate already was.
A browser-form upload and DeleteObjects still run first on a POST. The
sub-resources are read from botocore's S3 model in the vendored
rest-routes.json, so one AWS adds is refused once the table is regenerated,
not run as the bucket, and their names from the parsed query parameters, so
an escaped & inside a value, ?prefix=reports%26abac, names none. The IAM
check matches: an unserved sub-resource is checked as the action the Service
Reference gives the operation it names (DELETE ?metadataTable needs
s3:DeleteBucketMetadataTableConfiguration, not s3:DeleteBucket, and
POST ?metadataTable s3:CreateBucketMetadataTableConfiguration), which lets
the route coverage test drop the two operations it exempted.

A key made only of slashes was read as the bucket too: JAX-RS collapses
PUT /bucket// to the bucket's path, so it ran CreateBucket and was checked as
s3:CreateBucket, where it writes the key "/". A filter now escapes such a
key's slashes in the path the router matches, path-style and virtual-hosted,
so S3 and the IAM check both act on the object, arn:aws:s3:::bucket//. One
trailing slash, /bucket/, is still the bucket.

The resource ARN a request is checked against read the same collapsed path,
which named another object whenever a key carried a slash of its own.
PUT /bucket//email.txt stores the key "/email.txt" and the controller and the
condition resolver both read it that way, from the path as it arrived, while
the ARN came out as arn:aws:s3:::bucket/email.txt: a grant on that object
covered this one, and a statement naming bucket//* matched nothing it names.
A key with a double slash inside it, a//b.txt, was checked as a/b.txt the
same way. The ARN is now built from the key those two already read, through
one reader the three share, so the object stored, the object a condition
describes and the object a policy is matched against are the same one. An S3
Control operation, told apart by the operation as before and not by its path,
names no object and is left as it was: the ARN in its path is still taken as
written.
2026-11-11 10:53:14 -06:00
Vũ Thế Huy 4d4f20b812 feat(redshift): execute S3 auto-copy and COPY JOB RUN (#7898)
A job failure (SQLState 42xx or 0A000) cannot clear on its own, so re-marking the bucket made every sweep reconnect and log a WARN. The job now waits for the next upload. The predicate is shared with CopyJobRunner via S3TransferException.isJobFailure.
2026-11-11 12:49:20 -04:00
Andre Kurait b954b4fb87 fix(dynamodb): honor OR in legacy Query and Scan filters (#8031)
* fix(dynamodb): honor OR in legacy Query and Scan filters

Pass ConditionalOperator to the shared legacy read-filter evaluator while retaining default AND behavior and read-before-filter pagination. Reuse one nested-map fixture builder for the four existing expressions. Separate follow-up requested in upstream #8023.

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

* fix(dynamodb): validate legacy binary filters before matching

Validate every legacy QueryFilter and ScanFilter binary operand through the existing attribute validator before evaluating items. Keep ConditionalOperator validation first and retain valid-filter short circuit behavior. Add actual JSON wire invalid and valid binary controls.

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

---------

Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-11-11 12:46:45 -04:00
galsuchetzky-act aea5c9ad05 fix(glue): paginate catalog database, table, partition and version lists (#7827) 2026-11-11 12:23:16 -04:00
Vũ Thế Huy e37f45f714 feat(redshift-serverless): allow cross-account restore of a snapshot its policy shares (#7801) (#7803)
* feat(redshift-serverless): allow cross-account restore of a snapshot its policy shares (#7801)

RestoreFromSnapshot with an ownerAccount other than the caller's now reads the
snapshot from the owner's account and evaluates its resource policy for
redshift-serverless:RestoreFromSnapshot. A policy that allows the caller or the
caller's account grants the restore, an explicit Deny wins, and a snapshot with
no policy is not shared (AccessDeniedException). The dump is read from the
owner's directory and the restore targets the caller's namespace and workgroup.

* fix(redshift-serverless): restore a shared snapshot by the owner's ARN and check its policy under the service lock

A cross-account RestoreFromSnapshot with the owner's snapshotArn failed validation
because only the caller's account was accepted. The snapshot and its policy were also
checked before the service lock was taken, so a deletion, expiry or policy revocation
could land between the check and the restore. The check now runs under the lock.

* fix(redshift-serverless): evaluate a shared snapshot's policy through a ResourcePolicyProvider (#7801)

Move the snapshot policy check out of the service and into IAM enforcement, as SQS, SNS and S3 do:

- RedshiftServerlessResourcePolicyProvider supplies the snapshot's policy and the account in its ARN.
  A statement with no Resource, as in AWS's own PutResourcePolicy example, applies to the snapshot.
- redshift-serverless leaves NOT_COVERED: namespaces, workgroups and snapshots are found by name through
  StoredResourceArns, and RestoreFromSnapshot and GetSnapshot name the owner's snapshot when ownerAccount is set.
- Drop RedshiftServerlessSharedSnapshots and the snapshot-taking restoreFromSharedSnapshot overload.

* fix(redshift-serverless): derive snapshot account from the generator and find endpoint access ARNs (#7801)

Take ownerAccount as an account member in the request-resources generator and honor
account on found resources, replacing the hand-written CORRECTIONS entries and the
two-name branch in find. Answer endpointAccess in find. Share one call in
handleRestoreFromSnapshot.

* fix: derive account members from service models and reuse endpoint lookup
2026-11-11 11:57:28 -04:00
Mario Toffia 013e9b7c2e fix(cognito): answer CORS on the OAuth token, revoke and userInfo endpoints (#8027) 2026-11-11 11:54:44 -04:00
Jimmy Liu Jia d0d0e0eef8 fix(codedeploy): preserve deployment group creation tags (#8025) 2026-11-11 11:08:16 -04:00
Oleksandr Nikolaichuk 195a036b63 fix(cloudformation): clear dropped API Gateway v2 route and authorizer settings (#7992) 2026-11-11 10:49:06 -04:00
Andre Kurait e5a35d6e62 fix(dns): preserve the queried address in UDP replies (#7988)
Bind the embedded DNS listener to the advertised address so connected resolvers accept replies on multi-interface hosts. Preserve the current network-selection behavior.

Ensure the test-owned Vert.x instance is closed even if closing its DNS socket fails. Preserve all UDP source assertions.

Extract a package-private query helper accepting name, type and transaction ID and use it in the reply-source regression. Preserve production DNS behavior and all existing assertions.

Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-11-11 10:37:56 -04:00
Oleksandr Nikolaichuk 55bb5c0f6e fix(cloudformation): clear dropped descriptions and the trail key prefix (#7884) 2026-11-11 09:17:46 -04:00
dgl-aiandDavid Guardiola b144879127 feat(xray): serve traces, summaries, the service graph and sampling (#7733)
X-Ray is the one AWS service local stacks ask for and Floci does not have: SQS
and SNS already carry AWSTraceHeader, and nothing on the other end accepts the
segments that header points at. This serves the ingest loop, the summaries that
read it back, the service graph a console draws from it, and the sampling the
X-Ray daemon polls on its own timers.

The API is REST JSON on literal paths (/TraceSegments, /Traces, /TraceSummaries,
/ServiceGraph, /TraceGraph, /GetSamplingRules, ...), which S3's path-style routes
would swallow as a bucket name, so a request signed for the xray credential scope
is rewritten onto an internal prefix and every other request keeps its path. Only
the paths Floci serves are claimed.

What Floci stores is the segment document as sent: BatchGetTraces has to answer
exactly what PutTraceSegments accepted, so re-serialising through a model would
change what the caller reads. The summaries and the graph parse those documents
on read, which keeps the stored bytes the caller's and costs nothing while a local
stack is idle.

A filter expression is parsed, not pattern-matched: service("name"), hasError,
hasFault, hasThrottle, duration, responsetime, http.status, annotation.key,
comparisons, AND, OR, NOT and parentheses. Anything outside that set is refused
with InvalidRequestException naming what it could not read, because accepting a
filter and ignoring half of it hands a caller a superset and looks like a pass. A
lone '!' is refused the same way rather than left as a delimiter no branch
consumes, and responsetime is compared in seconds, the unit AWS uses.

The graph collapses segments into services by name, derives edges from parent ids,
and reports AWS's SummaryStatistics and cumulative DurationHistogram per node and
per edge. A node is a service, not a document shape: the same service seen once
with an http block and once without is one node.

Sampling answers the Default rule AWS serves in every Region, so a daemon has
something to sample at before any rule exists, and five rules per Region on top of
it. It is answered, not adapted: the reservoir is reported as the quota and
renewed every 10 seconds rather than decremented per report, and the service page
says so.

A local emulator runs for days, so the store is bounded to 10000 traces per Region
with AWS's 30 day window, oldest evicted first. A bad document is reported under
UnprocessedTraceSegments with its reason instead of failing the whole call, and
100 documents per call is the AWS limit, enforced.

Co-authored-by: David Guardiola <davidguardiola@gmail.com>
2026-11-11 08:50:26 -04:00
Tyler Webb 8eaf5bf59c feat(apigatewayv2): support IntegrationSubtype and invoke SQS-SendMessage on HTTP APIs (#7969)
CreateIntegration, UpdateIntegration, GetIntegration(s), OpenAPI import and
AWS::ApiGatewayV2::Integration now carry IntegrationSubtype. A subtype is
accepted only on an HTTP API AWS_PROXY integration with payload format 1.0
(the default when a subtype is set), and its RequestParameters must map every
required member of the action and nothing it does not take. SQS-SendMessage is
the supported subtype. The JSON 1.1 path keeps RequestParameters keys as sent,
since subtype parameters are PascalCase member names.

An HTTP API route whose AWS_PROXY integration has an IntegrationSubtype now
runs that AWS service action instead of resolving a Lambda function from the
integration URI. RequestParameters are mapped at invoke time: static values,
whole expressions such as $request.body, $request.body.<JSONPath>,
$request.header/querystring/path, $context and $stageVariables, and
expressions embedded as ${request.header.X}. Region selects the action's
region. A required parameter that maps to nothing answers 400
MissingParameter. The response is 200 with the action's result in the
<Action>Response/<Action>Result envelope; an action error keeps its status.
Lambda AWS_PROXY and HTTP_PROXY dispatch are unchanged.

Every subtype AWS defines is now known, with its required and optional parameters from the AWS reference, so create and update validate all of them instead of rejecting the ones Floci does not invoke. Only SQS-SendMessage carries a service action.

The subtype check is a package-private static method, and OpenAPI import and reimport run it over every x-amazon-apigateway-integration while planning, before any route or integration is deleted or created.

$request.body.<path> read a scalar through json-path as a JsonNode and threw ClassCastException, which escaped as a 500. The value is now read as an Object and converted, and resolution runs inside the dispatch error handling.

MessageAttributes and MessageSystemAttributes are parsed as JSON templates first and expressions are resolved only inside their string values, so a header holding quotes or braces stays one literal string instead of adding attributes.

Subtype parameters also resolve accountId, apiId, domainName, httpMethod, path, requestTime, requestTimeEpoch, routeKey and stage from $context. A subtype without a service action answers 500 at invoke.

UpdateIntegration keeps a field the request leaves out, so an AWS::ApiGatewayV2::Integration update that drops IntegrationSubtype kept the old one. The provisioner now clears it explicitly, records the prior subtype in the rollback snapshot and restores it when the update fails.

A number or boolean value is read as its text, and an object or array value is a 400 BadRequestException instead of an unchecked conversion error.

Adds invoke cases for $request.body.<field>, a header that tries to break out of its MessageAttributes value, and $context variables; a stored-but-not-invoked SQS-PurgeQueue integration; a reimport with an invalid subtype that leaves the API unchanged; and number and object RequestParameters values on the JSON protocol. Queue creation now sits inside the cleanup block.

A MessageAttributes or MessageSystemAttributes value that does not parse as a JSON object was interpolated as raw text, so a request value could add or change members of the attributes object. It is now an InvalidParameterValue 400; whole source expressions such as $request.body.attributes or ${request.body.attributes} still resolve as before.

- A required parameter mapped to null or a blank string is rejected like a missing one.
- A MessageAttributes or MessageSystemAttributes value must be a JSON object or a source expression.
- Number and boolean RequestParameters values sent to the REST endpoints are read as text, and object or array values are a 400 instead of a ClassCastException.
- UpdateIntegration that adds a subtype to an integration without one, and sends no PayloadFormatVersion, stores 1.0 as CreateIntegration does.
- The create, update and OpenAPI import paths share one payload format default.

- $context.requestId is the request's gateway id, honouring a valid x-amzn-RequestId override, instead of a fresh UUID.
- $context.domainName is the Host the request arrived on, falling back to the execute-api host, and $context.domainPrefix, extendedRequestId and protocol resolve.
- $context.path carries the stage prefix for a named stage, as HTTP API authorizer identity sources do.
- An integration without a Region parameter calls the service in the API's region, or the default region when the request carried none.

An x-amazon-apigateway-integration in an AWS::ApiGatewayV2::Api Body dropped integrationSubtype and requestParameters, so the API was created with a plain AWS_PROXY integration that never reached the service action. Both are now passed to CreateIntegration, which validates them as it does for every other caller. The PayloadFormatVersion default for AWS::ApiGatewayV2::Integration uses the shared helper.

The rollback snapshot restored the subtype only when the integration had one, so a failed update that added a subtype left it in place. The snapshot's subtype is now restored as recorded, null included, and a subtype change no longer marks the update as one whose other fields cannot be rolled back.

The template reader now fails on trailing tokens, so a value such as {"a":1} trailing no longer passes CreateIntegration and then has its tail dropped. The call-time check on a resolved JSON parameter uses the same reader instead of the application ObjectMapper, so create and invoke accept the same values.

A parameter value starting with $ was taken as an expression even when it named no source, such as "$5 off" or the typo $request.heder.x, so it passed CreateIntegration and resolved to nothing on every call. CreateIntegration, UpdateIntegration and OpenAPI import now answer it with a BadRequestException. The accepted sources are $request.header., $request.querystring., $request.path., $request.body and $request.body., $context. and $stageVariables., checked for a whole-value expression, each embedded ${...} expression, and the string values of a JSON parameter's object. A $ elsewhere in a value stays static text, so mixed templates are unchanged.

UpdateIntegration replaced RequestParameters wholesale, so an update that
set one optional parameter on an SQS-SendMessage integration dropped
QueueUrl and MessageBody and then failed the required-parameter check.
AWS merges: a named key is added or replaced, a key sent as an empty
string is removed, and an omitted key is kept. The merge applies to every
HTTP API integration, and the subtype check runs on the merged map.

The AWS::ApiGatewayV2::Api Body path passed requestParameters through as
objects, so an object-valued MessageAttributes was rejected as not a
string. It now reads every value with the importer's own conversion: a
number or boolean as its text, and an object or array as its JSON text.

A whitespace-only value is a valid SQS message body, and how API Gateway
treats one is unmeasured, so create now applies the same isEmpty check
invoke does instead of rejecting blank values.

ApiGatewayV2Service.stringParameters already reads number and boolean values as text and rejects object and array values, so the handler no longer converts them too.
2026-11-11 08:44:22 -04:00
Suja Shaj 3d3e94dcc6 fix(cloudformation): give a DB instance its security groups and encryption (#7867)
An AWS::RDS::DBInstance created through CloudFormation never received
its VPCSecurityGroups or StorageEncrypted, so describe-db-instances
showed neither. Both now reach the instance on create.

A stack update that changes the groups moves the instance to them in
place, and one that drops them puts a standalone instance on its VPC's
default group, as AWS does; a cluster member keeps its groups. A
rollback puts the previous groups back. StorageEncrypted can only be
set at create, so changing or dropping it replaces the instance: the
old one is deleted once the update commits and kept when it rolls
back. A custom-named instance refuses the change, as on AWS.

Part of #7603

The rollback test of a security group change now starts from two groups
and from none, as well as from one, so a saved list that kept only its
last group, or saved nothing for an instance that had none, fails it.
The line that saves the list now creates the array first, which reads
more plainly.

The docs and the encryption record's Javadoc now say that an instance
created before StorageEncrypted was applied, whose template sets it
through a parameter, does not see a change made only through that
parameter on its first update, as Ec2Tags.ownedKeys already notes for
tags.

The DB instance and DB cluster arms refuse a custom-named replacement
through CfnExceptions.customNamedReplacement, and the private copy is
gone.

The DB cluster's createOnly record and the AssociatedRoles record are
CreateOnlyInputs constants now, beside the DB instance's encryption
record, so all three are read, written, put back on a rollback and
cleared on commit through it. The attribute names are unchanged, so a
stack created before keeps its records, and an update that leaves the
cluster record as it was still saves no copy of it.

One thing changes with it: the roles record an update overwrites is now
saved every time, where it used to be saved only when no saved copy was
there. A committed in-place update used to leave that copy on the
resource, so a stack from then could have its roles record rolled back
to an older one by the first update that fails; a test covers it.

The encryption record's Javadoc and the docs now say that the previous
template resolves on the update, so a change made only through a
parameter, or anything else the update changes, is not seen.

An update whose template changed a cluster member's VPCSecurityGroups
moved the member to the new groups. On AWS the handler sends that change
to ModifyDBInstance and RDS refuses it for a member, whose groups are
its cluster's, so the update fails. It now fails the same way, with
InvalidParameterCombination and RDS's message, before anything on the
instance changes.

The change is read from the template, as AWS's handler reads it, so a
member whose list stays the same still updates, including one a stack
created before Floci applied the groups. Refusing the property outright
would fail a list that matches the cluster's, which the schema allows.
2026-11-11 00:49:50 -04:00
Priamo Germosen dfec9737a6 feat(iam): check Lake Formation, Macie and Inspector by their REST routes (#7869)
Under enforcement a REST route no rule maps and no vendored model names
runs unchecked. Lake Formation, Macie and Inspector were among those:
of their 33 served routes only Inspector's Disable had a rule, added by
hand. AWS's Service Reference gives 32 of those 33 actions no resource
type, so each is authorized on "*", which is what the route join added
in #7461 already checks when the model is vendored.

Vendors the three models, so all 33 are checked as their operation's
action. A caller holding no grant for them is now refused where the
request used to pass; that is the behaviour change.

The 33rd is Macie's CreateMember, on the POST /members it shares with
Security Hub, which AWS authorizes on the member it makes and with the
tags it carries. A correction fills the member from account.accountId,
so a grant or a deny scoped to one member holds, and Macie joins the
tag-on-create table, so a request with tags needs macie2:TagResource
and its tags are what aws:RequestTag and aws:TagKeys see.

Inspector's Disable rule goes, since the vendored route gives the same
action. Macie and Inspector move into the table of request resources,
their reason for staying out (no model vendored) no longer being true.
Lake Formation has no resource type at all, so that table does not
list it.

Regenerating the tables also brings in es:UpdateClone, which AWS has
added since. Floci does not serve it.
2026-11-10 22:47:39 -06:00
Priamo Germosen 0197723641 fix(iam): simulate a principal without the policies the request excludes (#7865)
`SimulatePrincipalPolicy`'s `PolicyExclusionList` was read by nothing, so a caller
excluding a policy was given a simulation that still counted it, which is the
decision it had asked not to be given. The member is read now: each
`PolicyIdentifier` drops a policy from the set this one simulation evaluates and
from nothing else, the attachment and every listing left as they were.

The reference states both answers an entry gets, and those are the answers here:
"Syntactically invalid identifiers, such as malformed ARNs or wildcards in
disallowed positions, cause the request to fail with an InvalidInput error.
Syntactically valid identifiers that don't match any attached policy are
ignored." The constraints ahead of the operation already hold each member of an
entry to the shape the model declares, so an unknown `PolicyType` is the
`ValidationError` it always was; what the vendored data does not carry is the
union marker, so the rule that an entry names exactly one of the three is held
where the entry is read.

A `PolicyArn` is held to the one position the member admits a wildcard in, the
resource name, so a wildcard in the resource type an ARN carries ahead of it is
refused rather than matched: a `poli?y/reader` reads like the `policy/reader` it
would reach. It is held to carrying the fields every ARN carries too, its
partition, its service and its resource, a blank one being a malformed ARN rather
than an identifier that matches nothing. The region and the account are not among
those, an AWS managed policy carrying no region.

`PolicyType` reads as the part a policy plays rather than the kind of document it
is, which is what keeps `permission-boundary` in a value set beside
`user-managed`: a boundary is itself a customer managed policy, so a type meaning
the kind would match it twice. `scp` matches nothing, this simulation carrying no
SCP ceiling, and `rcp` is published as ignored. An ARN names the policy itself,
so it reaches that policy in whatever part it plays, the boundary included. The
account-level grant an account password policy carries is attached to nothing and
reached by nothing.

The wording of the two refusals no source gives, and the reading of a wildcard in
`AttachmentName`, which the member documents and its own declared pattern admits
no character for, are recorded under Policy Simulation in docs/services/iam.md.
2026-11-10 22:31:21 -06:00
Priamo Germosen 874493c446 feat(emr): run a cluster's Spark steps on YARN on its primary node (#7864)
A docker cluster's Spark steps ran in local mode, in one container, so a
script's own spark-submit --master yarn failed and a step's --deploy-mode
was dropped. On EMR "the primary node runs the YARN ResourceManager
service" and a core node "YARN NodeManager daemons, Hadoop MapReduce
tasks, and Spark executors".

- On a Docker network of the cluster's own, the primary node's container
  also runs a ResourceManager and a NodeManager, whose capacity is
  yarn-node-memory-mb and yarn-node-vcores.
- The node needs Spark, Python and what the bootstrap actions installed,
  so it runs from the image the steps run in: the bootstrap's, else the
  release's EMR Serverless image with its Hive image's HDFS, MapReduce
  and YARN, and Hive on a cluster with Hive. A cluster without Hive gets
  no hive, so its Hive step still says "Hive isn't installed.".
- Spark steps submit with --master yarn, keeping the step's own --master
  and --deploy-mode; a command's own spark-submit reads the same from its
  spark-defaults. Executors and a cluster-mode driver are sized for the
  NodeManager, which the cluster's spark-defaults replace, get the step's
  AWS environment, and reach Floci at its address on the cluster's
  network; a client-mode driver is reached at its container's name there.
- A YARN application's container logs go to
  <LogUri>/<cluster-id>/containers/<application>/<container>/ when a step
  ends, as a cluster-mode driver's output is there and not in the step's,
  without launch_container.sh, which holds the step's session.

A node that does not become ready leaves the last of its output in
Floci's log, as the container goes with its cluster.

YARN's Java 17 options go through JDK_JAVA_OPTIONS, which the Java 8 of
an emr-6.x image ignores.

An emr-spark-* release has no Hive image, and emr-7.5.0's HDFS and YARN
do not run on its newer Hadoop, so its image holds the whole of
emr-7.5.0's Hadoop in /opt, which only the node's daemons run from, and
Spark keeps the release's own. Those daemons are Hadoop 3.4.0's, where
the Release Guide lists 3.4.2 for these releases.

Clusters in a namespace the steps share or with no network stay in local
mode, as do MapReduce and Tez, and core and task instances get no
NodeManager yet.
2026-11-10 22:22:16 -06:00
Aditya Upadhye 2d8cdeb343 feat: add CloudWatch OTLP metrics ingestion (#7781) 2026-11-10 18:39:55 -04:00
James McMahon fe24f7736a feat: support one-off ECS scheduled scaling (#7895)
* feat: support one-off ECS scheduled scaling

* chore: cover application auto scaling scheduled actions with SDK

* fix: preserve scheduled action ordering and report failures

* test: cover scheduled suspension through the AWS SDK

* fix: validate scheduled action inputs and preserve explicit UTC

* test: tick explicitly when checking scheduled action rescheduling

* fix: reuse schedule parser and tighten scheduled scaling tests

* test: poll ECS cluster cleanup for late arriving tasks
2026-11-10 18:28:30 -04:00
Mario Toffia f37afdad81 fix(logs): support or in Logs Insights filters (#7924)
* fix(logs): support or in Logs Insights filters

A filter or where stage now keeps rows matching any or-joined comparison, case-insensitive, with parenthesized and nested groups. Syntax the engine does not model (and, not, ||, escapes, backtick fields, expressions in place of a field, empty stages) fails the query instead of returning a silently wrong result set.

Closes #7907

* fix(logs): limit Insights bare filter values to numbers and enforce the queryString length

An unquoted filter value is now a number compared by value, as on AWS (n = 2 matches 2 and 2.0).
Other unquoted values, such as a word or 1+1, fail the query instead of being read as text.
StartQuery rejects a queryString over 10,000 characters with InvalidParameterException, which
also bounds the nesting the or parser walks.

* fix(logs): keep Insights field parsing stack-safe and count queryString in code points

A long dotted field such as a.a.a... overflowed the stack in the field regex, which repeated a
group recursively; the repetition is now possessive and runs in a loop. The queryString limit
uses the shared Smithy length check, which counts code points as AWS does, so a query of
emoji under 10,000 code points is no longer rejected.

* refactor(logs): share one quote-skipping scanner across the Insights parser
2026-11-10 16:18:56 -04:00
Andre Kurait 0e244e5724 feat(ec2): delete launch template versions without reusing numbers (#7910)
Preserve default versions and the highest issued version across deletion, persistence and CloudFormation rollback.

Reject invalid DryRun values before deletion, tolerate only already-deleted versions during CloudFormation rollback, and preserve the resolution race fixture without reflective field mutation.

Reuse presence checks to retain name-specific disappearance errors and existing service-test factories.

Reuse existing EC2 test factories and the shared blocked-or-done wait while preserving all race assertions.

Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-11-10 15:50:33 -04:00
Niels Kootstra 1da8982950 fix(athena): report each result column's SQL type in GetQueryResults (#7926)
* fix(athena): report each result column's SQL type in GetQueryResults

GetQueryResults read the result CSV back and reported every column as varchar,
so clients that build typed results from ColumnInfo got strings for numbers,
booleans and dates. After the query runs, ask floci-duck to DESCRIBE it, map
the DuckDB types to Athena type names, keep them with the query execution and
use them when the result set is built. A statement DuckDB cannot describe
keeps varchar.

Closes #7897

* fix(athena): report decimal precision and scale and time types in GetQueryResults

Keep the type DuckDB describes and map it when the result set is built, so a
decimal column reports its precision and scale in their own fields. Time and
the timestamp variants map to their Athena names, and a failed DESCRIBE is
logged at warn with its cause.
2026-11-10 14:04:34 -04:00
Koushik Dutta d97574207b feat(s3vectors): support vector bucket policy operations (#7825)
* feat(s3vectors): implement vector bucket policy management (create, get, delete)

* fix(s3vectors): validate bucket name length and ARN account in policy operations

* refactor(s3vectors): share bucket selector validation and use partitionForRegion
2026-11-10 13:58:19 -04:00
Charles Swanberg a5ab677d6b fix(pipes): apply an enrichment on a DynamoDB stream source and deliver its events as AWS does (#7055)
* fix(pipes): apply an enrichment on a DynamoDB stream source and deliver its events as AWS does

A pipe with a DynamoDB stream source, a Lambda enrichment and an event bus target put nothing on the
bus a rule could use: the stream path skipped the enrichment, an array answer reached the target as
one payload, Source and DetailType written as JSON paths went out as the literal text, and a template
of one placeholder naming a string put that string on the bus in quotes.

- The stream path runs the enrichment through the SQS path's step, once per filtered batch. Disposal
  stays each source's: SQS deletes its messages, a stream commits its position.
- An array answer reaches an event bus, SQS queue or SNS topic one element at a time. A Lambda or a
  state machine takes it whole. EventBridge User Guide, "Amazon EventBridge Pipes batching and
  concurrency": "Input transformers are applied separately on each individual JSON record in the
  array", and a target with no batch API, "such as Lambda and Step Functions", gets "the entire JSON
  array". https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-batching-concurrency.html
- An event bus target's Source and DetailType, written as a JSON path, are read off the event before
  the template renders. "Amazon EventBridge Pipes event bus target": they "support dynamic JSON path
  syntax" and "can't reference new or transformed values resulting from input transformation". A path
  naming nothing fails the delivery, so no event reaches a rule under a literal or empty type.
  https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-target.html
- A template of exactly one placeholder renders a string verbatim, which is what AWS does with
  <$.Detail> naming a serialized object; quotes added here made PutEvents refuse it as MalformedDetail.
  A placeholder inside a larger template renders as before.

Kinesis and Kafka sources still deliver straight to the target, as docs/services/pipes.md says.

Test: PipesStreamEnrichmentDockerIntegrationTest runs a real function behind a table's stream, with a
filter, and a rule on the bus matching a field of the detail reaches a queue. Without the fix it times
out with no event on the queue. PipesPollerTest and PipesTargetInvokerTest pin each rule.

* fix(pipes): fail an enrichment batch past the target's limit, and share the dynamic parameter resolver

An enrichment answering more than 10 events for an event bus, queue or topic
fails the batch without invoking the target, as AWS does, since 10 is what
those targets take in one request; the batch goes to the dead-letter queue
or is read again. The event bus Source and DetailType resolve through the
same method as a Redshift parameter, so a value counts as a path only when
the whole of it is one. pollSqs deletes a delivered batch's messages in one
place, and the Docker test uses SqsTestQueue and DynamoDbRequests.

* fix(pipes): deliver an enrichment array to Redshift whole, and skip the target on an empty string

Redshift has no batch API, so an enrichment's array reaches it in one BatchExecuteStatement as
before; only an event bus, queue or topic takes one event per element under the limit of 10. An
enrichment Lambda answering "" is an empty response, as AWS lists it, and invokes no target.
2026-11-10 13:49:49 -04:00
Niels Kootstra 65b09d0aac fix(lambda): stream the body of a RESPONSE_STREAM function URL (#7885)
* fix(lambda): return the streamed body from a RESPONSE_STREAM function URL

A function URL in RESPONSE_STREAM mode parsed only the HttpResponseStream
prelude and dropped the body written after its eight NUL bytes, so callers got
the status and headers with an empty body. Split the stream at the delimiter
and return the rest as the body; a stream without a prelude is a 200
application/octet-stream, as on AWS. The stream is still buffered.

Closes #7837

* fix(lambda): stream the body of a RESPONSE_STREAM function URL as it is written

The runtime API now hands a streamed response to the invocation chunk by chunk,
ahead of the BodyHandler that buffers every other response, and completes the
invocation only when the stream ends, so the timeout, the concurrency permit
and the container stay held for the whole stream. The function URL answers as
soon as the head is known and writes each chunk as it arrives. The prelude is
read only when the stream's content type is
application/vnd.awslambda.http-integration-response; any other stream keeps
the content type the handler set.

* fix(lambda): check the streamed function URL response without timing it

The runtime API and controller tests pin chunk-by-chunk delivery, so the
end-to-end test only checks the status, content type and body.
2026-11-10 11:54:40 -04:00
Nikola Genčić 43ad134107 fix(cognito): fire PreTokenGeneration for client_credentials tokens (#7891)
* fix(cognito): fire PreTokenGeneration for client_credentials tokens

The token endpoint issued client_credentials access tokens without ever
invoking the pool's pre token generation trigger, so claims and scopes a
V3_0 function returned never reached M2M tokens.

As on AWS, the trigger now fires with triggerSource
TokenGeneration_ClientCredentials when PreTokenGenerationConfig's
LambdaVersion is V3_0, and is skipped for V1_0 and V2_0. The event
matches the one AWS documents for the token endpoint: userName
ClientCredentials, the granted scopes, empty userAttributes, a null
groupConfiguration, the request's aws_client_metadata, and a response
whose claimsAndScopeOverrideDetails is null. Only accessTokenGeneration
applies to the token; claims that identify the client (sub, client_id,
token_use, version, iss, exp, iat, jti and the cognito: namespace)
cannot be changed, and an added aud must equal the client ID.

Fixes #7792

* fix(cognito): protect username and scope in client-credentials tokens

Addresses review feedback on the client-credentials pre token generation
trigger.

A V3_0 trigger could add a username claim to a machine access token, and
could replace or suppress the granted scope through claimsToAddOrOverride
and claimsToSuppress. As on AWS, username (along with device_key and
at_hash) is now protected in machine tokens, and scope changes only
through scopesToAdd and scopesToSuppress.

aws_client_metadata with a null value is now refused with
invalid_request, like any other value that is not a string.

* fix(cognito): send version 3 and accept only string metadata for client credentials

The client-credentials pre token generation event now carries version "3",
as in the AWS token endpoint example. aws_client_metadata is read as a JSON
tree and refused unless it is an object whose values are all JSON strings,
so numbers and booleans are no longer coerced to strings.
2026-11-10 11:01:14 -04:00
Vũ Thế Huy 2964140717 feat(redshift): prune Spectrum partitions for bind parameters (#7758) (#7863)
A prepared statement with a predicate on a bound value (WHERE day = $1) loaded every Glue partition, because the pruner read only literals. The Bind message now carries its text-format values, and the pruner reads each $n as the value bound to it.

A statement that is only being parsed has no values yet, so it loads no partition, enough for PostgreSQL to plan it; each Bind loads the partitions its values select. A NULL, binary-format or unreadable value leaves its predicate out and the query loads every partition. A malformed Bind parameter section leaves the values unknown instead of failing the connection.

Parse of a parameterized Spectrum statement no longer deletes partitions by cast key,
which could remove rows of overlapping partitions that stay recorded as loaded; the
Bind reconciles the table. Bind parameters are decoded only when a Spectrum statement
needs them, and binary values are skipped instead of copied.
2026-11-10 10:57:23 -04:00
Andre Kurait ef1e00fba7 fix(controltower): generate IAM routes and request resources (#7872) 2026-11-10 10:46:59 -04:00
Andre Kurait 4512de1402 fix(rds): omit empty terminal pagination markers (#7900) 2026-11-10 09:16:40 -04:00
jwoa95 9c989d7457 fix(eventbridge): match numeric comparison patterns (#7695) (#7700)
Add numeric comparisons to the shared matcher used by TestEventPattern and PutEvents. Validate all numeric filters before testing events or mutating rules, including nested patterns and every $or branch. Match numeric and literal filters against event array elements without splitting range bounds across different values.

Add service and AWS SDK success/error regressions.

Validation: 293 focused tests pass; zero Checkstyle violations.

Fixes #7695

The validator accepted arbitrary operator/number pairs, allowing repeated bounds, equality mixed with bounds, and unordered ranges. Restrict filters to a single comparison or a lower bound followed by a strictly greater upper bound.

Add SDK rejection and rule-preservation regressions and valid range boundary controls. All 386 focused tests, Checkstyle, docs-check, and partition-check pass.

Keep the new range boundary cases aligned with the surrounding parameter tables. This also requests fresh CI checks on the verified PR history.

Use one testing fixture for valid comparisons and invalid patterns in both the service and SDK suites. Preserve the union of existing cases, including nested and matching alternative branches, so both layers exercise the same matrix.

Validation: 402 focused EventBridge tests pass with no skips and zero Checkstyle violations.

Expose PipesFilterMatcher.matchesNumeric and use it from EventBridge instead of maintaining a second comparison loop. Retain the null and numeric-form guards.

Use AwsTestClients.create directly in the EventBridge SDK tests and remove the custom SDK client builder and injected endpoint.

Validation: all 463 EventBridge service, EventBridge SDK, and Pipes matcher tests pass, with no skips and zero Checkstyle violations.
2026-11-10 09:08:43 -04:00
galsuchetzky-act 09ac552cf7 feat(cloudformation): provision AWS::CloudFormation::StackSet (#7244)
Create, update and delete StackSet resources and their instances through the existing StackSet service. Preserve current main's asynchronous automatic deployment and stable tag reads while reconciling the resource's declared account and organizational-unit targets and Regions.

Return StackSetId for Ref and Fn::GetAtt and cover the provisioner lifecycle with integration tests. OperationPreferences, CallAs and ParameterOverrides remain unsupported.
2026-11-10 08:54:32 -04:00
Priamo Germosen 90a4455905 chore(iam): sync the tag-on-create table with what AWS has added (#7852)
make iam-tag-on-create-sync has failed since AWS listed three more
operations with a tagging action, because the generator found no request
member carrying tags on any of them and asks for a reason.

SSM's StartExecutionPreview has no such member at any depth, so it is
not read for that reason. Athena's CreateSystemTableConfiguration and
SageMaker's CreateClusterExtension do take Tags, but the pinned botocore
predates both, so their requests cannot be read yet. They get a reason
of their own, which the generator refuses once the pinned botocore has
the operation, so a bump cannot leave their tags unread. Floci serves
none of the three.

The sync also lists the new applicationinsights namespace, and iam.md's
count of operations read with their tags follows the table.
2026-11-10 06:37:23 -06:00
Niels Kootstra 14c3004240 fix(s3): return every bucket when ListBuckets has no max-buckets (#7886)
Paging ListBuckets capped a request without max-buckets at 10000 buckets with
a continuation token, so a caller that reads only the first response, like
the Floci UI, lost every bucket after that. Without max-buckets, return the
whole list on one page again.
2026-11-10 08:26:24 -04:00
Mario Toffia 8b48aafd44 fix(cloudformation): update the tags of an AWS::Events::EventBus in place (#7799)
* fix(cloudformation): update the tags of an AWS::Events::EventBus in place

A tag-only UpdateStack of an event bus was refused with "Updating
AWS::Events::EventBus Description, Tags, or Policy is not supported until
transactional rollback is available." and rolled back, so a template that
bumps a version tag could not be deployed.

The bus the stack already owns now takes the template's tags: a key the
stack set and the template dropped is untagged, a tag added outside the
stack stays, as measured on AWS. The tags of the keys the update touches
are snapshotted first, and rollbackUpdate puts them and the tracked keys
back when a later resource fails the update. Description and Policy
changes are still refused.

Closes #7796

* fix(cloudformation): keep a failed event bus tag update for its rollback

A tag call that fails after the bus's tags started changing left the
engine restoring the previous resource and marking it rolled back, so
the half-applied tags stayed. retainsFailedUpdateState now keeps an
attempt that carries the tag snapshot, and the rollback walker restores
it through rollbackUpdate, as the SSM parameter provisioner does.

* test(cloudformation): read EventBridge answers through callEventBridge

* refactor(cloudformation): share the tag snapshot of an update with SSM

The event bus recorded and read back the tags of an update the same way
the SSM parameter does. CfnRollback now holds that pair, putTagSnapshot,
snapshotTagKeys and snapshotTags, in the same tagKeys and tags fields, so
a snapshot an SSM update already stored still reads. The bus reconciles
its tags from the managed keys and the desired tags, as SSM's
reconcileTags does, so its update and rollback no longer each work out
the keys to remove.

* fix(cloudformation): read a null tag value back as null from a tag snapshot

* refactor(cloudformation): read the event bus update snapshot through CfnRollback

rollbackEventBusUpdate parsed its snapshot by hand, which is what
CfnRollback.updateSnapshot does; it now uses that and still reports
false when the bus carries no snapshot. The CloudFormation docs say
event bus tags now update in place on UpdateStack, keeping tags added
outside the stack, and go back when a later resource fails the update.
2026-11-10 08:17:17 -04:00
Andre Kurait 184f99490b fix(backup): retain deleted plans for IncludeDeleted listings (#7871)
* fix(backup): retain deleted plans for IncludeDeleted listings

Retain deleted backup-plan listing metadata while excluding deleted plans from active operations. Serialize selection creation with deletion using the existing plan lock.

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

* perf(backup): resolve plan tags by stored plan identity

Avoid scanning retained backup plans for tag operations. Require the exact stored ARN and active state before retaining the existing locked mutation checks.

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

---------

Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-11-09 22:36:59 -04:00
jwoa95 99f9a49ebe fix(ssm): normalize retained legacy parameter ARNs (#7698) (#7702)
Retained flat-name parameters still exposed the pre-fix ARN stored on disk. Normalize only the exact legacy SSM resource suffix when reading the ARN, retaining its stored partition, region and account. All metadata consumers and serialized responses then use the canonical resource without overwriting the parameter or incrementing its version.

Cover retained persistent JSON, version and label reads, metadata and history preservation, all eight partitions, canonical flush/reload, unrelated ARN preservation, and AWS SDK exact-resource IAM policy consumption. Malformed policy ARNs remain denied.

Validation: 298 focused SSM and partition tests passed; Checkstyle reports zero violations; docs-check and partition-check passed.

Fixes #7698
2026-11-09 22:16:10 -04:00
Vũ Thế Huy d1205c34a2 feat(redshift): prune Spectrum partitions in Extended Query and transaction blocks (#7758) (#7778)
Stage partitions loaded by a load that may roll back per client connection and publish them when the transaction commits, guarded by a per-table generation, instead of loading every partition.

ensurePartitions waited on the per-table Java lock without a timeout even when the session held PostgreSQL locks. A transaction holding a table lock while another connection held the Java lock to load that table formed a cycle PostgreSQL cannot detect. It now uses the same transaction-aware acquisition as the full-load path.

Pruning also applies to the Data API outside a transaction block, a predicate on a bind parameter is left out while literal predicates in the same statement still prune, and a session in a transaction block now waits at most 30 seconds for another load of the same table.
2026-11-09 22:00:56 -04:00
James McMahon faf9c4e64d fix(cognito): honour case-insensitive sign-in configuration (#7831) 2026-11-09 21:13:31 -04:00
Charles Swanberg 2a3dbb1aa4 fix(cloudformation): send a stack's status changes to the default bus, with their request token (#7053)
Floci sent no event as a stack's status changed, so a rule on `CloudFormation Stack Status Change`
never fired, and whatever starts on one, a deploy waiting for its stack to finish among them, never
started. It also dropped `ClientRequestToken`, which is how a consumer ties an event to the
operation that caused it.

- CloudFormation User Guide, "Using Amazon EventBridge with CloudFormation": events go to the
  default bus, "guaranteed to be delivered, and they might be delivered out of order".
  https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/eventbridge-integration.html
- CloudFormation User Guide, "CloudFormation stack status change event detail": the envelope,
  `stack-id`, `status-details`, and "All events that are initiated by a given stack operation are
  assigned the same client request token".
  https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/event-detail-stack-status-change.html

The pages say nothing of nested stacks, and their sample shows an empty token. Rules read on a real
account on 2026-10-30, for a root nesting one stack, showed one event per status. Through a create
change set, an update change set and DeleteStack, each with its own token, the root's events carried
their operation's token but for REVIEW_IN_PROGRESS, which had no key, and the nested stack's had no
key at all. Through a create and an update that failed in the nested stack, the root's rollback
statuses carried the create's or the update's token, the nested stack's again had no key, neither the
root's CREATE_FAILED nor any UPDATE_FAILED reached the bus, and the nested stack's failed create was
CREATE_FAILED and then DELETE_IN_PROGRESS and DELETE_COMPLETE, with no ROLLBACK_* status. Floci now
records and sends that: a nested stack records CREATE_IN_PROGRESS or UPDATE_IN_PROGRESS as its
operation starts, its failed create ends in CREATE_FAILED for its parent's rollback to delete, without
the "Rollback requested by user." CloudFormation's reason did not carry, and an update's first rollback
passes through UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS. An operation given no token leaves the key
out too.

Two cases were not read and no test asserts them: a failure in the root's own resource with the
nested stack healthy, and a delete that fails. They send CloudFormation's documented statuses from the
same code. UPDATE_COMPLETE_CLEANUP_IN_PROGRESS stays where Floci has cleanup to do, though
CloudFormation sent it on every update. A template Floci cannot execute at all still ends a root in
CREATE_FAILED and sends it, so that stack's end is not silent; the reading has no such path.

CloudFormationService.addEvent is the one place a status is recorded, so it queues an event for a
stack's own record, and CloudFormationEventPublisher delivers them in order on one daemon thread. A
status can be recorded under the stack's lock in stacks.compute and delivery calls a rule's targets
before it returns, so delivering in place would hold that lock and the operation for as long as the
targets take. A failed path records its event before it writes the status, so delivery waits a
moment for that write. The queue is in memory: an event still in it when Floci stops is dropped and
counted in the log, and is not sent on the next start.

The query handler hands each operation's token to the service, which sets it on the stack before the
operation's first record and clears it where the operation has none. It is not persisted.

test(cloudformation): an update failing outside a resource sends no UPDATE_FAILED

An update that fails before any resource, on an SSM parameter or a template that fails at execute,
goes straight to its rollback, and CloudFormation sends no UPDATE_FAILED, as for a failure in a
resource. On 2.4.0 the failed-execute path already sends none, so this commit carries the test alone
that keeps it so: the bus hears UPDATE_IN_PROGRESS, the rollback's statuses and nothing else, each
with the operation's request token.

(test cherry picked from commit 9314dad130116c5d4c809072800c787a4d640446, whose code change 2.4.0
makes moot)

fix(cloudformation): roll back a failed nested create's RetainExceptOnCreate, and send a start only once it runs

A nested stack's failed create is deleted by its parent's rollback through the
ordinary delete path, which kept what RetainExceptOnCreate marks. The delete of
a child in CREATE_FAILED now carries the create-rollback flag, so those
resources go as they did when the child rolled itself back, and a nested case
in CloudFormationDeletionPolicyIntegrationTest keeps it so.

The status an operation starts with is recorded under the stack's lock but
sent by the operation as its first act, so an operation the executor refuses
sends nothing. A successful create or update records its completion before
the terminal status is exposed, as the failed paths do, so the event carries
the operation's own token and not a later request's.

The publisher test waits for the worker to be sleeping or stopped instead of a
fixed 200 ms, and the status events test has one wait loop for the root's and
the nested stack's events.

fix(cloudformation): a delete deferred behind a running create sends its own token

A DeleteStack accepted while an execution runs waits for it, and until now
only its retain list waited: when the execution ended and the delete began,
the stack still held the execution's token, so DELETE_IN_PROGRESS and
DELETE_COMPLETE went out with it. The deferred delete now keeps its token
beside what it retains, and the stack takes it as the delete starts.
aDeleteLandingMidCreateCarriesItsOwnToken holds a custom resource's Create
open, lands the delete, and reads the tokens on the bus; it was red before.

The stale Javadoc above awaitEvents goes.

The mid-create test stubbed the ServiceToken Lambda and PUT the response itself,
which CustomResourceProbe already does. The probe takes a hold: the requests a
predicate matches wait before they are answered until the test releases them,
and the test reads when one has arrived. The status events test holds the
Create that way.
2026-11-09 20:58:07 -04:00
Niels Kootstra 6710ce4d46 fix(s3): page ListBuckets with max-buckets and continuation-token (#7846)
ListBuckets returned every bucket in one response and ignored both
pagination parameters. Buckets now come back in name order, at most
max-buckets per page (1 to 10000), with a ContinuationToken on every page
but the last. A max-buckets out of range, or a continuation token that
is unreadable or was issued to another account, is refused with
InvalidArgument. Without max-buckets the whole list is still returned.

Fixes #7618
2026-11-09 20:57:28 -04:00
Priamo Germosen 69da60d07f docs(iam): settle a distribution's IAM certificate on what AWS publishes (#7740)
CloudFront resolves ViewerCertificate.IAMCertificateId by id alone, and two
questions about that have sat open. A server certificate meant for CloudFront
must be uploaded under /cloudfront, which nothing here enforces, and a blank
value is read as naming no certificate at all.

The blank is settled by AWS's own text, twice over. The member is declared with
a minimum length of 0, so an empty string breaks no bound it carries, and the
ViewerCertificate entry tells a caller on the CloudFront domain name to set
CloudFrontDefaultCertificate and leave all other fields empty. An element left
empty arrives as a blank on this REST XML protocol, so reading it as an id
would refuse the very request the reference asks for.

The path is a published obligation on the caller, in IAM's
UploadServerCertificate note and again in CloudFront's own procedure for
uploading a third-party certificate to IAM, and this emulator does not hold
callers to it. That is a deliberate divergence rather than a reading of what
AWS accepts. What is published is the obligation on the upload rather than a
refusal on the write: the Developer Guide's InvalidViewerCertificate page
enumerates what CloudFront verifies when an alternate domain name is added, in
the order it verifies them, and the certificate's path is not among those
checks. Holding a distribution to the path would refuse a write on a rule
published for the upload, so the id alone decides until something records
otherwise, and a capture of such a refusal moves the reader, the page and the
test.

The reasoning lives in docs/services/iam.md, with the CloudFront page and the
reader's javadoc pointing at it, and two tests pin what each case does: a
distribution created through the API with an empty IAMCertificateId element is
accepted and holds no certificate, and a certificate uploaded outside
/cloudfront serves a distribution and cannot be deleted while it does.
2026-11-09 16:50:23 -06:00
Priamo Germosen 16ce8261eb fix(iam): check an object's tags apart from its members on create (#7739)
The tag-on-create check reads a body's tags under any spelling a handler
might read, so that no tag a handler applies goes unchecked. An object at
the tags member was read both ways into one set: its structures as tags
and its members as a map's tags. A member named as a structure's key then
replaced that structure's tag, so KMS's CreateKey with
{"Tags":{"team":{"TagKey":"team","TagValue":"red"}}} was checked as
team="" while its handler, which iterates Tags whatever it holds, stored
team=red: a deny on aws:RequestTag/team held on neither kms:CreateKey nor
kms:TagResource.

The two readings are now sets of their own, each checked, so the tag the
handler applies is checked whatever the members are named.

OpenSearch's creates refuse such an object as a TagList, but a deny on a
tag in its structure now refuses it first, as it does a list.
2026-11-09 16:50:11 -06:00
luiseterc 3c398103ed fix(iam): resolve missing roles and EC2 tagging targets (#7596) 2026-11-09 18:28:31 -04:00
Jackson PriceandAndre Kurait 69cc889552 fix(autoscaling): honor scaling activity ID filters (#7832)
Port the independent ActivityIds filter from AndreKurait/floci#599,
commit ffb5ce8e4008a4e5ad89a1c1741eca22d267fd92. Preserve the existing
account, region, group and ordering behavior. Cover the Query boundary
with signed SDK requests and sparse member indices.

Keep the Query handler responsible for parsing IDs and rendering XML.
Preserve the unfiltered service interface for reconciliation callers and
cover the filtered service path directly. Share SDK activity ID extraction.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-09 17:56:59 -04:00
Niels Kootstra ac39d83ce0 fix(eks): page ListClusters with maxResults and nextToken (#7769)
* fix(eks): page ListClusters with maxResults and nextToken

ListClusters returned every cluster in one response and ignored both
pagination parameters. It now returns cluster names in a stable order,
at most maxResults per page (default and maximum 100), with a nextToken
on every page but the last. A maxResults outside 1 to 100 or an
unreadable nextToken is refused with InvalidParameterException, as EKS
does.

Fixes #7625

* fix(eks): bind ListClusters tokens to the calling account

A nextToken issued in one account was accepted in another and skipped
the cluster names that sort before its cursor. The token now carries the
account it was issued to, and another account refuses it with
InvalidParameterException. The pagination tests also get distinct
@Order values.

* fix(eks): reuse the access entries page-size check in ListClusters

ListClusters repeated the 1 to 100 maxResults check that
EksAccessEntryService.pageSize already makes. That method is now
package-private and ListClusters calls it.
2026-11-09 14:54:40 -04:00
Mario Toffia 64b0977c45 fix(iot): forward MQTT 5 user properties to subscribers (#7798)
The broker fanned a live publish out without its MQTT 5 properties, so an
MQTT 5 subscriber received none of the user properties the publisher sent,
over 1883, 8883 and /mqtt alike. AWS IoT forwards them unchanged and in the
order sent, a repeated name included. The broker now copies the publish's
user properties onto each live copy; Netty encodes them only for an MQTT 5
subscriber, so an MQTT 3.1.1 subscriber gets the message without them.
2026-11-09 14:28:25 -04:00
jwoa95 c2d7456dda test(stepfunctions): cover Lambda mapping SDK Uuid validation (#7701)
Pin JSONPath and JSONata mapping updates, state transitions, and response casing. Consolidate invalid request coverage and reject the legacy UUID spelling with the expected error message.

Related to floci-io/floci#7697; the runtime fix landed in #7720.
2026-11-09 13:51:54 -04:00
Vũ Thế Huy 92eff0aca5 feat(redshift): support ModifyClusterSnapshot API action (#7755) (#7756)
* feat(redshift): support ModifyClusterSnapshot API action (#7755)

* docs(redshift): update operation count after merging CopyClusterSnapshot

* fix(redshift): enforce ModifyClusterSnapshot retention, Force, and expiry of manual snapshots (#7755)

* fix(redshift): address snapshot retention review feedback
2026-11-09 13:18:19 -04:00
Jackson Price 3700a6b6fa fix(ec2): offer i4i.large in the instance type catalog (#7824) 2026-11-09 13:13:00 -04:00
Jackson PriceandAndre Kurait 068740794a fix(ec2): select the subnet VPC default security group (#7762)
Use the existing VPC-specific default-group lookup for instance launch, with
service and SDK placement regressions and documentation.

Source: AndreKurait/floci#524 (94f76eae34e46dc1e740b6349bbaed578a15e372).

Remove the obsolete regional resolver and its dedicated test assertions now
that instance launch uses the VPC-specific lookup. Keep legacy VPC resolution
coverage and remove its unused security-group fixture.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-09 13:11:06 -04:00
David 9f77c736e9 feat(securityhub): add member account operations and DisableOrganizationAdminAccount (#7791)
Add CreateMembers, ListMembers, GetMembers, DisassociateMembers, DeleteMembers and
DisableOrganizationAdminAccount, the operations Landing Zone Accelerator and Terraform's
aws_securityhub_member use to manage Security Hub members.

Organization accounts added by the delegated administrator become Enabled members and have
Security Hub and its default standards enabled for them; other accounts are Created. Organization
members can be disassociated but not deleted. Disabling the delegated administrator marks its
organization members Removed.

Macie already served POST /members and GET /members, so Security Hub calls on those paths were
answered by Macie. Both routes now dispatch on the SigV4 credential scope in
SecurityAdminController, as GET /admin already does; unsigned requests still reach Macie.

Closes #2197
2026-11-09 11:37:23 -04:00