Commit Graph
5816 Commits
Author SHA1 Message Date
Hector Ventura dd0f2bfc3a fix(ec2): retry the security-group ruleset upload with a fresh tar stream (#8929) 2026-11-18 21:19:26 -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
mrfelek 6871348ea6 refactor(ec2): remove the metadata proxy commands only tests call (#8925) 2026-11-18 21:01:02 -04:00
Andre Kurait 127b412414 fix(rds): reject cluster snapshot copies with missing data (#8908)
CopyDBClusterSnapshot no longer treats a missing stored archive as an empty dump and reports the copy available. It now fails with DBClusterSnapshotNotFoundFault before writing the target's metadata or data, as RestoreDBClusterFromSnapshot and snapshot export already do, while a present archive, an empty one included, is copied as before.

Closes #7679
2026-11-18 20:56:54 -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
Priamo Germosen 6372b315f0 test: fold the DSQL external backend profile into a shared sidecar profile (#8923)
DsqlExternalBackendIntegrationTest runs on SidecarAccessEnforcementProfile
now, renamed SidecarServiceSettingsProfile since it no longer holds only
access settings, and that profile takes ExternalPostgresResource as its
test resource. DsqlExternalBackendProfile goes.

The DSQL backend is chosen once per application, so the external one
cannot join SidecarContainersProfile, whose DSQL classes run each cluster
in a container of its own. The Redshift classes here create no DSQL
cluster, and the DSQL class sends no S3 request and runs no Spectrum
query, so neither side's settings reach the other's requests.

Since the application is shared now, a PostgreSQL server that does not
start no longer fails the boot: the resource records why, and only the
DSQL class fails, with that cause. In CI a failed image pull is such a
failure rather than a skip, as a sidecar image's is. The container
carries the run's sidecar namespace, so the next run removes it when a
killed run leaves it behind.
2026-11-18 20:48:39 -04:00
Jimmy Liu Jia 8619ad65cc fix(cloudformation): apply SES string schema constraints (#8879)
The CloudFormation property types generator now keeps minLength, maxLength and pattern on every string the published schemas constrain, and HandlerReader checks them for AWS::SES::ConfigurationSetEventDestination with CloudFormation's wording: "expected minLength: 36, actual: 0", "expected maxLength: 1024, actual: 1100" and "failed validation constraint for keyword [pattern]". A blank required string counts as missing only where the schema sets no constraint.

Follow-up to #8733.
2026-11-18 20:34:57 -04:00
mrfelek c0325c5488 refactor: read schedules' and pipe sources' Regions with regionOf (#8893)
* refactor: read schedules' and pipe sources' Regions with regionOf
2026-11-18 20:16:52 -04:00
David 466912f939 test(codeartifact): build the 9.9.9 npm publish through the shared envelope helper (#8906) 2026-11-18 20:14:14 -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
Jackson PriceandAndre Kurait 88a545a36f fix(docker): recover delayed named container creation (#8862)
When a replayed create gets a 409 because Docker reserved the name before the original container shows up in its inventory, poll the inventory with backoff for up to the configured Docker API timeout and adopt the container only when it carries this call's create-attempt and ownership labels. A foreign container, a failed inventory read, an interruption or an expired budget rethrows the original conflict.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-18 17:40:10 -04:00
Niels Kootstra c83940bf78 test(elasticache): build the log delivery test's clients through AwsTestClients (#8899) 2026-11-18 17:34:12 -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 b57b837286 test: fold four TLS test profiles into the two shared TLS fixtures (#8902)
TlsLocalCaIntegrationTest, ContainerCaBundleDockerIntegrationTest and
EcrTlsUriIntegrationTest each laid down a local CA and a leaf of their
own. They run on SelfSignedTlsProfile now, which writes the same CA and
leaf, covers host.docker.internal and the regional ECR hosts, and now also
writes the Java trust store containers mount and advertises ECR's TLS
URIs. EcrTlsPathUriIntegrationTest needs the path style instead, so it
runs on IotMqttTlsProfile, whose leaf gains localhost.floci.io. The ECR
settings are read only by ECR's control plane and EKS, which no other
class on either profile calls.

The IoT classes stay apart: they dial 127.0.0.1 with hostname
verification, and two SelfSignedTlsProfile classes need that SAN absent.
2026-11-18 16:01:02 -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 0effc633eb test: run the ELBv2 no-keep-alive class on IndependentServiceSettingsProfile (#8884)
ElbV2BackendNoKeepAliveIntegrationTest's nested profile turned the ELBv2
data plane on and backend keep-alive off. Both settings only act once a
class creates a listener or registers a target, which no other class on
IndependentServiceSettingsProfile does, and the class calls none of the
services that profile configures. ELBv2 looks the default subnets up in
EC2 the way Route53 and RDS do there, from what EC2 has stored, so EC2
running for real changes nothing for it.
2026-11-18 15:16:46 -04:00
Priamo Germosen 08e2824a2c test: run the Lambda leftover containers class on ScopedServiceSettingsProfile (#8887)
LambdaLeftoverContainersDockerIntegrationTest's nested profile set the
Lambda executor to docker, the default already, and a Docker resource
namespace of its own. ScopedServiceSettingsProfile names its containers
in this test JVM's sidecar namespace, which keeps the class's sweep away
from another Floci's containers just as well. The sweep removes only
Lambda environments, which no other class there starts, and the class
drives the launcher directly, so none of the ECS, CORS, partition or EC2
settings reaches it.
2026-11-18 14:59:21 -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
Priamo Germosen ae856867bf test: run the S3 configured endpoint class on ConfiguredHostnameProfile (#8886)
ConfiguredHostnameProfile takes S3ConfiguredEndpointIntegrationTest's
hostname, configured-endpoint.localhost.floci.io, which the S3 class needs
since it names its buckets after the part before .localhost, with its
extra DNS suffix and S3 authentication. The IoT and API Gateway classes
check the configured hostname through the new HOSTNAME constant instead
of "floci". The name is not one of Floci's built-in suffixes, so the
regional execute-api host under it still routes only through the
configured hostname. No other class here calls S3 or uses the alias.
2026-11-18 14:32:32 -04:00
Priamo Germosen f1777164a3 test: share one sidecar profile across the Redshift access enforcement classes (#8885)
SidecarS3AuthEnforcedProfile becomes SidecarAccessEnforcementProfile and
takes Spectrum's Lake Formation enforcement from
SidecarSpectrumLakeFormationProfile, which goes. Lake Formation leaves a
table to IAM while the account's Data Lake settings leave new tables to
IAM, as AWS's defaults do, so the S3 authorization classes' Spectrum
queries pass it. The Lake Formation class takes new tables away from IAM
to check its grants, so it now puts AWS's defaults back when it is done.
Its role may read the bucket it queries, so S3 authentication leaves its
reads as they were.
2026-11-18 14:31:45 -04:00
mrfelek fd5f88debd refactor: read a stored resource's Region with regionOf where config's default stood in (#8874) 2026-11-18 14:17:05 -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
glorfindel33 9e65c12f8c fix(cloudformation): use bus|rule as the physical id of an Events rule on a custom bus (#8864) 2026-11-18 13:58:05 -04:00
Priamo Germosen 2ac4554ea8 fix(ce): give resource-tag conditions the tags of the anomaly monitor or subscription a request names (#8881)
The generated request resources give Cost Explorer's anomalymonitor and
anomalysubscription types the aws:ResourceTag/ key, but no service
answered the ce namespace's stored tags, so a condition on a monitor's
or a subscription's tags saw none. CostAnomalyService now answers it:
storedTags reads the monitor or subscription stored under its whole ARN,
in the request's account, where the handlers read, in place. Every write
already puts a new record under the service's lock, so nothing to lock.
2026-11-18 13:43:11 -04:00
Angel Abad 4ac034d645 fix(rds): list aurora-postgresql 18.6 in DescribeDBEngineVersions (#8873)
DescribeDBEngineVersions returned nothing for Engine=aurora-postgresql with EngineVersion=18.6, because the catalogue stopped at Aurora PostgreSQL 17.4, so Terraform's aws_rds_engine_version data source failed with "no RDS engine versions found". The catalogue now lists 18.6 with major version 18 and family aurora-postgresql18, whose managed default cluster parameter group Floci already ships. 16.3 stays the default for a cluster that names no version, and 17.4 now lists 18.6 as an upgrade target.

Closes #8872
2026-11-18 13:36:42 -04:00
Murtuza Chhil 3f3625359a feat(paymentcryptography): a key pair signs a certificate signing request (#8832) 2026-11-18 13:35:25 -04:00
Niels Kootstra 8b7d06a9d1 fix(s3): keep listing a key's versions when the version-id-marker was deleted (#8845) 2026-11-18 13:21:16 -04:00
luiseterc 72b746be13 fix(rds): retain cluster settings and member promotion tiers (#8849)
RDS accepted a cluster's CopyTagsToSnapshot and CloudWatch log exports and an Aurora member's PromotionTier but returned none of them, so Terraform planned changes right after a successful apply. CreateDBCluster and ModifyDBCluster now keep CopyTagsToSnapshot, an explicit false included, and the enabled log exports, with a modify applying CloudwatchLogsExportConfiguration as enable and disable deltas and leaving omitted fields alone. PromotionTier is kept from CreateDBInstance and ModifyDBInstance, defaults to 1 and is refused outside 0 to 15 before anything changes, and both the instance and the cluster member list report it. The new fields persist, and state saved before them loads with the defaults.

Closes #8418
2026-11-18 13:17:50 -04:00
Priamo Germosen 1c3a6b615e test: run the lazy MQTT start classes on ServicesOffSettingsProfile (#8870)
LazyMqttTestProfile only moved the broker to port 18838, off the shipped 1883
a developer's running Floci may hold; the test config already leaves
auto-start off. Both classes stop the broker before and after each test, so
they need no application of their own, and no class on
ServicesOffSettingsProfile reaches the broker or calls IoT. The port becomes
ServicesOffSettingsProfile.MQTT_PORT.
2026-11-18 13:15:18 -04:00
Priamo Germosen 5548bb78eb fix(emr): give resource-tag conditions the tags of the session a request names (#8878)
The generated request resources give EMR's session type the
aws:ResourceTag/ and elasticmapreduce:ResourceTag/ keys, but
EmrService.storedTags answered clusters, Studios and notebook executions
and nothing for a session's ARN, so a condition on a session's tags saw
none. It now reads the session stored under the id the ARN ends in, in
the account the ARN names, in place, matched on the whole ARN, giving
the tags it started with.
2026-11-18 12:21:41 -04:00
Priamo Germosen 0842636ed9 fix(iam): refuse the instance profile pair as AWS words it (#8876)
An instance profile holds one role and both halves of that were wrong.
Adding a second answered prose where AWS names the quota that fired,
'Cannot exceed quota for InstanceSessionsPerInstanceProfile: 1', which is
the form this package already writes for nine other quotas. Removing a
role the profile never held removed nothing and answered 200 where AWS
answers 404 NoSuchEntity naming the role and the profile.

The tolerance the remove path was written for is kept and pinned: a role
deleted while the profile still lists it stays removable, which the
profile's own list decides. Whether the pairing is there and the removal
of it are one decision, taken on the monitor the attach path already
held, so a concurrent attach cannot land between them.

Both CloudFormation callers remove roles they read from the profile's
list, and a caller outside the stack can detach one in between, so each
tolerates a pairing that is already gone rather than leaving a stack
delete or a reconcile part way through. A profile that has itself gone is
a different case and still propagates, so the delete ends where it always
did.
2026-11-18 11:13:31 -04:00
Priamo Germosen 0c1ee1ea32 test: run the kubelet registration class on IamEnforcedServiceSettingsProfile (#8869)
EksKubeletRegistrationIntegrationTest's profile only named the kubelet image
catalog. The catalog replaces EC2's built-in one, so it can only share an
application with classes that launch no instance and look up no image, which
holds for the four classes on IamEnforcedServiceSettingsProfile. The kubelet
class's one request through the HTTP layer signs with a 12-digit account id
as the access key, which IAM enforcement passes through, and it creates its
cluster through the service directly.
2026-11-18 11:00:31 -04:00
Priamo Germosen 7b750b8455 fix(emr-containers): give resource-tag conditions the tags of the resource a request names (#8875)
The generated request resources give EMR on EKS's virtualCluster,
jobRun, managedEndpoint, jobTemplate and securityConfiguration types the
aws:ResourceTag/ key, but no service answered the emr-containers
namespace's stored tags, so a condition on their tags saw none.
EmrContainersService now answers it: storedTags reads the resource
stored under its ARN in the store its kind names, in the request's
account, where the handlers read, in place, and matches the ARN it
records. Every write already stores a new copy, so no lock change.
2026-11-18 10:49:52 -04:00
Priamo Germosen 81c5ecf777 test: run two more ECS Docker classes on ScopedServiceSettingsProfile (#8868)
Both classes ran on a profile of their own for real ECS containers, as
ScopedServiceSettingsProfile already does for the image pull class, with the
startup sweep off. The Linux parameters class's two switches, /dev/null as
the one host path a device may take and privileged containers allowed, move
there: only a task definition that asks for a device or privilege reaches
them, and only that class asks. Their tasks run in bridge mode, which
security-group enforcement never protects, and the pull on every launch the
image pull class needs runs their busybox tasks the same way, falling back to
the cached image when a pull fails.

Dropping the essential-exit class's own namespace would leave its containers
labelled by the port alone, so the profile now names its containers in this
run's sidecar namespace, which also covers the image pull class.
2026-11-18 10:31:58 -04:00
Priamo Germosen 4fe226c253 fix(iam): refuse a service namespace that names no AWS service (#8865)
The member's pattern admits anything word-shaped, so a value like
amazon-s3 satisfied everything the model declares and was answered 200
with an empty policy list, telling a caller the identity reaches nothing
rather than that the question was wrong.

Both operations that take a namespace hold it to the vendored catalog now,
through AwsServiceNamespaces.isPublished so nothing keeps a second list,
and each answers the sentence recorded for it: the list operation names
the rejected values inside AWS's own brackets, and the entity reader
carries AWS's own misspelling of namepace.

ServiceNamespaces is vendored for that to hold. The generator held the
whole member back because the operation answered an empty list with a
sentence of its own, and the cost was that no value in the list was read
at all: one breaking the published pattern reached the catalog check and
was answered InvalidInput where AWS answers ValidationError. The member
is read now, each value held to serviceNamespaceType and the list to its
bounds of 1 to 200, which also retires two answers that were this
package's own: an absent list is the required member the model declares,
and a list over 200 is the model's bound rather than a check beside it.

A namespace the job itself reports stays readable on
GetServiceLastAccessedDetailsWithEntities whether the catalog publishes it
or not, so the job is read first. The catalog is vendored, and a policy
may grant a service published after it: the report keeps the namespace
that policy names, so refusing it there would be this package disagreeing
with itself. Nothing else is exempt, and the list operation, which takes
namespaces rather than reporting them, holds every value to the catalog.
2026-11-18 09:55:49 -04:00
Priamo Germosen a72aedfbb0 fix(emr-serverless): give resource-tag conditions the tags of the application, job run or session a request names (#8853)
The generated request resources give EMR Serverless's application,
jobRun and session types the aws:ResourceTag/ key, but no service
answered the emr-serverless namespace's stored tags, so a condition on
their tags saw none. EmrServerlessStoredResourceArns now answers it for
the three services that hold them: storedTags reads the application, job
run or session by its id, in the request's account, where the tag
handlers read, in place, and matches it on its application and on the
whole ARN; a deleted application's resources name nothing. The tags
fields are now volatile.
2026-11-18 09:40:47 -04:00
Priamo Germosen 84e60f73a8 test: fold eight single-switch profiles into two shared ones (#8860)
Eight profiles each carried a switch only their own class reads. Four go into
ServicesOffSettingsProfile, which keeps the ten services ServiceEnablement
switches off, for classes that call none of them: the delegation partner
registration, the S3 restore delay and EC2 vCPU admission join it. The other
four go into ScopedServiceSettingsProfile, whose classes call DynamoDB, ECS and
FIS: ECS image pulls on real containers, the extra CORS settings, strict
partitions and the fixed mock public address. That profile also turns the ECS
startup sweep off, so an application a class without containers starts never
sweeps the Docker daemon. Each profile's Javadoc lists who relies on each
setting and why it never reaches the other classes.
2026-11-18 09:01:01 -04:00
Priamo Germosen b5994e4d9e test: fold four IAM-enforced one-off profiles into two shared ones (#8859)
RdsIamEnforcementProfile becomes IamEnforcedServiceSettingsProfile and takes
the classes of DsqlEnforcementProfile, of the nested IamEnforcementProfile of
LambdaExecutionRoleDockerIntegrationTest and of the
GlobalNamespaceIamOnlyProfile of
S3PresignedPostBucketPolicyAccountContextIntegrationTest. Each adds one service
setting, and no other class there calls the service it changes. The Lambda
class's fixed port 4587 becomes a free port chosen when the profile loads.

PartnerPermissionBoundaryEnforcementProfile folds into IamEnforcementProfile:
the partner registration only reaches a delegation request filed as the
partner account, which no other class there files. IamEnforcementProfile's
joining rule now asks that settings be inert both ways, as the other shared
profiles do.
2026-11-18 09:00:56 -04:00
Priamo Germosen 1f8dc1651d test: share the Pod Identity profiles and the AppSync IAM profiles (#8858)
The two EKS Pod Identity Docker classes each declared a profile named Profile
with the same webhook, TLS and port settings. Only the agent class's turned EKS
mocking off, which never reaches the other class: it stores its cluster and
add-on through the services directly. They now share EksPodIdentityProfile.

AppSyncHttpDataSourceSidecarIntegrationTest and
EventBridgeAppSyncSidecarIntegrationTest each declared an EnforcedSidecars
profile, the sidecar namespace and port with IAM enforcement, the first with
signature validation as well. AwsIamHttpDataSourceIntegrationTest declared the
same two switches without the sidecar settings, which never reach it: it starts
no container and sends to the port the application listens on. The three now
share SidecarIamEnforcementProfile. The EventBridge class creates and deletes
its stack through a signed CloudFormation client rather than a hand-written
Authorization header, which signature validation would refuse.
Its cleanup now holds the SDK clients in a try-with-resources, so each closes
whatever the stack and IAM cleanup throws.
2026-11-18 09:00:51 -04:00