Commit Graph
3908 Commits
Author SHA1 Message Date
Jimmy Liu Jia 28d934fd8e fix(codebuild): paginate ListReportGroups responses (#6524)
* fix(codebuild): paginate ListReportGroups responses

* fix(codebuild): snapshot report group pagination keys

* refactor(codebuild): share listing pagination and snapshot project keys
2026-10-25 16:48:57 -04:00
Mario Toffia 3389621dc6 fix(apigateway): take the usage plan lock on delete (#6546) 2026-10-25 16:47:45 -04:00
Hector Ventura 7b9e877f7a docs: document the standalone floci-aws binary (#6114)
* docs: document the standalone floci-aws binary

#5844 publishes a standalone floci-aws binary with every release but no
page says so. The installation guide gains a Native binary section: the
asset per platform, download and checksum, cosign and attestation
verification, the glibc 2.34 floor and the macOS quarantine, which
services need Docker and what happens without it, where persistent state
goes and the host-<port> container namespace, configuration, and running
it under systemd or launchd.

It also says the state directory is shared across ports, so two
persistent binaries need their own FLOCI_STORAGE_PERSISTENT_PATH, and a
persistent binary should restart on the port it used before.

The README points at the section, and the Docker images page no longer
says the arm64 baseline build is image-only.

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

* docs: say where the image listens and which binaries the image ships

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

* fix: report EC2 as metadata only without Docker, and create ~/.local/bin on install

Without a Docker daemon an EC2 launch does not fail by default:
Ec2ContainerManager marks the instance running as metadata only, and
fails the launch only when security-group enforcement is on. The startup
warning listed EC2 with the services that fail on use, and the binary
page did the same. EC2 now joins the metadata-only group, and moves to
the fail-on-use group when enforcement is enabled.

The install steps create ~/.local/bin before installing into it and run
the binary by its full path, and the namespace note says that binaries
on separate hosts sharing a port and a remote daemon need their own
FLOCI_DOCKER_RESOURCE_NAMESPACE.

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

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-25 16:41:47 -04:00
Jimmy Liu Jia 13d0452a20 fix(backup): paginate ListBackupVaults (#6541) 2026-10-25 16:35:11 -04:00
Hector Ventura 5fbc51f537 refactor(eks): build and read ARNs through AwsArnUtils (#6484)
EKS minted its access entry, addon and pod identity association ARNs and the
STS assumed-role username by concatenating the parts of a split cluster or
principal ARN, and read account and region from the cluster ARN by splitting
it. Those now go through AwsArnUtils: parse for the fields, Arn.global for the
assumed-role ARN, and one childArn helper that keeps the cluster's partition,
region and account. The role ARN checks keep their conditions and errors.

No behaviour change. EKS no longer has any arn-concat or arn-split site, so
the partition baseline drops by 15.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-25 16:34:42 -04:00
Andre Kurait 2bc53956fd fix(s3): preserve bucket collision errors with IAM enforcement (#6539)
Exclude foreign bucket policies from CreateBucket authorization while preserving caller permission checks, creation-setting checks and same-owner policy enforcement.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 16:33:29 -04:00
Priamo Germosen 413bb884aa fix(codeartifact): close two gaps left by #6435's status overrides (#6506)
The npm republish guard's lenient-scan fallback (for a readme over the
strict parser's string-length limit) only extracted version names for
the Archived/Disposed check, leaving readmeByVersion empty; forwardSpooled's
post-write bookkeeping (byte accounting, readme capture, and the
redispose-protection call) keys off that map, so a version going through
this fallback silently skipped all of it. The lenient envelope now
populates the full guard input.

A PyPI upload with no version form field skipped both the filename-vs-field
check and the Archived/Disposed guard outright, since neither had a
coordinate to check (hectorvent's follow-up on #6435). pypiserver trusts
the uploaded filename over the form regardless, so a missing field now
falls back to matching the filename against any version of the package
that currently carries a status override before letting the upload through.
2026-10-25 14:51:49 -05:00
Priamo Germosen 932af22f4a fix(iam): check requests on the resources they name (#6511)
Under IAM enforcement a request is checked against the resources it acts
on. ResourceArnBuilder builds their ARNs by hand for 17 namespaces;
every other request was checked on *, so a grant scoped to a resource
was refused and a deny scoped to one never applied.

AWS's Service Reference lists the resource types each action acts on and
each type's ARN formats, but not which request member names a resource;
botocore's models give the members. A new generator,
tools/aws/regen_iam_request_resources.py, joins the two into
src/main/resources/aws/iam-request-resources.json: for each operation,
the action it is checked as, that action's resource types and the
resources its request names, by a member holding a resource's ARN or by
members filling the variables of a type's format, matched by name. A
variable nothing fills is left open, as a service mints a new resource's
id; a type nothing names is not checked, as an action lists the optional
resources its requests may use; and types named only through the same
members are alternatives, of which the one named in full is kept.
Corrections give a v2 CreateLoadBalancer the load balancer of its Type,
application when it gives none (a Type outside application, network and
gateway is now refused, as AWS refuses it, rather than read as an
application load balancer the table does not name), and read
StartExecution's and StartSyncExecution's stateMachineArn up to a #, as
Floci runs the machine before Step Functions Local's test case. A state
machine's version or alias, stateMachine:<name>:<qualifier>, is checked
on the state machine's ARN, as Step Functions authorizes it, so an
execution started through one is the state machine's too.

RequestResources reads them from a JSON or CBOR body or a Query form,
for the namespaces the table reads, and ResourceArnBuilder uses them
where it has no branch. They are read for the operation the request is
dispatched as, which IamEnforcementFilter resolves and checks the action
of (the Query action, the JSON target or the Smithy RPC v2 path's
operation), never for an X-Amz-Target or Action the request names again,
and as the handlers read them: a list only from a list, a number or a
null as its text. A member whose botocore shape is an account id gives
the account of the types named by variables: ECR's registryId selects
the registry its handler acts in, and a JSON null is no registry, the
caller's, as ECR reads it. ECR's
BatchGetRepositoryScanningConfiguration, whose AWS request has no
registryId, no longer reads one: it acts in the caller's registry, where
IAM checks it. An ARN value counts when it matches the format of a type
the action acts on; one naming another account or Region is checked as
given and as each resource of that name a handler may act on instead, in
its account or the caller's and its Region or the request's (ECR's tag
handlers keep the ARN's account in the request's Region). A request
naming none, or whose action acts on no resource type, stays on *, as
AWS checks it. A create's tagging action is checked on the same
resources, except where the create makes a resource under a parent its
action acts on: CreateListener acts on a load balancer and CreateRule on
a listener, and their tags are checked on the new listener or rule,
built from the parent's ARN with the type word replaced and its own id
open. The table gives these from the formats: a child type's is its
parent's with one id appended. So the AWS Load Balancer Controller's
policy, which allows AddTags at creation only on target groups and
application and network load balancers, and on listeners and rules, now
holds.

The first namespaces read are Elastic Load Balancing, ECR, Step
Functions and Cognito user pools (298 operations); the 99 others Floci
serves are listed as not read yet, with their reason, and
RequestResourceNamespacesIntegrationTest fails for a served namespace in
none of the lists. make iam-request-resources-check, part of
aws-data-check, re-derives every operation from the pinned botocore;
make iam-request-resources-verify, part of iam-data-verify, checks the
actions, types and formats against AWS, and the IAM data drift workflow
also runs on a change to the table or its generator.

Not in this change: the 99 other namespaces, Query lists other than
Name.member.N, identifiers inside structures (SetRulePriorities,
CreateStateMachineAlias' routing configuration) and EventBridge.
2026-10-25 14:51:39 -05:00
Priamo Germosen b66ee9ecf0 feat(core): make the image pull timeout configurable (#6521)
ImageCacheService gave each attempt at pulling an image a hard-coded
five minutes, and a pull three attempts. An EMR Serverless runtime is
3.5 to 4.3 GB, so on an ordinary connection the first run of a release
Docker did not have yet failed with "Could not pull image" before the
pull could finish.

floci.docker.image-pull-timeout-seconds, or
FLOCI_DOCKER_IMAGE_PULL_TIMEOUT_SECONDS, now sets the limit for each
attempt. Its default, 300, keeps today's five minutes, and it must be
at least 1, checked with the other Docker timeouts in
DockerClientProducer.

Follow-up to #6469.
2026-10-25 14:08:34 -05:00
Priamo Germosen 1ea49d9432 fix(emr-serverless): end a cancelled run when Docker refuses the stop (#6510)
The Docker runner's stop() sent the driver a docker stop and caught
only a 404 or a 304. Any other Docker error escaped the executor task
that cancels a run, unlogged, and the run stayed CANCELLING until its
driver exited by itself, which a STREAMING run's never does.

stop() now only marks the run as stopping. The run's own thread, which
looks at the driver every 250 ms, reads the mark at its next look,
ends the run and removes the driver, as it does at a timeout, so no
Docker error can lose a cancel. The removal is
ContainerLifecycleManager's stopAndRemove, which logs what Docker
refuses and removes by force.

Follow-up to #6469.
2026-10-25 14:08:23 -05:00
Daniel Adler 08bd1c7938 fix(sqs): release dedup reservations after failed enqueue (#6535) 2026-10-25 14:17:46 -04:00
Niels Kootstra d1b9baeb4a fix(lambda): split a failed Kinesis batch with BisectBatchOnFunctionError (#6523)
* fix(lambda): split a failed Kinesis batch with BisectBatchOnFunctionError

* refactor(lambda): share the stream batch split rule between the pollers
2026-10-25 14:13:47 -04:00
Tal Efraim a4196c19e3 fix(sqs): store RedrivePolicy and RedriveAllowPolicy as compact JSON (#6531) 2026-10-25 14:13:02 -04:00
floverfelt 4d35617518 feat(lambda): add init-timeout-seconds so a cold runtime gets its own init budget (#6442)
* feat(lambda): add init-timeout-seconds so a cold runtime gets its own init budget

* fix(lambda): count the init budget from container start, apply it only until the first /next poll, and cover it in SQS visibility

* test(lambda): check the dispatch wait directly instead of on the clock, and correct the init budget docs
2026-10-25 14:03:34 -04:00
Daniel Adler 74b626870f fix(sqs): preserve delivery deadlines and receipts in storage (#6530) 2026-10-25 13:49:49 -04:00
Mario Toffia 74cab790f2 fix(apigateway): patch a usage plan's throttle, quota and stage throttles (#6418)
* fix(apigateway): patch a usage plan's throttle, quota and stage throttles

* fix(apigateway): parse a usage plan stage throttle patch value as API Gateway does

* fix(apigateway): validate an UpdateUsagePlan op as API Gateway does

* test(apigateway): pin how a usage plan stage throttle patch reads numbers and rolls back

* fix(apigateway): refuse removing a usage plan method throttle path that names no method

* fix(cloudformation): keep a stage's throttle when a usage plan update leaves the stage in place
2026-10-25 13:45:03 -04:00
Aniket Shukla 3aa8149d08 fix(globalaccelerator): paginate accelerator listings (#6522)
* fix(globalaccelerator): paginate accelerator listings

* fix(globalaccelerator): validate pagination field types
2026-10-25 13:38:39 -04:00
Jimmy Liu Jia 57257e198f fix(athena): paginate ListWorkGroups (#6519)
* fix(athena): paginate ListWorkGroups

* fix(athena): use stable workgroup pagination cursors
2026-10-25 13:23:36 -04:00
Andre Kurait 57889bbb45 perf(docker): decode completed log frames with JDK fast paths (#6525)
Use bulk fragment appends and direct UTF-8 decoding while preserving bounded line reassembly and callback lifecycle behavior.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 13:21:02 -04:00
Andre Kurait 4a6e59fb3e fix(route53): control time in VPC overlap integration tests (#6514)
Control monotonic time in the real HTTP overlap fixture without changing production delay semantics.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 13:14:57 -04:00
TATSUNO “Taz” Yasuhiro 2a5f52e014 fix(dynamodb): return set members in DynamoDB's order (#6520)
* fix(dynamodb): return set members in DynamoDB's order

DynamoDB stores a set's members in its own order, not as written. A string
set is ordered by code point, a number set by value and a binary set by
unsigned byte. Every read of the item shows that order, ReturnValues
included. Floci kept the order of the write, so a set came back as written
and an ADD appended its new members at the end.

Sets are now put in that order when an item is stored, on PutItem, batch
and transact writes, PartiQL inserts and the UpdateItem paths.

* perf(dynamodb): parse each set member once when ordering it

The number and binary comparators parsed both members on every comparison,
so one sort of a large set decoded each member many times. The key is now
computed once per member and per sort.

* chore(dynamodb): sort set members through one keyed sort

The three set types now share one sort that computes each member's key
once and keeps the member nodes. A string set is ordered by its UTF-8
bytes, which is code point order. The integration test uses the shared
DynamoDB request helper.

* chore(dynamodb): order export set members through DynamoDbSetOrder
2026-10-25 12:28:42 -04:00
Kenshin Okinaka ba82e0aeaa fix(ses): order the send checks and read v1 bulk destinations like SES (#6490)
* fix(ses): verify the sender before the stored template and tenant associations

A tenant-scoped SES v2 send refused an unassociated resource with the
403 before anything else, and SendEmail and SendBulkEmail looked a
stored template up before checking the sender. AWS reports a missing
configuration set, then an unverified sender or return path, then a
missing stored template, and the tenant association 403 last. The
tenant lookup and the DISABLED refusal stay early; the template lookup
and the association check now run inside the send, after sender
verification.

SendBulkEmail and SendBulkTemplatedEmail now verify the sender and
return path once for the whole call, unless no entry has a recipient.

* fix(ses): run the tenant gate inside the send and order v1 bulk like v2

The first half of the tenant gate (lookup and DISABLED refusal) moves
from the v2 controller into the send paths, so the association check
reuses the tenant it found, and a raw message is read for its
X-SES-CONFIGURATION-SET header only when the tenant is DISABLED.

v1 SendBulkTemplatedEmail passes its stored template to the send, which
looks it up after sender verification as v2 SendBulkEmail does.

* fix(ses): read every v1 bulk destination entry like AWS

SendBulkTemplatedEmail stopped reading Destinations.member.N at the first
entry with no addresses, replacement data or tags. An empty ToAddresses
list, which boto3 sends as a bare empty-valued key, ended the list there,
so later entries were dropped and a lone empty entry was answered "At
least one destination is required." instead of reaching the send.

The handler now reads up to the highest member index. A missing Template
(with no TemplateArn), missing Destinations, and an entry without a
Destination or a skipped index are model violations, answered together as
one 400 ValidationError ahead of the address syntax, the template selector
and the destination count. In the send, an entry with no recipient beside
entries with one fails alone with "Missing required header 'To'." on v1
and v2 alike, while a request in which no entry names a recipient still
answers every entry "Destination cannot be empty", ahead of sender
verification and the template lookup. All of it was probed.

* refactor(ses): build the value-less not-null violation in SmithyValidationErrors

Some operations answer a missing member as "Value at '<path>' failed to
satisfy constraint: Member must not be null", without the null that
SmithyValidationErrors.notNull puts after "Value". SesQueryHandler,
SesExportJobService and SesReceiptRuleService each built that text
themselves. SmithyValidationErrors.notNullWithoutValue now builds it
beside notNull, and the three use it.
2026-10-25 10:27:24 -04:00
TATSUNO “Taz” Yasuhiro 29eae434f6 feat(lambdaweb): delete the oldest unused revisions past 50 as AWS does (#6518)
* feat(lambdaweb): delete the oldest unused revisions past 50 as AWS does

When a revision turns Active and the function has more than 50, AWS
deletes the oldest revisions no endpoint routes to until 50 are left.
Failed revisions count and go too. A new Failed revision deletes nothing.

* docs(lambdaweb): place the revision cleanup note after the code copy note
2026-10-25 10:12:15 -04:00
Andre Kurait fe928d67ab perf(stepfunctions): wake nested waits on execution status changes (#6513) 2026-10-25 09:52:12 -04:00
Andre Kurait 985a2ea949 fix(elbv2): admit new targets after one successful health check (#6507)
* fix(elbv2): admit new targets after one successful health check

Preserve recovery thresholds and verify initial admission against a real HTTP target.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(elbv2): scope initial health admission to application targets

Preserve network and gateway target-group health thresholds.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(elbv2): retain initial health checking reason

Preserve the intermediate reason for network and gateway targets below their success threshold.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 09:30:22 -04:00
Jimmy Liu Jia 4244e64833 fix(ec2): honor DHCP options dry runs and restore default set (#6448) 2026-10-25 09:15:34 -04:00
Aniket Shukla ddb94d6c15 fix(batch): paginate multi-node job listings (#6512)
Honor maxResults and nextToken for MNP node summaries using the existing Batch paging conventions. Keep exhausted pages terminal and avoid overflow for large offsets.
2026-10-25 09:09:12 -04:00
Jimmy Liu Jia b90b671c21 fix(cognito): verify admin contact attribute updates (#6474)
* fix(cognito): verify admin contact attribute updates

* fix(cognito): roll back failed admin contact updates

* fix(cognito): preserve verification during overlapping callbacks

* fix(cognito): scope verification cleanup to issued codes

* fix(cognito): retry undelivered admin attribute codes

* test(cognito): update tracked code fixtures

* fix(cognito): share contact updates after sender failures
2026-10-25 08:59:27 -04:00
Aniket Shukla 9c8d2ba58d fix(glue): paginate security configurations (#6496)
* fix(glue): paginate security configurations

Honor GetSecurityConfigurations page size and continuation tokens using the existing Glue paging helper. Enforce the documented 1-200 range and preserve account and region isolation.

* refactor(glue): share action-specific pagination limits

Centralize range validation for security configurations, workflows and triggers. Defer list loading until after validation to preserve dependent-job error ordering and keep the existing default and general helper limit.
2026-10-25 08:33:22 -04:00
Vũ Thế Huy 0a13e4259e feat(redshift-serverless): manage namespace admin credentials (#6491) 2026-10-25 08:24:23 -04:00
Jackson Price 93f1904106 fix(cloudformation): delete the REST API whose Body import fails on create (#6472) 2026-10-25 08:10:19 -04:00
Andre Kurait 73fc6fd0c1 fix(ec2): retain firewall identity during container teardown (#6492)
Capture the primary ENI before asynchronous termination can race with service-side interface release. Cover unregister after the interface list is cleared at the removal boundary.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 08:07:27 -04:00
Mario Toffia bab7af3a21 fix(apigateway): return a usage plan's API stages, throttle and quota (#6360)
* fix(apigateway): return a usage plan's API stages, throttle and quota

* fix(apigateway): refuse a usage plan create whose text or number member is a list, map or wrong scalar

* fix(apigateway): refuse an unknown usage plan quota period before any other create check

* fix(apigateway): check a usage plan create body against API Gateway's vendored request shapes

* fix(apigateway): read a usage plan create body the way API Gateway does

* fix(apigateway): truncate a usage plan's integer limits without a double rounding

* refactor(apigateway): reuse SmithyValidationErrors and a shared request shape lookup
2026-10-25 07:55:54 -04:00
Aniket Shukla da9f7e93b1 fix(cognito): keep attribute updates after sender failures (#6493)
* fix(cognito): keep attribute updates after sender failures

* fix(cognito): withdraw stale codes after sender failure

Invalidate prior verification codes when a failed sender handover retains a different active or pending contact destination. Preserve codes for unchanged contacts the send loop never reached.
2026-10-25 07:48:48 -04:00
Vũ Thế Huy b15bc708fa feat: deliver Redshift audit logs to CloudWatch Logs (#6432)
* feat: deliver Redshift audit logs to CloudWatch Logs

* fix: correct Redshift audit logging and account isolation

* docs: remove Redshift audit logging design document

* fix: reject transaction control in Redshift Data API batches

* fix: track Redshift batch audit changes through savepoints

* fix(redshift-data): guard explicit batch commits against cancellation

* fix(redshift): preserve audit regions and redact ambiguous passwords
2026-10-25 07:42:48 -04:00
TATSUNO “Taz” Yasuhiro 8f3a6eafeb fix(lambdaweb): give the code bucket check the version as s3:VersionId (#6483) 2026-10-25 07:39:20 -04:00
TATSUNO “Taz” Yasuhiro 3dc5d356d0 feat(dynamodb): export the changes of a period as an incremental export (#6480)
* feat(dynamodb): export the changes of a period as an incremental export

* fix(dynamodb): write characters above U+FFFF in export lines as UTF-8

* feat(dynamodb): refuse incremental export periods over 24 hours

* fix(dynamodb): wait for unfinished writes when an incremental export reads items

* fix(dynamodb): write no incremental export record when only the order of set members changes
2026-10-25 07:38:55 -04:00
Matheus Oliveira 9242c7003a fix(organizations): preconfigure the account access role in a new account (#6444)
* fix(organizations): preconfigure the account access role in a new account

CreateAccount was returning a member account with no OrganizationAccountAccessRole, so sts:AssumeRole into it failed on a role that does not exist. The role AWS preconfigures is now created through IAM's own creation, in the new account's namespace: it trusts the management account and carries AdministratorAccess. CreateAccount's RoleName is honored, defaulted to OrganizationAccountAccessRole, and validated with the pattern the reference publishes, including the AWSServiceRoleFor refusal. Invited accounts do not get the role, which is AWS behavior. IAM owns the how behind an interface, the way ScpProvider already decouples IAM's reads of organization policy.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

* fix(organizations): answer RoleName errors with their reasons and provision the role as the new account

CreateAccount's InvalidInputException for a bad RoleName now carries the
reference's Reason, INVALID_PATTERN for a pattern violation and
INVALID_ROLE_NAME for the reserved prefix, asserted at the service, the
wire and the SDK levels. The provisioner itself now runs createRole and
attachRolePolicy inside RequestScopes.callAs(memberAccountId), so
validation, ARN minting and storage stay IAM's own and the hand-built
role with its account-aware storage branch is gone. EntityAlreadyExists
is the one error caught, falling back to the role that is there, and
the integration test builds its requests and auth through the
OrganizationsRequests and EnforcementFixtures helpers.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

---------

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-10-25 07:31:36 -04:00
Hector Ventura e5d93dba5e chore(ci): gate hand-built ARN concatenation, probes and splits (#6482)
The partition-literal gate only saw ARNs that name a partition. Code that
builds, checks or cuts an ARN by hand names none, so it passed the gate while
bypassing the helpers that get every partition right, and the number of
startsWith("arn:") probes grew from 84 to 98 in two weeks.

Three code-scope categories join the per-file baseline:

- arn-concat: "arn:" + ..., except a pattern built from PARTITION_REGEX
- arn-probe: startsWith("arn:")
- arn-split: split(":") on a value named like an ARN

The baseline starts with today's 159 sites, so new ones fail and migrating
existing ones to AwsArnUtils shrinks it. AwsArnUtils's own formatter and
parser carry partition-literal escapes. PartitionSmokeInventoryTest also
counts a concatenated ARN as minting, and AGENTS.md names the categories.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-25 07:16:27 -04:00
Priamo Germosen edbcac33c7 feat(emr-serverless): run Spark job runs in a container (#6469)
A new runner mode, floci.services.emrserverless.runner-mode=docker,
runs each Spark job run. Floci starts one container per run from the
release's EMR Serverless base image on Amazon ECR Public, and starts
spark-submit in local mode in it itself, since the image's own
entrypoint hands over to a script only EMR Serverless supplies. The
default, immediate, keeps today's behaviour.

A docker run is SCHEDULED while its image is pulled and its container
starts, RUNNING once the Spark driver runs, then SUCCESS when it exits
0 and FAILED otherwise, with the exit code in stateDetails, as the
user guide's job run states describe. CancelJobRun, or a BATCH run
passing its executionTimeoutMinutes, makes it CANCELLING until the
driver is stopped, then CANCELLED. A run left by a Floci restart is
FAILED once read.

Floci's shutdown and a state reset stop every driver, one whose image
is still being pulled as soon as its container is up, and a reset
raises a generation the runs' threads check, so none writes its run
back after the storage wipe. A driver a hard stop left running is
removed before this process starts one: driver containers carry the
deployment's owner label, as EC2's and ECS's do, and
reconcile-containers-on-startup turns the removal off, as theirs does,
for two Flocis sharing a daemon. A stop that comes after its run has
ended is dropped, and a cancel before a run starts is read from the
run's state. A driver is watched with a look at its container every
250 ms, as Batch's runner watches its jobs, so a run holds no Docker
connection while its driver runs; a run past its timeout is
CANCELLING while its driver is stopped.

spark-submit gets the entry point, its arguments and the
sparkSubmitParameters (split as a POSIX shell would), after the
spark-defaults of the application's runtimeConfiguration, or the
run's own in its applicationConfiguration, which replace the
application's whole classification ("Only the properties included in
StartJobRun is considered for this classification"); from
emr-spark-8.1.0 the two merge by property, the run's winning, as its
release notes say. S3A takes s3:// and s3a:// paths to Floci's S3 on
every release, with in-memory commit tracking, without which EMR's
committer loses every write; the Glue Data Catalog client goes to
Floci's Glue. The container gets a session for the run's execution
role and AWS_ENDPOINT_URL, as the other containers Floci launches do.
The image is public.ecr.aws/emr-serverless/spark/<release>:latest, or
spark4/ in place of spark/ for an emr-spark-* release, where ECR
Public keeps the AWS runtime for Apache Spark images. image-template
names another image, and docker-network the network.

Docker answers a stop of a container that has already exited with
HTTP 304, which ContainerLifecycleManager logged as a failed stop
after every run that ended by itself. It now counts as stopped, as a
304 on start already counts as started, and so does the runner's stop
for a cancel that finds the driver already exited.

A Hive run fails without running. Log destinations, retries and the
cancellation grace period are not emulated; the driver's output goes
to Floci's log.

Part of #6046 (REAL-2).
2026-10-24 23:03:37 -05:00
Priamo Germosen 68e7b313a8 fix(iam): validate the values each ReplacementValues entry carries (#6478)
ReplacementValueEntry declares Values required and replacementValueListType
bounds it at 1 to 20 values, which the API Reference spells out as "Array
Members: Minimum number of 1 item. Maximum number of 20 items" with
"Required: Yes", and AcquireRole read only the map's own 30-entry cap. An entry
carrying no values and an entry carrying 21 of them both reached the template
lookup and answered NoSuchEntity, where the validation ahead of the operation
answers ValidationError.

A Query list of no members is how an absent member arrives, so the lower bound
of 1 is never reached on its own: an entry carrying nothing is the required
member reading as null. The values are counted by the member being present
rather than by what it holds, the list's members publishing no constraint of
their own, so a value sent empty is a value; they are read through the helper
the other Query services read a list with. The violation names the entry by its
key, the way the account properties map names one, rather than by the index the
request numbered it with, and an entry is read back under the index the request
spelled rather than under the number that index reads as, the parameters that
carry it being named after the spelling. The map's own length is now reported
beside its entries rather than ahead of them, the shape being walked from the
outside in, so a request broken in several places is told all of it at once.

No recorded AWS violation on a map member is on hand to confirm that path
spelling against the nested "Map value must satisfy constraint" form, so the
role template docs say it is Floci's reading and what would change it.

Five tests: an entry with no values at all, a 21st value in one entry with 20
of them carried through to the 404, an entry whose only value is empty, an
entry numbered 01 read under that spelling, and 31 entries with two of them
left empty answered in one message. The role template docs say what is read
before the lookup, so they name the entries too.
2026-10-24 23:03:26 -05:00
TATSUNO “Taz” Yasuhiro cd2dac708d feat(lambdaweb): check the code bucket versioning and policy as AWS does (#6479) 2026-10-24 23:33:50 -04:00
Priamo Germosen 3053b35b84 feat(codeartifact): add UpdatePackageVersionsStatus and DisposePackageVersions (#6435)
Moves package versions between Published/Unlisted/Archived (UpdatePackageVersionsStatus)
or permanently to Disposed with real asset deletion (DisposePackageVersions), for generic
and every container-backed format. Both share the same all-or-nothing batch semantics,
NOT_FOUND/MISMATCHED_REVISION/MISMATCHED_STATUS/NOT_ALLOWED error codes, and SKIPPED
fallback confirmed against the User Guide's own worked examples.

Container-backed formats (maven/npm/pypi/nuget) get a new in-memory status-override store,
since none of their sidecars have a native status concept beyond existing-or-not; generic
already had status/revision on its own record. GetPackageVersionAsset now 404s for
Archived/Disposed versions (assets undownloadable per the User Guide), and
ListPackageVersions correctly surfaces real Archived/Disposed/Unlisted data instead of the
previously-unreachable filtering branch.

Verified end to end against all four real sidecar containers, not just mocks.
2026-10-24 22:14:01 -05:00
Priamo Germosen 64f4f9e489 fix(iam): check a create's tags on its own and its tagging action (#6452)
Under IAM enforcement a request that tags the resource it creates was
checked only for the operation's own action. AWS also checks the
service's tagging action, as the SNS API reference says: "To be able to
tag a topic on creation, you must have the sns:CreateTopic and
sns:TagResource permissions." A caller allowed to create but not to tag
could set at creation the tags that a tag-based policy trusts. The
operation's own action did not see the tags either: aws:RequestTag and
aws:TagKeys were set only for Logs, S3 and EC2 RunInstances, so a
policy allowing sqs:CreateQueue only with aws:RequestTag/team never
matched, and one denying it when aws:RequestTag/team is null refused a
tagged create.

AWS's Service Reference lists the tagging action among each operation's
authorized actions and marks the actions that only tag, but does not say
which request member carries the tags; botocore's models do. A new
generator, tools/aws/regen_iam_tag_on_create.py, joins the two into
src/main/resources/aws/iam-tag-on-create.json: 581 operations over 69
namespaces, those Floci authorizes by operation. An
operation is in it when the reference lists, beside its own, an action
that only tags and adds tags; its tags are read from a top-level member
named Tags, TagList, TagSpecifications or the like that holds a tag list
or map. 569 are read from the table (579 members), CloudWatch Logs
CreateLogGroup is checked by hand as before, and 11 carry no tags this
file can read, each with its reason. A correction gives SQS's Query
name, Tag.N, and one drops an EC2 IPAM pool's allocation rule, which
tags nothing.

When a request carries tags, IamEnforcementFilter checks the tagging
action for each resource's tags apart, with them as aws:RequestTag/<key>
and aws:TagKeys, and, where the action takes it, the operation as its
namespace's CreateAction key (ec2:CreateAction is RunInstances for an
instance launched with tags). A tag specification's tags are checked on
the resource of the type it names, from the ARN the reference gives the
type with its name left open (arn:aws:ec2:<Region>:<account>:instance/*),
which the table carries for EC2 and RDS; other tags on the resources the
operation is checked on. Lambda's CreateFunction is now checked on the
function its body names, which the reference gives it, rather than on *,
so a grant scoped to the function covers both its action and its tags.
The operation's own action is checked with the
same two keys, once for each resource's tags, where the reference lists
them for it or for a resource it acts on (542 of the 569), keeping any a
service's own condition keys set. The table is keyed by operation, so
the filter now carries the operation it resolved beside the action,
which differs for an operation AWS authorizes under another name
(Budgets' CreateBudget is budgets:ModifyBudget).

The tags are read as the Floci handler that applies them reads them, so
the check sees the tags the resource gets. A form's are read under the
SDK's spelling, from 1 to the first number with no key, and under the
further spellings the RDS, DocumentDB, Neptune, ElastiCache and Redshift
handlers read, numbered as each numbers them; EC2's from every tag
specification under either TagSpecification spelling, to the first
naming no resource type. A body's member is read under its own name, and
CloudWatch's PutMetricAlarm and PutCompositeAlarm also under tags, and a
CodeDeploy tag as Key and Value or key and value, each as text whatever
it holds, as its handler reads. The
tagging action is also checked for tags under any other spelling a
handler might read (a name, key or value in any case, any list spelling
and number, an object's structures), so none a handler applies goes
unchecked. The operation's own action is checked with every reading, its
handler's, any other spelling's, and none where its handler reads none,
and refused if any is denied, so a deny on a tag holds and a required tag
counts only where the handler applies it.

make iam-tag-on-create-check, part of aws-data-check, re-derives every
member from the pinned botocore; make iam-tag-on-create-verify, part of
iam-data-verify, checks every operation against AWS, and the IAM data
drift workflow also runs on a change to the table or its generator.

Not checked: sts:TagSession in a role's trust policy, service-specific
request tag keys such as rds:req-tag, EC2 RequestSpotFleet's nested
tags, and the REST services whose routes no rule maps yet.
2026-10-24 22:12:56 -05:00
Vũ Thế Huy 36e244f104 feat: support parameters in Redshift Data API batches (#6475) 2026-10-24 22:59:41 -04:00
Andre Kurait 2525e38179 fix(elbv2): preserve TLS handshakes during certificate reloads (#6473)
* fix(elbv2): preserve TLS handshakes during certificate reloads

Reuse the generation-aware TLS key manager for ELBv2 and publish fully loaded SNI snapshots without replacing the active SSL context. Preserve the previous snapshot on load failure.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(elbv2): cover TLS resumption and wildcard selection

Verify TLS 1.2 resumption with unchanged material and fresh authentication after certificate replacement or removal. Separate the wildcard certificate from the default and document the full-handshake boundary.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(elbv2): document retained TLS sessions on reload

Exercise stateful and stateless TLS 1.2 resumption with shared client contexts. Document the retained-session certificate boundary while preserving full-handshake refresh behavior.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-24 22:51:13 -04:00
Jackson Price c517e4eb76 fix(autoscaling): tag member instances with aws:autoscaling:groupName (#6471)
* fix(autoscaling): tag member instances with aws:autoscaling:groupName

Auto Scaling adds the aws:autoscaling:groupName tag, valued with the
group's name, to every instance it launches or attaches, and removes it
when the instance is detached. Floci never set it, so filtering EC2
instances on tag:aws:autoscaling:groupName found none of a group's
members.

- Launches add the tag after the launch template's instance tags and the
  group's PropagateAtLaunch tags, so the group's actual name wins over
  any stored tag with that key.
- AttachInstances applies the group's PropagateAtLaunch tags and the
  group-name tag to the instances EC2 holds. It refuses the whole batch
  with ValidationError when an instance already belongs to a group, so
  one group cannot overwrite another group's tag, and an instance named
  twice in one request joins once. An ID EC2 has no instance for still
  joins, as before, but gets no tags, which would otherwise outlive it
  in EC2's DescribeTags.
- DetachInstances removes only the group-name tag, and only where it
  still names that group. It goes through a new service-owned EC2 tag
  delete, because the public DeleteTags refuses aws: keys.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(compat): cover the Auto Scaling group-name tag through the SDK

Drives launch, attach, a refused second attach and detach with the AWS
SDK for Java and checks the instance tags EC2 reports after each step.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-24 22:46:08 -04:00
Andre Kurait 75d7923290 fix(cloudwatch): validate manual state reason lengths (#6470)
Check modeled reason lengths before state mutation, preserving required StateReason validation and both regression groups from current main. Use the Unicode-aware Smithy formatter.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-24 22:24:06 -04:00
Andre Kurait 3d2e17bbbd fix(elbv2): reject gateway listener protocols (#6465)
* fix: reject explicit protocols on gateway load balancer listeners

Validate gateway listener Protocol before create publication or modify mutation. Preserve omitted-field updates and cover Query rejection and state preservation.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* test(elbv2): omit protocol in gateway listener fixture

Keep the successful gateway listener lifecycle fixture aligned with the accepted Protocol prohibition. Assert protocol preservation after an action-only update without introducing a default-protocol contract.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(elbv2): preserve gateway listener defaults

Default gateway listener responses to GENEVE and keep omitted protocol and port unset through CloudFormation create and update. Preserve application and network listener defaults. Cover direct Query and stack lifecycle behavior.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-24 22:03:48 -04:00
Andre Kurait 87cd8ead73 fix: require StateReason before changing alarm state (#6466) 2026-10-24 21:56:48 -04:00