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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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.
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.
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.
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.
Under enforcement a REST route no vendored model names runs unchecked, and Bedrock AgentCore was among them: any caller
could create, read, update or delete its runtimes, runtime endpoints, gateways, gateway targets and rules, memories,
harnesses, browsers, code interpreters, workload identities and credential providers, put a resource policy, write and
read memory events and invoke a runtime, with no permission at all. AgentCore's two models are vendored now
(regen_rest_routes.MODELS: bedrock-agentcore and bedrock-agentcore-control, both signed bedrock-agentcore), so each
request is checked as its operation's action, and bedrock-agentcore joins the generated tables of request resources,
passed roles and tags on create: a resource by the id its path gives, the role each create or update passes, and the
tags a create carries.
The Service Reference passes CreateCapacityProvider's roles to bedrock-agentcore and ec2 without saying which member's
goes where. fetch_bedrock_agentcore_roles.py vendors what AWS says of each into
tools/aws/sources/bedrock-agentcore-roles.json, a ROLE_SOURCES entry as Batch's is: the operator role is "the IAM role
that AgentCore assumes to manage the capacity provider" (Control API reference), which AgentCore's capacity provider
sample says must trust bedrock-agentcore.amazonaws.com, and launchParameters.instanceProfileArn is "the IAM instance
profile to associate with launched instances", whose role the IAM User Guide's trust policy for an EC2 instance's role
gives to ec2.amazonaws.com. That member names an instance profile, which the rule does not read by its name, so the
source lists it in roleMembers, and the check that every vendored role is read now counts such members as the table
does.
BedrockAgentCoreStoredResourceArns answers the tags AgentCore holds on the resource an ARN reaches, in its account and
Region, which an aws:ResourceTag condition reads: a runtime, a runtime endpoint, a gateway, a memory or a harness as
the tag routes read the same ARN (a qualified runtime ARN answers the runtime's), and a custom browser, a custom code
interpreter or a browser profile from the tool. The table asks for a consent portal, a code interpreter by its name or
a configuration bundle to be found, which Floci does not serve, and for the memory an event is in, which the path of
GetEvent and DeleteEvent already names. A runtime endpoint's routes are checked on its runtime and a credential
provider's on *, as the generated table reads them: their ARNs end in a ${Name} beside another variable, which no
reading fills.
The tag routes no longer take the agent/<uuid> and agentEndpoint/<uuid> forms Floci wrote before #8088. They name no
AWS resource, so IAM could only check them as named, past a deny on the runtime or endpoint they reached; they now get
a ValidationException, and a legacy agent/ ARN names no runtime on invoke. A CloudFormation stack that holds an
agentEndpoint/<uuid> physical id still updates and deletes that endpoint.
A namespace the table reads is served on its tag routes only at the ARN its path encodes, as Connect's, MSK's and
MWAA's are, so AgentCore's and CloudFormation's AgentCore tests send the ARN encoded, as the SDKs do, and
docs/services/bedrock-agentcore.md says so.
IamRestRouteEnforcementIntegrationTest checks that with no grant a gateway's read is refused, that a grant on one
gateway reads it and refuses another, and that an aws:ResourceTag condition reads its tags; that a gateway create needs
iam:PassRole on its role and bedrock-agentcore:TagResource for the tags it carries; that a data plane event write is
checked on the memory its path names; that an aws:ResourceTag grant reads a browser's tags; and that a deny on a
runtime's tags holds for its ARN and its qualified ARN while the legacy endpoint form is refused.
While OTel enrichment runs in an account's Region, each datapoint Floci
vends there is republished as an OpenTelemetry data point that PromQL
reads, when the CloudWatch user guide's "Supported resources and
metrics" page lists its metric for the resource it measures with exactly
its dimension names, and the enrichment's filters keep it: include
first, then the exclude match set subtracted, empty lists permissive,
names matched exactly. The classic datapoint is stored as before.
The page's tables are vendored as aws/cloudwatch-otel-enrichment.json by
tools/aws/regen_cloudwatch_otel_enrichment.py, which copies each
namespace's scope and, per resource, whether its ARN and tags are added
and each metric's instrument type and dimension sets, and refuses a
reworded page. make cloudwatch-otel-enrichment-check reads the file's
shape offline, in aws-data-check; -verify compares it with the live page,
in iam-data-verify and the weekly drift run.
A republished series carries the guide's labels: the dimensions as data
point attributes, cloud.resource_id, provider, Region and account on the
resource, the namespace's scope with cloudwatch.source and
cloudwatch.solution, and the resource's tags as @aws.tag.<key> with
resource tag enrichment while resource tags for telemetry run. Only a
request enrichment wrote maps tag.* to @aws.tag; one a client sends keeps
@resource.tag.*. A Sum is a delta sum of the datapoint's sum; a Histogram
is a delta one-bucket histogram of its sample count, sum, minimum and
maximum, as CloudWatch does not document that conversion.
SQS queues pass their ARN and tags, and so do paused Aurora Serverless v2
instances and clusters and Redshift clusters; of those the page lists
every AWS/SQS metric and the paused instance's ACUUtilization and
CPUUtilization. A failed republication is logged and never reaches the
classic publication.
Part of #7030.
Bumps botocore from 1.44.17 to 1.44.18 with its regenerated data. 1.44.18 adds
RDS data groups and DB cluster groups, whose operations the IAM tables now
read from the model rather than marking them as missing from the pinned
botocore.
The Service Reference lists two tagging actions for rds:CreateDataGroup,
rds:AddTagsToDataGroup and rds:AddTagsToResource, without saying whether the
tags a create carries need one or both, so the tag-on-create generator stopped
on it. The Aurora User Guide's prerequisites for data groups answer it: "To add
tags when you create a data group, grant rds:AddTagsToResource and
rds:AddTagsToDataGroup on *". fetch_rds_tag_actions.py vendors that page into
tools/aws/sources/rds-tag-actions.json, and the generator, granted it for RDS
alone (TAG_ACTION_SOURCES), lists both actions for the operation when they are
the ones the reference lists. --verify reads the page again.
That sentence grants both actions "on *", where the guide grants adding
tags to a data group that exists "on data-group:*", so the fetcher copies
that resource too and the table marks the operation anyResource: Floci
checks the create's tagging actions on *, not on the DB cluster the create
itself is checked on.
The tag-on-create table and TagOnCreate now carry each operation's tagging
actions as a list, and the enforcement filter, RequestChecks and STS's trust
policy check every action an operation's tags need. An operation with one
tagging action is checked as before. verify_role_sources' body becomes
verify_vendored_sources, which both generators use to verify their vendored
sources.
The guide's IAM page for database cluster groups authorizes
rds:CreateDBClusterGroup against "* (the group doesn't exist yet)", where the
Service Reference lists cluster-group for it and a group's ARN holds a
resource ID the request does not carry. fetch_rds_cluster_group_permissions.py
vendors that page's table as RDS's permission source, and the request
resources generator checks an action its row authorizes against * alone
there.
fetch_dms_arn_formats.py refreshes its botocore examples at the new pin, and
the authorized-actions table takes the Service Reference's new mapping of
budgets:DescribeBudgetSpendForPrincipal to budgets:ViewBudget.
ListResourceRecordSets resumed a page on the record name and type only, so a
page cut inside a group of weighted, latency, failover or geolocation record
sets sent the next request back to the first record set of that group and the
walk never advanced. Route 53 keys a record set on name, type and SetIdentifier,
and names the record set a page resumes at through NextRecordIdentifier when it
shares the name and type of the last record set on the page.
The handler now reads the identifier query parameter, the listing orders record
sets that share a name and type by their routing set identifier, and
NextRecordIdentifier is written only when the next page starts inside such a
group.
Closes#10145
Under enforcement a REST route no vendored model names runs unchecked, and Amazon Connect was among them: any caller
could create, describe, update or delete an instance, its attributes or its storage configs. Connect's model routes are
vendored (regen_rest_routes.MODELS, signed connect), so each request is checked as its operation's action, and connect
joins the generated tables of request resources and tags on create: an instance by the id its path gives, each of
Connect's other resources by the members its request names, and the tags a create carries.
ConnectStoredResourceArns answers the tags Connect holds on an instance, read in place in the ARN's account and Region,
which an aws:ResourceTag condition reads. The table asks for a traffic distribution group or a data table to be found,
which Floci does not serve, so there is nothing to find. The table's integer variables now include Connect's
customer-managed-view-version ViewVersion, which test_regen_iam_request_resources pins.
A namespace the table reads is served on its tag routes only at the ARN its path encodes, so ConnectIntegrationTest's
tag calls send the ARN encoded, as the SDKs do, rather than with its '/' raw.
IamRestRouteEnforcementIntegrationTest checks that with no grant an instance's read is refused, that a grant on one
instance reads it and refuses another, and that an aws:ResourceTag condition reads its tags.
ConnectService named an instance by any ARN, reading the text after its first slash, so an ARN of another shape
(arn:aws:connect:us-east-1::other/<id>) reached an instance IAM had not checked the request on, past a deny on it. It
now takes an instance's own ARN alone, the one IAM checks, refuses an ARN of any other shape, and looks one of another
account or Region up as given, which finds nothing; storedTags answers an instance's own ARN alone, so another
partition's gets no tags. ConnectStoredResourceArnsTest covers both, IamRestRouteEnforcementIntegrationTest checks that
an instance deny holds for each form the path gives it and that a tagged CreateInstance needs connect:TagResource, and
docs/services/connect.md says which ARNs are taken.
Add StartOTelEnrichment, GetOTelEnrichment, UpdateOTelEnrichment and
StopOTelEnrichment over Query, JSON 1.0 and CBOR, with one configuration
per account and Region as the user guide scopes it. Floci stores the
configuration; enriching vended metrics comes next.
Resource tag enrichment, the default, needs ObservabilityAdmin's resource
tags for telemetry running in the Region: a start without it is the
modeled ValidationError with the API reference's sentence, as AWS quotes
no message. EnableTagEnrichment false needs nothing. A start while
running changes nothing, an update replaces both filter lists as a pair
and keeps the stored tag setting it omits, and an update while stopped is
AWS's ResourceNotFoundException "OTel enrichment is not enabled for this
account". A stopped enrichment reads as its status alone.
Filters are validated as the model gives them, every violation listed in
AWS's form, then against the 100 selectors allowed across both lists. A
selector naming metrics without a namespace is refused as a null namespace
over Query too, for metric streams as well, rather than read as no selector.
Over JSON, a filter list sent as something else is refused with the
deserializer's SerializationException, and EnableTagEnrichment sent as a
string is read as the boolean it names or refused, so a malformed update
changes nothing.
Over Query, a filter name XML cannot carry is written as U+FFFD, for
metric streams too.
Part of #7030.
CloudWatch's OTel enrichment reads resource tags through ObservabilityAdmin's
resource tags for telemetry feature, which has to be running before
StartOTelEnrichment enables tag enrichment. Add the ObservabilityAdmin service
with StartTelemetryEnrichment, StopTelemetryEnrichment and
GetTelemetryEnrichmentStatus, one feature per account and Region.
Starting the feature has Resource Explorer create a LOCAL index when the
Region has none and a managed view that includes tags, as the CloudWatch user
guide describes. GetManagedView and ListManagedViews now answer the views
Floci's services create. A status read before the first start is the modeled
ResourceNotFoundException, and a stop of a stopped or never-started feature
changes nothing.
The passed-roles table now reads ObservabilityAdmin. A vendored source,
written from the CloudWatch user guide and the Observability Admin API
reference, gives a dataset integration's role to CloudWatch Logs, whose trust
policy it names, and gives where a telemetry pipeline's YAML configuration
names its roles: its source's and its Secrets Manager extension's, each going
to the service its source type's role trusts, and to CloudWatch Logs as well
with a lookup processor or a conditional route.
Part of #7030.
TranslatePinData binds a format 0 or 3 PIN block to the twelve-digit account field, the twelve right-most digits of the account number without its check digit, and a caller holding the block sends that field as PrimaryAccountNumber. A twelve-digit value was read as a PAN whose check digit was dropped, so the derived field was one digit short and the block did not decipher. For the formats 0 and 3 a twelve-digit value is now the field itself, while format 4, which binds the PIN to the whole PAN, reads it as a PAN as before; the Visa verification value follows the same reading. A request whose translation attributes name no account number is refused with ValidationException instead of throwing.
Closes#10077
Under enforcement a REST route no vendored model names runs unchecked, and Amazon AppIntegrations was among them: any
caller could create, read, update, delete or tag an event integration or a data integration. AppIntegrations' model
routes are vendored (regen_rest_routes.MODELS, signed app-integrations), so each request is checked as its operation's
action, and app-integrations joins the generated tables of request resources and tags on create: an event integration by
the name its path or body gives, a data integration by its id, and the tags a create carries.
AppIntegrationsStoredResourceArns finds the data integration CreateDataIntegration names by its name, as the table asks
(findByMembers), its ARN carrying the id AppIntegrations mints. It finds nothing by the value an ARN is filled with
(find), so a request naming a data integration by its id is checked on that id, as its handler reads it, never on
another integration whose name is that id. It answers the tags AppIntegrations holds on an event or data integration,
read in place in the ARN's account and Region, for the integration's own ARN alone, as the tag routes find it, which
an aws:ResourceTag condition reads. Floci serves no applications, so there is no application to find.
StoredResourceArns names it.
A namespace the table reads is served on its tag routes only at the ARN its path encodes, so
AppIntegrationsIntegrationTest's tag calls send the ARN encoded, as the SDKs do, rather than with its '/' raw.
IamRestRouteEnforcementIntegrationTest checks that with no grant an event integration's read is refused, that a grant on
one reads it and refuses another, that an aws:ResourceTag condition reads its tags, that a CreateEventIntegration
carrying tags needs app-integrations:TagResource on the event integration it makes, that CreateDataIntegration is
checked on the data integration of the name it gives, and that GetDataIntegration by an id is checked on that
integration, not on another named like the id. AppIntegrationsServiceTest checks that another partition's ARN reads
no tags.
CreateFlowLogs stores FileFormat, HiveCompatiblePartitions and PerHourPartition, and DescribeFlowLogs returns them as destinationOptions: an s3 flow log created without them reports plain-text, false, false, a partial request defaults the rest, and a cloud-watch-logs flow log omits the element unless options were sent. A partition flag that is not a boolean is refused. CloudFormation AWS::EC2::FlowLog resolves DestinationOptions whole, so an intrinsic can supply the block, passes it to the flow log, and refuses an update that changes it, as the property is create-only.
Closes#7888
An EC2 instance's network namespace now gets the routes of its subnet's route table whose target is an instance or a network interface, as an EKS cluster's server container already does. Each program reconciles the namespace to the routes due, which carry protocol 252 so the guest's own are left alone; a route through an instance that isn't running, or a detached or missing interface, is programmed as a blackhole, as AWS keeps it. A route covering an address the instance reaches Floci at, its default gateway, or a link-local range is never programmed, and a Floci name that doesn't resolve inside the namespace fails closed. Route table and target resolution move to ec2.net.VpcRoutes, shared with EKS. Controlled by floci.services.ec2.vpc-route-programming (default true).
Part of #10068.
Under enforcement a REST route no vendored model names runs unchecked, and CloudWatch RUM was among them: any caller
could create, read, update, delete or list app monitors with no permission at all. RUM's model routes are vendored
(regen_rest_routes.MODELS, signed rum), so each request is checked as its operation's action, and rum joins the
generated tables of request resources, passed roles and tags on create: an app monitor by the name its path gives, the
tags a create carries, and PutRumMetricsDestination's IamRoleArn passed to rum, which applies once Floci serves that
operation, as it serves only the app monitor routes today.
RumStoredResourceArns answers the tags RUM holds on an app monitor, read in place in the ARN's account and Region, which
an aws:ResourceTag condition reads. PutRumEvents names its monitor by an id, which the table asks to be found; Floci
does not serve it, so there is nothing to find.
IamRestRouteEnforcementIntegrationTest checks that with no grant a monitor's read is refused, that a grant on one
monitor reads it and refuses another, that an aws:ResourceTag condition reads a monitor's tags, that a create granted on
the monitor its Name makes passes with a guest role in its configuration, whose IAM role ARN is not taken for a monitor,
and that a create carrying tags is refused until rum:TagResource is granted on the monitor it makes.
A target group with ProtocolVersion GRPC keeps Matcher.GrpcCode through CreateTargetGroup, DescribeTargetGroups, ModifyTargetGroup and CloudFormation rollback, defaulting to 12, while HTTP1 and HTTP2 groups keep returning HttpCode. GrpcCode used to land in the HTTP matcher slot, so a gRPC group answered HttpCode=200. Groups CloudFormation stored that way still read their gRPC code.
Refs #9899
XrayRouteFilter now claims /TagResource, /UntagResource and /ListTagsForResource, so an xray-signed call there no longer reaches Marketplace Catalog's handler, and CreateSamplingRule keeps its Tags. A sampling rule's tags are changed and read by the rule's ARN, with AWS's key, value and 50-tag limits; a group's ARN, the Default rule's, or one from another Region or account answers ResourceNotFoundException with "Resource <arn> not found". IAM reads a rule's tags for aws:ResourceTag conditions.
Releases try to build floci-aws-darwin-arm64 again on the free
macos-latest runner, with a 9 GB native-image heap, -Ob and two build
threads. A first step checks the runner's memory: below 12 GiB the job
warns and skips the build, and publish-binaries, which stages
darwin-arm64 as optional, releases without it. platforms=missing
backfills it later. The installation page lists the Apple Silicon
binary and keeps the Rosetta 2 note for releases that lack it.
Closes#10084
Under enforcement a REST route no vendored model names runs unchecked, and Amazon Detective was among them: any caller
could enable an organization admin account, list a behavior graph's members or change its organization configuration
with no permission at all. Detective's model routes are vendored (regen_rest_routes.MODELS, signed detective), so each
request is checked as its operation's action, and detective joins the generated tables of request resources and tags on
create: a behavior graph by the ARN its body gives, and an operation the Service Reference gives no resource type on *.
Detective passes no role. Floci keeps no tags on a graph, so an aws:ResourceTag condition on one reads none, as before.
IamRestRouteEnforcementIntegrationTest checks that with no grant, or a grant on another graph, listing a graph's members
is refused, and that a grant on the graph lets the request through; and that listing the organization's administrator
accounts, an operation the Service Reference gives no resource type, is refused until its action is granted on *.
AWS added rds:CreateDataGroup to the Service Reference with two tagging actions, rds:AddTagsToDataGroup and
rds:AddTagsToResource, and regen_iam_tag_on_create asked for a hand entry for it before reading its request, though the
pinned botocore does not have the operation yet. It now asks only when the request carries tags, as which tagging action
checks them is a question only for those, so the operation takes the derived verdict, not in botocore, and a model bump
bringing it in asks again. The regenerated tag-on-create table takes AWS's other new actions too:
ec2:CreateSecondaryNetworkAclAssociation and rds:RestoreDBClusterGroupToPointInTime.
CreateCodeSigningConfig ignored its Tags, and TagResource, UntagResource
and ListTags refused a code-signing-config ARN. Create now checks the
tag keys as TagResource does and keeps the tags in their own store, so
the CodeSigningConfig the reads return still has no Tags. The tag
operations serve a configuration ARN from that store, answer
ResourceNotFoundException for one the caller doesn't hold, and write
under the configuration lock, so a tag write can't outlive a concurrent
delete. Delete drops the tags, and storedTags returns them for
aws:ResourceTag conditions.
PutConformancePack read only the pack's name and template, so
DescribeConformancePacks never returned the DeliveryS3Bucket,
DeliveryS3KeyPrefix and ConformancePackInputParameters the pack was put
with, and its Tags were dropped. The pack now stores and returns them,
and a Put on an existing pack replaces them. Tags apply only when the Put
creates the pack, as the PutConformancePack reference says, and are
written before the pack, so a tag without a Key stores nothing.
The Config integration tests share one ConfigRequests.call helper.
Under enforcement a REST route no vendored model names runs unchecked, and Amazon MWAA was among them: any caller could
create, read, update or delete an environment, get its CLI or web login token, and pass an execution role with no
iam:PassRole. MWAA's model routes are vendored (regen_rest_routes.MODELS, signed airflow), so each request is checked as
its operation's action, and airflow joins the generated tables of request resources, passed roles and tags on create: an
environment by the name its path gives or the ARN its body does, CreateEnvironment's and UpdateEnvironment's
ExecutionRoleArn passed to airflow, and the tags a create carries.
MwaaStoredResourceArns answers the tags MWAA holds on an environment, read in place in the ARN's account and Region, a
pre-multi-account entry under its bare name included, which an aws:ResourceTag condition reads.
StoredResourceArns names it, and now says MSK answers the tags of a cluster alone, as #9973 left MSK.
A namespace the table reads is served on its tag routes only at the ARN its path encodes, so MwaaIntegrationTest's tag
calls send the ARN encoded, as the SDKs do; IamActionRegistryTest's example of a route Floci does not check on a
resource it reads becomes IoT's DescribeThing.
IamRestRouteEnforcementIntegrationTest checks that with no grant an environment's read is refused, that a grant on one
environment reads it and refuses another, and that an aws:ResourceTag condition reads an environment's tags.
IamPassRoleEnforcementIntegrationTest checks that CreateEnvironment and UpdateEnvironment need iam:PassRole on the
execution role they name, passed to airflow.amazonaws.com, which a grant for EC2 does not cover.
An ARN names the account that owns the resource, so a request on another account's resource is cross-account whether
or not its service holds a policy on it. Before, a resource with no supplied policy had no owner, so the caller's own
policies alone decided a call on another account's MWAA environment, and an aws:ResourceTag condition answered on that
environment's tags. ResourcePolicyProviders.ownerAccount now answers the first supplied policy's owner, or else the
ARN's account, and IamEnforcementFilter and RoleResourceAccessAuthorizer judge the request as IAM's cross-account
evaluation logic does: "AWS allows the request only if both account policy evaluations allow the request". An ARN
naming no account, as an S3 bucket's, is judged within the caller's account as before.
So every service that holds a resource-based policy supplies it, read in the account the ARN names: Backup vault access
policies, Bedrock guardrails and guardrail profiles, Bedrock AgentCore, CloudHSM backups, CloudWatch Logs destinations,
DynamoDB tables, ECR repositories and the registry policy, the Glue Data Catalog (for its Data Catalog resources alone,
never a job or crawler), Lambda web functions, Marketplace entities, OAM sinks, Organizations, Payment Cryptography
keys, S3 Tables buckets and tables, S3 Vectors buckets, Secrets Manager secrets, SES identity policies, SSM parameters
and WAF rule groups. An OpenSearch domain's access policy is not among them: AWS applies it to the domain's subresources
only, "not the domain itself", and "accessing the configuration API requires an identity-based policy", while Floci
checks the configuration API alone. Nor is an EFS file system policy, which AWS uses "to control file system data
access" by NFS clients, which Floci does not serve. Nor are the resource policies CloudWatch Logs' PutResourcePolicy
sets, which AWS enforces only for AWS service principals, "not IAM users, roles, or cross-account principals". Nor is a
Redshift cluster's or Serverless namespace's resource policy, which AWS describes as "resource policies that work with
zero-ETL integrations", whose actions Floci does not check. CloudHSM reported every backup ARN in 000000000000; it now
names the caller's account, so the ARN DescribeBackups gives is the caller's own.
A resource with no policy that its service acts on in the account its ARN names (StoredResourceArns.reachedInItsAccount:
a RAM invitation sent to the caller or a share another account owns, an SSM document another account owns, a Redshift
snapshot named by its owner) is judged within the caller's account, its handler answering whether the owner's share lets
the caller use it, as that contract already says. So accepting a RAM invitation, associating a shared SSM document and
restoring a shared Redshift snapshot work as before.
ResourcePolicyProvidersIntegrationTest checks that each provider supplies its policy, owned by the ARN's account, and
nothing for the same ARN in another account, and that the Glue Data Catalog policy is not supplied for a job.
IamRestRouteEnforcementIntegrationTest checks that another account's MWAA environment is refused whatever its tags and
the caller's policies, and that EKS tagging of a foreign ARN is refused; IamRequestResourceEnforcementIntegrationTest
checks that a repository in another registry is refused while its policy grants another account and reaches ECR once it
grants the caller's; LogsArnTagAuthorizationIntegrationTest checks that a foreign log group ARN is refused.
AWS added 24 RDS actions to the Service Reference at 18:02Z on 2026-12-02 (branches, data groups and DB cluster groups,
and ResyncIntegration), which the online verify gate reads from AWS's current copy, so the generated tables take them.
AWS's Service Reference stopped listing iam:PassRole for kinesisanalytics:AddApplicationReferenceDataSource at 05:02Z on
2026-12-03, so the regenerated passed-roles table drops it, and the request-resources table, generated beside it, is
regenerated with it.
PutMetricAlarm takes EvaluationCriteria.PromQLCriteria over Query, JSON,
CBOR and CloudFormation, with the answers AWS gives: the members of an
alarm on a metric are refused as unnecessary, by name, and the
EvaluationInterval must be 10, 20, 30 or a multiple of 60. An interval
without criteria is now the ValidationError AWS answers, "EvaluationCriteria
is required when EvaluationInterval is specified", in place of Floci's
InvalidParameterCombination. A new PromQL alarm is in OK with "No time
series evaluated to ALARM", and DescribeAlarms echoes its criteria and
interval without the single-metric members.
The alarm evaluator runs the alarm's instant query once its interval has
passed, as the account that owns it. Each series returned is a
contributor, identified by its labels without __name__, as Prometheus
labels an alert. Contributors go to ALARM after PendingPeriod and back to
OK after RecoveryPeriod, as Prometheus's for and keep_firing_for move an
alert, at most 100 at a time, and the alarm is in ALARM while one is. A
failed or non-vector query is EVALUATION_ERROR and keeps the state;
more than 500 series is PARTIAL_DATA. A run is dropped when the alarm
changed while its query ran.
Each contributor change is an AlarmContributorStateUpdate history item
and a contributor-level SNS notification, with AlarmContributorId and
AlarmContributorAttributes and no NewStateReason or Trigger.
DescribeAlarmContributors lists the contributors in ALARM, and
DescribeAlarmHistory filters by AlarmContributorId. A query that returns
one series and ends in a comparison with a number drives Auto Scaling
step actions with that number as the threshold.
Floci's own choices where AWS documents none: the contributor history
summary and data, the empty contributor StateReason, the message for
criteria without an interval, EvaluationWindow among the unnecessary
members, and the evaluation error reasons.
Part of #7030.
Lists Local Console (ghcr.io/ngtrthvu3007/local-console), a third-party
console that follows Console Contract v1 and labels itself, in the known
consoles table.
Adds GetOpenIdTokenForDeveloperIdentity for developer-authenticated
identities. Each (DeveloperProviderName, developer user) pair gets a
stable IdentityId; additional logins must name a provider the pool is
configured for and are linked by the user their token identifies, so a
login already linked to another identity answers
ResourceConflictException and a developer user registered elsewhere
DeveloperUserAlreadyRegisteredException. Tokens are RS512 JWS signed
with a per-pool key, carry PrincipalTags, and use AWS's regional issuer.
The pool's OIDC discovery document and JWKS are served under
/.well-known and follow the cognito-identity service's enablement.
Closes#9995
DeleteFunction left the function's event invoke configs in the store, so
a function created later under the same name inherited the deleted
one's retry, event age and destination settings. Deleting the whole
function now removes its configs for every qualifier, leaving other
functions alone, including ones whose names share a prefix. Put and
Update of a config take the same per-function lock as the delete, so a
write racing a delete gets ResourceNotFoundException instead of bringing
the settings back.