Commit Graph
3688 Commits
Author SHA1 Message Date
Jimmy Liu Jia 0e955cf07b fix(ssm): include saved key ids in parameter history (#6575) 2026-10-25 23:17:41 -04:00
Andre Kurait b5532028e1 fix(cloudformation): preserve nested dynamic reference opt-out (#6574)
* fix(cloudformation): preserve nested dynamic reference opt-out

Keep nested intrinsics on the RDS credential path outside the general dynamic-reference stage. Reuse the existing suspension counter and restore it after every exit.

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

* test(cloudformation): preserve joined-reference test documentation

Move the nested opt-out test above the joined-string Javadoc so the comment documents its original test. Preserve both test bodies unchanged.

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

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 22:53:18 -04:00
Matheus Oliveira f1816dbb44 fix(ec2): disable Nagle on both socat sockets of a published port forward (#6572)
socat relayed a client's second small write only after the first was
acknowledged, so delayed ACKs stretched every PostgreSQL statement close
to ~44 ms. Add nodelay (TCP_NODELAY) to both addresses: the listener's
option reaches the accepted socket in the fork child, and the connect
side covers the instance-facing one.

Closes #6176

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-10-25 22:43:15 -04:00
Andre Kurait d903074d75 fix(cloudformation): preserve numeric GetAtt attributes (#6564) 2026-10-25 22:37:26 -04:00
Jackson Price 47226f76d1 fix(stepfunctions): page GetExecutionHistory and honor reverseOrder (#6555)
* fix(stepfunctions): page GetExecutionHistory and honor reverseOrder

GetExecutionHistory read only executionArn and includeExecutionData.
Every call returned the whole history, oldest event first: maxResults
and nextToken were ignored, and reverseOrder=true still listed
ExecutionStarted first, so a caller asking for the newest event with
reverseOrder and maxResults=1 got the oldest one instead. The API
reference pages the history by 100 events unless maxResults says
otherwise, allows at most 1,000, returns a nextToken while events
remain, and lists the newest event first under reverseOrder.

Page the history by event id. Ids rise in the order events are
recorded, so a page starts after the last event the previous page
returned, even while the execution is still recording events. An
omitted or zero maxResults uses 100; a maxResults outside 0 to 1,000
or a nextToken outside 1 to 1,024 characters is a ValidationException,
as for ListActivities. A token names its execution and its
reverseOrder, so it is refused with InvalidToken for any other, while
maxResults and includeExecutionData may change from one page to the
next.

Tokens are signed with SignedMarkers and carry their issue time. An
edited token, one issued before a restart, or one issued more than 24
hours earlier is refused with InvalidToken; the 24-hour expiry is the
one the API reference documents. The execution is named in the token
by the SHA-256 of its ARN, so a token stays under 200 characters
however long the state machine and execution names are.

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

* test(stepfunctions): page execution history with the SDK paginator

Run a 60-state execution, whose history of 122 events is longer than
one default page, and read it with the AWS SDK for Java: a plain call
returns 100 events and a nextToken, the paginator at 25 events a page
returns every event once, oldest first or with reverseOrder newest
first, and reverseOrder with maxResults=1 returns ExecutionSucceeded
with a token for the rest.

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

* test(stepfunctions): give the ListExecutions filter test a clock

StepFunctionsListExecutionsFilterTest, merged from upstream main, built
the handler with the two-argument constructor. On this branch the
handler takes the application Clock for the lifetime of execution
history tokens, so the merged tree did not compile. Pass the system
clock, which ListExecutions does not read.

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

* test(stepfunctions): pin the page-size checks of ListActivities and history

ListActivities and GetExecutionHistory each check maxResults and
nextToken on their own, with the same bounds and messages, and page by
100 when maxResults is omitted or 0. Pin the messages of both and the
ListActivities default before the two move onto one helper.

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

* refactor(stepfunctions): share the page-size checks of ListActivities and history

ListActivities and GetExecutionHistory each checked that maxResults is
0 to 1,000 and nextToken 1 to 1,024 characters, with the same messages,
and turned an omitted or zero maxResults into 100. Move that into
StepFunctionsPaging.pageSize, which validates the pair and returns the
page size, so the other Step Functions list operations can use it
later. Behaviour, messages and the order of the checks are unchanged.

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

* test(stepfunctions): say why the paginator test ignores cleanup failures

The SDK paginator test deleted its state machine in a catch-all that
neither logged nor explained the failure it ignored. Say why it is
safe: the state machine has a unique name, and a cleanup failure must
not hide the test's own result.

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

* test(stepfunctions): pin the page-size bounds and the order of the checks

Pin that ListActivities and GetExecutionHistory accept the bounds
themselves (a 1- or 1,024-character nextToken reaches the token
lookup, and ListActivities takes maxResults=1000), and that both read
maxResults and nextToken before bounding either. The test's cleanup
deletes its activities without asserting, so a failed delete can no
longer hide the test's own failure.

The last check is the one place where the shared helper changed
behaviour, which the commit that added it wrongly said it did not. A
history request with maxResults=1001 and a non-string nextToken used
to report the maxResults bound; it now reports "nextToken must be a
string.", as ListActivities always has. The new test fails that way
on the commit before the helper and passes after it.

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

* docs(stepfunctions): describe StepFunctionsPaging by its two callers

The class comment said every Step Functions list operation shares this
page request. Only ListActivities and GetExecutionHistory do;
ListStateMachineAliases still checks its own bounds. Name the two
callers and say that both fields are read before either is bounded.

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

* test(stepfunctions): share one request helper between the paging tests

StepFunctionsPageSizeIntegrationTest and
StepFunctionsExecutionHistoryPaginationIntegrationTest each carried
the same private call() and content type. Add StepFunctionsRequests in
the testing package, as CfnRequests and EmrRequests serve their
services, and move both tests onto its sfn(action, body). The requests
they send are unchanged.

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

* test(stepfunctions): take the request body of sfn() as a map

sfn() took any Object and said it serializes the body as JSON, which
holds for a map but not for a string, which RestAssured sends as is.
Both callers pass maps, as the private helpers it replaced took, so
type the parameter as Map<String, ?>.

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

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-25 22:37:10 -04:00
Priamo Germosen c5e873ff84 fix(iam): check ARNs inside structures and EventBridge's resources (#6561)
The table of request resources read only top-level members, so an
operation naming its resource inside a structure was checked on *:
SetRulePriorities' RulePriorities[].RuleArn and a state machine alias's
routingConfiguration[].stateMachineVersionArn. A member ending in Arn or
Arns one level inside a structure, or inside each of a list's
structures, now names a resource as a top-level one does, the value's
format deciding which of the action's types it is. Such a member never
fills a variable, holds a type or names a create's parent. A form's list
is read to the first element without the field, as the ELB handler
loops.

EventBridge joins the table (71 operations). Its rules are named by the
rule's name on the event bus EventBusName names, by name or by ARN, and
on the default bus when it names none ("If you omit this, the default
event bus is used"), whose rules are rule/<name>, with no bus.
Corrections give the eight rule operations the default bus's rule when
EventBusName is default or absent, and the custom bus's otherwise, with
two new keys: unless, the complement of when, and absent, the value a
missing member is read as. DescribeEventBus naming no bus is checked on
event-bus/default ("If you omit this, the default event bus is
displayed"). A member whose botocore pattern takes an ARN before a name,
(arn:...:event-bus/)?<name>, is recorded as arnOf: an ARN given for it
is read as that type's one variable, and the resource is in the ARN's
account and Region, so a bus of another account, its default bus
included, names that account's rule, as DescribeRule's CreatedBy says,
checked as given and as the caller's own, which Floci acts on. An ARN
leaving its account and Region empty, which EventBridge's handler takes
as the caller's bus of that name, names the caller's, and a JSON null
for a member read as a value when absent is absent too, as the handler's
asText(null) reads it, so a null EventBusName is the default bus.
EventBridge V2's client, AWSEventsV2 over Smithy RPC v2 CBOR, which
Floci does not serve, shares the operations' names and is left out
(clientsNotRead), and verify ignores it.

EventBridge mints a connection's ARN as connection/<name>/<id> and an
API destination's as api-destination/<name>/<id>, as botocore's ARN
patterns give them, and checks a connection on it (the user guide grants
events:RetrieveConnectionCredentials on connection/<name>/*), while the
Service Reference's formats stop at the name. MINTED_IDS records those
types (mintedIds), and a request naming one by its name is checked on
the ARN its service stores it under, which a StoredResourceArns the
service registers finds for the caller in the request's Region
(EventBridgeService does), or on <name>/* when there is none yet, a
create's included.

Not in this change: PutEvents, whose entries each name their bus, stays
on *, and UpdateEventBus with no Name, which no document says is the
default bus, stays on * too.
2026-10-25 21:21:53 -05:00
Priamo Germosen 8d5c135f0a refactor(emr-serverless): let classic EMR reuse the Spark runner (#6562)
REAL-2's runner ran EMR Serverless job runs only: it read its image and
network from the EMR Serverless settings, named and labelled every driver
emr-serverless, and built spark-submit's command line from a job run's
JobDriver. Classic EMR steps are to run in the same containers, in the
same EMR Serverless images, so the runner stays in the emrserverless
package for the emr package to use, and takes what is service-specific
from the job:

- the service, which names the driver's container, labels it and prefixes
  its log, and whose leftover drivers removeLeftoverDrivers(service) sweeps;
- the release, the image template and the Docker network, which the
  service takes from its own image-template and docker-network. The runner
  still works out the image inside its run, the release's public EMR
  Serverless image unless the template names another (spark4/ for an
  emr-spark-* release), so a template that names no image still fails the
  run with its reason;
- the application: what follows Floci's own settings on spark-submit's
  command line. The job run service builds it from sparkSubmitParameters,
  split as before, the entry point and its arguments.

SparkJobRunner, its Outcome factories and splitParameters become public,
for the emr package.

No behaviour changes: EMR Serverless job runs get the same image, network,
container name, labels, credentials and spark-submit arguments as before.
2026-10-25 21:15:46 -05:00
Priamo Germosen 4c55ec6b77 feat(sts): vend a signed web identity token for the calling identity (#6517)
GetWebIdentityToken is the last operation the pinned STS model publishes and
Floci did not dispatch, which takes STS to 11 of 11. It answers "a signed JSON
Web Token (JWT) that represents the calling Amazon Web Services identity",
signed by STS and verifiable against the keys the issuer publishes.

The issuer is IAM's. Outbound web identity federation mints one issuer URL per
account, so the token names it as iss and the operation reads the switch behind
it: while the feature is off the answer is
OutboundWebIdentityFederationDisabledException, not the FeatureDisabled the IAM
getter answers. SessionDurationEscalationException is the other refusal with a
published trigger, for a caller on temporary credentials asking for a token
that would outlive its own session, "beyond what was granted when the session
was originally created". JWTPayloadSizeExceededException is modelled and
nothing published says what the maximum payload is, so no size is invented here
to refuse a request with.

A temporary credential with no live session behind it is refused as expired
rather than read as a caller that cannot be identified. IamEnforcementFilter
answers ExpiredTokenException for one and it never reaches the operation, but
with enforcement off, or in the window between that check and this one, the
session lookup comes back empty and the caller would fall to the account root
ARN this file hands an unresolvable caller, as GetCallerIdentity does. A token
is not a request: its subject is signed and outlives the call, so a session
already gone does not get one that speaks for the account, while an unknown
long-term key keeps the stand-in. The filter's wording is shared rather than
copied a second time.

The declared constraints are read ahead of all of it, as #6402 put them
elsewhere in this package: Audience required and 1 to 10 members of 1 to 1000
characters, SigningAlgorithm required at a fixed length of 5, DurationSeconds
60 to 3600 defaulting to 300, and Tags at most 50 with its keys and values held
to their own lengths and pattern. A member sent empty is a member that is
present, breaking its length rather than reading as absent, and a list member's
violation names the index the request sent rather than the number it reads as,
which is what #6478 settled.

The claim layout is the IAM User Guide's. The standard OIDC claims sit at the
top level, iss, aud, sub, iat, exp and jti, with the caller's ARN as the
subject, and the custom claims are nested under the https://sts.amazonaws.com/
namespace the guide names: aws_account for the account the token was asked for,
source_region for the region it was asked from, and the request's tags under
request_tags. "All these claims may not be present in a token at the same
time", so the organization, principal tag and session context claims the guide
also lists are left out rather than invented, and request_tags is absent from a
token whose request named none. The nesting is also what keeps a tag off a
claim STS sets, a tag named exp being a key under request_tags rather than the
claim that chooses the token's lifetime.

Two answers are readings and docs/services/sts.md says so. The model publishes
no enum for SigningAlgorithm, only the fixed length, so a five-character value
that is neither RS256 nor ES384 is answered with this package's enum violation
over the two values the reference names. The global endpoint refusal borrows
the wording AWS publishes for AssumeRoot, the note for this operation giving
none of its own.

Signing goes through a new core.common helper rather than a third copy of the
assembly: Cognito and EKS each already sign a JWT, and EksOidcService moves
onto it here. ES384 signs through the JDK's P1363 variant, so the signature is
the raw R || S pair JWS defines rather than the DER sequence a default ECDSA
signer returns. Each account's key is minted on first use per algorithm and
stored, so a restart does not invalidate a token already handed out.

Eleven tests over the wire, including the claim set with the namespaced
account and region, both signature shapes by their exact lengths, the tags
arriving under request_tags rather than as claims of their own, the ceiling the
caller's own session puts on a token, the refusal for a session already gone,
and the constraints read while the feature is off.
Beside them, a unit test verifies a minted token against the public half of the
stored key for both algorithms, a length being no evidence of what was signed,
and holds that one token's signature does not verify over another's claims; and
the handler test takes the session ceiling to its own boundary on a fixed clock,
where a token ending exactly with the session is issued, one ending a second
later is refused, and nothing is minted on the refusal.

What is not here is the other half: nothing publishes the verification key yet,
so the discovery documents the issuer URL would host are not served, and the
docs say that plainly.
2026-10-25 21:15:35 -05:00
Matheus Oliveira 56196fec1c fix(s3): report the owner and ACL grantees as a canonical user id (#6549)
* fix(s3): report the owner and ACL grantees as a canonical user id

S3 reported the 12-digit account id where AWS reports the account's
canonical user id: the bucket owner in ListBuckets, the owner and the
multipart initiator in ListParts, and every CanonicalUser grantee and
Owner the ACL responses name. All of them now answer the canonical id,
a 64-character lowercase hex string Floci derives as the SHA-256 of the
account id, so the same account answers the same id across calls,
restarts and storage modes and two accounts never share one. The
account id stays the internal identity; only the emitted value changes,
and ACLs persisted by an older Floci keep serving the form they store.
Owner evaluations, the public-access checks and bucket-policy
CanonicalUser principals accept the canonical id and the account id
alike, so stored policies and scripts written against the old form keep
working.

Closes #6242

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

* test(s3): say why the cleanup catches stay silent

The two new compatibility cleanup catches swallowed without a word,
which the guide allows only for a named, explained tolerance. Both now
name the reason: cleanup must not mask the assertion.

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

* test(s3): expect the canonical owner in the namespace ACL assertions

The cross-account object metadata test still expected the raw account id
in the ACLs, which the canonical owner id broke, and its ACCOUNT_B
assertFalse checks passed whatever the ACL held. All four assertions now
name the accounts the way the ACLs do, through AwsCanonicalUserId.

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

* test(s3): share the compatibility cleanup between the two tests

The explained cleanup catches landed on the wrong method, a helper that
was already on main, leaving the new canonical owner test with bare
catches. One deleteObjectAndBucketQuietly helper now holds the commented
catches and serves both tests.

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

---------

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-10-25 22:11:19 -04:00
floverfelt 89be5c1742 feat(lambda): make reactive S3 sync toggleable and optionally async (#6548)
* feat(lambda): make reactive S3 sync toggleable and optionally async, reporting LastUpdateStatus while it runs

* fix(lambda): run async reactive S3 syncs as the uploader's account, keep InProgress continuous, and queue the latest source per function

* fix(lambda): clear a failed reactive sync's LastUpdateStatus on UpdateFunctionConfiguration, and test async syncs from a second account

* test(lambda): share LambdaCodeSourcesProfile for the async reactive sync test, reuse LambdaWebZips, and extract the failed-sync setup
2026-10-25 21:55:13 -04:00
Andre Kurait bffffedb88 fix(ec2): reject invalid IPv4 managed prefix list entries (#6566)
Reject malformed and non-network IPv4 CIDRs before customer-managed prefix list creation or modification. Preserve IPv6 spelling and existing missing/family validation.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 21:53:50 -04:00
Vũ Thế Huy 2a5f734777 feat: support managed credentials in Redshift restore (#6515) 2026-10-25 21:43:14 -04:00
Kenshin Okinaka 7f5f1b554d feat(ses): add SES v2 GetEmailAddressInsights (#6573)
* feat(ses): add SES v2 GetEmailAddressInsights

Answer GetEmailAddressInsights offline with verdicts derived from the
address alone. Malformed and over-long addresses answer 200 with every
verdict LOW, the operation is not gated on Virtual Deliverability
Manager, and only suppressionlist@simulator.amazonses.com reports a
missing mailbox, as real SES does. Domains reserved by RFC 2606 and
RFC 6761 have no valid DNS records; every other domain is taken to
have them.

* docs(ses): scope the non-ASCII insights deviation to unquoted parts

A send does not inspect a quoted local part, so GetEmailAddressInsights
rates "é"@gmail.com like any other address. Say so in the deviation
note and pin it, with the unquoted and domain cases, in unit tests.
2026-10-25 21:41:42 -04:00
Aniket Shukla b29c8f8a60 fix(ecr): paginate image listings (#6544)
* fix(ecr): paginate image listings

* fix(ecr): fetch digests only for the selected page

* fix(test): await ECR tag release after stream reset

* refactor(ecr): remove unused image listing overload
2026-10-25 21:37:26 -04:00
Jimmy Liu Jia 671e4bfb7c fix(ecr): return per-repository scanning batch failures (#6569) 2026-10-25 21:33:27 -04:00
Jackson Price e1726e8394 fix(cloudformation): report and continue a failed REST API update rollback (#6568) 2026-10-25 21:30:47 -04:00
Jimmy Liu Jia 6b21aebdc3 feat(ram): support GetResourceShareAssociations (#6558)
* feat(ram): support GetResourceShareAssociations

* test(ram): cover association listing through Java SDK

* refactor(ram): share association visibility filter
2026-10-25 21:26:20 -04:00
TATSUNO “Taz” Yasuhiro 17191a9d7b fix(dynamodb): read PartiQL number literals as DynamoDB does (#6567)
A literal may begin with its point, with or without a sign: .5, -.5
and +.5e1 are numbers. DynamoDB reads the exponent as a 32-bit integer
and refuses a literal whose exponent, or whose scale once the exponent
is applied, does not fit one, with the "not well formed" error. Floci
answered those with a 500. A second point ends the number, so 1.2.3
leaves a token over instead of failing with a 500.
2026-10-25 21:25:38 -04:00
TATSUNO “Taz” Yasuhiro c7b3d04e5b fix(lambdaweb): do not clean up the revision a LatestRevision endpoint leaves (#6565)
AWS deletes it only when the next revision turns Active.
2026-10-25 21:23:21 -04:00
Matheus Oliveira 9b4e27c80a fix(iam): authorize KMS operations against the key named in the request (#6458)
* fix(iam): authorize KMS operations against the key named in the request

KMS is JSON 1.1 posted to /, so the path-based key extraction never
found a key and every action was evaluated against key/*: a policy
allowing kms:Decrypt on one key refused that very key, and a policy
restricted to a key restricted nothing. Enforcement now derives the
request's resources the way the KMS permissions reference gives them:
the key-scoped operations name the key the KeyId member names, resolving
an id, an alias or an ARN to the stored key's own ARN; Decrypt without
a KeyId reads the key out of the CiphertextBlob; the alias operations
name the alias and the keys the alias pages give; CreateKey,
GenerateRandom, ListKeys, ListAliases and ListRetirableGrants stay at *.
A request nothing resolves falls back to key/* so the handler answers
its own NotFoundException. ReEncrypt stays the single action AWS splits
into ReEncryptFrom and ReEncryptTo, evaluated against both keys.

Closes #6256

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

* fix(iam): authorize ReEncrypt and the grant operations against the keys they act on

A ReEncrypt without SourceKeyId resolved its source through Decrypt's
reader and trusted a KeyId member ReEncrypt does not even have, so a
caller allowed only on key B could send ciphertext encrypted by a
denied key A, name B everywhere, and get A's data back under B. The
source now resolves the way the handler decrypts: SourceKeyId when the
request names one, otherwise the key the CiphertextBlob itself names.
A RetireGrant carrying only a GrantToken was checked against key/*,
which a key-scoped policy never matches; it now answers the key its
grant belongs to, with the documented key/* fallback for a token nothing
resolves. RevokeGrant and the KeyId-plus-GrantId form of RetireGrant
now name the grant's own key beside the key the request names, so a
pair naming one key while the grant belongs to another can no longer
retire or revoke it.

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

* fix(iam): resolve a RevokeGrant target by its GrantId, never a GrantToken

The revoke target lookup preferred a GrantToken the RevokeGrant handler
never reads: a request could name the grant of an allowed key in a token
while its GrantId named the grant of a denied one, pass the check on the
token's key, and have the handler revoke the other grant. The lookup now
passes the GrantId alone, so the checked key is the key of the grant the
handler deletes.

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

* fix(iam): fall back when a CiphertextBlob is not a string

A Decrypt or ReEncrypt carrying a CiphertextBlob that is not a string
made binaryValue answer null on the enforcement path and blow up before
the handler could answer its own client error. A blob that is not text
now names every key the account holds, the documented fallback, so the
request is authorized and the handler answers the error AWS answers for
a malformed blob.

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

* fix(kms): share the grant token scan and its enforcement lookup

retireGrant scanned the region's grants for a token the same way the
enforcement lookup did; both now go through one findGrantByToken. The
builder's revoke target resolves through the shared grantKeyArn helper
with the members each handler actually reads, the token and the id for
RetireGrant and the id alone for RevokeGrant, whose handler never reads
a token. The two test javadocs that described the enforcement gap as a
review's finding now describe the gap itself.

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

---------

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-10-25 21:19:18 -04:00
Andre Kurait 74a932bc50 fix(stepfunctions): honor explicit Lambda task qualifiers (#6563)
Use the effective Lambda qualifier for optimized task authorization, target resolution and executor handoff. Keep embedded qualifier conflict validation aligned with Lambda.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 17:53:47 -04:00
Andre Kurait 615e12dcff refactor(concurrency): add bounded work queues and versioned signals (#6547) 2026-10-25 17:33:29 -04:00
Jimmy Liu Jia bcae24f5fc feat(ssm): match parameter path label filters (#6560)
* feat(ssm): match parameter path label filters

* fix(ssm): match labeled version metadata in path filters
2026-10-25 17:29:17 -04:00
jwoa95 5f63ffb761 fix(rds): terminate target sessions during PostgreSQL restore (#6550) 2026-10-25 17:29:09 -04:00
Ridwan a79cc4d8c4 fix(bedrock-agentcore): delete a memory's events when the memory is deleted (#6554) 2026-10-25 17:21:51 -04:00
Jackson Price 6acd90640d feat(cloudformation): provision AWS::EC2::PrefixList (#6481)
* feat(cloudformation): provision AWS::EC2::PrefixList

An AWS::EC2::PrefixList was stubbed: Ref returned "<LogicalId>-<8 hex>",
Fn::GetAtt the literal "<LogicalId>.<Attribute>", and EC2 held no list, so
a route given its Ref pointed at nothing. Ec2NetworkCfnProvisioner now
creates the customer-managed list through Ec2Service. Ref is its pl- id,
and Fn::GetAtt serves PrefixListId, Arn, OwnerId and Version, the
attributes the registry schema declares.

The schema has no create-only property, and create-only-properties.json
now says so. Without the entry, the engine's name heuristic took
PrefixListName for create-only, so a rename was planned as a replacement
of the list and of the routes and rules that reference it. An update
changes the list in place: its name, capacity, entries and tags. Adding or
removing entries makes a new version and a rename does not, as the EC2 API
reference says. EC2 refuses a request that removes and adds the same CIDR,
which is how a description changes (Terraform's
aws_ec2_managed_prefix_list records the error), so such an entry is added
back by a second ModifyManagedPrefixList call. The first call carries
everything EC2 could refuse, and the capacity the second needs is checked
before the first, so a change EC2 refuses leaves the list as it was. A
rollback puts the prior name, capacity, entries and tags back, and Version
follows the list.

Two updates fail before anything changes: another AddressFamily, which no
EC2 call can change on an existing list, and a new MaxEntries together
with changed Entries, which the CloudFormation and EC2 references both say
cannot change at once. MaxEntries is required to create a list, as the
CloudFormation reference says (aws/aws-cdk#35360 reports the deploy
failing without it); an update that leaves it out keeps the capacity.
Entries and Tags are brought to the template when it, or the previous one,
declares them, so entries or tags no template declared stay. Tags go
through CreateTags after the create, as on the other types in the
provisioner, so EC2 checks them; a tag it refuses fails the create and
removes the new list. A list gone out of band, or a stub an older Floci
left, is replaced by a new one, and a stack delete tolerates only
InvalidPrefixListID.NotFound.

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

* test(cloudformation): cover AWS::EC2::PrefixList through boto3

A stack's prefix list is created, resized, given new entries and deleted
through the CloudFormation and EC2 clients of the pinned boto3: Ref and
Fn::GetAtt name the list EC2 describes, a resize keeps the version, new
entries make version 2 of the same list, dropping Tags removes them, and
the list is gone after the stack delete.

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

* refactor(cloudformation): share optionalInt through ProvisionContext

Ec2NetworkCfnProvisioner and ElbV2CfnProvisioner each carried the same
private optionalInt. An absent, null or AWS::NoValue property stays unset;
a value written into the template, a literal blank included, has to be an
integer; anything else fails with ValidationError "Value of property
<name> must be an integer." It is now ProvisionContext.resolveOptionalInt,
beside resolveOptional, and all seven callers use it: the prefix list's
MaxEntries, the target group's Port and four health check settings, and
the gateway listener's Port.

The two copies differed only in Integer.parseInt against Integer.valueOf
and in building the error through a helper, so neither provisioner
changes behaviour. ProvisionContextTest covers the method directly.

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

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-25 17:16:19 -04:00
Tal Efraim 2ba3118373 fix(sns): report FilterPolicyScope only for subscriptions with a filter policy (#6532)
* fix(sns): report FilterPolicyScope only for subscriptions with a filter policy

* fix(sns): hide a stored FilterPolicyScope while the subscription has no filter policy
2026-10-25 17:07:44 -04:00
jwoa95 c910de57cc fix(ecs): add opt-in dynamic awsvpc host ports (#6509) 2026-10-25 16:56:08 -04:00
Matheus Oliveira f4cd3110e7 fix(elasticache): honor SecurityGroupIds on ModifyReplicationGroup (#6467)
* fix(elasticache): honor SecurityGroupIds on ModifyReplicationGroup

A modify that names SecurityGroupIds now replaces the whole stored list
on the replication group, so DescribeCacheClusters reports the new
groups on every member with Status=active; a modify that names none
leaves the memberships untouched, which the Query protocol cannot
distinguish from an empty list anyway.

Closes #6463

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

* fix(elasticache): read the modify security groups through the shared parse

optionalSecurityGroupIds walked the two Query spellings a second time;
it now reuses parseSecurityGroupIds with the same isEmpty-to-null check
the user group lists use, and the new compatibility test declares its
responses with explicit types.

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

---------

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-10-25 16:55:00 -04:00
Andre Kurait 7c9c8ee398 fix(stepfunctions): retain Lambda qualifiers for provisioned capacity (#6540)
Carry the invoked Lambda alias or version into execution capacity selection after authorization, preserving the unqualified path.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-25 16:52:20 -04:00
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