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.
ElastiCache SubnetGroup, User and UserGroup take replacement from the engine's NamedChange, as the types in #9671 do, and leave change-exempt.tsv. A subnet group whose CacheSubnetGroupName is removed is now replaced rather than updated in place under its old name, and a UserName change under the same UserId fails with CloudFormation's custom-named replacement error instead of InvalidParameterValue.
Part of #6606.
The Redshift COPY timeout test used a backend thread that read one query and slept for 300 ms. It now leaves its loopback peer connected and silent and, once the simulator's 100 ms read timeout expires, reads the forwarded COPY ... FROM STDIN query from the peer.
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <akurait@amazon.com>
Three extended-query tests waited 200 ms each to check for extra bytes after COPY or UNLOAD. They now half-close the simulator socket and read to EOF through a ClientResponseAssertions helper that S3CopySimulatorTest shares, so a trailing response byte fails the assertion at once.
Signed-off-by: Jackson Price <jxnprice@amazon.com>
AthenaIntegrationTest left two default Glue tables named orders, so GlueS3TablesCatalogIntegrationTest's default SearchTables assertion saw them beside local_orders and failed when it ran later in the same CI shard. The class now registers PartitionCleanup for its Glue tables and databases, deleting tables before their databases.
Publish and PublishBatch looked the topic up in the caller's account, so publishing to another account's topic answered NotFound even though the ARN named an existing topic. The topic is now resolved in the account its ARN names, as topicExists already did, and the fan-out runs as that account so the owner's subscriptions and queues receive the message.
Keep the capacity lock through Auto Scaling group creation and the control-plane taint update, both for a synchronous create and for a node group finished after its launch-template user data runs, so a waiting cluster delete can no longer remove the cluster before the taint lookup. The launch-template script itself still runs outside the lock.
Closes#10057
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.
LaunchedContainerAwsEnv builds the AWS SDK environment, from IAM session
credentials, for the containers Lambda, ECS, EMR, Glue, Flink, MWAA and
the Floci UI launch, so it moves from core.common.docker to
services.common.container and its allowlist line goes. core-bound.txt
now scans core.storage.base, and excludes the AWS account and region
scoping StorageFactory, AccountAwareStorageBackend and
RegionScopedStorage, which stay in floci-aws. No behaviour change.
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.
The Bedrock proxy timeout tests release their loopback HTTP handler as
soon as each test finishes, instead of teardown waiting out the rest of
a two-second sleep. The stub still returns a successful response after
two seconds if the proxy misses its one-second deadline.
Three Redshift COPY and UNLOAD error tests waited 400 ms for a socket
read to time out after ReadyForQuery. Once the simulator returns and its
fake backend has finished, the test now shuts down the writing half of
the socket and checks for end of stream, so any extra response byte
arrives before EOF and fails the assertion.
ListWorkGroups returned only Name and State for each work group, so a
Description given to CreateWorkGroup came back as null. Each summary now
carries Description, an empty string when the work group has none,
CreationTime and EngineVersion. The primary work group was listed in the
GetWorkGroup detail shape, with its Configuration; it is now a summary
like the others.
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.
A failed stack update after an in-place AWS::ECR::Repository change ended
UPDATE_ROLLBACK_FAILED. The provisioner now keeps a CfnRollback snapshot,
as SSM and EventBus do, of tags, tag mutability, scan-on-push, lifecycle
policy and repository policy, and restores them. A setting the update
left as it was is not written back, so a repository in an exclusion mode
rolls back too.
The runtime API port allocator reads its range from Lambda's
runtime-api-base-port and runtime-api-max-port settings and only serves
RuntimeApiServerFactory, so it moves from core.common.port to
services.lambda.runtime as RuntimeApiPortAllocator, with its tests. The
core-boundary guard drops its entry for it. No behaviour change.
fromIso8601TimestampIsTypedTimestampWithTimeZone and
withTimezoneIsTypedTimestampWithTimeZone repeated the same DESCRIBE query
with only the SQL changed. A types(sql) helper next to row(...) now
serves both; the assertions are unchanged.
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.
The stalled-body and TLS-handshake fixtures in
CloudFrontOriginHttpClientTest slept for 30 seconds while holding their
connection open. They now wait on a latch each test releases in finally,
so neither worker outlives its test.
Send delays, delivery timestamps, receipt visibility and retention now
read the SQS service clock instead of the wall clock, and a receive
checks every message in the batch against one instant. The FIFO delay
tests advance the clock instead of sleeping, and the HTTP copy of the
#2104 regression test is removed, since the service test covers 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.
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
CreateCrawler and UpdateCrawler model CatalogId, the catalog that
receives the crawler's output, but Floci's request models did not know
the field, so a request carrying it failed JSON conversion. The field is
now read, the account's default catalog works as before, and since
Floci writes crawler output only to the default catalog, any other
catalog is refused with InvalidInputException before the crawler is
created or changed.
DeleteResource removed only the named resource, so its children stayed
in the store under a parent that no longer existed and GetResources kept
returning them. The whole subtree is now deleted, read from one listing
of the API's resources; the root is still refused and siblings are
untouched. PutRestApi in overwrite mode deletes the old resources from
the store directly, so it no longer fails on a child the cascade already
removed.
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.
The default SearchTables order (database, then table name) was written
twice: in GlueService's search comparator and in the federated S3 Tables
fast path added by #10048. Both now use GlueService.defaultSearchOrder,
which also stays the tie-break for explicit sorts, so the two paths
cannot drift. Responses, order and paging are unchanged.
Compare the optional locking token with the latest hosted version for the profile before storing a new configuration. Two callers that read the same version can no longer both complete conditional writes against it.
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
SearchTables refused a missing catalog with a different message from
the default-catalog guard, and BatchDeleteConnection repeated the same
catalog lookup. One helper now decides the refusal for all three, so a
missing or foreign catalog reads "Catalog not found: <id>" everywhere.
SearchTables keeps InvalidInputException, and BatchDeleteConnection
keeps its 200 with per-name EntityNotFoundException errors.
Give the temporary configuration and certificate files an old modification time. A rewrite then gets a distinct timestamp even on filesystems with coarse time resolution, so the reload and reuse tests can run without sleeping.
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Creating a field-level encryption config or profile kept only its
CallerReference and Comment, so reads came back nearly empty. The whole
FieldLevelEncryptionConfig and FieldLevelEncryptionProfileConfig element
is now stored as sent and replayed on every read.
GetFieldLevelEncryptionConfig answers with a FieldLevelEncryptionConfig
root in the CloudFront namespace, GET /field-level-encryption/{Id} and
GET /field-level-encryption-profile/{Id}/config are served, and the
lists return the summary shapes. Records stored by an older Floci are
rebuilt from the fields they kept.
Closes#7914
A queue target used to log and drop an event whose delivery failed. A
queue now gets the events of one publish in batches of up to
MaxBatchSize, and a failed batch is retried and dead-lettered as a
function's is. The first attempt still runs before PutEvents returns;
only the retries run in the background, and a FIFO subscriber's later
batches wait behind one being retried. A subscriber deleted or reset
during the first attempt sends no retries or dead letters. The
dead-letter record's error code follows the stage that failed:
CUSTOMER_VALIDATION for a DelaySeconds that is no integer or a batch the
queue refuses whole, RESOURCE_NOT_FOUND for a missing queue, and
PARTIAL_BATCH_FAILURE when the queue refuses some entries. An expression
with no value now leaves its parameter out, and a standard dead-letter
queue gets the first event's group id.
The guide's "How CloudWatch stores histogram metrics" says CloudWatch
converts an explicit-bucket histogram to an exponential one at
ingestion, keeping the count and sum exactly and placing each source
bucket's count in the exponential buckets that cover its range,
weighted by how its density compares with its neighbors' rather than
spread evenly. The guide does not give the algorithm, so Floci's is
its own.
A delta data point's bucket has its density run linearly between edge
densities averaged with each neighbor, and its unbounded buckets reach
its min and max. Any other data point, a cumulative one among them,
has its buckets spread evenly and its min and max unread: the guide's
"Querying histogram metrics" reads a cumulative histogram's growth with
rate, which takes a falling bucket for a counter reset, and a bucket
weighted by its neighbors, or reaching a maximum, gives up part of its
range as they grow. Without a min the lowest bucket reaches down to
zero as histogram_quantile assumes of a classic histogram, without a
max the highest is held just above its bound, a bucket that reaches
zero becomes the zero bucket, and the schema is the finest at most 8
that holds the buckets in 160, the OpenTelemetry SDK default. The
layout depends on the bounds, never the counts, so a cumulative series
with fixed bounds keeps it, and lengths are halved before they are
subtracted, so bounds far apart keep finite counts.
Explicit-bucket series are labelled __type__="histogram" and
__temporality__ as exponential ones are, sharing one reader. Summaries
still carry no sample: the guide lists gauge, sum, histogram and
exponential histogram as the metric types it stores.
Part of #7030.
The Docker host override every container Floci starts relies on was
read from the Lambda section by core classes. floci.docker.host-override
(env FLOCI_DOCKER_HOST_OVERRIDE) is now the key, read through
EmulatorConfig.effectiveDockerHostOverride() by DockerHostResolver and
TlsProxyServer. It wins when set and not blank; otherwise the former
floci.services.lambda.docker-host-override still applies, giving every
reader the value it gave before, and its first use logs a deprecation
warning. The docs say which key wins and that the self-signed TLS
certificate does not name the override.
Copy the execution under the same lock that protects its status updates. A query can finish between the handler and the HTTP writer, so the response needs its own copy.
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
CreateChangeSet now stores the template with its AWS::Include snippets
merged beside the submitted one, and DescribeChangeSet and
ExecuteChangeSet use that copy, so overwriting or deleting the S3
object after creation no longer changes the preview or what deploys. A
new change set reads the current object, UsePreviousTemplate included,
and a snippet that can't be read at creation fails the change set with
the reason in StatusReason. Creating a change set retries at most three
times when the stack changes under it, then answers ServiceUnavailable.
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>