Commit Graph
4877 Commits
Author SHA1 Message Date
Priamo Germosen 975632df5c test(emr): run an EMR cluster from Floci in a container nightly (#8591)
Floci in a container of its own, with the Docker socket, is how many
users run it, and an EMR cluster's nodes are then its siblings on a
network of their own: Floci's container joins that network so the
cluster's metastore service reaches Floci's S3, and leaves it once the
cluster has ended. That path had unit tests and one manual run, as no
test ran Floci in a container for EMR.

EmrFlociContainerNightlyIntegrationTest starts the Floci image the
nightly workflow builds from the commit (docker/Dockerfile.jvm-package)
with the socket and the docker runner mode, runs a cluster with Hive and
Spark on it, and checks that a Hive step's tables over rows in S3 are
read by a Spark step through the metastore, that a later Hive step reads
the table the Spark step made, that Floci's container is on the
cluster's network meanwhile, and that it is off it once the cluster has
ended. A failing step's message carries its stderr and Floci's log.

The nightly workflow builds the image and names it to the checks; the
Spark and Hive images are prefetched for the class. The Hive and Spark
jobs EmrHiveStepsDockerIntegrationTest wrote inline are HiveCatalogJobs,
the step EMR tests added in two copies is EmrRequests.addStep, and the
Docker client two RDS tests built by hand is TestDockerClients.local.
2026-11-16 12:02:02 -04:00
Priamo Germosen d58d9ecac9 fix(codebuild): give resource-tag conditions the tags of the project or report group a request names (#8596)
The generated request resources give CodeBuild's project and report
group types aws:ResourceTag/ keys, but CodeBuildStoredResourceArns did
not answer storedTags, so a condition on their tags saw none. It now
answers from CodeBuildService.storedTags, which reads the project or
the report group stored under the ARN in the account and Region it
names, a pre-multi-account one of the default account in place,
matched on the whole ARN, and gives its key and value pairs as tags.
The tag lists are volatile, as CodeBuild replaces a resource's list
whole and never changes one in place.
2026-11-16 11:53:55 -04:00
luiseterc 48be04cc21 fix(ec2): allocate requested secondary addresses when creating ENIs (#8576) 2026-11-16 11:30:50 -04:00
Priamo Germosen 3e52c94e39 feat(ec2): enforce security groups on ENI IPv6 addresses (#8593)
With security-group enforcement on, a managed ENI's identity was its
IPv4 address alone, so a rule naming an IPv6 range never matched a peer
on the IPv6 addresses its ENI now holds.

Each protected endpoint now carries its ENI's IPv6 addresses next to the
IPv4 one, and its helper's Docker IPv6 address next to the IPv4
transport. The compiler writes a peer's rules per identity: a rule
matching one of its IPv6 addresses admits it on the IPv6 transport only,
never on the IPv4 one, and on a Docker network without IPv6 there is no
IPv6 identity to match. Every transport a peer has is dropped after its
rules, as the IPv4 one already was. The EC2 and ECS registrations pass
the ENI's IPv6 addresses, the firewall manager reads the helper's Docker
IPv6 address, and AssignIpv6Addresses and UnassignIpv6Addresses update
the ENI's firewall identity. Every Docker address a managed peer has is
dropped after its rules, its IPv6 one included when its ENI holds no
IPv6 address, and an ICMP rule is written only for the family it
belongs to. IPv6 changes to one ENI serialize through their firewall
update; an assign the firewall refuses is taken back out of the store,
and an unassign reaches the firewall before it is stored.

The README now documents enforcement: what it filters, that it needs
rootful Docker with Linux containers, how to turn it on, and that an
application port opened after launch is not published while it is on.

Part of #2564.
2026-11-16 11:29:01 -04:00
Priamo Germosen 6fd20879d5 fix(athena): type Hive partition values as their keys declare (#8590)
Athena types a partition value as its key declares. Floci left the
values DuckDB's Hive partitioning reads from column=value folders to
DuckDB's autocast, so a string key holding 2026-11-14 came back as a
DATE, and a date key's folder holding text no date is read as rows with
the guessed type. Delimited-text tables already read their values as
text and cast them; every other format did not.

- A partitioned table without a location template reads with
  hive_types_autocast = false, so each Hive partition value arrives as
  text, and buildProjection casts it to its key's declared type
  (GlueTableResolver.hivePartitionKeys), as it already did for
  delimited text.
- A projecting table in the default layout keeps only rows whose typed
  keys parse as their types (hiveValueFilter): Athena builds each path
  from values its projection generates, so a folder like dt=latest for
  a date key is one no query addresses, as the template layout already
  treats it.
- A date or timestamp key whose date projection sets a format is parsed
  with it in either layout (typedKey, strptimeFormat translating yyyy,
  yy, MM, dd, HH, mm, ss and literal text, a doubled quote being one
  quote, for try_strptime), so dt=20261116
  under yyyyMMdd reads as a date; a format with other pattern letters is
  cast as an ISO value. This closes the template layout's TODO too.
- Iceberg tables keep reading their own typed values.

AthenaPartitionTemplateSidecarIntegrationTest reads a string key
holding a date as VARCHAR, a date key as DATE, and skips a dt=latest
folder, and a yyyyMMdd date projection, against the real engine.
GlueViewDdlBuilderTest and GlueTableResolverTest cover the view and the
pattern translation.
athena.md says so.
2026-11-16 11:08:45 -04:00
Priamo Germosen bba2ac901e fix(iam): read the organization levels and scenario a simulation was handed (#8585)
Both policy simulators accepted OrderedOrganizationPolicyInputList and
ResourceHandlingOption and answered as though neither had been sent.

The levels now gate a simulation the way they gate the call it stands for,
through the same walk a live request takes through service control policies:
an action no level allows is an implicitDeny, a level that denies it is an
explicitDeny whatever the levels below allow, and a level carrying no
statements is skipped. A level whose document does not read as a policy is an
InvalidInput naming the item's position. The levels a call hands in are the
whole of the organization the simulation runs against, matching the console,
which includes SCPs only when the box is ticked.

A named scenario is held to the resources it requires, "to enforce the
presence of the required resources to ensure reliable simulation results", and
a value naming no published scenario is refused. A simulation that names no
scenario is left alone.

One difference from AWS's simulator is documented and open: AWS says its
simulator does not evaluate SCPs that have global conditions, while this walk
evaluates a condition in an SCP exactly as the live evaluation does.
2026-11-16 11:01:02 -04:00
mrfelek 4a7953bb0b fix(redshift): scope parameter groups, subnet groups, schedules, copy grants and integrations to their Region (#8565)
Redshift cluster parameter groups, subnet groups, snapshot schedules and snapshot copy grants are now stored under <region>::<name>, and zero-ETL integrations are listed, described and deleted only in the Region their ARN names, with names unique per Region.

The snapshot scheduler reads a cluster's schedule in the cluster's Region. EnableSnapshotCopy and snapshot copies look up the grant in the destination Region. The in-use checks for deleting a grant or schedule are scoped to the Region.

Records stored before this change move at startup. A subnet group goes to its subnets' Region and a copy grant to its KMS key's Region; anything else goes to the default Region. Every other Region where a cluster uses a record gets its own copy.

StorageJson in core.storage builds the mapper used by the persistent, hybrid and WAL storages, and copies a record through that form; AppConfigService.copy uses it too. AvailabilityZoneIds.regionOf gives a zone's Region for EFS, EKS and Redshift.

Part of #8218
2026-11-16 10:55:19 -04:00
mrfelek ad6ca74685 fix: keep Network Firewall, Route 53 Resolver and WAF v2 resources in their Region (#8564) 2026-11-16 10:54:09 -04:00
Priamo Germosen 1b54454b2d fix(stepfunctions): give resource-tag conditions the tags of the state machine or activity a request names (#8589)
The generated request resources give Step Functions' state machine,
version, alias, execution and activity types aws:ResourceTag/ keys, but
StepFunctionsService did not answer storedTags, so a condition on their
tags saw none. It now reads the state machine or the activity stored
under the ARN in the account and Region it names, in place, matched on
the whole ARN; a version the state machine holds and an execution have
the state machine's tags, as all versions of a state machine share its
tags and its executions inherit them, and an alias has none. Tagging
and untagging now put a new tag map in place of the old one under the
service's lock, so the lookup always copies one whole set and an update
copying the state machine no longer loses a tag written at the same
time. iam.md also names EventBridge and RDS, which answer it too.
2026-11-16 10:49:38 -04:00
Hector Ventura 66c5c98406 fix(ecs): resolve a service only in the request's cluster and Region (#8546) 2026-11-16 10:47:37 -04:00
Andre Kurait 2d6d122419 fix(lambda): use the poller clock for SQS event timestamps (#8586) 2026-11-16 10:43:04 -04:00
Vinícius Ribeiro a76c67f0c2 fix(rds): fail fast when the Docker daemon refuses the container create (#8581)
* fix(rds): fail fast when the Docker daemon refuses the container create
* fix(rds): keep a Docker timeout or throttling on create retryable
2026-11-16 10:41:59 -04:00
Priamo Germosen ed49e63bfa feat(ec2): assign and unassign ENI IPv6 addresses (#8588)
A network interface held no IPv6 address: CreateNetworkInterface ignored
Ipv6Addresses and Ipv6AddressCount, AssignIpv6Addresses and
UnassignIpv6Addresses were not implemented, and nothing reported an
ipv6AddressesSet, so a dual-stack subnet's interfaces looked IPv4-only.

CreateNetworkInterface now takes the named addresses or a count drawn
from the subnet's associated IPv6 block, with a random host part. Left
out, the subnet's AssignIpv6AddressOnCreation gives one address; an
explicit 0 overrides it, as the API reference says.
AssignIpv6Addresses reads Ipv6Addresses.N (the name the SDKs send) or
Ipv6AddressCount, needs one of them, and reports only the addresses it
added; UnassignIpv6Addresses reports only the ones the interface held.
Both work on standalone interfaces and on an instance's launch-created
one. An address outside the subnet's blocks answers InvalidParameterValue
and one another interface holds InvalidIPAddress.InUse; prefix
delegation answers UnsupportedOperation, a list with any count
InvalidParameterCombination, and a reserved address (a block's four first
and its last) InvalidParameterValue. An interface holds at most as many
IPv6 addresses as private IPv4 ones, and a block without enough free hosts
answers InsufficientFreeAddressesInSubnet. DescribeNetworkInterfaces and
DescribeInstances report ipv6AddressesSet, and a supplied interface keeps
its addresses on the instance it launches. Termination now releases
interfaces under the topology lock, and an IPv6 change writes back only
what is still stored.

Part of #2564.
2026-11-16 10:20:41 -04:00
Priamo Germosen 9ee8417f6c test(emr-serverless): run a custom image from Floci's ECR nightly (#8584)
An EMR Serverless application on a custom image in Floci's ECR had unit
tests for the digest it resolves (#8542) but no run that pushed an image
and pulled it back, as each run of it copies the whole 3.5 GB base image
into the registry. It is now a nightly check.

EmrServerlessCustomImageNightlyIntegrationTest builds the release's base
image with a FLOCI_IMAGE_BUILD marker, pushes it to a repository's tag in
Floci's ECR, removes the local copy, and runs a job that writes the marker
it sees. A second build pushed under the same tag is not seen by the
application that resolves its image as it starts until it starts again,
and is seen at once by one resolving it for each run. Floci listens on a
fixed port there, since the runner hands the Docker daemon
localhost:<floci.port> for an ECR image.

The class is enabled only by -Dnightly.checks.enabled=true, so the CI
shards skip it before Quarkus starts, and its base image is prefetched
only for the nightly checks. That property was -Dfloci.nightly=true, which
the first nightly run showed Floci's configuration refusing as a floci.*
name it does not know, so a Quarkus check never started; the workflow and
AGENTS.md name the new one. The part-file reader EmrDockerRunnerDockerIntegrationTest
kept to itself is S3TestClients.partFiles, shared by both.
2026-11-16 10:13:25 -04:00
Priamo Germosen c05769395c fix(athena): read a partitioned table through its registered partitions (#8587)
Athena reads a partitioned table through the partitions the Glue Data
Catalog holds for it, each from its own location, and a table whose
partitions are not loaded answers no rows. Floci read the table's whole
location with Hive partitioning instead: a folder no partition names
was read, a dropped partition's files still were, and a partition at a
location outside the table's, or in a non-Hive layout, was not.

- A Hive table with partition keys and no partition projection
  (GlueTableResolver.readsRegisteredPartitions) is read through the
  registered partitions holding data, each at its storage descriptor's
  location or <table location>/key=value/... for one that gives none
  (AthenaHiveDdlExecutor.defaultLocation).
- They are read together (registeredPartitionsSelect): one read of every
  partition's location, columns matched by name, so a partition written
  before a column was added reads NULL for it, each row joined by its
  file's path to a VALUES row of its partition's location and values,
  cast to the keys' types. Hive's __HIVE_DEFAULT_PARTITION__ is NULL,
  and a value the type cannot hold fails the query with Athena's
  HIVE_INVALID_PARTITION_VALUE.
- One listing of the table's location tells which partitions under it
  hold data; one elsewhere is listed on its own. The view is built once
  per batch for the qualified and unqualified views.
- A partition that does not give one value for each key, which Glue
  refuses on AWS, is skipped. No partition holding data answers no rows,
  typed as the declared columns.

AthenaDelimitedTextSidecarIntegrationTest reads a partition at its
default folder and one outside the table's location, skips an
unregistered folder, answers no rows with none registered, and fails a
date key holding 'soon' with HIVE_INVALID_PARTITION_VALUE; it fails
without this change. GlueViewDdlBuilderTest covers the view, typed keys,
Hive's default partition, a Parquet read by name, a skipped malformed
partition and the single listing. athena.md says so.
2026-11-16 09:55:25 -04:00
Priamo Germosen 2842fe4eeb fix(glue): give resource-tag conditions the tags of the Glue resource a request names (#8582)
Since #8529 the generated request resources give Glue's types
aws:ResourceTag/ keys, but no StoredResourceArns answered for the glue
namespace, so a condition on a job's, a connection's or a registry's
tags saw none. GlueStoredResourceArns now answers storedTags from
GlueService.storedTags: a schema registry's or a schema's tags from the
schema registry, any other resource's from the tags applied to its ARN,
which Glue drops when it deletes the resource, each read in the account
and Region the ARN names, a pre-multi-account entry of the default
account in place, through AccountAwareStorageBackend.readInAccount.
Only string values are taken, as TagResource keeps the request's map
as given. Deleting a table or a user-defined function, directly or with
its database, now drops the tags applied to its ARN as Glue's other
deletes do, so one recreated under the same name starts with none.
Tagging a resource through the shared tag store now puts a new tag map
in place of the old one, so the lookup always copies one whole set.
2026-11-16 09:44:48 -04:00
luiseterc 6eb66cd6bf fix(eks): preserve scoped authorization for deletion waiters (#8580)
Deleting an EKS add-on or Fargate profile now keeps only its ARN for
IAM authorization, keyed by the cluster's incarnation, so a deletion
waiter with a resource-scoped describe grant receives
ResourceNotFoundException instead of AccessDeniedException, while an
unrelated grant or an explicit deny still gets 403. Describe and list
still report the resource as gone, recreation clears the kept ARN and
cluster deletion purges it. Resource tags are not kept.

Closes #8494
2026-11-16 09:32:44 -04:00
Jimmy Liu Jia 0d6aa45d1f feat(eventbridge): deliver events to Kinesis targets (#8561)
* feat(eventbridge): deliver events to Kinesis targets
* fix(eventbridge): preserve CloudFormation Kinesis partition key paths
* test(eventbridge): clean up Kinesis fixtures after teardown failures
* fix(eventbridge): match Kinesis partition key path delivery
2026-11-16 09:30:26 -04:00
Matheus Oliveira bbc6e1b0a1 fix(ecs): emit empty arrays for empty command, entryPoint and environment (#7941) 2026-11-16 09:11:03 -04:00
Matheus Oliveira 1dadaee351 fix(ec2): make default network resource IDs region-unique and AWS-format (#7738) 2026-11-16 09:10:33 -04:00
TATSUNO “Taz” Yasuhiro 651ac1cbe7 fix(dynamodb): refuse a PartiQL key read whose filter names a key (#8559)
A PartiQL read by key now refuses the statement once the filter of
every read names a key of the table or index read, as DynamoDB does,
answering "Filter Expression can only contain non-primary key
attributes" with a key from the last read in key order. A statement
that tests a key in a way no key condition can hold is still read as a
scan and accepted, and size() on a key counts only on its own. Query
and PartiQL build that message in one place.
2026-11-16 09:09:46 -04:00
TATSUNO “Taz” Yasuhiro a115078c48 fix(dynamodb): leave out LastEvaluatedKey when a Query stops at the end of its key condition (#8577)
A Query that Limit stops on its last matching item now leaves out
LastEvaluatedKey when the read has reached the end of its key
condition: when the partition holds a later item the condition
excludes, or, on a table, when the last item sits on the condition's
inclusive bound. PartiQL reads of one key or one sort-key range end
without a NextToken the same way. A read that stops on the last item of
a partition short of an inclusive bound still returns the key.
2026-11-16 09:07:34 -04:00
Priamo Germosen 82b7547f0a feat(ec2): support ModifyNetworkInterfaceAttribute (#8532)
ModifyNetworkInterfaceAttribute was not implemented, so a call to change
an interface's security groups, description, source/destination check
or DeleteOnTermination was refused, and with security-group enforcement
on an interface's groups could only change through ModifyInstanceAttribute.

The action now changes a standalone interface or one an instance was
launched with. The group list is read as SecurityGroupId.N, the name the
SDKs and the CLI send. On an instance's primary interface the groups and
the source/destination check are the instance's too. With enforcement
on, a group change reaches the interface's firewall before it is stored,
under the instance's lock, as ModifyInstanceAttribute does, so a policy
that cannot be applied leaves the groups as they were, and the ports the
instance's groups publish are reconciled after a primary-interface change.
The change re-checks the interface and its attachment in the critical
section that stores it, and AttachNetworkInterface and
DetachNetworkInterface now update the standalone record and the instance's
copy under the same topology lock.

ModifyInstanceAttribute no longer overwrites every interface's groups: on
an instance with more than one interface, a group or SourceDestCheck change
answers InvalidInstanceID ("There are multiple interfaces attached to
instance ... Please specify an interface ID for the operation instead."),
the code and message AWS returns, as the Terraform AWS provider quotes them.

The members Floci does not apply (EnablePrimaryIpv6, EnaSrdSpecification,
ConnectionTrackingSpecification, AssociatePublicIpAddress,
AssociatedSubnetIds and the attachment's ENA queue counts) answer
UnsupportedOperation, as ReplaceRoute refuses a target it cannot store,
rather than true with nothing changed.

Part of #2564.
2026-11-16 09:06:59 -04:00
Andre Kurait a015fd9fb8 test(sqs): control cancellation before the worker terminal write (#8579) 2026-11-16 09:02:31 -04:00
Vũ Thế Huy 4f623d7b50 feat(redshift): add the SUPER and VARBYTE types and their functions (#8571) 2026-11-16 08:52:44 -04:00
Priamo Germosen f0ee5d44a0 fix(athena): answer no rows for a table whose location holds no data (#8575)
Athena answers a table whose S3 location holds no data with no rows.
Floci's view read the location with DuckDB's read_* glob, which refuses
to bind when nothing matches, so every query on such a table failed.

- GlueViewDdlBuilder checks the location a table is read from (its read
  path, so a projected table's partition folders) before building its
  view. One that holds no data gets a view of no rows with the table's
  declared columns as their declared types (GlueTableResolver
  .emptyProjection), nested and binary columns as the engine reads them
  (columnType: array<T> as T[], map, struct, binary as BLOB).
- TableLocation.holdsNoData lists the location in one scan: folder
  markers (keys ending in a slash) hold no data, and a read path with
  `*` segments is listed from its literal prefix, an object counting
  when its key matches the glob. A location holding another glob
  character, or whose bucket does not exist, is read as before.

GlueViewDdlBuilderTest covers an empty location, one holding only
folder markers, a projected location holding only objects its glob does
not reach, nested and binary column types, an unmodeled glob and a
missing bucket. AthenaDelimitedTextSidecarIntegrationTest
queries an empty location and a folder marker against the real engine.
athena.md says so.
2026-11-16 08:52:15 -04:00
Andre Kurait f94d5e9e58 test(lambda): await SQS polls and close fixture executors (#8578)
SqsEventSourcePollerTest now waits for each submitted poll to finish
before asserting deletes, visibility changes and invocations, instead of
timed Mockito verifications and retry loops, and shuts down each
fixture's poller after the test.
2026-11-16 08:44:05 -04:00
Jimmy Liu Jia 3e0cd437d7 feat(cloudformation): provision SES configuration sets (#8551)
* feat(cloudformation): provision SES configuration sets
* refactor(cloudformation): simplify SES configuration set provisioning
2026-11-16 08:40:08 -04:00
Priamo Germosen b2a019ef4e fix(lambda): give resource-tag conditions the tags of the Lambda resource a request names (#8569)
The generated request resources give Lambda's function, function version
and alias, event source mapping, web function, revision and endpoint,
MicroVM image and network connector types aws:ResourceTag/ keys, but
LambdaStoredResourceArns did not answer storedTags, so a condition on
their tags saw none. It now answers from the service holding each:
LambdaService for a function, whose versions and aliases have its tags
as Lambda keeps tags on the function alone, and an event source mapping;
LambdaWebService for a web function, whose revisions and endpoints
inherit its tags; LambdaMicrovmsService for an image or a connector.
Each reads the resource under the ARN in the account and Region it
names, a pre-multi-account one of the default account in place, through
the new AccountAwareStorageBackend.readInAccount, matched on the whole
ARN. Tagging a function or a mapping now puts a new tag map in place of
the old one, so the lookup always copies one whole set.
2026-11-16 08:22:56 -04:00
David 08479ffffe feat(sts): serve the OIDC discovery document and JWKS for the web identity token issuer (#8567) 2026-11-16 08:19:05 -04:00
luiseterc 2cbdef4b23 fix(rds): enforce lifecycle resource scopes and tags (#8401)
IAM enforcement now reads RDS requests from the generated
request-resources table: all 168 RDS operations are checked on the
resources they name, from the Service Reference and pinned botocore,
so a policy scoped to a DB parameter group, proxy, snapshot or other
RDS resource applies. Stored tags of RDS and DocumentDB resources come
from the existing tag lookups for aws:ResourceTag conditions, read
only, in the ARN's own account.

Closes #8396
2026-11-16 08:09:35 -04:00
David ec948dcb11 test(codeartifact): build every npm publish envelope through the shared helper (#8570)
* test(codeartifact): build every npm publish envelope through the shared helper
2026-11-16 07:51:52 -04:00
Andre Kurait 4a5d5fbb49 fix(elbv2): support explicit ALB zone-rule overrides (#8533)
* fix(elbv2): apply regional ALB zone defaults with overrides
* fix(elbv2): restore legacy subnet snapshots during stack rollback
* fix(elbv2): require two ALB zones for the AWS default
* fix(elbv2): simplify explicit ALB zone rules
2026-11-16 07:42:42 -04:00
luiseterc bd3431283b fix(events): resolve stored bus and rule tags for IAM (#8412)
IAM enforcement now reads an event bus's or rule's stored tags for
aws:ResourceTag conditions, from the exact ARN's account, Region and
partition, without creating the default bus. ListTagsForResource,
TagResource and UntagResource share the same lookup.

Closes #8397
2026-11-16 07:26:59 -04:00
Jackson Price 8625f09f4c fix(s3tables): validate legacy bucket ownership before migration (#8534)
S3 Tables now migrates an unprefixed legacy table bucket only when the
caller is the configured default account and the bucket's ARN matches the
stored one, on a lookup and on CreateTableBucket's existence check. A
lookup from another account, or with a mismatched ARN, answers
NotFoundException and leaves the legacy record in place, and another
account creating a bucket of the same name gets its own.
2026-11-16 07:24:17 -04:00
James Netherton 8ec2c184f1 fix(translate): serve Translate over smithy-rpc-v2-cbor (#8563) 2026-11-16 07:22:38 -04:00
Rashen Anupama e8f5a696a8 fix(ecr): record image push time for registry uploads (#8530)
An image pushed through the Registry V2 endpoint now records its push
time when the registry accepts the manifest, so DescribeImages reports
the push time instead of the time of the first read. A tag added to an
existing digest keeps the first push time, a digest delete clears it,
and a metadata write that fails keeps the registry's response and the
first push time for the next read.
2026-11-16 07:21:24 -04:00
Mohith f733c91a74 fix(apigateway): reject a non-integer limit on GetUsage, GetAuthorizers and GetDocumentationParts (#8560)
* fix(apigateway): reject a non-integer limit on GetUsage, GetAuthorizers and GetDocumentationParts
* test(apigateway): make the valid limit control page two authorizers
2026-11-16 07:17:18 -04:00
TATSUNO “Taz” Yasuhiro 18d04ded17 fix(dynamodb): count the hash key conditions of every OR branch for a PartiQL ORDER BY (#8558)
A PartiQL ORDER BY now counts the hash key conditions inside every OR
branch. An OR whose branches each name the partition key, such as
(pk = 'a' AND x = 1) OR (pk = 'b' AND x = 2), reads more than one
partition, so it needs the partition key in ORDER BY, and an OR with a
branch that names none still counts no hash key condition.
2026-11-16 07:16:52 -04:00
Andre Kurait e47747845e fix(codedeploy): use service clock for lifecycle timestamps (#8557)
* fix(codedeploy): use service clock for lifecycle timestamps
2026-11-16 07:10:06 -04:00
Suja Shaj 93da7a6c26 fix(rds): check that a DB instance's security groups exist and sit in its VPC (#8258)
CreateDBInstance and ModifyDBInstance now check that every security
group a request names exists in the caller's account and Region and sits
in the instance's VPC, refusing an unknown id with InvalidParameterValue
and a group of another VPC with InvalidParameterCombination. Restores,
read replicas, Blue/Green deployments and CloudFormation go through the
same check, and DocumentDB shares it. An instance whose request names no
groups gets its VPC's default security group, as RDS documents, and
describe reports that group for an instance that keeps none.
2026-11-16 07:09:37 -04:00
Jackson Price d1acc664ed test(sqs): reuse shared backends in message snapshot tests (#8550)
GuardedMessageQueueTest's snapshot test now builds and closes its
persistent, hybrid and WAL backends through StorageTestBackends instead
of its own mode switch and shutdown branches. Paths, interval, explicit
load and the detachment assertions are unchanged.
2026-11-16 07:04:16 -04:00
TATSUNO “Taz” Yasuhiro 6673e80862 fix(dynamodb): let an expression or condition value nest one level deeper than an item (#8554) 2026-11-16 07:03:29 -04:00
Priamo Germosen 9eda97cf84 feat(emr-containers): emulate the EMR on EKS control plane (#8543)
Floci had no emr-containers service, so Airflow's EmrContainerOperator, the
aws emr-containers CLI and the SDKs had nothing to call. This adds its 25
operations: virtual clusters, job runs, job templates, managed endpoints,
security configurations and tags.

Job runs follow the job run states without running Spark on Kubernetes: a
run completes as soon as it is submitted, or after
floci.services.emrcontainers.job-run-duration-seconds. When Floci's EKS has
no cluster of the virtual cluster's container provider id, the run is FAILED
with "Cluster <id> does not exist." and CLUSTER_UNAVAILABLE, as AWS's "Common
errors when running jobs" page gives it; that page also gives the wording for
a job run on a missing or non-RUNNING virtual cluster. A job template's
${name} placeholders are filled from jobTemplateParameters or the parameter's
default. Deleting a virtual cluster clears its tags, as the development guide
says, only resources in an active state of the request's Region take tags,
and a job run's template and request tags together keep the 50-tag limit. A
virtual cluster created on an EKS cluster whose authenticationMode admits
access entries is access entry integrated, which ListVirtualClusters'
eksAccessEntryIntegrated filters on.

Every request is checked against botocore's emr-containers constraints,
vendored by tools/aws/regen_emr_containers_shapes.py and gated by make
aws-data-check. Routes sit under a signed-service prefix, so a path-style S3
request for a bucket named virtualclusters still reaches S3. The routes are
added to IAM's REST route table, and emr-containers to the IAM generators'
namespaces, so each operation is checked on the resource its path names,
StartJobRun and CreateManagedEndpoint need iam:PassRole on their
executionRoleArn, and the create operations need emr-containers:TagResource
for their tags, all from AWS's Service Reference.
2026-11-16 06:58:29 -04:00
Hector Ventura 039d4fbb26 fix(dynamodb): check PartiQL batch and transaction statements under their PartiQL actions (#8547)
* fix(dynamodb): check PartiQL batch and transaction statements under their PartiQL actions
* refactor(dynamodb): share the condition-key puts and read PartiQL statements from the key table
2026-11-16 06:56:20 -04:00
Priamo Germosen 35b03c6bf6 feat(athena): query and write S3 Tables catalogs (s3tablescatalog/<bucket>) (#8549) 2026-11-16 00:59:49 -04:00
Priamo Germosen 0b6077d374 fix(glue): check the Iceberg REST endpoint's routes under IAM enforcement (#8548)
No botocore model describes AWS Glue's Iceberg REST endpoint, so no
vendored route mapped its paths to an action, and the endpoint refused
every IAM principal under enforcement, letting only root credentials
and Floci's own query engine through.

- regen_rest_routes.py reads an endpoint botocore does not model from
  the AWS page documenting it (DOCUMENTED): Glue's "REST APIs for Apache
  Iceberg specifications" gives each operation's REST path, IAM action,
  CloudTrail event and a link to its definition in the Apache Iceberg
  REST catalog OpenAPI specification. Each row of the Iceberg REST
  Catalog API is the Glue operation its IAM action and CloudTrail event
  name, refused when they differ, on the method and path of the
  definition it links, under the root and the catalogs/{catalog} prefix
  the page's path gives. Rows of one operation are its route and its
  alternatives. Where the page's own path differs from the definition
  (DeleteNamespace's "namespces", CreateTable's GET), the definition is
  taken and the difference recorded. Nothing is typed by hand.
- Reading the page needs the network, so a regeneration carries the
  routes over from the vendored file, --fetch-documented reads them
  again, and --verify checks them against the page;
  documented-routes-verify runs in iam-data-verify.
- rest-routes.json gains the endpoint's ten Glue operations under the
  glue scope, and iam-authorized-actions.json lists glue's actions of
  no resource type, as it does for every routed scope. The same
  regeneration takes the actions AWS has added since: GuardDuty's
  ListInvestigationRecords and Route 53's IP guardrail policy actions.
- The controller's refusal of IAM principals goes. Each route is now
  checked as its Glue operation, on the account's Data Catalog whichever
  catalog the prefix names: the request-resource table reads no Glue
  member from an Iceberg request, so a grant or deny scoped to a
  federated catalog, a database or a table does not apply here.
  Floci's own engine's token is not checked again.
- A request a documented route takes is another API's, so it carries
  none of its operation's members: the enforcement filter has every
  member reader (request resources, condition keys, tag-on-create,
  passed roles) read none from it, so a Glue member a caller adds to an
  Iceberg body, such as Tags or DatabaseInput, names no resource and
  gives no condition key a value.

GlueIcebergIamIntegrationTest checks a principal allowed GetCatalog and
GetDatabase reading the configuration and the namespaces and refused
creating a namespace or loading a table, by GET or HEAD, a deny on the
catalog holding under an allow on everything, and root credentials and
a minted token answered, and a Glue member added to an Iceberg body
neither satisfying an aws:RequestTag condition nor naming a database.
glue.md and iam.md say so.
2026-11-16 00:45:42 -04:00
Hector Ventura 9392bd54af fix(stepfunctions): refuse an unsupported ecs:runTask pattern before launching the task (#8545)
ecs:runTask supports request-response, .sync and .waitForTaskToken. A
.sync:2 resource used to launch the task and only then fail the state
with "Unsupported ecs:runTask mode", leaving the task running unmonitored.
The pattern is now checked before RunTask is called, and the state fails
with the same "Unsupported resource" error as other unsupported
integrations.
2026-11-16 00:43:26 -04:00
TATSUNO “Taz” Yasuhiro fc141d12d6 fix(dynamodb): check the ListTables ExclusiveStartTableName (#8539)
ListTables now checks its ExclusiveStartTableName against the table name
length and pattern, counted in characters, and lists those errors in one
message with a bad Limit, the limit first. A JSON null start name reads
as absent instead of as the name "null".
2026-11-16 00:08:27 -04:00
TATSUNO “Taz” Yasuhiro 678bd347af fix(dynamodb): measure a table name the way each DynamoDB call does (#8538)
A bad DynamoDB table name now gets the errors each call gives for it.
The table calls, and the older validator of a deeply nested PutItem,
UpdateItem or DeleteItem, count the name in UTF-16 units and list every
problem, the length first. GetItem, PutItem, DeleteItem, Query and Scan
count characters and report the first problem. UpdateItem counts
characters and lists the pattern before the length. A name inside a
table ARN gets only its first problem, counted in UTF-16 units, with the
whole ARN quoted and "Table name of ARN must".
2026-11-16 00:03:19 -04:00