Commit Graph
2988 Commits
Author SHA1 Message Date
Priamo Germosen c5b1152cbc fix(ec2): tag the volumes RunInstances creates with the volume TagSpecification (#10281)
RunInstances now applies a ResourceType=volume TagSpecification to the EBS volumes the launch creates, and a launch template's network-interface and volume tags reach those resources as its instance tags already did, with a request tag replacing the template's tag of the same key. The merged list for each type is validated before the launch, so tags over the limit together leave nothing behind. CreateFleet's template tag merge uses the same helper.

Closes #8302
2026-12-05 21:39:45 -04:00
Priamo Germosen 060a57a683 feat(emr): run HBase on S3 on docker clusters (#10275)
A cluster whose hbase classification sets hbase.emr.storageMode to s3 keeps
HBase's root folder at its hbase-site's s3:// hbase.rootdir in Floci's S3,
through S3A, and its write-ahead logs in the cluster's HDFS at /user/hbase/WAL.
HBase's daemons on the primary and core nodes reach S3 as the cluster's EC2
instance profile's role, each node with a session of its own, as the metastore
does; a step's hbase reaches it with the step's credentials.

From emr-6.15.0, whose Hadoop 3.3.6 HBase 2.6 is tested on, HBase runs on the
release's own Hadoop, its image without the Hadoop module jars Apache's build
bundles, and with S3A's AWS SDK on its class path. Earlier releases keep
HBase's own jars on HDFS alone; HBase on S3 there, or with no s3:// root
folder, runs no HBase, logged, and the emr-hbase host answers 403 saying why.
2026-12-05 21:10:36 -04:00
Priamo Germosen 2dabd0d127 fix(ssm): report the caller that wrote a parameter as LastModifiedUser (#10279)
DescribeParameters and GetParameterHistory never returned LastModifiedUser. PutParameter now stores the caller's ARN on the new version, as GetCallerIdentity names it: an IAM user, a role session's assumed-role ARN, or the account root for credentials no IAM identity holds. Each history version keeps its own writer; writes Floci makes itself, and versions stored before, have none.

That caller-or-root lookup was copied in Bedrock, EMR on EKS, EMR Serverless, STS and the execute-api SigV4 authorizer; they now share CallerIdentityArn with SSM.

Closes #7905
2026-12-05 21:05:44 -04:00
Priamo Germosen 714914ba2d fix(ec2): add the c8gn instance types to the DescribeInstanceTypes catalog (#10276)
The full instance-type catalog had no c8gn entry, although RunInstances accepts the family, so DescribeInstanceTypes returned nothing for a c8gn instance's type and Terraform's instance read failed with an empty result. Add the ten virtual sizes, medium through 48xlarge, with the vCPUs, memory, network interfaces and IPv4 addresses per interface of AWS's compute optimized specifications and the per-card interfaces of its ENA queues table: c8gn.48xlarge has two network cards of 12 interfaces each.

Closes #8305
2026-12-05 20:46:35 -04:00
TATSUNO “Taz” Yasuhiro a9e1b5c30e fix(eventbridgev2): refuse a PutEvents entry without Detail (#10268)
PutEvents published an entry without Detail as if it had sent {}. AWS refuses that entry alone with ErrorCode ValidationError and publishes the rest of the call, and a null Detail fails the same way. The check runs before deduplication, so the refused entry takes no sequence number and records no ids. Tests that relied on the old default now send a Detail.
2026-12-05 20:40:48 -04:00
Priamo Germosen a9d3f1ecff fix(cognito): accept a CUSTOM_CHALLENGE answer to a challenge DefineAuthChallenge named (#10269)
RespondToAuthChallenge takes only ChallengeNameType values, so a challenge DefineAuthChallenge names otherwise, such as MY_CHALLENGE, is answered with CUSTOM_CHALLENGE, as on AWS. The custom session check compared the answer with the trigger's name and refused it with Invalid session for the user. Compare it with the name the challenge is answered as; the responses and the session history keep the trigger's name.

Closes #7678
2026-12-05 19:21:18 -04:00
Priamo Germosen 5207158d04 fix(ec2): publish the Ubuntu catalog images under the amazon owner alias (#10265)
The bundled Ubuntu images carried imageOwnerAlias canonical, which EC2 has no such alias for: Canonical publishes them from its account as a verified partner under amazon. Use amazon in the catalog and the cloud-image catalog builder, let the amazon and aws-marketplace owner selectors match the images carrying that alias, and give a lookup image synthesized for Canonical's account the same alias.

A catalog entry that names its owner account now has the alias it declares or none, rather than Image's amazon default, so the amazon selector leaves out Rocky Linux. The Red Hat entries declare amazon, the alias AWS reports for them.

Closes #8304
2026-12-05 18:40:34 -04:00
Priamo Germosen eae8ccb53e fix(iam): check AppConfig's deployment reads on the deployment their path numbers (#10262) 2026-12-05 18:22:54 -04:00
Priamo Germosen 78830d629a fix(cloudformation): give an AWS::Logs::LogGroup the LogGroupClass it declares (#10264)
AWS::Logs::LogGroup ignored LogGroupClass: every group was STANDARD, an invalid class reached CREATE_COMPLETE, and a class change reached UPDATE_COMPLETE without changing anything. The provisioner now reads the class (an omitted or AWS::NoValue class is STANDARD, a written blank is refused), validates it as CreateLogGroup does and creates the group with it. An update that keeps the name but asks for another class fails with a ValidationError before retention or tags change, so the stack rolls back.

Closes #7903
2026-12-05 18:07:27 -04:00
Priamo Germosen 409f75c441 feat(emr): run HBase with ZooKeeper on docker clusters (#10252)
A docker cluster whose Applications name HBase, with
floci.services.emr.hbase.enabled on, runs Apache HBase 2.6.4 and
ZooKeeper 3.9.3, the versions emr-7.14.0 ships, downloaded into its
image and checked by Apache's SHA-512: ZooKeeper and HBase's master on
the primary node once its HDFS is up, a region server on each core node
(the primary node's own where it has none), each named after its node.
The hbase-site, hbase-log4j2, hbase-env and zookeeper-config
classifications apply, a step's hbase shell reaches the cluster, and
the master's web interface has a host of the cluster's own,
<cluster-id>.emr-hbase.<floci-host>.
2026-12-05 17:53:09 -04:00
Priamo Germosen df066dabcb fix(apigateway): page GetDomainNames with limit and position (#10261)
GetDomainNames ignored limit and position and returned every custom domain name at once. Page it with the shared pageById helper the other REST API listings use: domain names sorted by name, 25 per page by default, up to 500, and a position that is the last domain name of the previous page.

Closes #9023
2026-12-05 17:42:39 -04:00
Priamo Germosen 589dc2fb9d fix(rds): pin SQL Server to an image tag Microsoft's registry still has (#10258)
The default SQL Server image, mcr.microsoft.com/mssql/server
2022-CU28-ubuntu-22.04, pinned in #9959, is no longer in Microsoft's
registry, which answers 404 for it and whose SQL Server 2022 tags now
stop at CU27, so a SQL Server DB instance does not start. Pin
2022-CU27-GDR2-ubuntu-22.04, the newest 2022 build on Ubuntu 22.04
there, CU27's second security update.
2026-12-05 16:58:31 -04:00
Priamo Germosen 335b66dd27 fix(iam): read a DMS resource's tags under the key its type names (#10255)
The Service Reference lists a tag key named after each DMS resource
type, dms:rep-tag/${TagKey} on a replication instance and
dms:endpoint-tag/${TagKey} on an endpoint, which Floci never filled, so
a condition on one never matched. The DMS User Guide says "The tag keys
are prefixed with "dms", the resource type, and the "tag" prefix", in
the format dms:{resource type}-tag/{tag key}, and that such a key
"matches a resource with the given tag".

A fetcher vendors that section of the guide. The request-resources
generator reads a key of the format the reference lists on a type as
that type's stored-tag prefix, leaving out dms:req-tag/, the request's
tags, and refusing a key listed on two types. It writes the format as
tagKeyFormats, which the reader checks those keys against.

The request-resources check now also runs when one of the vendored
sources its generator reads changes, several of which were missing from
the Makefile's paths and the drift workflow's triggers.
2026-12-05 15:44:49 -04:00
Rashen Anupama 7497358365 fix(logs): honor log stream prefixes in FilterLogEvents (#10247) 2026-12-05 14:45:59 -04:00
Priamo Germosen e41bbd9351 fix(ec2): fill ec2:AccepterVpc and ec2:RequesterVpc for VPC peering requests (#10253)
Under IAM enforcement a VPC peering request carried neither key, so a
policy scoped by either side of the peering refused what it should allow.
Each key is now the ARN of the VPC on that side, in its own Region and
account: from the connection EC2 holds for Accept, Reject, Delete and
ModifyVpcPeeringConnectionOptions, and from the request for the
connection CreateVpcPeeringConnection makes.

The generator reads an ARN key named as another type with a word before
it from the structure member that begins with the key's name, opted in
for EC2. Create's parameters are joined to the record's sides by AWS's
own sample request and response on the API reference page, vendored by
tools/aws/fetch_ec2_request_samples.py.

Closes #8366
2026-12-05 14:42:10 -04:00
Priamo Germosen eb7bdb0a4d fix(iam): read a web identity token's claims as the IAM guide's Default mapping gives them (#10254)
A role's trust policy read a web identity token as two keys Floci built
by hand, <issuer>:sub and <issuer>:aud, the latter always from the aud
claim. The IAM User Guide's Default mapping, for every IdP it gives no
tab of its own, also gives amr, email and oaud, and reads aud from azp
where the token sets one; its page on creating an OIDC provider says AWS
STS uses azp as the audience the provider's client IDs are checked
against.

A fetcher vendors the Default tab's rows and the provider page's azp
sentence. The authorized-actions generator writes them as
webIdentityClaims, and AssumeRoleWithWebIdentity reads the trust policy's
keys and the token's audience from that section.
2026-12-05 14:23:20 -04:00
Priamo Germosen 76cc63c900 fix(iam): give a table bucket's create its request tags as s3tables:TableBucketTag (#10249)
The S3 User Guide says that when a table bucket is created with tags,
s3tables:TableBucketTag acts on the tags in the request. Floci gave the
create's check only aws:RequestTag and aws:TagKeys, so a policy
conditioning CreateTableBucket on the table bucket key refused every
create.

A fetcher vendors the guide's two sentences, the key's exception and the
one naming CreateTableBucket as the operation creating a table bucket
with tags. The tag-on-create generator writes the key as the operation's
requestTagKeys where the Service Reference gives its action the key, and
TagOnCreate gives each request tag under it as well.
2026-12-05 13:18:33 -04:00
mrfelek d848bcc1a2 fix(eks): leave out VPC routes covering where the cluster container reaches Floci (#10238) 2026-12-05 12:14:49 -04:00
Priamo Germosen 2ac9ba4e48 fix(iam): check iam:PassRole on AppConfig's passed roles (#10246)
AppConfig was left out of the generated passed-roles table because
CreateExtension and UpdateExtension name their roles in
Actions{}[].RoleArn, a map whose values are lists, which a member path
could not express. A path now steps into one container after another;
the steps after the first name no member, PassedRoles reads them as the
value already reached, and an XML path and the tag-on-create table
refuse them. The generator reads appconfig, adding its profile,
environment and extension operations, and fails on an XML role member
reached through a list of lists. The request-resources table drops the
rows for the members that now name passed roles.
2026-12-05 12:14:26 -04:00
TATSUNO “Taz” Yasuhiro 4f2ffc1453 feat(eventbridgev2): deduplicate PutEvents entries by id or content (#10242)
PutEvents answers an entry whose EventGroupId and DeduplicationId, given or generated, the bus took in the last 5 minutes with SuccessCode DEDUPLICATED and the first event's EventId and SequenceNumber, and delivers nothing. The window runs from the first publish, and a repeat does not extend it. DeduplicationConfiguration CONTENT_BASED replaces each DeduplicationId with a SHA-256 hash of the entry's Source, DetailType, Detail and Resources. Keys are recorded only once the bus is saved, and a 60 second sweep drops expired ones. The webhook event sources' window moves into a shared DeduplicationWindow.
2026-12-05 12:09:06 -04:00
Priamo Germosen 6a60481f00 fix(pricing): match productFamily filters, read AWS's price list files on opt-in (#10244)
A GetProducts filter read only the product's attributes, under the exact
spelling of the field, so `productFamily` (held beside the attributes) and
`serviceCode` (the attribute is `servicecode`) matched nothing.

A filter's field is now one of the product's attributes, or else a member
the product holds beside them, as productFamily is. No field is named in
the code. The API reference says "Matching isn't case sensitive for any
filter type", so fields and values match without regard to case under
every filter type, and an exact regionCode in any case picks its Region.

With FLOCI_SERVICES_PRICING_AWS_PRICE_LIST=true (off by default),
GetProducts answers from the public files of AWS's Price List Bulk API
instead of the bundled snapshot. The service is looked up in AWS's offer
index. An exact regionCode filter reads the Region's current file, named
by the service's region index; without one, the current file for every
Region, named by the version index, is read. Each file is downloaded once
into <persistent-path>/pricing, and again when AWS publishes a new
version. It is read as a stream that keeps only the products of the page,
in the file's order, with their terms. An index is reused while AWS's
response says it is fresh (Cache-Control max-age less Age), and is
otherwise asked for again with its ETag, so an unchanged index comes
back as 304 without a body. A connection that takes 10 s to open, or
stops sending for 10 s, fails the request. The offer index address is
the setting FLOCI_SERVICES_PRICING_AWS_PRICE_LIST_URL.

A page holds at most MaxResults products, or the most the operation
models when the request names none. Pricing's request constraints come
from botocore through tools/aws/regen_pricing_shapes.py, and a request
that breaks one is refused in the words AWS answers with: MaxResults out
of range, more than 50 Filters, a filter's Field or Value outside 1 to
1024 characters, a missing member, or a filter Type outside the modeled
set. The shared request check now words a list of structures, each
element's members at its position counting from 1
(filters.1.member.type), as AWS does. A missing required member is
InvalidParameterException, the only validation error Pricing models,
instead of ValidationException. ListPriceLists holds a timestamp, which
the shared check does not word yet, so only its MaxResults is checked.
A token names the
file version it was read from: a token from a version AWS has replaced
has expired (ExpiredNextTokenException), and a token no page wrote is
answered as AWS answers it (InvalidNextTokenException).

Cost Explorer reads every product of a Region, not only the first 1000,
in one pass: the file is read once for where each SKU's terms are, then
for the products, reading a match's terms from their place. AWS lists
one product per operating system under a usage type, so a usage line is
priced at the product for its operation, as the BCM Pricing Calculator
matches it. Rates read from a version of AWS's file are kept until AWS
publishes another. A usage line with no usage costs nothing at any
rate, so no rate is looked up for it, and no Region's file is read for
a service nothing used.

DescribeServices, GetAttributeValues, ListPriceLists and
GetPriceListFileUrl keep answering from the snapshot.

Closes #8339
2026-12-05 12:07:04 -04:00
Priamo Germosen 17e615ef36 fix(iam): check Amazon Lightsail requests on the resources they name (#10236)
Lightsail was one of the namespaces the request-resources table left unread ("a later batch"), so every request of
it was checked on *: a grant scoped to an instance's ARN never matched, a deny scoped to one never held, and an
aws:ResourceTag condition read nothing. lightsail joins the table now, so each request is checked on the resources
the Service Reference gives its action, read from the request.

A Lightsail ARN carries an id the service mints (Instance/${Id}), while a request names the resource by its name, so
the table asks the service to find it. LightsailStoredResourceArns answers the caller's instance, disk, static IP or
key pair of the name a request gives (instanceName, diskName, staticIpName, keyPairName) in the request's Region, as
the ARN Lightsail stores for it (LightsailService.findArn), and the tags Lightsail keeps on the resource an ARN names,
read in the account and Region the ARN names without moving it and matched on the whole ARN
(LightsailService.storedTags), which an aws:ResourceTag condition reads.

Both read the store in place, a resource stored before keys carried the account included: findArn through
AccountAwareStorageBackend.readInAccount, and storedTags through readAllInAccount, a new scanning counterpart of
readInAccount that also finds the default account's pre-multi-account entries, each read where it is. DMS's
storedArn, which carried the same scan inline, uses it too.

A tag call is checked on its resourceArn; one naming the resource by its resourceName alone, the reads (GetInstance,
GetDisk and the like) and the creates are checked on *, as the generated table reads them.

IamRequestResourceEnforcementIntegrationTest checks that a grant on one instance's ARN reboots the instance a
request names by its name and refuses another, and that an aws:ResourceTag condition reads the tags of the instance a
stop names. LightsailStoredResourcesTest checks each lookup against another Region, type, name and a type Floci keeps
none of, and the stored tags of an instance and a key pair against another account, Region, type, service, id or no
ARN, and that both find an instance stored before accounts without moving it. AccountAwareStorageBackendTest checks
readAllInAccount.
2026-12-05 09:59:00 -04:00
luiseterc 3f95d9038b fix(ec2): expose attached interface IPv4 metadata through IMDS (#10189)
IMDS now answers the network/interfaces/macs paths from a live view of the registered instance's account and region, read under the attachment lock: per-interface identity, primary and secondary IPv4 addresses, security groups, subnet and VPC CIDRs and the existing IPv6 fields. Detached interfaces, unknown MACs and absent fields answer 404, IMDSv2 token and instance isolation still apply, and saved instances without an owner fall back to the default account. The old per-field IPv6 handlers and MAC listing are replaced by the shared view, and resource reads share an account-and-key getForOwner overload.

Closes #8318
2026-12-05 09:06:38 -04:00
XuJian f3d5ffc19e fix(apigateway): decide a WebSocket passthrough integration by target policy (#10224) 2026-12-05 08:52:27 -04:00
Priamo Germosen 508911da33 fix(lightsail): mint an id, not the name, in a resource's ARN (#10219)
Floci minted a Lightsail resource's ARN from its name (arn:aws:lightsail:<region>:<account>:Instance/web), while AWS
mints an id for it: the Lightsail API Reference gives an instance's ARN as
arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE, and a key pair's, a static
IP's and a disk's the same way, and the Service Authorization Reference writes every Lightsail type as <Type>/${Id}.
baseResource now mints a UUID for each instance, disk, static IP and key pair it makes, so an instance made again
under a name a deleted one had gets an ARN of its own, as on AWS. A request still names a resource by its name, and a
tag call by its name or by the stored ARN, which TagResource and UntagResource already matched on the whole ARN. A
resource stored before keeps the ARN it was made with.

This is the mint the request-resources table needs before Lightsail joins it: its rows find a resource by the name a
request gives and check it on the ARN Lightsail stores.

LightsailResourceProviderTest checks that each of the four types' ARNs carries a UUID after its type, that an
instance made again under a deleted one's name gets a new ARN, and that a tag call naming that ARN tags it;
LightsailIntegrationTest checks the ARN GetInstance answers.
2026-12-05 08:33:39 -04:00
Priamo Germosen 6190f6d154 fix(iam): check AWS WAF v2 requests on the resources they name (#10214)
WAF v2 was one of the namespaces the request-resources table left unread ("a later batch"), so every request of it
was checked on *: a grant scoped to a web ACL's ARN never matched, a deny scoped to one never held, and an
aws:ResourceTag condition read nothing. wafv2 joins the table now, so each request is checked on the resources the
Service Reference gives its action, read from the request.

A request giving an ARN member (ARN, ResourceARN, ResourceArn, WebACLArn) is checked on the resource it names, as
regional/<type>/<name>/<id> or global/..., the ARNs WAF v2 mints. UpdateWebACL and UpdateRuleGroup name their
resource by a lock token, which the table reads through LockToken: WafV2StoredResourceArns answers the caller's web
ACL, IP set, regex pattern set or rule group whose current token it is, of either scope the request's Region reaches,
the one the handler checks the token against (WafV2Service.lockHolder). WafV2Resource declares the getLockToken each
model already has. It answers the tags WAF v2 keeps on the resource an ARN names, read in the account, Region and
scope the ARN names without moving it and matched on the whole ARN (WafV2Service.storedTags), which an
aws:ResourceTag condition reads.

A request naming a resource by its Name, Scope and Id alone, and CreateIPSet and CreateRegexPatternSet, are checked
on <Scope>/<type>/*/*, the scope as the request spells it (REGIONAL or CLOUDFRONT) while WAF v2 mints regional/ and
global/, and CreateWebACL and CreateRuleGroup on *, as the generated table reads them.

IamRequestResourceEnforcementIntegrationTest checks that a grant on one web ACL's ARN lets an update giving its lock
token through and refuses the update of another, and that an aws:ResourceTag condition reads the tags of the web ACL
a tag call names. WafV2StoredResourcesTest checks the stored tags of a regional web ACL and a global IP set against
another account, Region, kind, service or no ARN, and the lock holder of either scope against another Region's
regional resource, another account's token and a replaced one.
2026-12-05 01:43:49 -04:00
XuJian 5a8a058f18 fix(apigateway): check the function policy of a WebSocket Lambda integration (#10179) 2026-12-05 00:48:17 -04:00
Murtuza Chhil eb2db42f57 docs(paymentcryptography): the AS2805 key cryptogram's byte layout (#10211)
The payment cryptography guide now publishes the AS2805 cryptogram's construction: "HDC2" || IV || TDES-CBC body || HMAC-SHA256 tag, the two derived keys and their labels, the first-byte variant, the raw check value of the original key and the algorithm name in the tag. A test reads a cryptogram the way another producer would, recomputing the tag and decrypting the body under the published labels, and checks the carried key and its check value.

Closes #10207
2026-12-05 00:30:22 -04:00
Priamo Germosen 0a8aaf9a19 fix(iam): check AWS Organizations requests on the resources they name (#10208)
Organizations was one of the namespaces the request-resources table left unread ("a later batch"), so every request
of it was checked on *: a grant scoped to an account's or an OU's ARN never matched, a deny scoped to one never held,
and an aws:ResourceTag condition read nothing. organizations joins the table now, so each request is checked on the
resources the Service Reference gives its action, read from the request.

An Organizations ARN carries the organization's id beside the id a request gives
(account/o-<organization>/<account id>), so the table fills one variable of it and asks the service for the rest.
OrganizationsStoredResourceArns finds the account, OU, root or policy a request names by its id alone in the caller's
organization, as the caller's handler finds it, and a handshake where the caller sent it or receives it: the account
it invites, any account for an invitation by email naming none, which may claim it, and each member for one enabling
all features, as AcceptHandshake lets them act on it. It answers the tags Organizations keeps on an account,
root, OU, policy or resource policy, matched on the whole ARN without moving it, which an aws:ResourceTag condition
reads. The lookups of an OU or a policy by its id in an organization move into organizationalUnitIn and policyIn,
beside accountIn, which DescribeOrganizationalUnit's and DescribePolicy's handlers and the new lookups share.

An organization's resources belong to its management account, so a member's request on one is judged across
accounts, the organization's resource policy deciding beside the member's own policies, as the existing
OrganizationsResourcePolicyProvider already supplies it. A handshake's recipient acts on it on its own policies: an
invitee belongs to no organization, and AcceptHandshake and DeclineHandshake are no actions a delegation policy grants
(the Organizations User Guide's supported delegation policy actions). So a handshake the caller receives is reached in
the management account (reachedInItsAccount), as a RAM invitation is, and the provider supplies no delegation policy
for it.

TagResource, UntagResource and ListTagsForResource, and the calls naming a parent or a target by its id (ListChildren,
ListPoliciesForTarget), are checked on *, and AttachPolicy and DetachPolicy on the policy alone, as the generated table
reads them.

IamRequestResourceEnforcementIntegrationTest checks, in an organization of its own, that a grant on one account's ARN
reads it by its id and refuses another, that an aws:ResourceTag condition reads the tags of an OU, that a member's
read of an OU is refused on its own grant alone and allowed where the organization's resource policy grants it too,
and that the account the organization invites reads the handshake on its own policy naming the handshake's ARN, with
that resource policy in place, and is refused on another. OrganizationsServiceTest checks each lookup for a member,
the management account, an outsider, an invitee, a claimant of an invitation by email and the members receiving a
handshake enabling all features, and the stored tags of each kind, the resource policy among them, against another
management account, organization, kind or service.
2026-12-05 00:27:28 -04:00
Kenshin Okinaka 0046794c37 fix(athena): read a timestamp without a zone as UTC in AT TIME ZONE (#10204) 2026-12-05 00:18:01 -04:00
Priamo Germosen 933e8523e6 fix(iam): check AWS Network Firewall requests on the resources they name (#10200)
Network Firewall was one of the namespaces the request-resources table left unread ("a later batch"), so every request
of it was checked on *: a grant scoped to a firewall's ARN never matched, a deny scoped to one never held, and an
aws:ResourceTag condition read nothing. network-firewall joins the table now, so each request is checked on the
resources the Service Reference gives its action, read from the request: a firewall or a firewall policy by its ARN
or by the name its ARN ends in (firewall/<name>, firewall-policy/<name>, as Floci mints them), a rule group by its ARN,
and a tag call on its ResourceArn. A rule group named by its name and type alone is checked on *, and CreateRuleGroup
on the rule group its SourceMetadata.SourceArn names or else on *, as the generated table reads them.

The generator stopped on network-firewall. with_through reads CreateFirewall's VpcId as naming a firewall, as the
model's VpcEndpointAssociation structure holds a VpcId beside a FirewallArn, and with_made then marked that through
row made, a key the table's own check refuses on a through row. A resource a create names through another member
exists already, as one it names by its ARN does, so with_made no longer marks a through row; no other namespace's rows
change. The VpcId row stands as generated: Network Firewall answers no through lookup, so it adds no resource.

NetworkFirewallStoredResourceArns answers the tags Network Firewall keeps on the firewall, firewall policy or rule
group an ARN names, read in the ARN's account without moving it, which an aws:ResourceTag condition reads. It finds
nothing: the table builds a firewall's or a policy's ARN from its name, the ARN Floci mints.

IamRequestResourceEnforcementIntegrationTest checks that with no grant a firewall's read is refused, that a grant on
one firewall's ARN reads it by its name and by its ARN and refuses another, that a deny on one refuses it beside an
allow on every resource, and that an aws:ResourceTag condition reads the tags of a firewall and of a firewall policy a
tag call names. It also checks that a grant on one rule group's ARN reads it and refuses another, and the same rule
group named by its name and type, and that CreateFirewall is refused on a grant on every firewall alone and runs with
one on the firewall policy it names beside it. NetworkFirewallStoredTagsTest checks the stored tags of each kind, in
another account too.
2026-12-04 22:59:38 -04:00
Maddog2050 d9bb151b22 feat(dms): import, describe and delete certificates (#10159) 2026-12-04 20:36:18 -04:00
Allen Sanborn b655354ead fix(apigatewayv2): default ConnectionType to INTERNET and return WebSocket integration PassthroughBehavior and ContentHandlingStrategy (#10104) 2026-12-04 20:05:07 -04:00
Priamo Germosen de0b1dc485 feat(elasticache): emit the OpenTelemetry bandwidth limit of a node (#10193)
The ElastiCache metrics reference gives system.network.bandwidth.limit
as a vended Gauge in By/s: "The baseline network bandwidth for the
node's instance type. The limit is the same in each direction and
applies to each direction separately."

regen_elasticache_otel_metrics.py now also reads the user guide's
"Supported node types" page. It copies the baseline bandwidth in Gbps
of each node type its "Current Generation (Valkey)" tables list into
the vendored file. Only that section is read: the Memcached section
gives cache.r5.12xlarge 20 Gbps where the Valkey and Redis OSS
sections give 12.

The table converts each baseline to bytes a second, at 125000000 per
Gbps. A node emits the baseline of its group's node type, with no
attribute but valkey.role. A node type the page does not list for
Valkey emits none.

Closes #7030
2026-12-04 19:55:55 -04:00
Priamo Germosen e50cdd5eb2 feat(elasticache): emit the OpenTelemetry network rates of a node (#10192)
The ElastiCache metrics reference gives system.network.io.rate and
system.network.packet.rate as exponential histograms: "The interface is
sampled once a second, and each datapoint is the distribution of those
per-second rates".

Each running node's container is now sampled through its Docker stats
stream, which sends a sample about once a second. Each sample and the
one before it give the bytes and packets per second in each direction,
summed over the container's interfaces. A rate metric's data point
drains the rates sampled since its previous one: on the minute when
vended, on every quarter when selected. A node that misses a tick
leaves its rates to its next data point.

The OTLP model Floci emits its own metrics through gains an exponential
histogram instrument. Values are bucketed at the greatest scale, from
20, that holds them in 160 buckets, with zeros in the zero count, and
emitted with delta temporality. The table now maps ExponentialHistogram
to that instrument.
2026-12-04 19:34:22 -04:00
Priamo Germosen b353320dc9 feat(elasticache): emit the OpenTelemetry host metrics a node's kernel reports (#10190)
The ElastiCache metrics reference lists system.* and process.* metrics,
"reported by the operating system: system.* metrics describe the host as
a whole, and process.* metrics describe the Valkey process
specifically". Floci emitted none of them.

When a metric read from them is due, the publisher reads the kernel's
own files in the node's container with cat, run without a shell: the server process's
/proc/<pid>/stat, for the process id INFO gives, /proc/meminfo and
/proc/net/dev. NodeHost reads from them the major page faults, the
memory available without swapping, the swap in use, and the bytes and
packets each way on every interface but the loopback. process.cpu.time
is the main thread's, from INFO's used_cpu_user_main_thread and
used_cpu_sys_main_thread, as the page reports only the main thread.
system.network.allowance_exceeded is 0 for each reason, since Floci
sets no allowance on a node's network. A node whose host cannot be
read, as in an image with no cat, still emits its other metrics.

EngineNode carries the container id, and ElastiCacheContainerManager
reads the files. The network rates and the bandwidth limit come in
later parts.
2026-12-04 18:10:53 -04:00
Priamo Germosen 7007b5f7fc fix(cloudwatch): check cloudwatch:ResourceArn on the resource metrics configuration operations (#10188)
The Service Reference gives Create, Get, Update and
DeleteResourceMetricsConfiguration the condition key
cloudwatch:ResourceArn, which Floci never put in the request context, so
an Allow scoping them with ArnLike on it allowed nothing and a Deny
conditioned on it denied nothing.

regen_request_condition_keys.py opts cloudwatch in, reading the key from
the ResourceArn member each request carries, as it reads redshift:DbUser
from DbUser, and request-condition-keys.json is regenerated. botocore
models CloudWatch in smithy-rpc-v2-cbor, which the request condition
reader did not read; it now reads such a namespace's request in the
protocol it arrives in, a Query form, or a JSON or CBOR body, as
CloudWatch takes all three.
2026-12-04 17:45:23 -04:00
Priamo Germosen bcd1317202 fix(cloudformation): check the list sizes and unique items a resource schema declares (#10187)
A resource handler's model validation checks a list's minItems, maxItems
and uniqueItems as it checks a string's length and pattern, so AWS fails
an AWS::CloudWatch::ResourceMetricsConfiguration with two
MetricSelections before anything is configured. Floci vendored only the
string constraints, so such a template reached the service, and the
OTelEnrichment provisioner checked uniqueItems by hand.

regen_cfn_property_types.py now vendors minItems, maxItems and
uniqueItems on every list, with --check anchors for the CloudWatch lists,
and cfn-property-types.json is regenerated (no other drift).
CfnPropertyTypes.HandlerReader checks them with the schema validator's
messages and order: too few, too many, then two the same, ahead of the
list's items. "Model validation failed (#/MetricSelections: expected
maximum item count: 1, found: 2)". Items are compared once intrinsic
functions are resolved and values converted. The ECS handler, which
already takes members the schema does not declare, checks none of them.
The OTelEnrichment provisioner's own uniqueness check is removed.

Items are keyed by their JSON with sorted members, not held in a set of
nodes, which slows to comparing each item with every colliding one when
a template makes their hashes collide. S3CfnProvisioner's uniqueness
check now shares this one.
2026-12-04 17:07:17 -04:00
Priamo Germosen bf7af5ca50 fix(iam): check Amazon DLM by its generated routes, resources, passed roles and tags (#10183)
Under enforcement a REST route no vendored model names runs unchecked, and DLM was among them: any caller could
create, read, update or delete a lifecycle policy and read or change its tags with no permission at all. DLM's model is
vendored now (regen_rest_routes.MODELS: dlm), so each request is checked as its operation's action, and dlm joins the
generated tables of request resources, passed roles and tags on create: the tag routes on the policy their path's ARN
names, the role CreateLifecyclePolicy and UpdateLifecyclePolicy pass in ExecutionRoleArn, and the tags a create
carries, which need dlm:TagResource.

The routes naming a policy by its PolicyId (GetLifecyclePolicy, UpdateLifecyclePolicy, DeleteLifecyclePolicy) are
checked on *, as the generated table reads them: a policy's ARN is policy/${ResourceName}, a name variable, which the
rule's compatible() keeps an id member from filling. CreateLifecyclePolicy's tags are checked on the policy the table
fills from DefaultPolicy, and on * when the request leaves it out.

DlmStoredResourceArns answers the tags DLM holds on the policy an ARN names, read in the ARN's account and Region by
the id it ends in without moving it and matched on the whole ARN, which an aws:ResourceTag condition reads. A namespace
the table reads is served on its tag routes only at the ARN its path encodes, so DlmIntegrationTest sends the ARN
encoded, as the SDKs do, and docs/services/dlm.md says so.

IamRestRouteEnforcementIntegrationTest checks that with no grant a policy's tags are refused, that a grant on one
policy's ARN reads them and refuses another's, that a deny on one policy's ARN refuses it and leaves another, that an
aws:ResourceTag condition reads a policy's tags, that GetLifecyclePolicy is checked on *, and that a create needs
iam:PassRole on its execution role and dlm:TagResource for the tags it carries.
2026-12-04 16:52:51 -04:00
Priamo Germosen 54ac584a74 fix(cloudwatch): refuse two OTel enrichment selectors for one namespace in a list (#10185)
The AWS::CloudWatch::OTelEnrichment resource schema says the service
"rejects more than one selector for the same namespace within a
direction". Floci stored both selectors, so IncludeFilters naming
AWS/SQS twice started enrichment with a filter AWS refuses.

StartOTelEnrichment and UpdateOTelEnrichment, over Query, JSON, CBOR and
CloudFormation, now refuse such a list with ValidationError (400), after
the model's constraints and the combined cap of 100 selectors, and
change nothing. AWS quotes no message for it, so the message is that
schema's own sentence. Namespaces match exactly and case-sensitively,
and one namespace may still sit in both lists, where ExcludeFilters
wins.

A CloudFormation rollback puts back the filters a failed update replaced
through OTelEnrichmentService.restore, which skips these checks, as the
filters were accepted when written: an enrichment an older Floci stored
still rolls back, as PipesService.restorePipe does for a pipe.
2026-12-04 16:35:20 -04:00
Priamo Germosen 631f2eface fix(cloudwatch): read every member of a Query list past a gap (#10177)
The CloudWatch Query handler read most lists by counting up from
member.1 and stopping at the first index the request left out, so
AlarmNames.member.1 and AlarmNames.member.3 deleted only the first
alarm, and a datum's third dimension, a GetMetricData query numbered 3
after 1, or an alarm metric numbered 2 were dropped without a word.

Every list now reads through AwsQueryLists, which takes every index the
request numbers, in order: Statistics, AlarmNames, AlarmTypes, TagKeys,
DashboardNames, Names, the alarm actions, Tags, dimensions, metric data
queries, alarm metrics, stream filters and statistics configurations. A
member without its key field is skipped rather than ending the list.

A list nested in each member is read from that member's own keys, which
AwsQueryLists.keysByMember groups in one pass, so a large request is not
scanned again for every member.

IAM reads the request the same way, so it checks what the handler acts
on: RequestResources reads a CloudWatch form's lists past a gap, as its
handler does, while ELBv2's stops at the first missing index, as its
handler does; and TagOnCreate reads CloudWatch's Tags through
AwsQueryLists, so a tag past a gap is a request tag, and a policy
requiring it no longer refuses an alarm that gets it.
2026-12-04 16:04:02 -04:00
Priamo Germosen cf50025eaa fix(iam): check Amazon MQ by its generated routes, resources and tags (#10172)
Under enforcement a REST route no vendored model names runs unchecked, and Amazon MQ was among them: any caller could
list, create, describe, reboot or delete a broker with no permission at all. MQ's model is vendored now
(regen_rest_routes.MODELS: mq), so each request is checked as its operation's action, and mq joins the generated
tables of request resources, passed roles and tags on create: a broker by the id its path gives, a configuration by
its id, and the tags a create carries, which need mq:CreateTags on the broker of the name it gives. The Service
Reference passes a role to mq.amazonaws.com on CreateBroker and UpdateBroker, which the rule reads from
LdapServerMetadata's roleName and userRoleName by their names. AWS gives LDAP metadata to ActiveMQ brokers alone, which
Floci does not create, and Floci serves no UpdateBroker, so the reading reaches no request Floci serves.

A broker's ARN is broker:${BrokerName}:${BrokerId}, and MQ's requests name a broker by its id alone, so the table
fills only BrokerId, and the reader asks the namespace's service for the resource of the one variable a request fills,
as it does for any type. AmazonMqStoredResourceArns answers it with the caller's broker of the id in the Region, so the
request is checked on the broker's whole ARN rather than broker:*:<id>, which no policy naming a broker matches. It also
answers the tags MQ holds on the broker an ARN names, read in the ARN's account and Region by the id it ends in and
matched on the whole ARN, neither read moving a stored broker.

The table also takes the Service Reference's change to SES since main's sync: TagResource, UntagResource and
ListTagsForResource now act on a multi-region-endpoint too, which the drift check of a change to the table requires.

IamRestRouteEnforcementIntegrationTest checks that with no grant a broker's read is refused, that a grant on one
broker's ARN reads it and refuses another, that a deny on one broker's ARN refuses it and leaves another, that an
aws:ResourceTag condition reads a broker's tags, and that a create carrying tags needs mq:CreateTags on the broker of
its name.
2026-12-04 15:20:38 -04:00
Jeremy Chapeau 743c44a0a4 fix(cloudtrail): record callers as CloudTrail's userIdentity types (#10101)
CloudTrail types the caller as Root for the account's credentials,
IAMUser for a user's key, AssumedRole for a role session and
FederatedUser for a federation token. Floci recorded the account root as
an IAMUser named root, and every session as an unknown "anonymous" user.
The account's credentials are now Root, with the account as principalId
and no userName; a role session is AssumedRole, with the role as its
sessionIssuer and the session's creationDate; a session a user's
GetSessionToken issued is that IAMUser.

Every temporary credential now carries its sessionContext attributes,
creationDate and mfaAuthenticated, which is true for a GetSessionToken
session opened with an MFA code. A session opened with a source identity
names it in sessionContext.sourceIdentity. A federation token's
sessionIssuer is the root or the IAM user that called
GetFederationToken. A session opened with AssumeRoleWithWebIdentity
names its identity provider in webIdFederationData. The root of an
account with an alias is named by it in userName.

Credentials GetDelegatedAccessToken exchanged for a request a role
approved now carry the role session's ID, "role-id:session-name", as
their aws:userid and CloudTrail principalId, with the role's ID as the
sessionIssuer's principalId.
2026-12-04 15:12:13 -04:00
XuJian b365917f01 fix(route53): refuse a record set type given without a name (#10169)
The reference pairs StartRecordType with StartRecordName, so a type on its own has no name to refine
and AWS answers that request with InvalidInput. Floci read the type only inside the branch that runs
when a name is present, which dropped an unpaired type and listed the whole zone instead.

The check goes at the request boundary, beside the other Route 53 parameter constraints, because the
service already handles a type correctly once a name is given with it.

Closes #10167
2026-12-04 14:38:20 -04:00
Maddog2050 6e71231b98 fix(docdb): return cluster and instance AvailabilityZones as AWS does (#10166) 2026-12-04 14:35:09 -04:00
Priamo Germosen bea07871fb feat(elasticache): emit Valkey replication groups' OpenTelemetry metrics to CloudWatch (#10173)
Node-based Valkey replication groups emit the OpenTelemetry metrics of
the ElastiCache user guide's metrics reference to CloudWatch, where
PromQL reads them: the vended metrics every 60 seconds, and those a
resource metrics configuration selects every 15 seconds as detailed.
Each node's INFO is read straight from its server, as the backend's
administrator once a user group has turned the default user off, and
each command's type and category come from COMMAND INFO and COMMAND
DOCS.

The metric table is vendored from the reference page by
regen_elasticache_otel_metrics.py, checked by aws-data-check and the
drift workflow. VendedOtlpMetrics stores the export requests for the
account and Region. Emission is off by default behind
FLOCI_SERVICES_ELASTICACHE_OTEL_METRICS_ENABLED, since each node adds
about 8 KB to the OTLP store every minute.

Part of #7030.
2026-12-04 14:17:30 -04:00
XuJian c8bd295a4e fix(route53resolver): filter and page the endpoint and association listings (#10136) 2026-12-04 14:15:05 -04:00
Priamo Germosen e04990a9bb feat(cloudformation): provision CloudWatch resource metrics configurations (#10171)
AWS::CloudWatch::ResourceMetricsConfiguration creates the detailed monitoring
configuration of its ResourceArn and deletes it with the stack. Ref returns
the ARN, and CreatedAt and UpdatedAt return the configuration's timestamps to
the millisecond, as the API answers them.

MetricSelections updates in place, and a dropped list removes the filter. The
resolved selections are compared with the stored ones, so a selection reading
a replaced resource takes its new value. A new ResourceArn replaces the
configuration, and the old one is deleted once the update completes. A failed
update puts the previous selections back, with the timestamps of that write,
and a create for a configured ARN fails with AlreadyExists. CreatedAt and
UpdatedAt are read-only and refused in the template. A configuration already
gone is taken as deleted.

CfnExceptions.alreadyExists builds the resource handler's AlreadyExists answer
and CfnExceptions.refuseReadOnly the read-only refusal, for the provisioners
that spelled them out, and the OTel enrichment snapshot
moves to a __Floci key in CfnRollback, as every other provisioner's does.

Part of #7030.
2026-12-04 12:27:32 -04:00
Priamo Germosen bece631041 feat(cloudwatch): create, read, update and delete resource metrics configurations (#10164)
Add CreateResourceMetricsConfiguration, GetResourceMetricsConfiguration,
UpdateResourceMetricsConfiguration and DeleteResourceMetricsConfiguration
over Query, JSON 1.0 and CBOR: at most one detailed monitoring
configuration per resource ARN, kept per account and Region. Floci stores
the configuration; collecting the selected metrics comes next.

The model is checked first, every violation in AWS's form, the metric
selection list quoted as AWS writes it. Then the ARN must name a resource
type ("ARN is missing resource type") and one with detailed monitoring
("Unsupported resource type"): the guides document only ElastiCache
replication groups. These refusals are ValidationError, the JSON body
naming com.amazon.coral.validate#ValidationException, as recorded from
AWS. A second create is ConflictException (409) and a missing
configuration ResourceNotFoundException (404), each with its exception's
model documentation, as AWS quotes no message. An update replaces the
selections, and one without them collects every metric.

DeleteReplicationGroup fires a ReplicationGroupDeleted event, and the
configuration of the deleted group is deleted with it, as the ElastiCache
user guide says. SmithyValidationErrors.Violations gains sizeOutOfRange, the quoted
twin of the list-size violation.

Part of #7030.
2026-12-04 11:25:25 -04:00
Priamo Germosen 1f5c7abaaf feat(cloudformation): provision CloudWatch OTel enrichment and resource tags for telemetry (#10157)
AWS::ObservabilityAdmin::TelemetryEnrichment starts resource tags for
telemetry in the stack's Region and stops it on delete. Scope must be
ACCOUNT; Ref returns it and Status is RUNNING.

AWS::CloudWatch::OTelEnrichment starts OTel enrichment with its filters,
updates them in place as UpdateOTelEnrichment does (a dropped list is
cleared), and stops it on delete. An update writes the filters when the
template changes them or when they resolve to other values than the
running ones, as a Ref to a resource the update replaces does. Ref and AccountId are the account,
Status is RUNNING, and a failed stack update puts the previous filters
back. Both are singletons: a create while the feature already runs fails
with AlreadyExists, as the CloudFormation handler contract requires, and
the check and the start hold one lock.

Properties go through template validation, then the schema's model
validation, with the two types added to the vendored property types.
The vendored schema data is regenerated from AWS's current archive, which
adds AvailabilityZoneId to AWS::EC2::Instance (recorded as a writable gap,
since the instance provisioner does not read it) and an EBS Throughput, and
drops ElasticGpuSpecifications and ElasticInferenceAccelerators, whose gap
rows go.
2026-12-04 10:41:26 -04:00