Commit Graph
5307 Commits
Author SHA1 Message Date
Priamo Germosen d13d4cceb6 test(rds,cloudformation): load PgJDBC before the engine-version test connects, and wait for rollbacks (#8272)
The RDS engine-version test opened its connections through DriverManager,
which hands out only a driver the caller's class loader can see. After a
Quarkus restart the driver registered earlier belongs to another loader, so
whenever a shard ran the test after an application of another profile it
failed with "No suitable driver found", as main's shard 2 did at
01d61afd8a. It now loads PgJDBC through its own loader first, as the
blue/green and managed-password rotation tests do.

CreateStack answers before its execution ends, so the two rollback tests
that read ROLLBACK_COMPLETE right after creating the stack raced it; the
nested-stack one saw CREATE_IN_PROGRESS in main's shard 5 at 01d61afd8a.
Both now wait for the status with the class's awaitStackStatus.
2026-11-14 00:34:56 -04:00
Priamo Germosen d9a43012de feat(codeartifact): retain versions from repository-to-repository upstreams (#8261)
Repositories can already declare up to 10 same-domain upstream repositories
via CreateRepository/UpdateRepository, but nothing ever consulted that list:
a native package-manager request for a version missing locally 404ed even
when an upstream had it, and CopyPackageVersions's includeFromUpstream flag
was accepted on the wire but documented as a no-op.

Adds a shared, cycle-safe breadth-first resolver over the upstreams graph
(UpstreamRepositoryResolver), reused by validateUpstreams (now rejecting
transitive cycles, not just direct self-reference, with an independent
uncapped reachability check so a cycle whose closing edge sits beyond the
resolution search cap still gets caught), by four new per-format importers
(Maven/npm/pypi/NuGet) wired into each native controller's existing "local
miss" hook, and by CopyPackageVersions's includeFromUpstream flag for both
generic and container-backed formats.

Widens the existing external-connection claim/fence/origin machinery with a
RetentionOriginKind (EXTERNAL_CONNECTION vs UPSTREAM_REPOSITORY) so the same
mechanism now also backs same-domain retention, and wires the previously
unused INTERNAL_UPSTREAM package-group restriction type through
isUpstreamRetentionBlocked the same way EXTERNAL_UPSTREAM already was.

Each upstream-repository importer brackets every candidate it reads with the
same beginUse/endUse lease DeleteRepository's own cleanup already respects,
so a concurrent delete of a candidate can't race a read of it; resolves a
version from its real staged byte count rather than an optional, sometimes
-1 Content-Length header; and, for Maven, continues past a candidate whose
own metadata names nothing eligible instead of stopping the whole search
there, and allows SNAPSHOT versions through the metadata merge the same way
the asset path already does. pypi's candidate selection also now checks for
the exact requested filename, not just a version match, and never swallows
a sidecar read failure silently. A generic version's upstream-origin claim
is now cleared on delete, republish, or a later direct overwrite copy, so
it never keeps reporting a stale source. npm's "treat a retained version as
the package default" guard now also catches an upstream-repository claim,
not just an external-connection one.
2026-11-14 00:22:31 -04:00
noy-solvin 7ade98e010 fix(eks): lease stable VPC private IP and pass --node-ip to k3s across restarts (#7980) 2026-11-14 00:07:48 -04:00
TATSUNO “Taz” Yasuhiro 287c44b8f8 fix(dynamodb): refuse an UpdateExpression operand that reads an absent attribute (#8266)
DynamoDB refuses the whole update when a path in a SET value reads
nothing. That covers a missing attribute or map key, a path through a
scalar, a list index past the end, and an if_not_exists whose path and
fallback are both absent. It reads the operands of a sum or list_append
one by one, so the first absent operand or the first of the wrong type
gives the error. A sum operand of the wrong type gets the same message
as list_append and ADD. In TransactWriteItems both errors cancel the
transaction with a ValidationError reason.
2026-11-14 00:05:22 -04:00
Jackson PriceandAndre Kurait f087599883 fix(emr-serverless): release capacity after driver address failure (#8250)
Signed-off-by: Andre Kurait <AndreKurait@users.noreply.github.com>
Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-14 00:01:18 -04:00
Jackson PriceandAndre Kurait e201709363 fix(storage): preserve account namespaces during legacy fallback (#8251)
Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-13 23:39:06 -04:00
Daniël van Ziel 486f0e4604 fix(ec2): keep each instance in the reservation of its RunInstances call (#8257)
RunInstances now stores its reservation id on each instance it launches,
and DescribeInstances groups instances by it, so the ReservationId
RunInstances answers stays the same on every call and instances launched
together are listed together. An instance Floci did not launch keeps a
stable reservation of its own, and a provider's reservation id is kept.

Closes #8255
2026-11-13 23:34:24 -04:00
mrfelek 5cf3c780d4 fix(storage): create a host bind directory only on the Docker host, MemoryDB included (#8247)
* refactor(storage): create a host bind directory only on the Docker host, in one place
* fix(memorydb): leave the bind directory to Docker when Floci runs in a container
* test(memorydb): build each test's container manager through one helper
2026-11-13 23:32:52 -04:00
TATSUNO “Taz” Yasuhiro 235179313b fix(lambda): leave NextMarker out of the last page of durable execution state (#8263)
The invocation event's InitialExecutionState carried "NextMarker": "",
and so did the last page of GetDurableExecutionState. AWS leaves the key
out in both places, and Floci now does the same. A page with operations
left still carries NextMarker.
2026-11-13 23:32:26 -04:00
TATSUNO “Taz” Yasuhiro ea8d875cad fix(lambda): show a durable step's attempt and result by its status (#8264)
* fix(lambda): show a durable step's attempt and result by its status
2026-11-13 23:31:16 -04:00
Ghassan Gedeon Achi 01d61afd8a fix(athena): take templated partition values from the object path (#8242) 2026-11-13 23:16:19 -04:00
Murtuza Chhil 4cd8ab991e feat(paymentcryptography): the TR-34 key block (#8136)
* feat(paymentcryptography): the TR-34 key block
* fix(paymentcryptography): the rules a TR-34 key block has to follow
* docs(paymentcryptography): what a TR-34 key block is
* test(paymentcryptography): the TR-34 round trip shows the key that came back
* test(paymentcryptography): one exchange for the TR-34 tests
* fix(paymentcryptography): the nonce and the token a TR-34 import names
* docs(paymentcryptography): the nonce and the token a TR-34 import names
* fix(paymentcryptography): a TR-34 key block is read whatever follows it
* fix(paymentcryptography): a TR-34 header carries the optional blocks
* chore(paymentcryptography): the imports of the round-trip test in order
* fix(paymentcryptography): the TR-34 header is the reference's header
* fix(paymentcryptography): the TR-34 header, stale comments
* fix(paymentcryptography): the TR-34 comments match the code
2026-11-13 23:10:35 -04:00
Ghassan Gedeon Achi 8185a340c4 fix(athena): report a HUGEINT result column as bigint (#8254) 2026-11-13 23:05:50 -04:00
Priamo Germosen ea4427ca58 fix(elbv2): hold a listener's default certificate apart from its list (#8240)
A listener kept one certificate list with its default at the head, which left
four readings of the reference unanswered. DescribeListenerCertificates names
"the default certificate and the certificate list", telling them apart by
IsDefault and naming a default the list holds as well twice, "once with
IsDefault set to true and once with IsDefault set to false", where Floci
answered one flat list and no IsDefault at all. A listener's own Certificates
member is "the default certificate for the listener", and IsDefault "is not
included in the output when describing a listener", where Floci named every
certificate the listener held there. ModifyListener replaces the default alone,
the Application Load Balancers guide saying of a default added to the
certificate list that it "is used with the SNI protocol even if it is replaced
as the default certificate", where Floci dropped the list with the replacement.
And a listener made through the API starts with an empty certificate list,
which the same guide says of every listener not made in the console.

The default and the list are two members of the listener now, with the served
set, the default first and the list behind it, derived for the data plane and
for the certificate references. A listener saved before this reads the head of
its one list as the default and the rest as its certificate list.

The member create and modify take is held to one certificate, the reference
saying of it on both operations "You must provide exactly one certificate." No
published sentence gives the code a longer list is answered with, so it is the
ValidationError this service answers a request shape with, which is Floci's
reading rather than a sentence of AWS's.

AddListenerCertificates is left taking a list. Its member reads "You can
specify one certificate per call", while the Application Load Balancers guide
adds three certificates in one call of its own, so the sentence and the example
disagree and the example is the behaviour to keep. The operation answers with
the certificate list the add leaves behind now, which is what its output member
describes, rather than with the certificates the call named.

TooManyCertificates is answered for the first time. The published quota is
"Certificates per Application Load Balancer (excluding default certificates):
25", the number DescribeAccountLimits has been reporting all along, so the
listeners of one load balancer share that ceiling, their default certificates
are left out of the count, and the add that would pass it is refused. The
ceiling is the load balancer's rather than the listener's, so it is counted
where the write is made, under the lock a listener's certificate write takes:
two adds on sibling listeners would otherwise each count the other's list as it
stood before the other wrote and pass it together. Create reaches no quota, a
default certificate not being counted, and modify reaches it through its
default alone, a default the certificate list holds as well not being counted
while it is the default, so replacing it starts counting that entry. The number
in hand is the Application Load Balancer one, and a TLS listener on a Network
Load Balancer is held to the same ceiling, which is Floci's reading rather than
a published number of its own.

Removing a default certificate the certificate list holds as well stays
refused: "You can't remove the default certificate for a listener" names no
exception for that case.
2026-11-13 22:40:59 -04:00
Priamo Germosen 58930c9278 fix(iam): derive the request resources without corrections (#8187)
The request-resources generator carried 106 CORRECTIONS over 22
namespaces, each a hand-written entry for one operation. They are gone,
and no Floci service states what an operation acts on either: a service
only looks up what it holds where an entry asks it to. Every operation
the corrections covered is now read from botocore's shapes and
documentation and the Service Reference, or, in two places, from a fix
to the handler whose behavior the correction worked around.

One table stays stated by hand, MEASURED, for what AWS was measured to
check where neither botocore nor the Service Reference says it. The
generator admits an entry only when it links to its measurement, names
types the reference does not list for the action, and gives what the
rules do not; review admits only real AWS evidence. It holds DynamoDB
ListTables, on table/* (#7336's probes and AWS's recorded denial), and
Step Functions SendTaskSuccess, SendTaskFailure and SendTaskHeartbeat,
on the token's activity or state machine (#7277's probes and AWS's
recorded denial). The generator's older hand tables (FOUND_BY, THROUGH,
MINTED_IDS, UNQUALIFIED, QUALIFIED_MEMBERS, ID_TARGETS,
CLIENTS_NOT_READ, READ_IN_HAND_BUILT) are unchanged.

Generator rules: documentation naming the type fills it when it says the
member is a name or an id as the variable is; an ARN head noun, or a
name ending in ArnList, makes an ARN member; fields of a top-level
structure and of the structures in a map are members; the id a create
answers beside another type's ARN is that type's (RunJobFlow's JobFlowId
and ClusterArn); an account-id member fills AccountId; a qualified
member fills first, and a ResourceId variable is the type's own id,
filled by a member named ResourceId before one named after the type. An
ARN member whose pattern names another service, or which its
documentation gives as the ARN of another type of the service, is not
read unless named after a type the action acts on. Each SDK client's
model is read apart, resources the clients disagree on carry their
endpoint, and a v2 load balancer's type is picked by its Type enum and
documented default. A variable no member fills is fixed to the one
value of an enum named after it that the operation's name gives
(CodePipeline's Custom action type owner), and a type named only by an
optional member documented as holding what the operation is about is
reached through that thing when the member is left out (EMR's
ModifyInstanceGroups, through its instance groups).

Reader and service changes: a member left out, or a JSON null, names
the service's default where it has one (Athena's primary workgroup and
AwsDataCatalog, EventBridge's default bus, per PutEvents entry); two
types whose formats differ by one variable are told apart by whether the
member names that default (EventBridge rules); a name for an id variable
is found by the service (Rekognition stream processors, Logs
deliveries); a bare id of the type an operation is about reaches the
acted-on type through its service (the project CodeBuild holds a build
under, the delivery destinations of the source a Logs
DeleteDeliverySource deletes). A member given a JSON null names nothing,
as the handlers read it, wherever the reader fills a variable from it,
so an EMR ClusterId or an IAM Identity Center TargetId of null no
longer names cluster/null or account/null. The table no longer has
absent or before, and the reader refuses a resource key it does not
know.

Checks that change where the old correction had no evidence of AWS
behind it: a Step Functions Local <stateMachineArn>#<test case> is
checked as given; Macie CreateMember on member/*; IAM Identity Center
ProvisionPermissionSet for ALL_PROVISIONED_ACCOUNTS on its instance and
permission set alone, the request-scoped account pinning that served the
account check removed; Logs DeleteDeliverySource on its delivery
destinations; a CodeBuild build id of no build Floci holds on *.

Handler fixes: Athena's ListDatabases, ListTableMetadata and
GetTableMetadata read Glue whichever catalog was named, so they were
also checked on AwsDataCatalog. They now refuse a catalog whose metadata
is not the account's Glue Data Catalog with MetadataException and are
checked on the catalog they name. Cost Explorer's cost reads ignored
BillingViewArn, so they were checked on *. They now answer the primary
billing view alone, refuse another with ResourceNotFoundException, and
are checked on the view they name.

The passed-roles table had drifted from the Service Reference and is
regenerated. AWS now passes CreateTrainingSession's role to
training-session.sagemaker alone, so its RoleArn is read rather than
left unread for naming two services, and AWS lists Secrets Manager's new
AssociateCrossAccountReplica, which the pinned botocore does not model
yet. The generator now leaves an operation no pinned model has unread on
its own, until a bump brings it in, in place of a hand-written entry for
each, so the two there were are gone.

The tag-on-create table had drifted too: AWS no longer lists a tagging
action for Network Firewall's CreateProxy, CreateProxyConfiguration and
CreateProxyRuleGroup, and lists five operations the pinned botocore
does not model yet. It is regenerated.
2026-11-13 22:40:31 -04:00
mrfelek fa9190e110 fix(ec2): honour DryRun on the instance start, stop, reboot and terminate calls (#8252) 2026-11-13 22:38:25 -04:00
TATSUNO “Taz” Yasuhiro 4313fc5fac fix(lambda): leave out the children of a durable context closed without ReplayChildren (#8248)
Floci listed every operation in the invocation event and in
GetDurableExecutionState. AWS leaves out the operations under a child
context closed without ReplayChildren=true, and everything below them.
Both now use one filtered view, and a context closed without
ContextOptions shows ReplayChildren: false. The checkpoint answer is
unchanged.
2026-11-13 22:37:23 -04:00
TATSUNO “Taz” Yasuhiro f0de926e02 fix(lambda): accept a durable update without ParentId and reword its consistency errors (#8249)
* fix(lambda): accept a durable update without ParentId and word its consistency errors like AWS
2026-11-13 22:33:13 -04:00
Suja Shaj 55a7d95146 refactor(elbv2): compare DescribeTargetHealth's targets through sameTarget (#8246)
DescribeTargetHealth checked a Targets filter against the registered
targets by comparing the Id and effective port itself. It now uses
ElbV2HealthChecker.sameTarget, as RegisterTargets and DeregisterTargets
do since #8199, so all three tell registrations apart the same way.
No behaviour change.
2026-11-13 22:29:53 -04:00
Priamo Germosen 3e02ff995f fix(docker): launch an image in Floci's own ECR without the registry base (#8243)
With floci.docker.image-registry-base set, ContainerBuilder.resolveImage put
the base in front of every image, so an ECR image Floci had rewritten to its
loopback registry (localhost:<port>/<account>/<region>/<repo>), or a
repositoryUri it handed out, became <base>/localhost:<port>/...: a reference
Docker refuses, and no image a mirror holds. An ECS task, an image-backed
Lambda function or an EMR Serverless application with a custom image could not
run from Floci's ECR with the base set.

- An image in a registry on the Docker host's loopback (localhost, a
  .localhost name, Floci's localhost.floci.io alias or a loopback address in
  any spelling, checked with NetworkExposureGuard.isLoopback, with or without
  a port) is launched as it is; every other image still goes under the base.
- The setting's Javadoc, its environment variable row and the ECR page say so.
2026-11-13 22:28:27 -04:00
mrfelek 3ae36eb7be fix(ec2): honour DryRun on the volume and tag calls (#8244)
CreateVolume, DeleteVolume, AttachVolume, DetachVolume, CreateTags and
DeleteTags ignored DryRun=true and carried out the request. The AWS EBS
CSI driver's controller sends a dry run CreateVolume, tagged
CSIVolumeName=IopsLimitDryRun, every time it starts in order to probe
the IOPS limits. AWS answers it with DryRunOperation and creates nothing,
while Floci created a real 4 GiB volume, with its backing file, on every
restart. A dry run DeleteVolume really deleted the volume.

Each of these calls now runs the checks its real path makes and then
answers DryRunOperation (HTTP 412) without changing anything, the
convention ModifyVolume already follows. CreateVolume answers once its
parameters and tag specification are read. DeleteVolume first requires
the volume to exist and be detached. AttachVolume requires the volume,
the instance, its state, the Availability Zone and the device to pass.
DetachVolume requires the attachment to match and the root device rules
to allow it. CreateTags checks the ids, the keys, the lengths, that each
resource exists and the per-resource limit. DeleteTags checks the ids
and the keys. No backing device is created, deleted, attached or
detached by a dry run.

Every handler read of DryRun goes through dryRun(p), which refuses a blank
or non-boolean value with InvalidParameterValue, as DeleteSecurityGroup and
DeleteLaunchTemplateVersions already did by hand; both now use it, and
checkDryRun sits on it. Every DryRunOperation comes from
Ec2Service.dryRunOperation().

Tests: a DryRun value that is not a boolean is refused on the six volume
and tag calls; under IAM enforcement a dry run needs the caller's current
permission. AwsSdkErrors.assertAwsError replaces the copies the route and
S3 enforcement tests kept.
2026-11-13 17:22:19 -04:00
Tyler Webb 39c29de635 feat(ssm): generate the IAM request resources for SSM (#8203)
* feat(ssm): generate the IAM request resources for SSM
* test(ssm): enforce IAM on parameter reads, deletes and tagging
* refactor(ssm): derive the SSM request resources without corrections
* fix(iam): read a Parameter Store name as its parameter's ARN holds it
* fix(ssm): refuse tagging a resource type other than a parameter
* test(ssm): read an unslashed parameter by its ARN under a grant on it
* test(iam): expect ssm parameter in the vendored unqualified types
* fix(ssm): keep tagging documents and associations
* refactor(iam): drop the SSM operations read in the hand-built namespaces
* chore(iam): resync Route 53 record set protection resource types
2026-11-13 17:15:17 -04:00
Niels Kootstra 68a5f2a7f0 fix(cur): check every request against the model's constraints (#8236)
* fix(cur): check every request against the model's constraints
* fix(cur): refuse report names the emitter cannot write to S3
* test(iam): modify a report definition with a billing view ARN the model accepts
2026-11-13 17:10:30 -04:00
mrfelek 392d79ef2f fix(ec2): leave the volume helper's bind directory to Docker in a container (#8245) 2026-11-13 17:03:24 -04:00
Oleksandr Nikolaichuk b4b659bd88 fix(cloudformation): replace exactly what the change set says for AppConfig profiles and ElastiCache clusters (#8204) 2026-11-13 17:00:32 -04:00
Mark a827daebfc fix(cognito): accept the sign-in alias in challenge responses (#8229)
In a pool with UsernameAttributes the challenge sessions keep the user's own
username (the sub), while the user signs in with, and answers with, the email.
NEW_PASSWORD_REQUIRED, MFA_SETUP, SOFTWARE_TOKEN_MFA and the SMS and email MFA
codes compared USERNAME with that stored sub, so a response that carried the
email was rejected with "Invalid session for the user." or "Session does not
match user".

The AWS Developer Guide ("Working with user attributes") says that with
username attributes the email address or phone number can be used in place of
the username in all APIs except ListUsers. Only the SRP password verifier is
documented to need USER_ID_FOR_SRP (AdminInitiateAuth ChallengeParameters), so
the SRP paths stay as they are.

isSessionUser first compares the sign-in keys, so a pool without aliases and
its case sensitivity behave as before. Only when they differ is the supplied
value resolved to its user and compared with the user of the session, which is
what the custom-auth challenges already do. The alias of another user is still
rejected.

Tests: CognitoAliasMfaIntegrationTest covers TOTP (MFA_SETUP and
SOFTWARE_TOKEN_MFA), SMS MFA and NEW_PASSWORD_REQUIRED in an alias pool, each
with a response for another user that must be rejected. docs/services/cognito.md
lists the behaviour next to the custom-auth rule.

applyNewPasswordAttributes read the user back with the USERNAME of the
response. That value can now be the email the user signed in with, so a
userAttributes.email in the same response made it stop naming the user once
the attribute was applied. The password had been changed and the session
consumed by then, and the response failed with UserNotFoundException without
a way to retry. It now takes the username of the user from the session. The
custom-auth challenge, which already accepted the alias, gets the same.

isSessionUser also looked up the username of the session. Every session holds
the username of its user already, and adminGetUser scans the pool, so that
lookup was a second scan for nothing. The supplied value is resolved once and
compared with the username of the session.

The new test answers NEW_PASSWORD_REQUIRED with the email and a new email,
then signs in with the new one.

validateCustomUsername and the CUSTOM_CHALLENGE check now use isSessionUser,
so a single check decides whether a USERNAME names the session's user.
Move latestSms into CognitoRestAssuredUtils and share it between the
alias and message MFA tests.

Closes #8228
2026-11-13 16:58:05 -04:00
Giovanni Brethenoux 63b8da91f5 fix(cognito): pass the groups' IAM roles to the pre token generation trigger (#8134)
The pre token generation event always carried
groupConfiguration.iamRolesToOverride = [] and preferredRole = null, so a
trigger that reads the role Cognito computed for the user (to copy it into
the access token, for instance) got nothing. AWS fills both from the
user's groups: every group role, and the role of the lowest-precedence
group that has one, none when groups tied at that rank name different
roles.

Build groupConfiguration after checking that the pool has a pre token
generation trigger, read the pool's groups once instead of once per
membership, sort the test imports, and pin that a group without a role
does not outrank one with a role.

Closes #8222
2026-11-13 16:34:20 -04:00
Kal Cramer f1a6260a94 feat(cloudformation): add AWS::EFS::FileSystem, MountTarget and AccessPoint (#8074)
A template can now create the three EFS types. They are provisioned
through EfsService, so a stack and a direct API call see the same
file systems, mount targets and access points.

- Ref and Fn::GetAtt resolve for every type.
- Updates change ThroughputMode, ProvisionedThroughputInMibps,
  BackupPolicy, LifecyclePolicies, FileSystemPolicy,
  FileSystemProtection and tags in place; create-only properties
  replace the resource, and a failed update puts back what it changed.
- Backups are off on create unless BackupPolicy is ENABLED or the file
  system is One Zone, and ThroughputMode provisioned requires
  ProvisionedThroughputInMibps.
- Required properties are validated from the registry schema.

Ref #7972
2026-11-13 16:30:10 -04:00
Giovanni Brethenoux 294ad9679f fix(verifiedpermissions): accept tokens issued by Floci's own Cognito pools (#8133)
* fix(verifiedpermissions): accept tokens issued by Floci's own Cognito pools
* fix(verifiedpermissions): verify emulated pool tokens with Cognito's own check
2026-11-13 16:25:52 -04:00
Vũ Thế Huy eea61cd42a feat(redshift): project DynamoDB zero-ETL changes into a current-state table (#8180) 2026-11-13 16:18:31 -04:00
mrfelek 5c08fff5d7 fix(ssoportal): name IAM Identity Center role sessions after the user (#8162)
* fix(ssoportal): name IAM Identity Center role sessions after the user
* refactor(identitystore): read a user through findUser in one place
2026-11-13 16:11:06 -04:00
mrfelek 25811dd4c6 fix(eks): share a cluster node's mounts so CSI drivers can mount volumes (#8207) 2026-11-13 16:09:32 -04:00
Mario Toffia 6341708315 fix(cloudformation): delete a custom resource a committed update replaced (#8223) 2026-11-13 16:05:42 -04:00
irodotos7 2dc93aa087 fix(iam): derive EC2 instance authorization from AWS metadata (#8150)
Authorize generated instance targets with their own stored tags before mutation. Return malformed Query errors as XML HTTP 404, reuse enforcement group cleanup, and update generated-target regression coverage. Regenerate IAM metadata on current main.

Closes #8159
2026-11-13 16:05:26 -04:00
Andre Kurait f64ca5ef16 test(rds): bound Docker requests without replaying creates (#8194) 2026-11-13 15:59:22 -04:00
Kenshin Okinaka 898fee8bb1 fix(ses): validate the topic in SetIdentityNotificationTopic (#8202)
* fix(ses): validate the topic in SetIdentityNotificationTopic
* test(ses): share the SNS topic helpers in the notification topic test
* refactor(ses): build the notificationType enum violation with the shared helper
2026-11-13 15:58:23 -04:00
TATSUNO “Taz” Yasuhiro 8c31942e84 fix(dynamodb): apply parenthesized and nested operands in an UpdateExpression (#8215)
DynamoDB reads an operand in parentheses like the bare operand, so
SET a = (:v) + (:w) adds two numbers and list_append((:l), :m) joins two
lists. It also reads the fallback of if_not_exists as an operand, so
if_not_exists(a, if_not_exists(b, :v)) gives the first of a, b and :v
that exists.
2026-11-13 15:52:40 -04:00
Jackson Price 44eb096ed5 fix(appsync): require definition and format when creating types (#8157) 2026-11-13 15:42:57 -04:00
Jackson Price d05710e1d9 test: require confirmed parked-store waits in service races (#8193)
Reject an unfinished worker that never reaches a blocked or waiting state.
Cover the observation timeout with an interruptible spinning worker.

Reuse the assertion in endpoint, runtime-tag and repository-template tests
while retaining each case's resource and error checks. Remove the unused
AgentCore wait helper and ECR timeout-only checks.

Reuse the existing worker-state assertion with a configurable observation
window. Keep the five-second default for callers and use 20 ms for the
unblocked-worker regression. Also reject a completed competing operation.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-11-13 15:40:17 -04:00
Priamo Germosen d3c8412977 fix(emr-serverless): run a job's containers for its application's architecture (#8208)
An EMR Serverless run's driver and executors ran on the Docker host's own
platform whatever architecture the application named, so an ARM64
application ran amd64 images on an x86 host, and its arm64-only
dependencies with them.

- With floci.services.emrserverless.honour-architectures on, a run's
  containers run the image for its application's architecture,
  linux/amd64 for X86_64 and linux/arm64 for ARM64: the release's
  images, published for both, and a custom image, pulled for that
  platform.
- Off by default, as Lambda's honour-architectures: tools such as
  Terraform name X86_64 unless told otherwise, so on an arm64 host
  every run would move to emulation. Off, or for an application that
  names none, a run stays on the Docker host's own platform.
- DockerPlatforms.forArchitecture is the one mapping from an AWS
  architecture name, in either case, to its Docker platform. ECS task
  definitions, Lambda functions, EC2 images and the AMI build tool had
  a copy each and now use it, keeping their own special cases: EC2's
  i386, the tool's amd64 and its refusal of anything else.

A host of another architecture needs emulation to run the image.
2026-11-13 15:35:33 -04:00
Priamo Germosen a852078fc9 feat(codeartifact): add Package Groups support (#8206) 2026-11-13 15:33:11 -04:00
Oleksandr Nikolaichuk b3f9401e9f refactor(iam): one decision record behind the policy evaluator's answer (#8200) 2026-11-13 09:55:57 -04:00
Jimmy Liu Jia 9ee8ba4e11 fix(kinesis): route partition keys by MD5 hash range (#8198)
* fix(kinesis): route partition keys by MD5 hash range

* fix(kinesis): preserve reshard ranges and index writes
2026-11-13 09:18:30 -04:00
Ryan Lewis 9bb384903a fix(sns): reject Publish to a PhoneNumber not in E.164 format (#8127)
* fix(sns): reject Publish to a PhoneNumber not in E.164 format
2026-11-13 09:12:36 -04:00
Jimmy Liu Jia 19a1742761 fix(s3): reject unrestored archived GetObject reads (#8196) 2026-11-13 09:06:05 -04:00
Tyler Webb e41cc9b88d fix(sqs): reject empty and malformed message attribute values (#8061)
SendMessage and SendMessageBatch on both the JSON and query protocols now answer InvalidParameterValue for a message attribute whose StringValue or BinaryValue is empty or whose BinaryValue is not base64, instead of storing an empty value or failing with a 500 on the decode. In a batch, only the entry carrying the bad attribute fails; the other entries are still sent.

An attribute missing its DataType, or carrying neither a StringValue nor a
BinaryValue, was silently dropped while an empty value was rejected. Both now
fail with InvalidParameterValue, using the wording LocalStack's snapshot tests
record: 'Missing required parameter DataType' and the existing non-empty value
message.

SendMessageBatch now writes the failed entry as soon as its attributes fail
to parse and skips it, rather than carrying the exception to the send loop.
The query handler parses SendMessage and SendMessageBatch attributes through
one helper.

A batch entry with an invalid message attribute was left out of the batch
payload total, so a batch over MaximumMessageSize only because of that
entry was accepted and the bad entry reported as a per-entry failure.
LocalStack and moto both sum every entry before any per-entry check, so the
total now comes from each entry's raw body and attributes, independent of
attribute validation, and such a batch fails whole with BatchRequestTooLong.

The empty-value error derived the base type with split("\\.")[0], which
throws ArrayIndexOutOfBoundsException, surfacing as a 500, for a DataType
of "." or "..". Take the substring before the first '.' instead.

A DataType whose base type (the part before the first period) is not
String, Number or Binary, such as "Strin", "Foo" or ".", was accepted.
SendMessage now rejects it with InvalidParameterValue, and SendMessageBatch
fails only that entry. The match is case-sensitive, and the message follows
LocalStack's check_attributes in localstack-core/localstack/services/sqs/
provider.py, which names the parameter literally as
MessageAttributes.Attribute_name.DataType. LocalStack's f-string drops the
space in "prefixed with"; the space is kept here.

The empty-String-value, missing-DataType and DataType-prefix messages come
from LocalStack's check_attributes. The empty Number and Binary value and
invalid base64 messages are Floci's own wording, unconfirmed against AWS,
so those cases now assert the error code only.

computeMessageSize now counts each attribute through the same helper the batch payload check uses on raw wire fields, so the name, type and value byte rule lives in one place.

Adds JSON and Query batches whose bodies fit the 1 MiB limit but whose invalid entry's attribute pushes the batch over it, plus service tests for UTF-8 byte lengths, decoded binary lengths, the invalid-base64 fallback and computeMessageSize.

Signed-off-by: Tyler Webb <tyler.webb@verkada.com>
2026-11-13 09:01:59 -04:00
Niels Kootstra 236e20003f fix(ssm): keep document and association tags and tag them by resource type (#8132)
CreateDocument and CreateAssociation now keep their Tags, and AddTagsToResource, ListTagsForResource and RemoveTagsFromResource pick a document by name or an association by ID from ResourceType instead of always looking up a parameter. A document's tags are returned in its DocumentDescription and ListDocuments entry.

Read the SSM tag calls, CreateDocument and CreateAssociation from the
generated request-resource table instead of building their ARNs by hand.
A ResourceType enum value now picks its resource type ignoring case and
hyphens, ResourceId fills it whatever its kind, and a variable named for
leaving out the leading slash drops it, as a parameter ARN does.

Closes #7959
2026-11-13 08:56:30 -04:00
TATSUNO “Taz” Yasuhiro 410ed8e817 fix(dynamodb): refuse bad function calls and operand types in an UpdateExpression (#8195) 2026-11-13 08:50:26 -04:00
TATSUNO “Taz” Yasuhiro ede4ebf6b0 feat(lambda): pass the X-Ray trace header through durable chained invokes (#8189)
* feat(lambda): pass the X-Ray trace header through durable chained invokes

* fix(lambda): give a PassThrough invocation a new Parent for an unsampled header without one
2026-11-13 08:30:31 -04:00
Suja Shaj 7d7c87338f fix(cloudformation): register a target group's Targets and keep them in step on update (#8199) 2026-11-13 08:27:19 -04:00