Commit Graph
6265 Commits
Author SHA1 Message Date
Priamo GermosenandJames McMahon 05b77db069 feat(ssm): support agent-backed Session Manager sessions (#9492)
Session Manager for Linux EC2 guests running the stock SSM agent and the Session Manager plugin: interactive shells, SSH and port forwarding, with StartSession, ResumeSession, TerminateSession, DescribeSessions and GetConnectionStatus, and session document validation. Direct SendCommand execution on instances without the agent is unchanged.

StartSession and GetConnectionStatus are checked on the EC2 target, and StartSession on the selected or default session document, read from the Session Manager guide and API reference pages vendored in tools/aws/sources/ssm-session-permissions.json.

Replaces #9366, rebased onto main with the generated IAM table refreshed. On top of it, GetConnectionStatus echoes the Target it was asked about, as AWS answers. The agent's OpenDataChannel is checked on the session ARN, as the client's is, so a deny on one session reaches the instance role. Starting a session deletes the account's history older than the 30 days DescribeSessions lists.

Closes #9365

Co-authored-by: James McMahon <james@jamesmcmahon.co.uk>
2026-11-26 00:04:57 -04:00
Andre Kurait 798c21df62 test(ecs): cover both daemon stop completion orders (#9469)
The daemon rollout test now hands the task stop to a mocked executor and covers both completion orders: a stop that finishes during reconciliation, and one queued until the test runs it, where the task is STOPPING and no replacement starts until it does. Either order ends with exactly one replacement on the original container instance, without waiting on the background stopper.
2026-11-25 23:31:36 -04:00
Andre Kurait 0bd2688912 fix(rds): reserve the configured DSQL listener port (#9471) 2026-11-25 23:21:24 -04:00
Krishna Aditya S.V.S 202175882a refactor(cloudwatch): deduplicate filter pattern regex tracking and decompose parsing helpers (#9470)
Pull the duplicated regexes field and regexCount() up into FilterPattern, make TermPattern's term lists immutable on construction, move quote- and bracket-aware tokenization into SpaceDelimitedTokenizer, share the $-prefix reference key extraction, and split the long parsing methods of SpaceDelimitedPattern, AwsRegex, TermPattern and JsonSelector into focused helpers. No behavior change.

Closes #9494
2026-11-25 23:10:26 -04:00
Priamo Germosen 733895a953 fix(docdb): keep each cluster's data in a Docker volume of its own (#9491)
A DocumentDB cluster's MongoDB container kept its data in the unnamed
volume the mongo image declares for /data/db. Removing the container, as
Floci's shutdown does, left that volume behind with nothing to find it
by, so a cluster could never be started again on its data.

With a persistent storage mode (persistent, hybrid or wal), a new
cluster now gets a volume ID, kept in its record, and its container
mounts floci-aws-docdb-<volume-id> at /data/db, or binds
<host-path>/docdb/<volume-id> when the host persistent path is an
absolute path. Memory mode and mock mode are unchanged.

DeleteDBCluster removes the volume as the storage policy says: a
persistent mode keeps it unless prune-volumes-on-delete is set. A
cluster whose create fails, or that a failed snapshot or point-in-time
restore discards, never reached the caller, so its volume goes whatever
the policy. A container that started but whose MongoDB never answered
is removed too, so it holds no volume. A cluster created again under a
deleted one's identifier starts on a new, empty volume.

Starting the clusters' containers again on these volumes when Floci
restarts comes next.

Part of #5664.
2026-11-25 23:00:18 -04:00
Priamo Germosen 6196543370 feat(iam): check Amazon EFS by its REST routes (#9483)
Under enforcement a REST route no rule maps and no vendored model names
runs unchecked. Amazon EFS was among those: Floci serves it and no rule
mapped it.

Vendors the efs model's routes, so each request is checked as its
operation's action: a caller holding no grant for one is now refused
where the request used to pass.

EFS joins the table of request resources: a file system by its id, an
access point by its, and a mount target's operations and the tag calls
by what EfsStoredResourceArns answers their MountTargetId or ResourceId
reaches, the file system or the access point EFS stores. All 31 of its
operations read every type the Service Authorization Reference marks
required, so every route is checked on the resources AWS checks. Its
two creates join the tag-on-create table, and
CreateReplicationConfiguration's Destinations[].RoleArn is checked for
iam:PassRole.

A tagged create of a type its action does not act on tags the resource
it makes where its request names every variable of it; a variable the
service mints, which the create's response answers and its request
carries none of, now counts as named there, staying open as it does in
every resource a create makes. So CreateAccessPoint, which acts on its
file system, has its tags checked on access-point/* rather than on the
file system, and so do five creates of other namespaces whose made
resource was named but for a minted id: CloudFormation's
CreateChangeSet, EMR's StartNotebookExecution, Textract's
CreateAdapterVersion and Transfer Family's CreateAgreement and
CreateConnector.
2026-11-25 22:46:23 -04:00
Kenshin Okinaka 2f2fafd044 test(dns,eks): skip the Linux-only loopback and /proc cases off Linux (#9493) 2026-11-25 22:46:02 -04:00
Andre Kurait 6906face9c test(docker): finish pool requests before checking stream gauge (#9468)
The Docker stream gauge test reads the process-wide active-stream counter, so the classes that open Floci Docker streams now take ParallelLocks.DOCKER_ACTIVE_STREAMS for reading and the gauge test takes it for writing, with an inventory check for new stream users. The gauge test waits for earlier callbacks to retire through one awaitStreamCount helper, the pool test waits for the third request's lease timeout instead of a second of silence, and both timeout tests share DockerTestSupport.rootCause.
2026-11-25 22:37:03 -04:00
mrfelek 4b7d57f016 feat(eks): launch EKS Auto Mode nodes for pods no node can take (#9444) 2026-11-25 22:30:00 -04:00
Priamo Germosen fb658f01ee fix(iam): read the role's tags in federated and service trust policies (#9486)
A role's trust policy read for AssumeRoleWithWebIdentity or
AssumeRoleWithSAML, or when a service assumes the role, never saw the
role's own tags: a condition on aws:ResourceTag/<key> or
iam:ResourceTag/<key> matched nothing, so a trust policy allowing an
assume only onto roles carrying a tag refused every one, and one denying
it onto such roles never applied. AssumeRole has read them since the
role's stored tags were given to its trust policy; these paths run their
own condition reading and were left out.

Each of those assumes acts on the role, which the Service Authorization
Reference gives aws:ResourceTag/${TagKey} and iam:ResourceTag/${TagKey},
and the global condition keys page has aws:ResourceTag in the request
context "when the requested resource already has attached tags". The
web identity and SAML evaluators now read the role's tags, under the keys
the generated resourceTagKeys table gives the role type, beside the
token's claims or the assertion's attributes, a tag key matched whatever
its case. A service's assume reads them through a new
AssumeRolePolicyEvaluator.allowsService taking the role, which the
service-role authorizer, the AppSync data source authorizer, Step
Functions' Lambda and API Gateway tasks and the Lambda web adapter's
execution role now use, beside the service's principal and source keys.
2026-11-25 22:26:18 -04:00
Hector Ventura 952667294d fix(backup): keep backup plans, selections, jobs and recovery points in their Region (#9490) 2026-11-25 22:21:38 -04:00
Niels Kootstra f046df07aa fix(ec2): attach launch-created EBS volumes as block devices when the instance runs (#9438)
Restore the data volumes a launch creates from its block device mappings as guest block devices through the StartInstances restore hook, run before the instance is marked running so they exist before UserData. DetachVolume takes the per-volume lock attach and delete already take, and the restore re-reads each volume under it, so a detach during a restore removes the device afterwards.
2026-11-25 22:06:55 -04:00
Kenshin Okinaka bde90de4d4 fix(ses): word the v1 custom verification template create errors as SES does (#9440) 2026-11-25 21:59:59 -04:00
TATSUNO “Taz” Yasuhiro aeb4593696 feat(eventbridgev2): rotate webhook credentials (#9443) 2026-11-25 21:56:53 -04:00
Mahmoud Khalifa 2dd81154f1 fix(sqs): drop the cached RedrivePolicy when the queue's attributes change or it is deleted (#9463)
ReceiveMessage cached a queue's parsed RedrivePolicy and never dropped it, so a SetQueueAttributes change kept redriving under the old policy and a re-created queue inherited its predecessor's. The entry is now removed on SetQueueAttributes and DeleteQueue, and each entry keeps the policy text it was parsed from, so a receive reparses whenever the queue's current policy differs.

Closes #9461
2026-11-25 21:53:21 -04:00
Hector Ventura 88508c3040 test(cloudfront): expect the partition's edge suffix on a connection group's routing endpoint (#9482) 2026-11-25 21:51:36 -04:00
Allen Sanborn ad8498a813 fix(ec2): honour DryRun on the transit gateway, Client VPN, key pair, launch template and describe calls (#9075) 2026-11-25 21:48:56 -04:00
Allen Sanborn 8a4880f7b3 fix(events): word not-found, already-exists and invalid-state errors as AWS does (#9295)
Word EventBridge's not-found, already-exists and invalid-state errors as AWS does, built in EventBridgeErrors: rules name their bus, event buses, archives and replays use "X does not exist." and "X already exists.", connection and api-destination describe and update name the failing call, and CancelReplay on a settled replay answers IllegalStatusException. StartReplay naming a missing archive now answers ValidationException. Paths with no recorded AWS answer keep Floci's text.
2026-11-25 21:47:04 -04:00
Andre Kurait 66d84afb16 test(cloudformation): cover unstored runtime properties and health replacement (#9408)
Pin two CloudFormation behaviours from #9123: a Route53 health check's HealthCheckConfig.EndpointType change requires replacement while a Port change does not, and the AgentCore runtime provisioner warns once per non-null HooksConfiguration or ResourceConfigurations without logging their values.
2026-11-25 21:43:25 -04:00
Priamo Germosen 5610fd44bd fix(mwaa): re-claim kept containers' VPC addresses safely at startup (#9472)
MwaaService re-claimed the VPC addresses that Airflow containers kept
across a restart hold when the service was first used, in its
@PostConstruct, and the Docker lookup there caught only a missing
container. Since #9466 startup calls the service to restore the
environments, so a Docker daemon that did not answer, with an
environment in a subnet, stopped Floci from starting.

The re-claim now runs when the startup restore begins, on the starting
thread, before startup goes on, so EC2 hands none of those addresses to
an instance. Each environment is re-claimed on its own: a Docker error
is logged and stops neither startup nor any other environment. That
environment's restore tries again before taking its containers over,
and fails, leaving it UNAVAILABLE, when it cannot either, rather than
taking a container over with an address EC2 may hand out. The container
is found under its current name or the one before the floci-aws- prefix,
as the takeover finds it.

Part of #5664.
2026-11-25 21:18:18 -04:00
Priamo Germosen fbd71963e8 chore(iam): refresh the generated tables from the Service Reference (#9481)
Regenerates iam-authorized-actions.json, iam-passed-roles.json,
iam-tag-on-create.json and iam-request-resources.json from the live
Service Reference, which has changed since they were vendored: Bedrock's
data retention storage actions and Elastic Load Balancing's proxies and
certificate associations are new, Bedrock's ListInferenceProfiles now has a
resource type, RestoreDBClusterFromS3 no longer passes its
role to rds-preview, and Redshift's two IdC application creates read their
request tags. Nothing else changes.

Elastic Load Balancing's new CreateProxy passes a role, so the passed-roles
generator now reads elasticloadbalancing, as PassedRoleNamespacesIntegrationTest
requires of a namespace Floci serves: CreateProxy is recorded as not read,
the pinned botocore not having the operation yet.
2026-11-25 19:23:29 -04:00
Priamo Germosen 0ed899bd59 fix(iam): give a role's tags to the policies an AssumeRole is checked against (#9474)
IAM's stored lookup answered no tags, so a role or user was never given its
aws:ResourceTag or iam:ResourceTag keys outside the IAM condition-key
table's fromTarget route, and an AssumeRole saw none of the role's tags:
a caller's policy allowing sts:AssumeRole on roles carrying a tag (the
guide's "Assume roles that have a specific tag") matched no role, and a
trust policy keyed on its own role's tags never matched.

IamStoredResourceArns.storedTags now gives the tags of the user or role an
ARN names, in the account it names, path included: the identity resources
iam:ResourceTag reads ("the tag attached to the identity resource (user or
role)"), which IAM and STS read aws:ResourceTag on alike. The trust policy
of an AssumeRole, and of the role a Step Functions Lambda task assumes, is
read with the role's tags under the keys the generated table gives the
role type, through IamConditionContextResolver.resourceTagKeys, which
resourceTags now shares.

A resource-tag key the generated IAM condition-key table does not read for
the action being checked is left out of its context
(IamConditionContextResolver.resourceTags(action, resource), from
IamConditionKeys.unreadTagPrefixes): the table reads none for iam:PassRole,
AWS warning that ResourceTag conditions with PassRole "do not have reliable
results", so a PassRole check still sees no role tags.
2026-11-25 18:46:34 -04:00
Priamo Germosen c829b397ab fix(mwaa): start environments again when Floci restarts (#9466)
Floci's shutdown removed every MWAA environment's Postgres and Airflow
containers, with their volumes, and nothing started them again, so after
a restart with persistent storage an environment reported AVAILABLE with
nothing behind its webserver URL.

Shutdown now keeps the volumes while the environments are stored to come
back, and Floci keeps the secrets the metadata database was set up with
(its password, the Fernet key and the admin password) in a store of its
own, which GetEnvironment never returns. Shutdown removes containers by
the IDs Floci holds and under the environments' names, so none outlives
it, the ones a restore had not reached yet included. At startup each
environment reports MAINTENANCE, or CREATING while it was being created,
and its containers come back in the background. Containers that outlived
Floci are taken over, their secrets read back from the Airflow
container. Otherwise new ones start on the kept volumes with the kept
secrets, so DAG runs, connections and variables are back, and the
startup script and requirements.txt run as at creation. Containers and
volumes named before the floci-aws- prefix are found too. The web proxy
comes back on the port WebserverUrl names, or on a new one when that
port is taken. The first DAG sync after the restore compares the DAG
volume with S3, so a DAG deleted while Floci was stopped is removed; the
sync reads every page of the S3 listing, so no DAG past the first
thousand reads as deleted. The readiness poller reports the environment
AVAILABLE once Airflow is healthy, or UNAVAILABLE when a container exits
first; one whose containers do not start is UNAVAILABLE, and tried again
at the next start.

An environment stored before Floci kept the secrets gets them back from
a container left under its name, or, with none left, new ones, as its
volumes went at the shutdown then; one whose volumes are still there is
left UNAVAILABLE rather than started on new ones. Secrets found or given
are kept before anything starts. When Docker cannot say which containers
or volumes are left, the environment's restore fails, removing nothing.

A DeleteEnvironment during the restore leaves the environment DELETING
until its containers have started, and the restore then removes it; one
still DELETING at the next start is removed then. A start that shutdown
overtakes removes its containers. A new environment starts on empty
volumes, so it never inherits a database set up with other secrets.

Part of #5664.
2026-11-25 17:23:27 -04:00
Priamo GermosenandAndre Kurait b012f4d6bf fix(iam): check VPC endpoint IDs in EC2 tag calls on their endpoint ARN (#9467)
CreateTags and DeleteTags checked a vpce- ID in their Resources list on `*`, because the generated table learns
each ID prefix from botocore's examples and botocore gives none for VPC endpoints. A grant on one endpoint was
refused and a deny on it never applied.

fetch_ec2_id_examples.py copies the identifier examples of the EC2 API reference's CreateVpcEndpoint page into
tools/aws/sources/ec2-id-examples.json, and the generator matches their XML paths to botocore's output shapes,
which gives VpcEndpointId the vpce- prefix. That prefix joins botocore's in the one prefix map and reads only the
tagging calls' generic list, so DeleteVpcEndpoints keeps its typed reader. The source names its namespace and
pages, and the shared source verifier checks it against the live page.

The regenerated table also takes in what the Service Reference added on 2026-11-25: CloudWatch's omni-slo,
experiment and lookup types, which its tag operations now act on, Elastic Load Balancing's proxy type and the
amplifygen3 namespace.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-25 17:22:55 -04:00
Kenshin Okinaka 1206d32a03 test(emr): stop the relay test blocking on a live relay's output (#9456)
EmrMetadataRelaysTest's awaitListening read a live relay's stdout to EOF when the relay missed its ten-second deadline, which a running relay never reaches and JUnit's timeout cannot interrupt. It now reads only what is buffered while the relay is alive, and everything once it has exited.
2026-11-25 16:12:19 -04:00
Jimmy Liu Jia be526ff56e fix(eventbridge): emit whole-second scheduled event times (#9455)
Closes #9450

A scheduled rule's Scheduled Event now carries its time to the second, as PutEvents events have since #8020, read from the scheduler's clock so a test can pin it. RuleSchedulerTest covers a cron and a rate rule.
2026-11-25 16:10:02 -04:00
Priamo Germosen 215e37eb48 fix(cloudtrail): name S3 denials as CloudTrail records the operation's data event (#9460)
IamEnforcementFilter named the CloudTrail data event of a denied S3 request
from a hand-written table keyed by the IAM action, so a request checked
under another operation's action took that operation's name: HeadBucket
was recorded as ListObjects, CopyObject, UploadPart and UploadPartCopy as
PutObject, GetObjectTorrent as GetObject, ListBuckets as a data event,
and ListObjectVersions, ListParts, DeleteObjects, AbortMultipartUpload and
the legal hold and retention calls were not recorded.

A denial is now recorded under the data event of the operation the request
matched, from src/main/resources/aws/cloudtrail-s3-data-events.json, which
tools/aws/regen_cloudtrail_s3_data_events.py generates from botocore's S3
model, the S3 user guide's data events table and its sentence naming the
event a call is recorded with (vendored by
tools/aws/fetch_cloudtrail_s3_data_events.py), and AWS's S3 service
reference. An operation the table for general purpose buckets lists is
recorded under its name or the one the guide gives it (PutObjectRetention
as PutObjectLockRetention), a versioned one under the version-less name
the table lists (ListObjectsV2 as ListObjects), and an operation it does
not list records no data event. readOnly is the service reference's, by
the reading iam-action-resources.json's readOnlyActions are vendored by,
in place of CloudTrailService's hand-written list.

The IAM data drift workflow runs on a pull request touching any of the six
new files, so the online check covers a change to the table alone.
2026-11-25 15:10:24 -04:00
galsuchetzky-act 208b07b54a fix(apigateway): paginate REST deployments (#9437)
Use the shared ID pager and response envelope for GetDeployments. Preserve unpaged internal reads, missing-parent responses and deployment metadata.

Closes #8603
2026-11-25 14:44:35 -04:00
James McMahon d5fdfbaa63 refactor: share data-channel routing with ECS Exec (#9432)
Move /v1/data-channel/:sessionId routing out of ECS Exec into a shared
DataChannelRouter in the ssmmessages package, with ECS Exec as a
DataChannelHandler behind it. Plain HTTP requests still fall through, an
unknown session still returns 404, and ECS Exec keeps its session token check
and streaming. AgentMessage moves with the route, and the service inventory
notes the new package.
2026-11-25 14:38:49 -04:00
Andre Kurait 2615a68276 test(codepipeline): wait for terminal worker cleanup (#9439)
CodePipelineRetryRollbackTest's awaitStatus now also waits for the run to leave activeRuns. A run saves its terminal status before its worker removes it from activeRuns, so a RetryStageExecution sent as soon as the run read Failed could be refused with ConflictException, failing retryingRollbackTargetStageDoesNotRunLaterStages intermittently. Every caller waits on a terminal status. No production change.
2026-11-25 14:37:51 -04:00
mrfelek 0dfa48e9fc feat(eks): give EKS Auto Mode Ingresses of the ALB class an Application Load Balancer (#9413)
Step 7c of #8914: while a cluster has EKS Auto Mode load balancing on, an Ingress whose IngressClass names the eks.amazonaws.com/alb controller, or that names no class while such a class is the default, gets an Application Load Balancer.

- Floci installs the IngressClassParams kind (eks.amazonaws.com/v1) while load balancing is on, through the shared applyAutoModeManifest step, and removes it once it is off.
- The load balancer is named k8s-<namespace>-<name>-<hash>, with the scheme and subnets of the class's IngressClassParams, else the alb.ingress.kubernetes.io/scheme annotation and the cluster's subnets, internal by default. Ingress names hash their kind, so a Service and an Ingress of one name don't collide.
- An HTTP listener on port 80 answers a fixed 404 or forwards to the Ingress's defaultBackend. Each rule's paths become listener rules in the Load Balancer Controller's order: the rules as listed, and within each, Exact paths first, then Prefix paths longest first, then ImplementationSpecific ones.
- Target groups sit on each backend Service's TCP NodePort, with the cluster's node registered and an HTTP health check at the healthcheck-path annotation's path.
- A changed scheme replaces the load balancer, changed subnets and health-check paths are applied, and an Ingress whose class names missing IngressClassParams keeps its load balancer as it is.
- The Services reconciler's ELBv2 lookups, node registration and kubectl calls move to EksAutoModeElb and EksAutoModeKubectl, shared with Ingresses.
2026-11-25 13:52:02 -04:00
andrei-fabricdata f1c2c44883 fix(verifiedpermissions): resolve action groups from the policy store schema (#9427)
AVP builds the action entities, with their memberOf action-group parents,
from the policy store's schema. Floci sent the sidecar only the entities in
the request, so a policy scoped with `action in NS::Action::"Group"` never
matched a member action and IsAuthorized returned DENY where AWS returns
ALLOW.

IsAuthorized, BatchIsAuthorized and their token variants now merge the
schema's action entities into the request entities before evaluation. The
schema's definition replaces a caller entity with the same identifier, since
IsAuthorized entities cannot include actions and IsAuthorizedWithToken accepts
an action entity with only its identifier. An unreadable stored schema is
logged and the request is evaluated without schema-derived actions.
2026-11-25 13:51:52 -04:00
Vũ Thế Huy 0d2ef89d0e feat(rds): load a zero-ETL integration's source into Redshift (#9353) 2026-11-25 13:51:36 -04:00
Priamo Germosen 42dadc4ed9 fix(athena): word GetQueryResults' refusals as Athena does by the query's state (#9454)
GetQueryResults refused the results of every query that had not succeeded
with "Query has not succeeded yet". Athena words the refusal by the
query's state: "Query has not yet finished. Current state: <state>" for
one still queued or running, "Query did not finish successfully. Final
query state: FAILED" for a failed one, and "Could not find results" for a
cancelled one, each an InvalidRequestException as before.
2026-11-25 12:08:41 -04:00
Priamo Germosen 4018e8d0b5 fix(athena): answer a query execution only in the Region it was started in (#9453)
Athena kept query executions by their id alone, so GetQueryExecution,
GetQueryResults and StopQueryExecution sent to one Region answered another
Region's execution, and ListQueryExecutions listed every Region's
executions of the workgroup. AWS keeps query executions per account and
Region. Each is now answered and listed only in the Region recorded for it
when it started; one stored before Floci recorded it is answered in every
Region, as it was. An id Athena holds none of in the Region gets AWS's
answer, InvalidRequestException "QueryExecution <id> was not found", in
place of "Query execution not found: <id>".
2026-11-25 11:00:27 -04:00
Priamo Germosen c843dcbdfc fix(opensearch): start domain containers again when Floci restarts (#9434)
Floci's shutdown removes every OpenSearch domain's container, and
nothing started them again, so after a restart with persistent storage
a domain reported an endpoint nothing answered on.

At startup, each domain goes back to Processing, and its container
comes back in the background. A container that outlived Floci, kept
running across the shutdown or left behind by a killed Floci, is kept:
found by the container ID the record names, started again if it
stopped, and its host port reserved again. Otherwise the domain gets a
new container on the data it kept, so its indices are back, and the
readiness poller reports it ready once it answers. A domain started
again keeps the storage its record names, whatever the data-volume
setting says then: the operator's volume, or bind-mounted directory,
whose path the record now keeps, or its own Floci-managed volume. With no Docker
daemon reachable, a domain has no container, as one created then has.

A domain deleted during its restore reads Deleted, keeps its name, and
is removed with its container and data once the restore's start is
through; one still Deleted at the next start is removed then. Each
removal is confirmed with Docker, and deleting again a domain whose
delete Docker kept the container of confirms it the same way, one
retry at a time, on the record still stored. A start that shutdown overtakes
removes its container.

Part of #5664.
2026-11-25 10:05:46 -04:00
Priamo Germosen 93cab8398d feat(iam): check Athena query executions and named queries on their workgroup (#9442)
The generated request-resources table reads the workgroup of an Athena
query execution or named query through its id (`through`), which no
service answered, so GetQueryExecution, GetQueryResults,
GetQueryRuntimeStatistics, StopQueryExecution, GetNamedQuery,
UpdateNamedQuery and DeleteNamedQuery were checked on `*`.
AthenaStoredResourceArns now answers it with the workgroup the stored query
execution or named query runs in, `primary` for one naming none, looked up
read-only; an id Athena holds none of names nothing.

Athena kept query executions by their id alone, so a request sent to one
Region could name another Region's execution. Each execution's Region is
now recorded beside it (query-regions.json), and an execution is checked
on its workgroup in the Region it was started in, whichever Region the
request is sent to: a grant on another Region's workgroup of the same
name does not reach it, and a deny on its own workgroup is not passed by
through another Region.
2026-11-25 09:49:34 -04:00
Priamo Germosen bf13478d03 refactor(iam): read Step Functions' Scheduler task permissions from the generated tables (#9436)
TaskPermissions built the schedule a Scheduler SDK task acts on by hand,
schedule/<group or default>/<name>, and its action from the API's name. Read
both as a direct Scheduler request is read: the schedule with
RequestResources.ofBody over the generated request-resources table and the
action with IamAuthorizedActions, with SchedulerService passed through
ControlServices so a request naming no group is checked on Scheduler's
default group. The hand-built ARN and its helper are gone; the checks are
the same.
2026-11-25 08:29:24 -04:00
James McMahon 66f80b6a26 fix(ssm): match the agent ec2messages wire format (#9431)
The stock SSM Agent polls ec2messages with the EC2WindowsMessageDeliveryService target prefix, which Floci answered with UnknownOperationException, and it reads a command payload and writes its reply as JSON text, where Floci added a Base64 layer. Floci now accepts that prefix alongside its existing one and exchanges the payload and reply as JSON text, so a stock agent can poll, run a command and report it.

Closes #9370
2026-11-25 07:52:39 -04:00
Andre Kurait d37e445df1 fix(ec2): share IPv6 count source validation (#9435)
Fold CreateNetworkInterface prefix combinations into the existing IPv6 source validator. Preserve its specific-address message and negative-count precedence across service and Query callers.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-25 07:43:21 -04:00
galsuchetzky-act ffc3bdffa1 fix(apigateway): paginate base path mappings (#9430) 2026-11-25 07:29:24 -04:00
Priamo Germosen c9a4443f50 feat(iam): read Transfer Family from the generated tables (#9420)
Move `transfer` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so Transfer Family requests are checked on
the resources they name instead of `*`: a server by its ServerId, as
server/<id>, and a user by its ServerId and UserName, as
user/<server-id>/<name>, the ARNs the service mints, and a tag call on its
Arn. No other namespace's rows change.

The resource a create makes now leaves open a variable its response
answers when its request carries no member of that name, an id the service
mints: ImportCertificate's certificate took its CertificateId from the
certificate body it imports, and ImportHostKey's host key its HostKeyId
from the key body. Across the table only those two rows change.
2026-11-25 07:24:59 -04:00
galsuchetzky-act fbbaee3f93 feat(bedrock): include Nova Pro in the foundation model catalog (#9426)
The foundation-model seed had no Nova Pro, so GetFoundationModel answered ValidationException for amazon.nova-pro-v1:0. The catalog now carries it with the metadata its model card publishes: TEXT, IMAGE and VIDEO input, TEXT output, response streaming, ACTIVE lifecycle, and In-Region availability in us-east-1, us-gov-west-1, eu-west-2, ap-southeast-2, ap-southeast-3 and me-central-1. Its system-defined inference profiles are not seeded.

Closes #9078
2026-11-25 07:18:00 -04:00
TATSUNO “Taz” Yasuhiro 6a7428aabc feat(eventbridgev2): receive webhook events (#9424)
The webhook event sources #9321 added had a URL that answered nothing. A POST to it is now checked in the order AWS checks it: the method, the URL's host-bound token, the body size, the source's credential (a static token, Basic or an HMAC signature, read from its Secrets Manager secret and compared in constant time) and then the body, which must be one JSON value. A request that passes is published as an event on the source's bus with its listed headers as Metadata, and CONTENT_BASED deduplication drops a repeat within five minutes.
2026-11-25 07:09:43 -04:00
Jimmy Liu Jia bc98bbbb23 fix(s3): block SSE-C writes for new and configured buckets (#9414) 2026-11-25 07:09:21 -04:00
mrfelek 017b687567 feat(eks): give an EKS Auto Mode cluster its node pools, default node class and Auto Mode node label (#9425) 2026-11-25 06:56:14 -04:00
Niels Kootstra 47e554680b feat(sts): verify web identity tokens from OIDC providers registered in IAM (#9217)
AssumeRoleWithWebIdentity verified only tokens from issuers Floci knows, such as its own EKS clusters, so a token from an OIDC provider registered with CreateOpenIDConnectProvider could not be verified. For a registered https issuer, the provider is read in the role's account, the token's key comes from the issuer's jwks_uri, and aud must name one of the provider's client IDs. An issuer whose keys cannot be fetched answers InvalidIdentityToken with AWS's message, and a token naming no key ID is refused with InvalidIdentityToken too.

Closes #7942
2026-11-25 06:55:39 -04:00
Jimmy Liu Jia b57af59bf8 fix(ec2): honor block device delete-on-termination updates (#9422)
ModifyInstanceAttribute accepted BlockDeviceMapping entries without changing the attached volume's DeleteOnTermination flag, and DescribeInstanceAttribute returned no mappings. Each requested mapping is now resolved to an attached volume by device name or volume ID and checked before any flag changes, an omitted DeleteOnTermination defaults to true as the API reference says, and DescribeInstanceAttribute returns the instance's block device mappings.

Closes #9384
2026-11-25 06:52:10 -04:00
Andre Kurait 87ff8135a9 feat(ec2): retain IPv6 launch metadata and allocation properties (#9418) 2026-11-25 06:50:02 -04:00
Hector Ventura 0f5d2c8886 test: run the EKS auto mode classes nightly and wait for a PgBouncer login (#9423)
EksAutoModeBlockStorageDockerIntegrationTest and EksAutoModeNlbDockerIntegrationTest each start a k3s node, so they become DockerNightlyIntegrationTest classes behind the nightly.checks.enabled guard, and a change under services/eks/ still runs them through the nightly selection. RdsPgBouncerDockerNightlyIntegrationTest waited for the pooler's port with a socket probe, which Docker publishes before PgBouncer listens, so the wait now completes a JDBC login and SELECT 1 for up to 30 seconds.
2026-11-25 06:49:14 -04:00