Commit Graph
1522 Commits
Author SHA1 Message Date
Jimmy Liu Jia 4a95c1bb95 feat(ec2): support DHCP options lifecycle (#6428)
* feat(ec2): support DHCP options lifecycle

* fix(ec2): validate DHCP options lifecycle edge cases

* fix(ec2): reuse region-aware private DNS domain for DHCP defaults

* fix(ec2): isolate DHCP options review regressions
2026-10-24 15:39:22 -04:00
Matheus Oliveira 781a68b6cb fix(s3): store object key segments past the file-name limit (#6438)
A disk-backed storage mode lays an object body out as the bucket
directory, the key, and a data suffix, so a single key segment longer
than the 255-byte file-name limit made every write of the object fail
with FileSystemException, where AWS takes keys up to 1024 bytes and
memory mode always did.

A segment that fits its byte budget is stored as written, so every path
an earlier Floci could create is still found. A longer one, and a segment
shaped like an encoded one so a crafted short key cannot land on it,
becomes a readable prefix, a separator, and the SHA-256 of the whole
segment: deterministic, so a key always resolves to one file, and
injective, so two keys never share one. The object index keeps the key,
so listing answers with the key the client used.

The temporary file a write stages beside its target no longer derives
from the target's name either: at the limit that name ran 41 bytes past
it. A constant-length name does not.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-10-24 15:03:52 -04:00
Matheus Oliveira 8d25cd91a6 fix(cloudfront): honor the origin completion and keep-alive timeouts (#6198) 2026-10-24 14:17:34 -04:00
Aniket Shukla c5ab54d49c fix(cognito): omit absent authentication message metadata (#6440) 2026-10-24 14:10:26 -04:00
Aniket Shukla 9e12547978 fix(eventbridge): default and validate ECS target settings (#6420)
* fix(eventbridge): default and validate ECS target settings

Apply ECS target defaults when storing PutTargets and reject invalid task counts or malformed role and dead-letter ARN shapes before storing the batch. Add SDK read-back and wire-error regressions.

Closes #6188

* fix(eventbridge): validate target ARN components

Reject incomplete IAM role and SQS dead-letter ARN shapes before storing PutTargets batches. Preserve partition support and existing model length errors, with regression controls for all published partitions and IAM role paths.

* fix(core): share IAM role and SQS queue shape checks

Use shared resource-shape helpers from EventBridge, Step Functions, Lake Formation, AppSync, and S3 while preserving caller-specific errors and account/partition rules. Apply the existing SQS 80-character name limit to EventBridge dead-letter targets.
2026-10-24 14:08:08 -04:00
Renald Dubus 5116b3c578 feat(kms): add GenerateDataKeyPair and GenerateDataKeyPairWithoutPlaintext (#6359) 2026-10-24 14:01:40 -04:00
Jimmy Liu Jia be7b0ed62b fix(s3): expose bucket policy status (#6397)
* fix(s3): expose bucket policy status

* fix(s3): align bucket policy status response

* test(s3): verify policy status through SDK and IAM

* refactor(s3): reuse bucket policy lookup for status
2026-10-24 13:49:10 -04:00
Aniket Shukla fb08a5ca55 fix(glue): default missing required column statistics counts (#6366)
Extend the shared read-time defaults to long, double, decimal, date, and boolean statistics so primitive-count readers receive zeros. Preserve supplied values, optional bounds, and stored records.
2026-10-24 11:44:26 -04:00
Priamo Germosen 62c202f073 fix(iam): read declared constraints before the lookup they precede (#6402)
The validation AWS runs ahead of an operation never reaches its store, so a
request that breaks a declared constraint is refused whether or not the thing it
names exists. Four places here had the order the other way round, and each one
answered a 404 for a request AWS answers with a 400.

The three Access Advisor and Organizations report readers looked the job up
before reading JobId, MaxItems and Marker, so an unknown job carrying a
MaxItems of 0 answered NoSuchEntity, and a JobId of the wrong length was never
held to its shape at all. jobIDType is min 36 and max 36, and the fixed length
reports as one constraint, "Member must have length equal to 36", which is the
form lifecycleActionToken already uses for the same shape in Auto Scaling. The
MaxItems check moves out of paginate so a reader can run it early, and paginate
still runs it, being reached from readers that look nothing up.

GenerateServiceLastAccessedDetails had the same order on its Granularity enum,
reading it inside the generate that sits behind the ARN resolution, so a
granularity AWS refuses answered NoSuchEntity for an ARN that named nothing.
The check is its own method now and the handler runs it first.

PolicySourceArn is arnType, min 20, and the simulators resolved the entity out
of whatever followed the last slash, so ":user/bob" simulated against a user
named bob. A value too short to be any ARN is now the length ValidationError
IAM answers for a short ARN member. A value that clears 20 characters and still
parses as no ARN is left alone: the member publishes no pattern, and no source
records what AWS answers for one.

The service-specific credential id reported both of its length bounds in one
violation, so a short id was told about a 128-character ceiling it was nowhere
near. Each message names the one bound the value broke, which is how every
recorded IAM length violation reads: "Member must have length less than or
equal to 64" for a user name over 64, and "Member must have length greater than
or equal to 20" for an ARN under 20.

Seven tests. Four over the wire on the readers: a JobId of the wrong length
refused before any lookup on both the last-accessed reader and the entities
reader, the same on the Organizations reader with no organization built at all,
and an unknown job carrying a bad MaxItems, a bad Marker and then nothing wrong,
which pins the 400s and the surviving 404. One on the generator, where the
granularity is refused for an ARN that names nothing. One on both simulators for
a PolicySourceArn under 20. And the credential id's two bounds, each asserting
the other bound is absent from the message, with the credential itself still
listed once the refusals are done: a validation error that deleted something on
its way out would read the same from the response alone.
2026-10-24 08:38:33 -05:00
Priamo Germosen 1174922522 feat(emr): publish aws.emr cluster and step events to EventBridge (#6403)
EMR now sends the "EMR Cluster State Change" and "EMR Step Status
Change" events AWS sends to the default EventBridge bus, so a rule can
start a Lambda function or a state machine when a cluster is ready or
ends, or when a step completes. Nothing published an aws.emr event
before.

Each event carries the detail of the EMR Management Guide's examples,
with the severity and message its "Monitoring Amazon EMR events" tables
give the state, times to the minute in UTC, and no resources, as in the
examples and in an event recorded from AWS. Since steps complete at
once, RunJobFlow sends the cluster STARTING, each step PENDING and then
each COMPLETED, and then the cluster WAITING, or TERMINATED with
ALL_STEPS_COMPLETED when it ends after its steps. AddJobFlowSteps sends
its steps' events and that TERMINATED. TerminateJobFlows sends
TERMINATED with USER_REQUEST for each cluster it ends, also when a
protected cluster fails the call, and CancelSteps CANCELLED for each
step it cancels. The tables have no row for BOOTSTRAPPING, RUNNING or
TERMINATING, which send nothing.

A request's steps are now all created PENDING before the first one
completes, as the guide's "Running steps to process data" describes;
each step was created only after the one before it had completed.

EmrService queues a call's events while it holds the service, so they
keep the order the changes were made in, and publishes the queue once
it has let go, so a rule's target that calls EMR back never waits on
the call that made the change. One call publishes at a time: a call
made while an event is delivered queues its events behind the rest, and
the call already publishing sends them after. Each event goes to the
account and Region of the call that queued it. The events go through a
new EventBridgeService.publishServiceEvent, which logs an entry the bus
rejects, or any failure publishing it, instead of failing the change
the event reports. The integration test reads them through a new shared
EventRuleQueue, an SQS queue an EventBridge rule routes them to, which
deletes what it reads and removes the rule and queue when closed.

Part of #6046 (part 5).
2026-10-24 08:38:24 -05:00
Priamo Germosen 1276a8857f fix(iam): check iam:PassRole from a table generated from the Service Reference (#6422)
Under IAM enforcement a request that names a role is checked for
iam:PassRole only where PassedRoles has a case for its operation, so most
of the operations AWS's Service Reference lists with iam:PassRole went
through without it: a caller allowed to create a CodeBuild project, a
Firehose stream, a Glue job or an SSM association could hand it any role
in the account. Adding a case per operation took one pull request per few
services.

The Service Reference names, for each operation, the services its role
goes to, but not the request member that names it; botocore's models give
the members. tools/aws/regen_iam_passed_roles.py joins the two into
src/main/resources/aws/iam-passed-roles.json: every operation listing
iam:PassRole in the namespaces Floci serves over JSON, Query and Smithy
RPC v2 CBOR, and in the REST services whose routes are authorized as
operations, each either read from the table, read by hand in PassedRoles,
or not read with a reason. Generation fails on an operation in none of
the three.

A member names a role when its name ends in Role, RoleArn or RoleName (a
plural, or one followed by Update or Override) and it holds a string or a
list or map of them, not an enum. A member whose documentation says it
takes a role by name is checked on the ARN IAM holds the role under. A
role the Service Reference passes to no named service, as it does
Cognito's, is checked with no iam:PassedToService. The generator records
its corrections with their reasons: members that pass no role (the roles
a Budgets action attaches a policy to, a CodePipeline action's role,
which the pipeline's role assumes, SSM target accounts' execution roles,
the roles a Glue job's generated nodes assume with STS, Firehose's
Snowflake role), members the rule does not see (a Cognito user pool's SMS
caller roles, a Glue connection's ROLE_ARN property and a view's definer,
Service Catalog's AssumeRole and LAUNCH_ROLE keys), and which service a
member's role goes to where the reference names several.

PassedRoles reads a table member from a JSON or CBOR body, or from Query
form parameters in either list form. Its own cases now return null for an
operation they do not read, and the table covers the rest. New cases read
SNS's role attributes (a topic's delivery status roles, a platform
application's, a Firehose subscription's and the SMS one, as the SNS
handlers read the map; an attribute with no value names none), a
CloudWatch Logs subscription filter policy's RoleArn, a Service Catalog
launch constraint's role, by the type Service Catalog holds for the
constraint on an update and in any case, since Floci keeps the type as
given, and an SWF decision's Lambda role from the attributes its type
names.

Not read: requests that name no role, roles that are a runbook's
parameter, operations whose roles go to several services without the
reference saying which member goes where (EMR RunJobFlow, EKS
UpdateClusterConfig, CloudWatch Logs CreateImportTask, SageMaker
CreateTrainingSession), XML bodies (S3 PutBucketReplication), EC2's
RequestSpotFleet, and REST services whose routes no rule maps yet.

make iam-passed-roles-check, part of aws-data-check, re-derives every
member from the pinned botocore; make iam-passed-roles-verify, part of
iam-data-verify, checks every operation against AWS; the IAM data drift
workflow now also runs on a change to the table or its generator.
PassedRoleNamespacesIntegrationTest fails for a namespace Floci serves
that the table neither reads nor names as not read yet.
2026-10-24 08:38:14 -05:00
jwoa95 346a7f4526 fix(elasticache): terminate required TLS at cache proxies (#6227) 2026-10-24 09:31:10 -04:00
Robin BaeckmanandRobin Baeckman b4c71b9e25 fix(iam): authorize sts:AssumeRole against the role it names (#6334)
IAM enforcement evaluated every STS action against resource *, so a
policy allowing sts:AssumeRole on specific role ARNs never matched and
the call was denied. sts:AssumeRole is now authorized against the
request's RoleArn, as on AWS. Every other STS action stays at *: like
Logs and Secrets Manager, the resource follows the serving operation,
so a RoleArn added to a call that never reads it, such as
GetFederationToken, cannot make a role-scoped Allow grant that call.

Query-protocol parameters were only read from the URL, never from the
form body the SDKs and CLI POST, so SQS and SNS resource ARNs fell back
to a wildcard the same way. For a form POST they are now read from the
body alone: AwsQueryController dispatches on the body and never sees the
URL query, so authorizing a URL value would check one resource and act
on another. SQS preferred a QueueUrl in the URL over the body's, so it
now reads the body first as well.

A resource field with an invalid percent escape is read as absent, so
the check falls back to the default resource instead of throwing out of
the filter; the request then fails in the form reader exactly as it does
without the resource check. The RoleArn is checked untrimmed, as the
handler uses it. docs/services/sts.md no longer lists the * check as a
known limitation.

Co-authored-by: Robin Baeckman <27041454+RobinBaeckman@users.noreply.github.com>
2026-10-24 08:55:41 -04:00
Robin BaeckmanandRobin Baeckman 1476b0e219 feat(eks): advertise a configurable endpoint host (#6331)
endpoint-mode=host always returned https://localhost:<port>, so a cluster
was only usable from the machine running Floci. The new
floci.services.eks.endpoint-host (FLOCI_SERVICES_EKS_ENDPOINT_HOST) is
advertised instead, and added to the k3s certificate as a SAN so the
endpoint still verifies against the cluster CA. It follows rds.endpoint-host.

The value must be a DNS name, a dotted IPv4 address or an IPv6 address;
an IPv6 literal is bracketed in the endpoint URL. A scheme, port, path or
list stops Floci at startup, before persisted clusters are restored, so a
typo cannot leave every restored cluster FAILED.
Network mode inside a container advertises the container name, so it
ignores the setting.

The SAN is fixed when the container is created, so the container carries
the host it was made for as a label, and an adopted container advertises
that host rather than the configured one. When the two differ on restore,
the surviving container is replaced (data volume and port kept), as a
node-capacity change already does; if the replacement fails, the old
container stays and keeps advertising the host its certificate carries.
Unset, nothing changes: no label is added and existing containers are
adopted as before.

Co-authored-by: Robin Baeckman <27041454+RobinBaeckman@users.noreply.github.com>
2026-10-24 08:55:24 -04:00
TiM 39f37c21ff fix(kinesis): stop routing records to closed shards (#6414)
* fix(kinesis): stop routing records to closed shards

Repeated resharding can leave a selected shard and both of its direct children closed. `selectShard` currently falls back to that closed parent, so a successful write can append after the shard's ending sequence number.

- Follow both parent links through closed intermediate shards to an open descendant, with deterministic breadth-first order and visited shard IDs.
- Reject an unreachable open destination before appending. Keep the producer lock, ordinary-key hash selection, ExplicitHashKey routing, and actual returned ShardId.
- Cover repeated splits, split/merge lineage, malformed graphs, handler success/failure results, and Java SDK writes after resharding.

* test(kinesis): protect breadth-first descendant preference

Add a mixed-depth split topology so routing to the still-open direct child is distinguished from depth-first traversal through its closed sibling.

* test(kinesis): cover both mixed-depth shard layouts

Parameterize the split child so the direct-child preference regression rejects depth-first traversal under either child ordering.

* fix(kinesis): preserve the open-shard routing fast path

Delay the lineage snapshot until the selected shard is closed, avoiding a shard-list copy on ordinary open-shard writes. Name expected descendant destinations in routing fixtures and cover an unrelated open shard preceding the reachable child.
2026-10-24 08:51:07 -04:00
Attila Kis bb32ba06eb fix(lambda): honor MaximumRetryAttempts and DestinationConfig.OnFailure for Kinesis ESM (#6133) 2026-10-24 08:38:22 -04:00
TATSUNO “Taz” Yasuhiro 023cb8341b feat(dynamodb): write export files and descriptions as AWS does (#6400)
* feat(dynamodb): write export files and descriptions as AWS does

* fix(dynamodb): check export prefixes as AWS does

* fix(dynamodb): abort the upload of an export file that fails

* chore(dynamodb): share the timed id of backups and exports

* chore(dynamodb): let tests run exports on the calling thread
2026-10-24 08:38:15 -04:00
TATSUNO “Taz” Yasuhiro 4e0bf080ed fix(lambdaweb): refuse a function name another region already has (#6409)
* fix(lambdaweb): refuse a function name another region already has

AWS keeps web function names unique across the regions of an account.
CreateWebFunction with a name another region has is 409
ConflictException "A function named <name> already exists in the
account. Function names must be unique across all regions in an
account.", at the same point as the same-region conflict.

* fix(lambdaweb): key the function name lock by account

* perf(lambdaweb): find a name in other regions without copying every key
2026-10-24 08:37:19 -04:00
Jimmy Liu Jia 2a1d3f3cec fix(application-autoscaling): paginate describe operations (#6398)
* fix(application-autoscaling): paginate describe operations

* fix(application-autoscaling): harden pagination tokens
2026-10-24 08:22:31 -04:00
Kenshin Okinaka 5a9f9cbbd6 feat(ses): add the v2 reputation entity operations (#6407)
* feat(ses): add the v2 reputation entity operations

Implement ListReputationEntities, GetReputationEntity,
UpdateReputationEntityPolicy and UpdateReputationEntityCustomerManagedStatus.
Every tenant is a reputation entity referenced by its full ARN. The policy
and the customer-managed status live on the tenant record, and the status
is the tenant's aggregate SendingStatus. A tenant whose status is DISABLED
is now refused on SendEmail and SendBulkEmail with MessageRejected.

Shapes, messages and validation order follow probes against real SES.

* test(ses): surface unexpected tenant cleanup failures in the reputation compat test
2026-10-24 08:16:23 -04:00
Vũ Thế Huy 4c70d6b1a2 feat(cloudformation): support Redshift snapshot restores (#6395)
* feat(cloudformation): support Redshift snapshot restores

* fix(cloudformation): address Redshift snapshot restore review findings

- Reconcile ManageMasterPassword and KMS key on in-place cluster update
- Avoid overriding inherited snapshot passwords on unrelated template changes
- Reconcile tags by deleting removed tags on update
- Mint ARN for parameter group tags to prevent invalid parameter errors
- Scope mutate locking during snapshot restore to prevent stalling writes

* fix(cloudformation): narrow Redshift snapshot restore scope

* fix(cloudformation): use shared rollback for Redshift state
2026-10-24 08:01:26 -04:00
Andre Kurait 307380750f feat(ec2): configure additional AWS-managed prefix lists (#6401)
Load an opt-in regional catalog when EC2 is enabled, canonicalize and validate its IPv4 entries, and reuse the read-only discovery and security-group paths. Resolve AWS-managed CIDRs for policy evaluation and firewall generation alongside customer-managed lists.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-24 00:35:46 -04:00
Vũ Thế Huy 348874766f feat(redshift-data): support session reuse (#6396)
* feat(redshift-data): support session reuse

* fix(redshift-data): address session lifecycle review findings

* fix(test): assert Redshift cancellation monitor directly
2026-10-24 00:01:55 -04:00
Priamo Germosen 15de90c3ff feat(stepfunctions): add the emr-serverless optimized integrations (#6386)
A Task can now use the six optimized EMR Serverless integrations the
Step Functions guide lists: createApplication, startApplication,
stopApplication, deleteApplication, startJobRun and cancelJobRun, each
request-response and .sync. Each calls Floci's EMR Serverless in the
state machine's Region. They failed with "Unsupported resource" before.

A Task names the API's members in PascalCase where the API writes them
in camelCase, so a request and a response are mapped against botocore's
EMR Serverless model, now vendored as aws/emr-serverless-shapes.json by
tools/aws/regen_emr_serverless_shapes.py: a structure's members are
renamed, a map keeps the keys the state machine wrote (tags,
InitialCapacity's DRIVER, a configuration's Properties such as
spark.executor.memory), and a member the model does not have is
dropped. A member, ApplicationId and JobRunId included, may be written
in either case. One the model has and Floci's request class lacks is
refused rather than dropped, and a test holds the classes to the model.
request_shapes.py can now keep output shapes for it. A request
without ClientToken gets a random one, as the SDK fills an idempotency
token in; the guide's examples leave it out.

The result is the API's response in PascalCase, or {"ApplicationId"}
where the API answers nothing, as the guide's table says. The guide
finds no difference between a .sync response and the API's, so a .sync
result is the starting call's own: state machines read a
createApplication.sync result's ApplicationId and a startJobRun.sync
result's JobRunId. A .sync Task records TaskSubmitted and polls
GetApplication or GetJobRun until the state the guide names, as the
elasticmapreduce ones do; a run that ends FAILED or CANCELLED, or an
application that can no longer get there, fails the Task with
States.TaskFailed and the describe response as the cause. A wait that
ends early cancels the run of a startJobRun.sync, stops the application
of a startApplication.sync and deletes the one a createApplication.sync
made, the call each integration's IAM policy grants beyond its own and
its read. EMR Serverless answering that the application or run is gone
or past undoing is logged and leaves the Task ending as it was; any
other failure is raised.

An EMR Serverless error keeps its code under EmrServerless., the
exception prefix the guide gives the service; no record shows the
optimized integration's. A Task without the ApplicationId, or a
cancelJobRun without the JobRunId, it acts on fails with
States.TaskFailed before EMR Serverless sees it.

CreateApplication now stores the configurations UpdateApplication
already did (runtime, monitoring, scheduler, disk encryption,
interactive, Identity Center and job-level cost allocation), and
ImageConfiguration keeps applicationLevelDigestResolution. Both were
dropped, from a Task and from the API alike. A runtime configuration
kept only its properties, lifted out of their member: Jackson bound the
properties member to the field of that name holding every member read.
It keeps its classification and properties now, on update as well.

GetApplication no longer returns the application's clientToken, which
its Application has no member for and which the .sync waits read. The
token stays with the stored application, which CreateApplication's
retries are matched on.

The .sync wait loop the elasticmapreduce integrations had is now shared
by both, as are their request and failure helpers, and the two EMR
Step Functions tests share their state machine helpers.

Part of #6046 (part 11).
2026-10-23 22:16:08 -05:00
Priamo Germosen 6215b6fd38 fix(iam): check iam:PassRole for RDS and DMS (#6389)
Under IAM enforcement an RDS or DMS request that names a role went through without iam:PassRole on
it. AWS's Service Reference lists iam:PassRole, passed to rds.amazonaws.com or dms.amazonaws.com,
for each of these operations, so a caller allowed to change a database could attach any role in
the account to it.

RDS, to rds.amazonaws.com:
- AddRoleToDBCluster, AddRoleToDBInstance, RemoveRoleFromDBCluster, RemoveRoleFromDBInstance,
  CreateDBProxy and ModifyDBProxy pass RoleArn, and StartExportTask passes IamRoleArn;
- CreateDBInstance, CreateDBInstanceReadReplica, ModifyDBInstance, CreateDBCluster,
  ModifyDBCluster, RestoreDBClusterFromSnapshot and RestoreDBClusterToPointInTime pass the
  Enhanced Monitoring role, MonitoringRoleArn ("The user that enables Enhanced Monitoring must be
  granted the PassRole permission.");
- they, RestoreDBInstanceFromDBSnapshot and RestoreDBInstanceToPointInTime pass the directory role
  DomainIAMRoleName names, checked on the ARN IAM holds it under, since the name carries no path;
- CreateDBCluster and the two cluster restores pass each role in AssociatedRoles, at any index and
  in either list form, as the RDS handler reads them;
- ModifyOptionGroup passes the role each option it includes takes in its IAM_ROLE_ARN setting, as
  SQL Server's native backup and audit options do, read as the handler reads OptionsToInclude.

DMS, to dms.amazonaws.com: CreateEndpoint and ModifyEndpoint pass ServiceAccessRoleArn and the
role members the DMS model gives each engine's settings structure (ServiceAccessRoleArn,
SecretsManagerAccessRoleArn, SecretsManagerOracleAsmAccessRoleArn), and CreateReplicationInstance
and ModifyReplicationInstance pass KerberosAuthenticationSettings.KeyCacheSecretIamArn.

docs/services/iam.md lists the operations and the roles they pass.
2026-10-23 22:15:57 -05:00
Priamo Germosen ec5597eb5c fix(iam): check EKS's REST routes and roles, and routes with a trailing slash (#6323)
Under IAM enforcement a REST request whose route no rule maps is let through unchecked. No EKS
route had a rule, so any signed caller could create, read, change or delete clusters, node groups,
Fargate profiles, add-ons, access entries and Pod Identity associations with no EKS permission, and
without iam:PassRole on the roles they named. A Pod Identity association hands its service
account's pods the credentials of its role, so a caller could have pods run as any role in the
account.

Every operation of the eks model now has a rule and is checked as the action of its own name, as
the Service Authorization Reference gives it, including the routes Floci does not serve yet, and
IamRestRouteCoverageTest checks the whole model. Floci takes an access entry's principal as the
rest of the path, so a GET or DELETE under an entry reads or deletes an entry: the entry's access
policy routes, which Floci does not serve, run as DescribeAccessEntry and DeleteAccessEntry and are
checked as those.

Each is checked against the resource the reference gives it, in the caller's account, where EKS
looks everything up:
- a cluster against the ARN EKS holds it under, or cluster/<name> in the request's Region for one
  it holds none of, and CreateCluster against the cluster its body names, as the EKS user guide's
  example policy for creating a cluster grants it;
- a node group, Fargate profile, add-on, access entry or Pod Identity association against the ARN
  EKS holds it under, which ends in an id the request does not carry, read through
  EksService.findResourceArn with the lookups its handlers make; listing and creating them, and the
  other routes under a cluster, against the cluster;
- DescribeUpdate against the add-on the update was made to, since the updates Floci keeps are its
  add-ons' and EKS returns one whether or not the request names its add-on, and otherwise the
  cluster;
- a tagging request against the caller's cluster named after the ARN's last /, as EKS tags it.

The roles each operation passes need iam:PassRole, with iam:PassedToService the value the Service
Reference gives: the cluster role, node role, Fargate pod execution role and an add-on's service
account and Pod Identity roles go to eks.amazonaws.com, a Pod Identity association's roleArn to
pods.eks.amazonaws.com ("The IAM principal that is creating the association must have
iam:PassRole."), and an EC2_LINUX or EC2_WINDOWS access entry's principal to ec2.amazonaws.com.

The router also matches a path with a trailing slash as the path without it, while the rules
matched the slash: POST /clusters/, GET /schedules/ and GET /2015-03-31/functions/<name>/ reached
their operation unchecked. A route is now matched without its trailing slash, as the router
matches it. An S3 path is matched as sent, as before: an S3 key may end in a slash, as a folder
marker's does, and S3's rules already take a bucket's one trailing slash.

docs/services/iam.md says which EKS routes are mapped, what each is checked against and the roles
they pass.
2026-10-23 22:15:46 -05:00
Younes BerianeandPriamo 16c159e5b2 fix(rds): run MySQL and MariaDB with their parameter group values (#5981)
* fix(rds): run MySQL and MariaDB with their parameter group values

A DB cluster parameter group or DB parameter group was stored but never
reached the engine: the container started with only the authentication
option, so the database kept MySQL's built-in defaults.

Every container start (create, reboot, stop and start, emulator restart)
now passes the group's overrides as --loose-<name>=<value> server options:
the cluster parameter group for a cluster, the DB parameter group for a
standalone instance. The loose prefix makes the server skip an Aurora-only
parameter with a warning. Formula values and the parameters that decide
where the server listens and keeps its data are left out, and Floci's
authentication options come last so the proxy keeps working.

DescribeDBClusters now reports DBClusterParameterGroup.

Fixes #5946

* fix(rds): layer the Aurora writer's parameter group and switch groups on modify

Review follow-up:

- require_secure_transport and skip_grant_tables are no longer passed to
  the server, like port and socket: Floci's proxy talks to MySQL without
  TLS, and skip_grant_tables turns networking off, so either would lock
  every client out.
- An Aurora cluster's engine now runs with its DB cluster parameter group
  and the writer instance's DB parameter group on top, so an
  instance-level value such as max_connections reaches the database.
  Creating the writer restarts the cluster's container when its group
  changes the engine's options; every later start reads the writer's
  group too.
- ModifyDBCluster takes DBClusterParameterGroupName and ModifyDBInstance
  takes DBParameterGroupName. The group is checked against the engine
  before anything else in the request is applied, recorded at once, and
  used from the database's next start (a reboot), as on AWS.

* fix(rds): apply Aurora groups on a writer reboot and report incompatible-parameters

Review follow-up:

- RebootDBInstance on an Aurora cluster's writer restarts the database the
  cluster's members share, which is how AWS applies a changed DB cluster
  parameter group or writer DB parameter group. A reader's reboot still
  only restarts its endpoint.
- time_zone reaches the server as --default-time-zone, since MySQL has no
  time_zone option, and Aurora's binlog_format=OFF, which turns binary
  logging off and which MySQL refuses as a value, as --skip-log-bin.
- A server that stops while starting with its parameter group's options
  leaves no container, and its instance, or every member of its cluster,
  reports incompatible-parameters until a reboot starts it with values the
  server accepts. Floci logs the server's error lines.
- DescribeDBClusters names a default DB cluster parameter group only when
  DescribeDBClusterParameterGroups lists it.
- The integration test reboots the writer rather than the cluster, checks
  that binary logging is off, covers a refused value, and skips through
  RdsRequests.assumeDocker.

---------

Co-authored-by: Priamo <pgermosen@gmail.com>
2026-10-23 23:15:19 -04:00
TATSUNO “Taz” Yasuhiro 54b3db771a feat(lambdaweb): serve the Lambda metadata endpoint (#6391)
* feat(lambdaweb): serve the Lambda metadata endpoint

AWS gives each environment AWS_LAMBDA_METADATA_API, AWS_LAMBDA_METADATA_TOKEN
and AWS_LAMBDA_RUNTIME_API, all at one server. It answers the zone id to a
Bearer token with any method, "Client.Unauthorized" with 401 to anything
else, Go's 404 to another path before the token, and a 307 to the clean
path.

* fix(lambdaweb): take the metadata port outside the Runtime API range

The width of that range is the Lambda concurrency, and its ports are only
reached over the Docker network, as any other port is. A listen that fails
now closes its server.

* fix(lambdaweb): start the metadata server before a start mints a session

A metadata server that could not start left the role session and the token
of an environment that never ran.
2026-10-23 23:05:55 -04:00
TATSUNO “Taz” Yasuhiro 05d4786138 feat(dynamodb): restore backups across regions (#6349)
* feat(dynamodb): restore backups across regions

* fix(dynamodb): refuse restores across partitions
2026-10-23 20:51:42 -04:00
Andre Kurait a96921afad fix(redshift): reclaim anonymous container volumes (#6382)
Reclaim disposable anonymous volumes while preserving adopted containers during failed recovery. Retain pre-reboot dumps and failed cleanup ownership across partial teardown. Preserve the original database when only proxy shutdown fails. Share startup orchestration while retaining the opt-in cleanup policy.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 20:46:24 -04:00
Andre Kurait 5b24703815 fix(ec2): normalize subnet IPv6 CIDRs and expose zone network borders (#6387)
Normalize subnet IPv6 responses and expose regional availability-zone network borders. Keep the read-only regional test at a unique execution order.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 20:27:03 -04:00
Kenshin Okinaka 0acb8cd44c fix(ses): read every SES v2 request body by the same rule (#6385)
Every SES v2 operation reads its body through readOptionBody, now also
CreateEmailIdentity, CreateEmailTemplate, UpdateEmailTemplate,
CreateCustomVerificationEmailTemplate,
UpdateCustomVerificationEmailTemplate and TagResource, which read a body
that is not a JSON object as one without members. Only an empty body is
read as one without members; a whitespace-only body, malformed JSON and
anything but whitespace after the object are a SerializationException
without a message, as AWS answers them. The hand-rolled copies in the
tenant, contact, account, identity, import job, send, dedicated IP,
suppression and template controllers, which answered malformed JSON
with a BadRequestException carrying Jackson's message, are gone, and so
is the import job controller's own strict reader. The operations that
answer an empty body with "Request body is required." no longer give
that answer for a whitespace-only one.
2026-10-23 19:23:56 -04:00
Andre Kurait ceaad92e06 fix(autoscaling): apply group capacity reservation preferences (#6378)
Honor group preferences and inherited targets in the shared launch path. Preserve failed launch state, limit fallback to capacity shortages, and validate all supplied numeric Query target members. Reuse existing SDK coverage.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 18:23:50 -04:00
Andre Kurait f7c9d9a993 fix(ec2): pin Rocky 10 runtime to advertised release (#6379)
Pin the Rocky 10 backing image to the release already advertised by its catalog identity and documentation.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 17:32:55 -04:00
Andre Kurait 18910223e1 fix(route53): normalize record name case identity (#6374)
Normalize Route53 record identity without mutating records before batch commit. Reuse the shared ASCII record-name normalization for alias comparison, as requested in maintainer review.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 16:43:25 -04:00
Andre Kurait d2f06bdd5b fix(ec2): align Rocky 9 runtime with advertised release (#6377)
The configured Rocky 9 image reports 9.3, while the catalog advertises 9.6. Use the explicitly versioned Rocky image and update the documented mapping.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 16:38:12 -04:00
Andre Kurait 81d399a1ed fix(ec2): honor capacity-reservations-only launches (#6354)
Require reserved capacity for direct, template, Fleet and Auto Scaling launches. Preserve the targeted shortage message shared with restart. Keep CloudFormation timeout fixtures in their separate contribution.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 15:24:58 -04:00
Isak Lindbeck 6914401ede feat(msk): apply SCRAM credentials in redpanda cluster (#6353)
* feat(msk): apply SCRAM credentials in redpanda cluster

* fix(msk): scope SCRAM synchronization to each cluster

* docs(msk): clarify SCRAM users do not enable broker authentication
2026-10-23 15:09:18 -04:00
Vũ Thế Huy 38c641ec7e feat(redshift-data): support client token idempotency (#6343)
* feat: support Redshift Data API client token idempotency

* test: verify Redshift Data API retry compatibility

* fix: address Redshift Data admission and cleanup races

* refactor(redshift-data): remove implicit in-memory receipt constructor
2026-10-23 14:36:33 -04:00
Aniket Shukla 4093694451 fix(iot): emit retained message timestamps in milliseconds (#6365)
Match the IoT Data Long response contract instead of emitting floating-point seconds. Cover both retained read responses with fixed values, missing-timestamp controls, and SDK wire round trips.
2026-10-23 14:08:01 -04:00
Vũ Thế Huy 1b8548a0af feat(redshift): create final snapshots before deleting clusters (#6346)
* feat(redshift): create final snapshots before deleting clusters

* fix(redshift): clean failed dumps and scope snapshot locking

* fix(redshift): default manual snapshot retention and fix Spectrum cleanup
2026-10-23 14:06:47 -04:00
Andre Kurait 1f31f5bf48 fix(route53): compare alias target DNS names canonically (#6357)
Fold only ASCII DNS letters and accept an optional trailing dot while keeping distinct target values and rejected batches intact. Exercise compatibility cases using the suite endpoint.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 13:49:29 -04:00
TATSUNO “Taz” Yasuhiro 7e6439cf86 feat(lambdaweb): check the execution role as AWS does (#6347)
* feat(lambdaweb): check the execution role as AWS does

AWS refuses a revision whose execution role is in another account with
403 AccessDeniedException. It refuses a role that does not exist or does
not trust lambda.amazonaws.com with 400 ValidationException, and that
check gives no aws:SourceAccount or aws:SourceArn. An environment
assumes the role with the function as its source, and a request gets
502 Platform.CannotAssumeRole when Lambda can no longer assume it.

* fix(iam): match a wildcard principal and the service keys in service trust

{"AWS": "*"} lets Lambda assume a role, and a Deny on it refuses the role.
Lambda sets aws:PrincipalIsAWSService to true and aws:PrincipalServiceName
to its principal when it checks the role and when an environment assumes it.

* fix(lambdaweb): answer CannotAssumeRole when the role goes during a start

A role deleted after the trust check gave the container the account's
placeholder credentials. AWS answers 502 Platform.CannotAssumeRole for a
deleted role.
2026-10-23 10:50:14 -04:00
Aniket Shukla 99171dcbe0 fix(organizations): return OU and account paths (#6341)
* fix(organizations): return OU and account paths

* fix(organizations): stabilize list path rendering

Render selected resources from request-local parent IDs without leaf rereads. Preserve scoped ancestry errors and tolerate concurrent removal or movement. Reduce account collection scans for a full 20-row page from 21 to 1.

* refactor(organizations): share ancestry walk and path format

Keep live, CloudFormation, and cached list paths on one traversal with caller-supplied parent lookups. Preserve scoped fallback and stale-row handling, and cover root-to-leaf path parity at three depths.
2026-10-23 10:24:22 -04:00
Andre Kurait 7c8daff08f feat(lambda): retarget provisioned alias allocations (#6335)
Retarget provisioned alias allocations while retaining quota and cleanup ownership. Isolate failed replacement writes or unsupported targets to their allocation so unrelated configurations continue reconciling. Retry the retained allocation when its target or storage recovers.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 10:19:57 -04:00
Andre Kurait 5182449625 fix(ec2): report targeted reservation capacity exhaustion (#6344)
Return ReservationCapacityExceeded when a matching targeted reservation lacks capacity at precheck or admission, including restart. Preserve mismatch errors and existing resource cleanup.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 10:06:37 -04:00
Aniket Shukla 589a6a91f7 fix(bedrock): validate guardrail ARNs for tag actions (#6342) 2026-10-23 09:41:24 -04:00
Jimmy Liu Jia d4f454a1cf fix(elasticache): preserve and mutate resource tags (#6327)
* fix(elasticache): preserve and mutate resource tags

* fix(elasticache): complete resource tag mutations

* docs(elasticache): sync tag actions

* docs(services): update ElastiCache action count

* fix(elasticache): use AWS InvalidARN tag error code

* fix(elasticache): align resource tag mutations with lifecycle and AWS errors
2026-10-23 09:04:51 -04:00
Andre Kurait d05399feb1 feat(ec2): associate instances with capacity reservations (#6336)
Associate eligible instances with capacity reservations across EC2, AutoScaling and CloudFormation. Preserve account ownership, rollback, physical stop/start ordering and bounded targeted quota admission.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 08:40:28 -04:00
Vũ Thế Huy 7e51e69c44 feat(redshift): support default IAM roles for COPY and UNLOAD (#6304)
* feat(redshift): support default IAM roles for COPY and UNLOAD

* fix(redshift): distinguish default role keyword from literals

* fix(redshift): accept blank default IAM roles
2026-10-23 08:33:20 -04:00