Commit Graph
2606 Commits
Author SHA1 Message Date
Allen Sanborn 079d4a2813 fix(rds): store and describe Iops and StorageThroughput on DB instances (#8777)
CreateDBInstance and ModifyDBInstance accepted Iops and StorageThroughput but dropped them, and DescribeDBInstances returned neither, so a Terraform aws_db_instance that set iops or storage_throughput never converged. Both are now stored from Create and Modify. Describe reports Iops on io1, io2 and gp3 and StorageThroughput on gp3, with the RDS User Guide's gp3 baseline when an instance named neither (12,000 IOPS and 500 MiB/s from 400 GiB, 200 GiB for Oracle, never for SQL Server; 3,000 and 125 otherwise), and StorageThroughput 0 on every other type. Iops on a type without provisioned IOPS, Iops=0 aside, and StorageThroughput off gp3 are refused with InvalidParameterCombination, a create naming Iops and no type defaults to io1, and a type switch drops values the new type does not carry.
2026-11-19 13:02:39 -04:00
rajp33 623be62f3a fix(iot): keep MQTT persistent sessions across reconnects (#8915) 2026-11-19 13:01:44 -04:00
Priamo Germosen 56d8b9aedc fix(iam): check EventBridge Pipes requests on the pipes they name, from the generated table (#9000)
Pipes was built by hand: ResourceArnBuilder read a pipe's name from its
path or a tagging route's ARN, IamEnforcementFilter sent Pipes requests
there without their operation, the request resources table held no Pipes
operation, and nothing gave a policy condition a pipe's tags. pipes
moves from HAND_BUILT to NAMESPACES, so the table gives each operation
the pipe its path's Name names, or the ARN a tagging route carries, from
botocore's REST model, and ResourceArnBuilder's Pipes branch and the
filter's Pipes case go. Only Pipes' operations change in the table.
PipesStoredResourceArns answers a pipe's stored tags; TagResource and
UntagResource give the pipe a new map one call at a time, and its tags
field is volatile.
2026-11-19 12:17:15 -04:00
Jackson PriceandAndre Kurait d8a638e4af fix(cloudwatch): preserve weighted samples on public metric APIs (#8974)
* fix(cloudwatch): preserve weighted samples on public metric APIs
* fix(cloudwatch): index Query fields before weighted parsing
* fix(cloudwatch): include datum paths in weighted length errors

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-19 11:57:03 -04:00
Nick Lucas 9795119ce0 feat(lambda): support node selectors and tolerations for Kubernetes Lambda pods (#8967)
The Kubernetes Lambda executor built every pod without a nodeSelector or tolerations, so on a cluster whose node groups are all tainted the pods stayed Pending until the cold-start timeout. FLOCI_SERVICES_LAMBDA_KUBERNETES_NODE_SELECTOR takes key=value entries with label syntax for spec.nodeSelector, and an invalid entry fails the cold start rather than letting the pod land on nodes it was meant to avoid. FLOCI_SERVICES_LAMBDA_KUBERNETES_TOLERATIONS takes the tolerated taints in kubectl taint syntax (key=value:Effect, key:Effect, or a key alone for every effect), and an invalid entry is dropped with a warning, as an invalid label is. A repeated key now logs which value replaced which. The Helm chart, now 0.2.0, renders both from floci.lambda.kubernetes.nodeSelector and tolerations.

Closes #8992
2026-11-19 11:43:38 -04:00
mrfelek 573cb9e9b7 fix(cloudformation): keep stack sets with their instances and operations in their Region (#8987) 2026-11-19 11:41:49 -04:00
Oleksandr Nikolaichuk 5b2c46f358 feat(eks): apply UpdateClusterConfig for endpoint access, logging and authentication mode (#8769)
Floci now implements UpdateClusterConfig for endpoint public and private access, publicAccessCidrs, logging and authentication mode, each stored as an update DescribeUpdate returns. As on EKS, one request names one family, the authentication mode moves one step forward (CONFIG_MAP, API_AND_CONFIG_MAP, API), turning both endpoints off or sending an endpoint or logging update that changes nothing is refused with EKS's messages, and a repeated clientRequestToken returns the first update. A different subnet or security group list, and any other member, the Auto Mode ones included, are refused. DescribeUpdate with an addonName no longer answers a cluster update.
2026-11-19 11:18:04 -04:00
Vũ Thế Huy a06be2d292 feat(glue): run Spark job scripts in a container (#8568) 2026-11-19 11:14:30 -04:00
TATSUNO “Taz” Yasuhiro f094103b31 feat(lambda): add InvokeWithResponseStream (#8964)
* feat(lambda): add InvokeWithResponseStream
* feat(lambda): report a streaming handler's error in InvokeComplete
* fix(lambda): send response stream chunks while the function runs
* fix(lambda): build Invoke qualifier violations with the shared helpers
* test(lambda): exit the streaming handler from the write callback
2026-11-19 11:10:09 -04:00
luiseterc c81d9dab46 fix(sqs): read resource tags from the queue owner account (#8866) 2026-11-19 11:04:10 -04:00
Oleksandr Nikolaichuk 5a0529ba31 fix(cloudformation): update an API Gateway stage in place and delete it with the stack (#8851)
An AWS::ApiGateway::Stage was created again on every stack update, dropping stage variables set outside the stack. It is now patched in place for DeploymentId and Description and restored on rollback. A StageName change replaces it, and a RestApiId change moves it: the stage left on the old API is deleted through the lifecycle records once the update commits, with its delete events, unless UpdateReplacePolicy: Retain keeps it. A new stage whose name is already taken on the API is refused with "Stage already exists", and the stage is deleted with the stack.
2026-11-19 10:36:39 -04:00
Hector Ventura 9ea2f038f7 fix(ci): ship the darwin-amd64 binary to every Mac, built for Rosetta 2 (#8997)
* fix(ci): ship the darwin-amd64 binary to every Mac, built for Rosetta 2
2026-11-19 10:23:39 -04:00
Hector Ventura b9ebbe0a42 feat(docker): count open Docker streams per service and add a saturation harness (#8953)
* feat(docker): count open Docker streams per service and add a saturation harness
* fix(docker): match container routes at the start of the path, and tidy the harness
* test(docker): drop the saturation harness's quiet-stream sleep
2026-11-19 10:14:01 -04:00
Priamo Germosen 43d6ea4961 fix(iam): check Kinesis Data Streams requests on the resources they name, from the generated table (#8989)
Kinesis was built by hand: ResourceArnBuilder read a request's
StreamARN, StreamName or ResourceARN into one ARN and checked everything
else on stream/*, the request resources table held no Kinesis operation,
and nothing gave a policy condition a stream's tags. kinesis moves from
HAND_BUILT to NAMESPACES, so the table gives each operation the
resources botocore's members name as the Service Reference types them:
the stream by StreamARN or StreamName, a consumer by ConsumerARN, a
tagged resource by ResourceARN, and the KMS key StartStreamEncryption
and StopStreamEncryption name. Its ResourceArnBuilder branch goes. Only
Kinesis's operations change in the table. KinesisStoredResourceArns
answers a stream's or a consumer's stored tags; the tag calls give the
resource a new map under their lock, and the tags fields are volatile.
2026-11-19 10:04:27 -04:00
Hector Ventura ad0e47910f fix(docker): open long-lived exec streams on the streaming Docker pool (#8950)
* fix(docker): open long-lived exec streams on the streaming Docker pool

CodeBuild build phases, SSM run commands, ECS Exec sessions, the EKS audit log follower, ECR garbage collection, EC2 and EKS user data scripts and EMR bootstrap actions held a control-plane connection for as long as their exec ran, so enough of them could leave the short Docker calls waiting for a lease. Their exec starts now use the @StreamingDocker client: ContainerLifecycleManager exposes getStreamingDockerClient(), CodeBuildRunner and SsmDirectCommandExecutor inject it, and UserDataPipeline and ContainerExec take it beside the control-plane client. Neither transport replays an exec start and both exempt it from the response timeout, so only the pool changes; creating, inspecting and resizing an exec stay on the control plane. The connection pool docs, the environment variable tables, the application.yml comment and the javadocs now name these streams.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* fix(codebuild): close a timed-out phase's output stream, and drop the test-only constructor

runPhase discarded the callback of its exec start, so a phase that timed out or was interrupted left its output stream open, now holding a streaming connection for as long as the command ran on; it is now closed. ContainerLifecycleManager's public four-argument constructor existed only so tests could pass one client for both pools; it goes, and those tests name both clients through the injected constructor.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* test(docker): give the reachability test the streaming client the constructor now takes

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

#8951 added ContainerLifecycleManagerReachabilityTest with the four-argument constructor this branch removes, so the two no longer compiled together on main.

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-11-19 07:50:43 -06:00
Priamo Germosen aabe2247c5 fix(iam): check SNS requests on the topics they name, from the generated table (#8971)
SNS was built by hand: ResourceArnBuilder read a request's TopicArn and
checked everything else on the account's open topic ARN, the request
resources table held no SNS operation, and nothing gave a policy
condition a topic's tags. sns moves from HAND_BUILT to NAMESPACES, so
the table gives each operation the topics botocore's members name
(TopicArn, ResourceArn, TargetArn, and CreateTopic's Name), and its
ResourceArnBuilder branch goes. Only SNS's operations change in the
table. SnsStoredResourceArns answers a topic's stored tags; TagResource
and UntagResource give the topic a new map one call at a time, and its
tags field is volatile.
2026-11-19 08:50:08 -04:00
Charles Swanberg 69b80fb353 fix(eventbridge): match an event pattern's wildcard filter (#7357)
* fix(eventbridge): match an event pattern's wildcard filter
2026-11-19 08:04:49 -04:00
rajp33 4d12c76411 fix(rds): refuse plaintext PostgreSQL connections when rds.force_ssl is 1 (#8663)
With rds.force_ssl set to 1 in a PostgreSQL instance's DB parameter group, or in an Aurora PostgreSQL cluster's DB cluster parameter group, the RDS auth proxy refuses a startup that did not negotiate TLS with FATAL "no pg_hba.conf entry for host ..., no encryption" (SQLSTATE 28000), before the password exchange and without opening a backend connection. The value is read from the current parameter group on every new connection, as the parameter is dynamic on AWS. On Aurora it comes from the cluster parameter group only, looked up in the account and Region the relay ARN names, for the cluster endpoint and member endpoints. RdsRequests.createPostgresInstance takes an optional DB parameter group, and the docs give the RDS and Aurora PostgreSQL versions whose default groups force SSL.

Closes #8641
2026-11-19 07:52:07 -04:00
mrfelek 10824e6701 feat(eks): accept EKS Auto Mode's cluster configuration (#8940)
* feat(eks): accept EKS Auto Mode's cluster configuration
* fix(eks): create Auto Mode clusters from CloudFormation, refuse a lone node role
* fix(eks): leave EKS Auto Mode out of AWS::EKS::Cluster until step 2
2026-11-19 07:25:23 -04:00
mrfelek 3316d46df3 fix(s3vectors): check create names by S3 Vectors' naming rules and answer its not-found messages (#8966) 2026-11-19 07:25:11 -04:00
Priamo Germosen 634073fb83 fix(iam): check SQS requests on the queue their URL reaches, from the generated table (#8943)
SQS was built by hand: ResourceArnBuilder read a request's QueueUrl or
QueueName into a queue ARN, the request resources table held no SQS
operation, and nothing gave a policy condition a queue's tags. botocore
documents every QueueUrl as "The URL of the Amazon SQS queue ...", which
the generator's documentation rule did not read: it took only a name, an
id or an identifier as what a member names, and the service's own name
stood between "the" and the type's word. It now reads a URL as one more
such kind, and a member's lead drops its model's own service name as
botocore's metadata spells it before the word it qualifies, and a
hyphenated word before the type's word qualifies it ("The URL of a
dead-letter queue"), so QueueUrl names the queue; being neither the
queue's name nor its id, SQS finds it (find). Only SQS's operations
change in the table. sqs moves from HAND_BUILT to NAMESPACES and its
ResourceArnBuilder branch goes. SqsStoredResourceArns finds the queue a
URL reaches as the handlers do, in the account the URL names, and
answers a queue's stored tags; TagQueue and UntagQueue give the queue a
new map one call at a time, and its tags field is volatile.
2026-11-19 07:16:17 -04:00
Murtuza Chhil d2fde68865 feat(paymentcryptography): the material of a key may be translated (#8941)
* feat(paymentcryptography): the material of a key may be translated
* test(paymentcryptography): the sample's key agreement in the compatibility test
* test(paymentcryptography): the wrapped key's format is the model's enum
* fix(paymentcryptography): a verification reads the formats the reference verifies
* docs(paymentcryptography): the deviations the reference's documentation shows
* test(compatibility-tests): a verification of a format the reference does not read
* fix(paymentcryptography): a translation holds to the rules the export and the import hold to
* fix(paymentcryptography): a translation refuses a key whose usage its algorithm does not serve
2026-11-19 07:08:29 -04:00
Jackson Price d28bdf664b feat(route53): validate stored ALB targets for public DNS aliases (#8942) 2026-11-19 07:05:14 -04:00
Andre Kurait 7c2018ffd6 feat(ec2): create and list network interface permissions (#8891) 2026-11-19 00:28:03 -04:00
Joaquín Gamboa afd3107151 fix(cloudfront): store and return a distribution's ConnectionMode (#8934)
* fix(cloudfront): store and return a distribution's ConnectionMode
* test(cloudfront): deploy the ConnectionMode stack with CfnRequests and check refusals store nothing
2026-11-18 23:53:11 -04:00
Jimmy Liu Jia 9a38bd0bd2 feat(route53resolver): support VPC DNSSEC configuration updates (#8904) 2026-11-18 23:50:54 -04:00
Hector Ventura eb1b9a0a7d fix(docker): bound a retried Docker call by the call timeout, not each attempt (#8931)
api-timeout-seconds bounded each attempt, and the control-plane transport retries a replayable request up to six times, so a silent daemon held a call for about six times the setting plus backoff. DockerRetry now takes one deadline across attempts and backoffs, counted from the first attempt, and checks it again after each backoff so an overslept sleep starts no attempt past it. The producer gives it to the control-plane client only: a silent daemon fails the call after one attempt, fast transient failures are still retried within the limit, and long-lived streams (image pulls, container waits), which have no response timeout, keep their retries. A running attempt is not cut short. DockerRetry.call takes the clock and the backoff wait, so the tests advance a test clock instead of sleeping.
2026-11-18 23:21:44 -04:00
Priamo Germosen f3b8b12777 fix(elbv2): give resource-tag conditions the tags of the load balancer, target group, listener or rule a request names (#8937)
The generated request resources give Elastic Load Balancing's load
balancer, target group, listener and rule types, and the Classic Load
Balancer's, the aws:ResourceTag/ and elasticloadbalancing:ResourceTag/
keys, but no service answered the elasticloadbalancing namespace's
stored tags, so a condition on their tags saw none.
ElbStoredResourceArns now answers it for both versions: a version 2 ARN
reads the tags version 2 keeps under it, in the request's account, in
place; a Classic Load Balancer's ARN, the one Floci gives it, reads the
load balancer of its name in its Region. Both versions' AddTags and
RemoveTags changed the tag map in place with no lock; they now give the
resource a new map one call at a time, and the Classic Load Balancer's
tags field is volatile.
2026-11-18 22:09:21 -04:00
Simone b5f29c8434 fix(ec2): Returning origin-facing prefix list for ec2 (#8652)
DescribeManagedPrefixLists and GetManagedPrefixListEntries now include the AWS-managed com.amazonaws.global.cloudfront.origin-facing list (pl-3b927c52) with the 49 CLOUDFRONT_ORIGIN_FACING IPv4 ranges of ip-ranges.json, in commercial-partition regions only; China, GovCloud and the other partitions keep only the S3 and DynamoDB lists, and an accepted unknown region takes the deployment's partition. Like those lists, its MaxEntries is its entry count; the security-group rule quota is tracked in #8790. A prefix-list catalog that already declares the list keeps loading, the built-in list serving it.

Closes #8634
2026-11-18 21:27:15 -04:00
Hector Ventura 6ea09ee520 fix(scheduler): keep a schedule's last fire across a restart (#8928)
With persistence on, schedules survived a restart but the dispatcher's record of when each last fired lived in memory, so a one-time at() schedule fired again and every rate and cron schedule fired an immediate catch-up. The last fire is now stored with the schedule and never returned by the API. The dispatcher records it under the same lock as UpdateSchedule, DeleteSchedule and DeleteScheduleGroup, skipping a schedule deleted or recreated meanwhile, and UpdateSchedule keeps it. A one-time schedule fires once its time is due unless it has fired since, so an update to a later time re-arms it; rate and cron schedules count from the stored fire.
2026-11-18 21:25:47 -04:00
Vũ Thế Huy 563de77b1e feat(redshift): ingest a Kinesis stream into a streaming materialized view (#8880)
CREATE MATERIALIZED VIEW [AUTO REFRESH NO] AS SELECT over a stream of a Kinesis external schema creates a streaming materialized view, REFRESH MATERIALIZED VIEW loads the stream into it, and DROP MATERIALIZED VIEW [IF EXISTS] [CASCADE] removes it. The view is a PostgreSQL table built from the SELECT over a staging table with the six documented metadata columns. A refresh checks the schema role's Kinesis permissions and its trust of redshift.amazonaws.com, reads each shard from TRIM_HORIZON the first time and after its checkpoint afterwards, and loads each batch in one implicit transaction; Floci keeps the checkpoints per shard, so truncating the view does not rewind the stream. AUTO REFRESH YES, a JOIN, and grouping or aggregation are refused with 0A000, and a view query holding a second statement with 42601.

Closes #7813
2026-11-18 21:21:48 -04:00
Jackson PriceandAndre Kurait 74938f0e8a feat(route53): serve public A and AAAA DNS records (#8926)
* feat(route53): serve public A and AAAA DNS records

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-18 21:20:48 -04:00
Charles Swanberg 8d005d70d0 fix(codebuild): run a build as its project's service role (#7844)
* fix(codebuild): run a build as its project's service role
* fix(codebuild): fail a build whose role does not exist in PROVISIONING, and share confirmed removal
2026-11-18 21:10:52 -04:00
Priamo Germosen 26dc6d79ed fix(cloudmap): give resource-tag conditions the tags of the namespace or service a request names (#8932)
The generated request resources give Cloud Map's namespace and service
types the aws:ResourceTag/ key, but no service answered the
servicediscovery namespace's stored tags, so a condition on their tags
saw none. CloudMapService now answers it: storedTags reads the namespace
or the service by the id its ARN ends in, in the request's account, in
place, the id the handlers find it by in every Region, so a request sent
to another Region is checked with the tags of the resource it acts on; a
tag without a value reads as an empty one. TagResource and UntagResource
changed the tag map in place with no lock; they now give the resource a
new map one call at a time, and the tags fields are volatile.
2026-11-18 21:05:39 -04:00
rajp33 813f89bd8e fix(iot): authenticate unsigned MQTT over WebSocket with the default authorizer (#8653) 2026-11-18 21:04:28 -04:00
Jeremy Chapeau c2d285ed2f feat(iam): make the seeded deployer's access key ID configurable (#8625)
FLOCI_SERVICES_IAM_SEED_DEPLOYER_ACCESS_KEY_ID (floci.services.iam.seed-deployer-access-key-id) chooses the seeded deployer's access key ID. The default stays floci, so setups signing with floci / floci keep working; any other value must be 16 to 128 word characters, as IAM requires of an AccessKeyId, or startup fails naming the setting. With such an ID the deployer's key can be deactivated and deleted, and then the floci-deployer user. Under persistent storage, seeding deletes the deployer's key seeded under an earlier ID, the one signing with the public floci secret, and keeps keys made with CreateAccessKey. The EKS token webhook refuses the seeded credential by that public secret rather than by its access key ID.

Closes #8624
2026-11-18 20:49:52 -04:00
Niels Kootstra 9d39f2941a fix(sqs): refuse a FifoQueue attribute on a standard queue (#8898)
CreateQueue now refuses a FifoQueue attribute, even false, on a queue whose name does not end in .fifo, with InvalidAttributeName "Unknown Attribute FifoQueue." as AWS does, before any queue is stored. An AWS::SQS::Queue declaring FifoQueue: false now fails and rolls back with the same message, while a FifoQueue dropped through AWS::NoValue still leaves a standard queue.

Closes #8788
2026-11-18 20:04:05 -04:00
Priamo Germosen 1d8499e837 fix(eks): resolve pod names through Floci's embedded DNS (#8924)
Pods resolve through CoreDNS, which forwards to the resolver file k3s
hands them. k3s takes the node's /etc/resolv.conf, and on a user-defined
Docker network that names only Docker's loopback 127.0.0.11, which k3s
refuses; it then writes a file naming a public resolver. So Route 53
private zones, Cloud Map names and the other names only Floci answers
never resolved from a pod.

When embedded DNS is on and running, and the cluster's Docker network
can reach it, Floci now copies a resolver file naming only its DNS
server into the cluster container before it starts, and passes it to
k3s with --resolv-conf. With Floci in a container that means the
cluster is on Floci's own network: Docker isolates user-defined
networks, and pods given only an unreachable resolver would lose the
public one too. The public fallback resolvers
stay out of it, because CoreDNS picks among its upstreams at random. A
cluster that sets the kubelet's resolv-conf through its tags keeps its
own file. A file that cannot be copied fails the start, as a container
that cannot start does, since k3s would hand its pods a missing file.
2026-11-18 19:51:14 -04:00
mrfelek 545006249b fix(eks): answer IMDS on a node by NAT rules instead of a socat relay (#8856)
* fix(eks): answer IMDS on a node by NAT rules instead of a socat relay
* fix(eks): refuse a pod's IMDS request without the pod network, and probe the instance id
2026-11-18 18:10:38 -04:00
glorfindel33 bbc80c9b51 fix(cloudwatch): refuse EvaluationInterval on MetricName and Metrics alarms (#8863)
PutMetricAlarm now refuses EvaluationInterval on an alarm configured with MetricName or Metrics with InvalidParameterCombination, as the API reference documents, and refuses an integer outside 10 to 3600 or a value that is not an integer. AWS::CloudWatch::Alarm applies the same refusal on create and update, including a template that sets Metrics, which the provisioner reads only to detect it. ProvisionContext gains resolveOptionalBigInteger, sharing resolveOptionalInt's rule for what counts as absent.

Closes #8894
2026-11-18 17:50:31 -04:00
Priamo Germosen c4d7499ca2 fix(iam): word the service-linked duration refusal as AWS does (#8910)
The one refusal of the twelve that is recorded: UpdateRole changing a
service-linked role's MaxSessionDuration answers '<roleName> is an AWS
service linked role, max session duration cannot be changed.', where the
clause names the change refused rather than the service the role is linked
to. This package answered its own sentence there.

The other eleven keep it, and the IAM page says why: AWS words the clause
after the change, that clause cannot be inferred for eleven other changes,
and AWS may not refuse all of them this way at all.
2026-11-18 17:49:57 -04:00
Priamo GermosenandDaniël van Ziel 1df1af297d fix(docdb): isolate container identity by account and region (#8888)
A DocumentDB cluster's MongoDB container was named after the cluster
identifier alone, and the manager kept its live handles under that
identifier too. Creating a same-named cluster in another account or
Region removed the first cluster's container and replaced its handle,
so a later delete or shutdown could no longer reach it.

Container names now carry the account and Region
(floci-aws-docdb-<account>-<region>-<cluster>), and live handles are
kept by Docker ID. Deleting a cluster closes the log stream its
container was started with, which the handle DeleteDBCluster rebuilds
from the stored record does not carry.

Ported from #5724.

Co-authored-by: Daniël van Ziel <159726064+danielvanza@users.noreply.github.com>
2026-11-18 17:19:46 -04:00
Priamo Germosen 6afd82c9fb fix(guardduty): give resource-tag conditions the tags of the detector or plan a request names (#8909)
The generated request resources give GuardDuty's detector and
malwareprotectionplan types the aws:ResourceTag/ key, but no service
answered the guardduty namespace's stored tags, so a condition on a
detector's or a Malware Protection plan's tags saw none.
GuardDutyService now answers it: storedTags reads the detector or plan
stored under the Region the ARN names and its id, in the request's
account, where the tag handlers read, in place. A plan is matched on the
ARN it records; a detector, which records none, on the ARN its Region,
the account of its service role and its id give. Tag calls already run
one at a time and give the resource a new map; the tags fields are now
volatile.
2026-11-18 17:03:38 -04:00
Priamo Germosen 1c16ea57cd feat(emr-serverless): open an ended run's Spark History Server from its dashboard link (#8907)
With runner-mode docker, GetDashboardForJobRun's link for a Spark run's
attempt that has ended now opens a Spark History Server over the run's
event logs, and GetResourceDashboard's link does the same for a session
that has ended, as "For completed jobs, the application UI is a
persistent application user interface such as the Spark History Server"
and "After a session ends, the Spark History Server remains available".

A run's or session's driver keeps its event logs where the release's
image writes them, /var/log/spark/apps, on a Docker volume of its own,
for the 30 days EMR Serverless keeps logs in managed storage. The server
runs in a container of the release's image that starts as its link is
first opened, answering 503 until it is up, and stops once no link to it
is valid. A history goes 30 days after its run or session ended, or once
it has gone, which Floci checks as it starts and every hour; a restart
keeps the histories and a reset removes them.

A run whose logs are not kept in managed storage keeps no event logs
and still gets Floci's page, as do Hive runs, histories that have gone
and every link in the immediate mode.
2026-11-18 16:45:03 -04:00
Priamo Germosen d2facef773 fix(sts): refuse a session whose token exceeds the limit (#8883)
An oversized session was minted outright and PackedPolicySize was
published as a flat zero on every session, where AWS holds a session
token to one limit of 4096 bytes, refuses a token that will not fit with
PackedPolicyTooLarge 400 naming the size and the limit, and publishes
that member as the percentage of the limit the token consumes, the same
value as SessionTokenUtilization.

Both are answered now on the four operations that carry state into the
token they mint, the refusal read before anything is minted. The measure
is this emulator's own: the token it will mint, which
MinimumSessionTokenSize can ask to be longer, plus the state the request
carries into it in UTF-8 bytes. AWS assembles and compresses the real
thing, whose size follows the input in neither direction, so the numbers
differ; the IAM page records the one size recorded here, 26092 bytes for
about 19000 of input, so a later recording can calibrate the reading.
2026-11-18 16:06:45 -04:00
Priamo Germosen 3f194c4c4f fix(controltower): give resource-tag conditions the tags of the landing zone or enabled control a request names (#8901)
The generated request resources give Control Tower's LandingZone and
EnabledControl types the aws:ResourceTag/ key, but no service answered
the controltower namespace's stored tags, so a condition on a landing
zone's or an enabled control's tags saw none. A new
ControlTowerStoredResourceArns answers it for the namespace, which two
services hold: a landing zone's tags are read in place under the Region
its ARN names, an enabled control's found by the ARN it records among
the Region's controls, as the tag handlers find it, both in the
request's account and matched on the whole ARN. Tag calls already give
the resource a new map; the tags fields are now volatile.
2026-11-18 16:00:15 -04:00
Priamo Germosen 3ffec01a76 feat(emr-serverless): open the live Spark UI from dashboard links (#8890)
With runner-mode docker, GetDashboardForJobRun's link for a Spark run's
attempt that has not ended now opens its driver's Spark UI for real, and
GetResourceDashboard's link does the same for a session's Spark Connect
server, as "For jobs in a running state, the application UI is a live
user interface such as the Spark or Tez web UI" and "While a session is
active, the URL opens the live Apache Spark UI".

Each link opens on a host of its own,
<secret>-4040.emr-serverless-ui.<Floci's host>, through the application
UI proxy EMR's on-cluster UIs use. That proxy moves to core.common
(AppUiProxy, AppUiRoutes, AppUiRoute, AppUiHost), and each service
registers the label its hosts are under. The runner turns the driver's
UI on for every EMR Serverless Spark run, as the release's image turns
it off, publishes port 4040 on the Docker host's loopback interface, and
keeps where Floci reaches it while the container runs.

A run whose logs are not kept in managed storage gets no live UI, as
with logs in S3 alone the application UI is "Not supported". A Hive
run, a run or session that has ended, and every link in the immediate
mode still open Floci's own page, which now says whether the attempt's
logs are in managed storage.
2026-11-18 15:41:25 -04:00
Joaquín Gamboa 3ebd1bc38c feat(dsql): back clusters with an external PostgreSQL server (#8795)
Aurora DSQL clusters needed Docker, so DSQL did not work where Floci has no Docker socket, such as ECS on Fargate. An opt-in external backend (floci.services.dsql.backend=external) now puts each cluster in a database and prefixed roles of its own on a PostgreSQL 16 or later server that is already running. Floci marks what it creates and changes nothing else, derives the backend roles' SCRAM verifiers from a per-cluster secret, and bounds every call to the server. A deleted cluster's sessions end before its roles are listed and dropped, and for both backends shutdown waits for starts and deletions still running. The differences a shared server cannot hide are listed with their reasons in the DSQL docs.

Closes #8486
2026-11-18 15:27:20 -04:00
Priamo Germosen 4453ca9fe9 fix(securityhub): give resource-tag conditions the tags of the hub or configuration policy a request names (#8889)
The generated request resources give Security Hub's hub and
configuration-policy types the aws:ResourceTag/ key, but no service
answered the securityhub namespace's stored tags, so a condition on a
hub's or a configuration policy's tags saw none. SecurityHubService now
answers it: storedTags reads the account's state for the Region the ARN
names, in the request's account, where the tag handlers read, in place,
and matches the ARN hubArn or policyArn gives; a hub reads its tags only
while Security Hub is enabled there. A policy's tags change in place
under the service's lock, so the lookup takes that lock too.
2026-11-18 14:52:22 -04:00
Niels Kootstra 66a9d647fb fix(elasticache): keep a replication group's log delivery configurations (#8846)
* fix(elasticache): keep a replication group's log delivery configurations
* fix(elasticache): refuse a log delivery configuration with an unknown or missing value
* fix(elasticache): settle log delivery to a missing log group as an error
2026-11-18 14:15:29 -04:00