Commit Graph
2825 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 0bd2688912 fix(rds): reserve the configured DSQL listener port (#9471) 2026-11-25 23:21:24 -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
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
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
TATSUNO “Taz” Yasuhiro aeb4593696 feat(eventbridgev2): rotate webhook credentials (#9443) 2026-11-25 21:56:53 -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
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
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
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
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
Andre Kurait 87ff8135a9 feat(ec2): retain IPv6 launch metadata and allocation properties (#9418) 2026-11-25 06:50:02 -04:00
Kenshin Okinaka 354e5b9ea9 fix(ses): make v1 UpdateCustomVerificationEmailTemplate a partial update (#9419) 2026-11-25 06:46:17 -04:00
Kenshin Okinaka 1d74e9adc8 fix(ses): answer a paused account with the AWS message and order (#9417)
A send while account sending is paused now answers AWS's message, "Sending is paused for this account.", on v1 and v2, in place of "Account sending is disabled." The codes are unchanged. v2 SendEmail with Raw content, v2 SendBulkEmail and v1 SendBulkTemplatedEmail check the sender before refusing a paused account, as AWS does, so an unverified sender gets MessageRejected first. Every other send still refuses a paused account ahead of every check.
2026-11-25 06:45:59 -04:00
Priamo Germosen 732001a90f fix(kinesisanalytics): start Flink clusters again when Floci restarts (#9390)
Floci's shutdown removes every application's Flink cluster, and nothing
started them again, so after a restart with persistent storage an
application still reported RUNNING with no cluster and no job behind
it.

At startup, each application that was RUNNING or still STARTING goes
back to STARTING, and its cluster starts in the background. A cluster
that outlived Floci is kept when its JobManager, TaskManager and job
still run. Otherwise what survives of it is removed, under the current
or the old floci- names, and the application gets a new cluster, as
StartApplication starts one, in the application's own account, and the
readiness poller runs its job afresh and reports it RUNNING. An
application whose cluster cannot be started goes back to READY, from
which StartApplication starts it again. An application stopped while
its restore is starting the cluster is STOPPING, as AWS reports a stop
in progress, until the restore has removed that cluster by its
containers' IDs, and READY then. StartApplication and DeleteApplication
refuse it meanwhile, so no second start runs under the cluster's names.
One still STOPPING at the next start has what survives of its cluster
removed before it turns READY. Each removal is confirmed with Docker:
while Docker keeps the cluster, the application stays STOPPING and the
cluster stays named and tracked, for shutdown and the next start.
Records stored under the keys of older builds move onto their current
keys first, so no application is restored twice. A start that shutdown
overtakes removes its containers.

Part of #5664.
2026-11-25 06:40:37 -04:00
Andre Kurait 874c3d6123 docs(ec2): describe ARN-owned stored tag lookup (#9416)
The EC2 IAM documentation still described the type list #9412 removed, saying only ID-bearing resources read their stored tags and that name-based ones kept their old lookup. It now says every concrete EC2 resource ARN reads its own stored tags in the ARN's account and Region, including when another service's request names it.
2026-11-24 23:52:04 -04:00
Joaquín Gamboa a0123f8f69 feat(cloudfront): distribution tenants for multi-tenant distributions (#9398) 2026-11-24 23:40:15 -04:00
Andre Kurait b3c8db3022 fix(iam): read EC2 resource tags in the ARN scope (#9412)
EC2 resource-tag conditions read the tags of the resource an ARN names in the caller's account and Region, and a foreign ARN kept the caller's earlier tags. Ec2StoredResourceArns now answers storedTags for the resource in the ARN's account and Region, with the caller's account for an account-less image or snapshot ARN, so the shared resource-tag reader fills the table's keys for every EC2 type, other services' requests naming an EC2 ARN included. withEc2ResourceContext keeps only the generated record keys.

Ported from Emanuel Aseghehey's original change.
2026-11-24 23:19:17 -04:00
Priamo Germosen 74430d7d40 feat(iam): read Transcribe from the generated tables (#9388)
Move `transcribe` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so Transcribe requests are checked on the
resources they name instead of `*`: a transcription job by its
TranscriptionJobName and a vocabulary by its VocabularyName, each by name.
The Service Reference lists no resource type for StartTranscriptionJob or
CreateVocabulary, which stay on `*`. No other namespace's rows change.
2026-11-24 22:26:15 -04:00
Andre Kurait ba6a81a0d5 fix(elbv2): honor disabled Lambda target health checks (#9407) 2026-11-24 22:19:19 -04:00
mrfelek b85b0a8966 fix(eks): authenticate EKS Auto Mode nodes through their EC2 access entry (#9399)
Worker authentication accepts the node role's EC2 entry and names the node by
its session name, the instance ID. The entry is also made after an
authentication-mode change while compute is on, and never for a cluster being
deleted. CreateCluster makes it together with the cluster record, and
DeleteCluster removes it before the record, both under the same lock, so a
failed or concurrent create or delete leaves none behind. A client-token retry
makes the entry only for a request that changes Auto Mode or the
authentication mode, and a failed create keeps its own error when the entry
cleanup fails too.
2026-11-24 22:04:04 -04:00
040e46ec96 feat(elbv2): support path-pattern regex conditions (#9387)
Listener rules now accept PathPatternConfig.RegexValues. CreateRule, ModifyRule, DescribeRules and CloudFormation keep the expressions, and both admission paths validate them before a mutation: glob and regex values can't be mixed, an expression must compile under RE2/J and avoid the syntax the ALB guide leaves out, and the condition and per-rule evaluation limits apply. The three refusals for mixed values, invalid syntax and too many values use AWS's recorded ValidationError messages. The data plane compiles a rule chain's expressions once and matches the request path without its query string, leaving glob matching as it was.

Co-authored-by: Tyler Parmelee <7409652+tparmelee@users.noreply.github.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-24 20:36:03 -04:00
TATSUNO “Taz” Yasuhiro c1fdd98a6d feat(eventbridgev2): manage webhook event sources (#9321)
Adds CreateEventSource, DescribeEventSource, ListEventSources,
UpdateEventSource and DeleteEventSource for EventBridge V2 webhook event
sources. Each source gets a webhook URL and a Secrets Manager secret owned by
events-webhook; DeleteEventSource schedules it for deletion, and
DeleteEventBus refuses a bus that still has event sources. UpdateEventSource
replaces the whole webhook configuration and stores a new source.

Requests are checked against the generated eventbridgev2 request shapes, with
the violation wording and order AWS answers in us-east-1. A ListEventSources
token belongs to its Region, EventBusArn and NamePrefix, and the stored
configuration keeps only the members the model declares. The webhook URL does
not accept requests yet.
2026-11-24 20:35:04 -04:00
Hector Ventura 06046bf707 docs: point Slack links at floci.io/slack (#9402)
The previous Slack invite expired. Link to floci.io/slack, which redirects to the current invite, so future rotations need no change here.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-11-24 18:20:42 -06:00
mrfelek deb3865f32 docs(eks): say what Floci does with the EKS Auto Mode configuration and which entries take policies (#9389)
The EKS Auto Mode configuration section said Floci only records the configuration. It now lists what each capability does: the node role's EC2 access entry, provisioning for ebs.csi.eks.amazonaws.com claims and Network Load Balancers for Services, and says the built-in node pools launch no nodes. The access-entry passage now names EC2 with STANDARD and EC2_LINUX, and the access-policy passage says STANDARD and EC2 entries take policies.

Part of #8914
2026-11-24 19:03:22 -04:00
Priamo Germosen 8dd85097f0 feat(emr): run Trino on a docker cluster whose Applications name it (#9382)
A cluster whose Applications named Trino ran none, as no AWS image
carries it. With floci.services.emr.trino.enabled on, off by default, a
docker cluster that installs Trino now runs its coordinator, and its
steps run EMR's trino-cli against it.

- The coordinator, which runs the queries too, runs on the cluster's
  primary node, in a container of its own that shares the node's
  network: from the Trino project's image of the version the release's
  page in the Release Guide gives (trino.image, trinodb/trino:%s, 446
  for emr-7.5.0), with trino.memory-mb of memory (2048), on port 8889,
  EMR's.
- EMR installs hive-client and hcatalog-server with Trino, so the
  cluster's image has Hive and its primary node runs Hive's metastore
  service. Trino's hive catalog is that metastore, or Floci's Glue Data
  Catalog when trino-connector-hive sets hive.metastore to glue, the
  classification's other properties after Floci's. Trino reaches S3 and
  Glue with a session for the cluster's instance profile's role, as the
  metastore does.
- The cluster's image gets Trino's CLI from Trino's image, and a
  trino-cli that runs it on the image's Java 17 against the coordinator,
  whose address the steps get, unless a step names a server of its own.
- The cluster's first step starts Trino with the HDFS and waits for it.
  It goes before the primary node when the cluster ends, on a reset and
  on a shutdown, and one an earlier Floci left goes when the service
  starts.
- A nightly check runs trino-cli steps on a cluster with the metastore
  and on one with Glue. It joins the docker-runner group, whose budget
  grows by its 24 minutes, and the prefetch pulls its Trino image.
2026-11-24 17:17:07 -04:00
Jackson PriceandAndre Kurait 33d873b705 feat(apigateway): generate REST and WebSocket model templates (#9089)
GetModelTemplate now answers for REST and WebSocket models with sample VTL:
the $inputRoot line, two-space indented typed placeholders ("foo", 3.1415),
and an editable ##TODO / #foreach skeleton for arrays, generated from the
latest stored schema. A top-level scalar model is refused with 400
"Unsupported data type for mapping template", a missing WebSocket model with
404 "Invalid model identifier specified: <id>", and HTTP APIs refuse models
at CreateModel.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-24 16:42:19 -04:00
Niels Kootstra bc6a2279d4 fix(cloudformation): apply SSESpecification to a DynamoDB table on create (#9379) 2026-11-24 16:41:13 -04:00
Priamo Germosen 4a9ae4a569 fix(amazonmq): start broker containers again when Floci restarts (#9377)
Floci's shutdown removes every broker container, and nothing started
them again, so after a restart with persistent storage a broker still
reported RUNNING while nothing answered on its endpoints. A new
container would not have helped either: RabbitMQ keeps its data under
the node name, which defaults to the hostname Docker sets to the
container id, so a new container on the same volume started an empty
node without the broker's users.

Broker containers now run as the fixed node name rabbit@localhost. At
startup, each broker that was RUNNING or still starting goes back to
CREATION_IN_PROGRESS, and its container starts in the background. A
container that outlived Floci is kept when it still answers. Otherwise
the broker gets a new container on its volume, without seeding the
admin user, whose password is never stored, and on the host ports it
had when they are free. The readiness poller reports it RUNNING once
the console it probed answers.

A broker from before fixed node names with no surviving container is
reported CREATION_FAILED. One whose restore fails is reported
CREATION_FAILED and tried again at the next start, one CreateBroker
failed for is left as it is, and one a crash left DELETION_IN_PROGRESS
is deleted.

Part of #5664.
2026-11-24 16:17:21 -04:00
Priamo Germosen 08b6339a6a feat(iam): read SageMaker from the generated tables (#9373)
Move `sagemaker` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so SageMaker requests are checked on the
resources they name instead of `*`: a model, an endpoint configuration, an
endpoint, a training job or any other resource by its name, as
<type>/<name>, the ARN Floci mints, and a tag call on its ResourceArn.
CreateEndpoint and UpdateEndpoint are checked on the endpoint and the
endpoint configuration they name. No other namespace's rows change.

The reading of a member that names a type's variable gains its mirror: for
the type an operation is about, a name or id with a word of its own that the
variable's name ends in names it, also where a create leaves its id open, so
SageMaker's JobName names the inference recommendations job
(${InferenceRecommendationsJobName}) of CreateInferenceRecommendationsJob,
DescribeInferenceRecommendationsJob and StopInferenceRecommendationsJob.
Over the whole table it changes these three operations.

CreateEndpoint marked neither of its rows as what it makes, as the stem of
`endpoint-config` is `endpoint` too, so a tagged create needed
sagemaker:AddTags on the configuration it runs as well as on the endpoint.
A create's type is now matched by its whole name before its stem, so the
endpoint alone is made; over the whole table this changes CreateEndpoint.
2026-11-24 16:16:17 -04:00
mrfelek 941a700f60 feat(eks): give an EKS Auto Mode cluster's node role its EC2 access entry (#9371)
CreateAccessEntry accepts the EC2 type (roles only, system:node:{{SessionName}} in system:nodes, AWS's refusals for groups, a username and an IAM user, access policies allowed), and turning Auto Mode compute on makes the node role's EC2 entry with AmazonEKSAutoNodePolicy, as measured on AWS.
2026-11-24 15:49:22 -04:00
Vũ Thế Huy a3a6cef531 feat(redshift): evaluate scalar Lambda UDFs over PostgreSQL wire and Data API (#9336)
Scalar Lambda UDFs created with CREATE EXTERNAL FUNCTION now evaluate in SQL over the PostgreSQL wire protocol, Simple and Extended Query, and through the Data API. LambdaUdfEvaluator collects each statement's calls in rolled-back passes through generated stubs, invokes the functions in batches through LambdaUdfInvoker, and serves the results from a per-statement cache. In autocommit the collect passes and the statement share one transaction, so now() and the other transaction-time arguments stay the same, and volatile arguments such as random() or statement_timestamp() are refused.

PostgresWire.dataRowValues is now the one DataRow decoder for the Spectrum backend session and the S3 COPY simulator.

Closes #7815
2026-11-24 14:59:14 -04:00