StatisticValues sent beside Values and Counts is read as a summary of the same distribution, so the weighted samples are kept without counting the summary twice. A conflicting scalar Value or a malformed summary still fails before anything is published. The weighted-summary and metric-math alarm tests share one JSON-to-Query conversion in CloudWatchTestRequests.
PutBucketReplication passes the Role of its ReplicationConfiguration to
S3, and AWS's Service Reference lists iam:PassRole for it with
iam:PassedToService s3.amazonaws.com. Floci never checked it: the
passed-roles table recorded the operation as not read, because its
request body is XML, so a caller allowed s3:PutReplicationConfiguration
could name any role.
PassedRoles now reads a REST-XML body the way the condition keys of a
REST-XML request are read (XmlParser.valuesAt): each member at the
elements botocore serializes it as, below the document element, a
list's elements under the name its shape gives them or as member. The
text is read without surrounding whitespace, which S3 keeps in a Role it
accepts. The generator reads rest-xml models too, and fails on a role
member reached through a map or a flattened list, which an XML body
does not nest as the table's paths do. Two operations move from notRead
into the table: S3's PutBucketReplication (Role, to s3) and S3 Access
Grants' CreateAccessGrantsLocation (IAMRoleArn, with no named service).
Form parameters are now read only from a request the Query controller
dispatches (IamActionRegistry.isQueryRequest: a form posted to the root
path), as formParameters already documented. A request to another
protocol's route is read as its handler reads it, whatever Content-Type
it is sent with: an S3 replication configuration sent as
application/x-www-form-urlencoded was parsed as one form key, so its role
went unchecked while S3 stored the XML. The same held for tag-on-create
and request resources reading a REST request's JSON body.
S3's PutBucketReplication now refuses with MalformedXML a document that
is not well-formed as a whole, or whose configuration does not hold
exactly one Role with text, as it already counts each rule's Destination
and Bucket. It read the first Role anywhere in the document from a parse
that stopped where the configuration ended, so a second Role holding an
element, or content after the configuration, left IAM reading no role
while S3 stored the document.
The table is keyed by operation, as the Service Reference lists it, but
the enforcement filter and the Step Functions request checks looked it
up by the IAM action. The two differ for PutBucketReplication, which is
authorized as s3:PutReplicationConfiguration, so its entry would never
have been found. Both now look roles up by the request's operation, as
tag-on-create already does. DMS's ModifyDataProvider and
ModifyMigrationProject, authorized as UpdateDataProvider and
UpdateMigrationProject, are found the same way once Floci serves them.
Capacity providers are stored under region::name and resolved through their ARN's region, so DescribeCapacityProviders lists only the region's own and a name is free in each region; a provider stored under its bare name is re-filed on its next write, its legacy key dropped only when the ARN matches. Account settings carry the region in their key, as botocore's PutAccountSetting says they are set per Region, and a row stored without one is the default region's. The CloudFormation capacity provider provisioner passes the stack's region. FARGATE and FARGATE_SPOT stay built in to every region.
Renaming an AWS::RDS::DBInstance created the new instance in the stack's Region but deleted the old one through the Region-less deleteDbInstance, which uses the default Region. A stack outside the default Region left its old instance behind, and could delete a same-named instance in the default Region. The delete now passes the stack's Region.
A cluster's trino-exchange-manager now makes Trino's
exchange-manager.properties, for fault-tolerant execution. With no
properties it is EMR's default, spooling in the cluster's HDFS in
trino-exchange/ under the trino user's home; exchange.base-directories
with exchange.use-local-hdfs names HDFS directories, and an s3://
directory spools in Floci's S3. The Trino project's Trino refuses EMR's
exchange.use-local-hdfs and an hdfs:// directory in a filesystem exchange
manager, so Floci leaves the first out and gives HDFS directories Trino's
own hdfs exchange manager, with a core-site.xml naming the cluster's
NameNode as its hdfs.config.resources: without one, Trino takes an hdfs://
directory for another file system's ("Wrong FS ... expected: file:///").
CreateEventSource refuses a webhook HMAC SecretValue over 512 bytes, checked right after the 16-byte minimum, as RotateWebhookCredentials already does. A static token and a Basic password over 512 bytes stay accepted.
RevokeResource answered UnsupportedOperation. It now revokes a webhook event source or a subscriber for good. A revoked source answers 403 on its webhook URL and refuses UpdateEventSource and RotateWebhookCredentials with InvalidStateException. A revoked subscriber receives no more events and refuses UpdateSubscriber the same way. Both can still be described, listed and deleted, and report Revoked once revoked while leaving the member out before.
DeleteEventBus ignores revoked sources and subscribers, which outlive their bus under a key a new bus of the same name cannot reach. ListSubscribers pages by bus name, subscriber name and ARN, so an orphan and its namesake on the recreated bus both show.
A rule's update rollback snapshot also records its prior physical ID, ARN, name and bus, and restores them once the targets are back, so a rename or bus move that a later resource fails leaves the stack on the original rule. A failed target restore keeps the snapshot for ContinueUpdateRollback, and a rule moved to the default bus no longer keeps a stale EventBusName.
Under enforcement a REST route no rule maps and no vendored model names
runs unchecked. AWS AppConfig with its data plane, AWS CodeArtifact and
Amazon CodeGuru Reviewer were among those: Floci serves each and no rule
mapped them.
Vendors the appconfig, appconfigdata, codeartifact and codeguru-reviewer
models' routes, 120 operations, 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. A request signed with a vendored model's
own name, which Floci also serves (appconfigdata), is checked under the
signing name the routes file records for that model (appconfig).
The three namespaces join the table of request resources. CodeArtifact's
48 operations and CodeGuru Reviewer's 14 read every type the Service
Authorization Reference marks required. Nine of AppConfig's 58 act on a
required type the table reads no member for (a deployment, a hosted
configuration version, an experiment run, a configuration profile named
as Configuration), so those are checked on the types it does read.
AppConfig Data's StartConfigurationSession is checked on the application
its ApplicationIdentifier names by its id or its name, from a measured
entry quoting AWS's own refusal of it on application/<app_id>, and
GetLatestConfiguration on the configuration of the session its
ConfigurationToken names: a reading gives a request's token that a
create of its service answers as naming what that create's session is
on, which the service finds.
A request member whose botocore shape is an account id now gives the
account of what the request names wherever a REST request carries it,
its path and query too, as the generator's own rule says, not only in
its body: CodeArtifact's domain-owner, QuickSight's AwsAccountId path
label on 196 operations, and Signer's GetSigningProfile profileOwner.
Such a resource in another account than the caller's is named as an ARN
of another account already is, in that account and as the caller's of
that name too, unless its service acts on it in that account. Signer,
ECR, CodeArtifact and Redshift do and say so, so each is checked on that
account's resource alone, as AWS checks it: Signer now reads the profile
or job its profileOwner or jobOwner names in that account, as AWS does,
where it read the caller's own, and saves a job it revokes there. Such a
request needs the owner's grant beside the caller's own policy, as AWS
requires of a cross-account request: CodeArtifact gives IAM a domain's
and a repository's policy, and Signer the profile permissions
AddProfilePermission adds, as the resource's policy (ResourcePolicyProvider),
a permission of one profile version holding for that version alone: a
job's, the version that signed it.
A resource a request names by another spelling than its service stores
it under is checked as the service reads it (resolveStoredArn, now also
for an ARN the reader builds from members): an AppConfig environment or
configuration profile by its id when named by its name, a CodeArtifact
PyPI or NuGet package by its normalized name, as AWS writes it in ARNs.
AppConfig, CodeArtifact and CodeGuru Reviewer give IAM the tags they hold
on the resource a request names (an application, a domain, repository or
package group, an association), so a grant conditioned on aws:ResourceTag
reaches a tagged resource; Signer reads a profile's tags in the profile's
own account, another account's included. A tagged create is checked for tagging on what
it makes where botocore's response gives it: CreateEnvironment answers
an Environment whose Id is the new environment's, AssociateRepository
the RepositoryAssociation whose AssociationArn is the association it
makes. A tagged StartDeployment's tags go on the deployment it makes,
its DeploymentNumber AppConfig's to mint, open. AppConfig stays out of
the passed-roles table: CreateExtension and UpdateExtension pass a role
in Actions{}[].RoleArn, a map of lists that file does not read.
A new vendored source, tools/aws/sources/codeartifact-permissions.json,
written by its own script from the CodeArtifact user guide, gives what
neither botocore nor the Service Reference says: CopyPackageVersions is
checked as ReadFromRepository on its source repository and as
CopyPackageVersions on its destination repository, and a package with
no namespace has an empty one in its ARN (package/my_domain/my_repo/
npm//react), so a request leaving namespace out is checked on that ARN.
A variable the reference names Encoded and a botocore shape's name is
filled from the member of that shape and encoded as its service encodes
it, through StoredResourceArns: CodeArtifact's package group pattern,
percent-encoded in lower case, which CodeArtifact now writes into the
group's own ARN as AWS does (/npm/team/* is /npm/team/%2a). A tag call
spelling a group's pattern otherwise (%2A), which CodeArtifact reads as
the same group, is checked on the group's own ARN, which CodeArtifact
resolves it to, so a deny on that ARN holds.
With AppConfig in the table, a tag call naming one of its ARNs with the
slash unencoded is refused as a path its model does not give, as for
every namespace the table reads; AppConfig's tests now send the ARN
encoded, as an SDK does. AppConfig Data's GetLatestConfiguration, which
a route filter moves off GET /configuration so S3's bucket of that name
keeps its route, is moved under an internal prefix the request records,
as every such route is, so IAM matches it on its modeled path. The table
tests place a create's members where the table locates them, expect a
member holding the type's own ARN to name it as it is, and expect each
resource in the account its own account member gives.
trino-node's and trino-log's properties now go into the image's own
node.properties and log.properties, after its lines, so an image of
trino.image's keeps its settings; Floci names the node only where neither
gives it an id; and trino-env's nested export
properties ("If any classification ends in env, use the export
sub-classification") become the Trino container's environment, which a
catalog reads as ${ENV:NAME} where its connector takes Trino's
configuration, as Iceberg's does. The exports come after Floci's
AWS settings, which they may change as a trino-env.sh would, and before
the variables Floci writes Trino's files from, which they may not.
The RDS/DSQL listener-coexistence test now retries a BindException while it waits for both ports to be released, instead of failing on the first attempt, and the RDS master-role fixture connects through PostgreSQL's Driver directly, as the neighbouring RDS fixtures do.
SimulatePrincipalPolicy decided in its own method beside the evaluator that enforcement uses, so the two could drift. The simulator now takes its decision from the decision record that explain builds, over the same policies parsed and organization levels walked once, and the separate method is gone.
No answer changes. Both paths check explicit denies first, then the service control policies, the identity allow, the permissions boundary and the session policy, and a request that the boundary and the session policy both lack ends in an implicit deny either way.
The EC2 port-forward sidecars and the ECS task-role credentials proxy each
spelled out their socat addresses by hand. SocatTcpRelay now builds them: a
forking listener with nodelay and the data-plane accept backlog, and a
nodelay connection to the target. The EC2 sidecar commands are unchanged; the
ECS credentials proxy gains nodelay and the 4096 backlog its listener lacked.
For an identified workload, Route 53 and Cloud Map private DNS answers come only from zones associated with the querying VPC, account and Region; visibility is decided before the most specific zone is chosen, authoritative negative answers are kept, and conflicting runtime identities are refused. A caller with no known VPC keeps its private answers. EC2 and ECS register their guests' VPCs for the lifetime of the workload, revoking them on confirmed stop, and a terminating instance's IAM sessions and metadata tokens are revoked independently of Docker removal. The guest DNS checks run as nightly Docker checks.
A step's trino-cli got FLOCI_TRINO_SERVER whenever the cluster had a Trino
image, including with docker-network host, container:<id> or none, where
the primary node runs no metastore and so no Trino. It now gets it only
where Floci's Trino runs, the same check the cluster's background start
and the outside host use.
CreateFunction accepted python3.15, ruby4.0, java8.al2023, java11.al2023 and java17.al2023, but ImageResolver had no image for them, so every invoke failed with "The runtime parameter ... is not supported". They now map to python:3.15, ruby:4.0, java:8.al2023, java:11.al2023 and java:17.al2023 on public.ecr.aws/lambda, so every identifier in Lambda's supported runtimes table resolves to an image.
The Lambda docs no longer say that any runtime with a base image works, and name the deprecated runtimes Floci runs instead.
Awaitility sleeps one poll interval, 100 ms, before its first check, so every await in the suite paid that even when its condition already held. AwaitilityDefaults sets the default poll delay to zero. A @QuarkusTest class sees its own copy of Awaitility from the Quarkus runtime class loader, so the default is applied by a JUnit launcher session listener for plain classes and by a Quarkus before-class callback for Quarkus classes, each pinned by its own test.
ProvisionedConcurrencyPoolTest relied on the old first sleep after an initialization failure. It now waits until the retried put is accepted, since the stop count moves before the handle leaves pendingTeardown.
ListAgents, ListLocations and ListTasks scanned every Region, and the by-ARN reads, updates, deletes, CreateTask's location lookups and the tag calls read the store whatever Region the request was signed for. Each resource is stored under its ARN, which carries its Region, so lists and reads now keep only the request Region's through RegionResolver.inRequestRegion, and an ARN of another Region answers InvalidRequestException.
The four Batch stores were shared by every Region, and every list, describe and name lookup scanned them whole, so a compute environment, job queue, job definition or job of one Region was listed, resolved, tagged and submitted to from another, names could not be reused across Regions and job definition revisions counted across them. Reads now filter by the Region each record stores, and a job definition ARN of another Region answers not found instead of falling back to a local revision of the same name. An EventBridge target submits in its queue's Region.
The CodeArtifact Kellnr and AppSync JS runtime sidecars run under Docker's init, so they stop on SIGTERM instead of waiting out the stop timeout, and an AppSync sidecar started without init is replaced rather than adopted. The Redshift readiness check and the RDS parameter-group server start poll every 200 ms against their existing deadlines.
ListStatements scanned every Region's statements, and DescribeStatement, GetStatementResult, GetStatementResultV2 and CancelStatement read a statement by its bare id from any Region. The statement store now reads and lists only the request's Region, placing a statement by the Region it records and a batch's sub-statement by its batch's; a statement saved without a Region belongs to the default Region. Keys are unchanged, so the restart pass and the TTL sweep still see every Region.
A term filter pattern with a space between the minus and the excluded term, "ERROR" - "Unauthorized", was rejected with "expected a value", while AWS reads it as an exclusion, the same as "ERROR" -"Unauthorized". The term parser now skips whitespace after a minus and reads the next term as excluded, so metric filters, subscription filters and FilterLogEvents accept it alike.
SendMessageBatch compared the batch total with the queue's MaximumMessageSize, so on a queue with a small MaximumMessageSize a batch whose entries each fit was refused whole with BatchRequestTooLong. AWS bounds the batch total by a fixed 1 MiB, while the queue attribute bounds each entry.
The total is now compared with maxAllowedMessageSize, which is 1 MiB unless FLOCI_SERVICES_SQS_MAX_MESSAGE_SIZE raises it, so a raised ceiling still accepts a batch that SendMessage would accept. Each entry is still checked against the queue's MaximumMessageSize, and the Query and JSON paths share the check.
A cluster with Floci's Trino now starts its primary node, and Trino on it,
in the background as it becomes ready, steps or none, the way an
application UI link already does; the cluster goes WAITING as before.
Clients outside the cluster reach Trino through Floci on a host of the
cluster's own, <cluster-id>.emr-trino.<Floci's host>, through the app UI
proxy: Trino's port is published on the primary node's loopback like the
node's web interfaces, the request keeps its Host, which Trino names its
next pages by, and goes on with X-Forwarded-Proto, which Trino honours
with http-server.process-forwarded. Until Trino answers the host gives a
503, which Trino's clients retry, and starts the node where it is not
running; an ending or ended cluster gives a 404. Floci's TLS certificate
names the new host label.
PutAccountDeliveryAttributes stores the account's SharedPoolDeliveryMode per Region, GetAccount always reports it under DeliveryAttributes (GLOBAL when unset), and configuration sets accept DeliveryOptions.SharedPoolDeliveryMode, which PutConfigurationSetDeliveryOptions keeps when a request omits it. The Java compatibility suite moves to AWS SDK 2.59.7.
A FIFO queue with ContentBasedDeduplication derived the MessageDeduplicationId from an MD5 of the body, while AWS uses a SHA-256 hash of it, so ReceiveMessage returned a 32-character ID where AWS returns 64. The ID is now the body's SHA-256, as SNS FIFO topics already derive it.
DeleteDBCluster deferred the delete of any cluster that read
maintenance or deleting, taking that for one the startup restore was
starting again. An ordinary delete also marks the cluster deleting
before it removes it, so one whose last storage write failed was left
deleting, and every retry then deferred to a restore that was not
running: the cluster stayed until the next start.
A delete now defers only while the restore owns the cluster, which it
does from once the cluster and its instances are marked until the
restore ends, whatever way it ends: started, failed, the record gone,
or a shutdown stopping it before or during the cluster's start. When
the restore decides whether the cluster is available or removed, it
releases it under the cluster's lock, so a delete either waits for that
decision or comes after it. Ownership is taken only after the instances
are marked, so a marking that fails leaves no delete waiting either.
Follow-up to #9498.
Floci's shutdown stopped every Neptune cluster's proxy and graph
database container and nothing started them again, so after a restart
with persistent storage a cluster reported available with nothing
behind its port.
At startup each cluster now reports maintenance, and its instances
starting, with its proxy port held for it at once, so a cluster created
meanwhile is never handed it. Its container comes back in the
background on the volume its graph is kept in, in the engine the graph
was kept in, which the cluster's record now names, and its proxy
listens on its port again; the cluster and its instances then report
available. With no Docker daemon reachable they come back available
with no container, as a cluster created then does. A cluster whose
container or proxy does not start is left with none and its instances
failed, and is tried again at the next start. The restore runs in each
cluster's own account and Region, and marking the clusters calls no
Docker.
Floci now records which cluster holds each proxy port, so a cluster
whose stored port another cluster holds moves to a free one, its
instances with it, and one restored in the same process keeps its own. One recorded before its engine was kept is
taken to be in the configured one, and one recorded before its graph
was kept in a volume gets a volume, both kept before any Docker call.
A DeleteDBCluster while the restore is starting the cluster's container
leaves it deleting until the container has started, a second one too,
and the restore removes it then. A delete defers only while a restore
owns the cluster, which it does only once its marking is done, so one a
failed write left deleting is retried at once; one still deleting at the next start is removed in the
background. The delete, the restore and CreateDBInstance decide under a
per-cluster lock, and instance creation, deletion and the restore's
status writes under a per-instance one, taken first, so the restore
never puts back an instance deleted meanwhile. CreateDBInstance is
refused with InvalidDBClusterStateFault for a cluster that is not
available.
Shutdown now marks the container manager first, after which no
container starts. A container left under a cluster's name, by a Floci
that exited without stopping it, is now stopped with the same 30
seconds as at shutdown before its replacement starts, rather than
removed outright, so Gremlin Server saves its graph to the volume
first. The message refusing to delete a cluster with instances uses a
colon in place of its dash.
Closes#5664.
SES v2 was checked by 118 hand-written rules in IamActionRegistry, one
per route of the model, and no SES request, v1 or v2, was checked on
the resource it names: the ses namespace waited in the table of request
resources' NOT_COVERED, as the generator refused it while its REST
clients had no vendored routes to tell their requests apart.
Vendors the sesv2 and pinpoint-email models' routes under the ses
credential scope, so each v2 request is checked as its operation's
action by the route botocore gives it, and removes the hand rules. The
ses namespace joins the table of request resources, 231 operations over
the ses, sesv2, pinpoint-email and mailmanager clients: an identity, a
configuration set, a template or a contact list by the member naming it,
an ARN member by the ARN it holds, as the Service Reference gives their
formats; an operation naming none of its action's types stays on "*".
Floci mints the same identity/<name> and configuration-set/<name> ARNs.
SES v1 and v2 share the operation names of the table, and the generator
merged the rows of clients that share an endpoint prefix, holding that a
request cannot tell them apart: a v2 SendEmail was read for v1's
SourceArn, so a grant on one identity sent from another by adding one.
Every row of the table now names the APIs it is read for, each a
protocol botocore gives a client of the operation with its API version
(SourceArn is query/2010-12-01), and the reader reads a request for the
rows of its own API alone: a Query request's by the Version its handler
dispatches it by, its form's on a POST and never its URL's, a REST
request's by the version of the model whose route it matched, never by
a member a caller adds. A request whose API neither gives, or
one no row names, is read for every row, as before. 68 rows are read
for some of their operation's APIs only, over SES, Elastic Load
Balancing's classic and v2 APIs, EventBridge, Lambda and Bedrock.
botocore now gives ListConfigurationSets and ListEmailIdentities as
POST /v2/email/list-configuration-sets and POST /v2/email/list-identities.
The GET /v2/email/configuration-sets and GET /v2/email/identities routes
an SDK built before that still sends stay served and match no route of
the model, so they are not checked. The hand-kept copy of the SES v2
model's routes the registry test read is removed: the route coverage
test checks every vendored route.
Each trino-connector-<catalog> classification now adds that catalog to the
cluster's Trino, of the connector of its name (delta_lake for delta,
raptor_legacy for raptor) unless it names its own. delta, hudi and iceberg
sit on the cluster's Hive metastore, or on Floci's Glue when the
classification says glue, and on Floci's S3, as hive already does; Delta
writes to S3 are on, as the Release Guide's Delta tutorial inserts into a
table there. trino-config goes into config.properties after Floci's, and
its http-server.http.port moves the coordinator, its readiness query and
the address the steps' trino-cli reaches.
Resolve nodejs26.x to public.ecr.aws/lambda/nodejs:26, which the Docker launcher, the Kubernetes launcher and Web Function environments all use, and accept nodejs26.x for Web Function revisions next to nodejs24.x.
Closes#9392
Security groups in a VPC with an IPv6 CIDR block get the default ::/0 outbound rule alongside 0.0.0.0/0, in the same -1 permission, as AWS adds it. Associating a VPC's first IPv6 block adds it to the default group and to every group whose outbound rules are still the original IPv4 one, under each group's lock, then refreshes the firewalls once. A failed group creation removes both default rule records.
Co-authored-by: Emanuel Aseghehey <aseghey@amazon.com>
An event source request member that broke both its length and its pattern answered the pattern violation first, except in RotateWebhookCredentials. AWS now answers the length first in every event source operation (measured in us-east-1), so EventBridgeV2RequestShapes checks them all in that order.