Commit Graph
4143 Commits
Author SHA1 Message Date
Andre Kurait fbd07bd6f5 fix(iam): include direct ViaAWSService condition context (#7133) 2026-10-31 17:48:04 -04:00
Abhigya 8c475d664b fix(elbv2): accept request headers up to 64 KB as AWS does (#7115)
* fix(elbv2): accept request headers up to 64 KB as AWS does

ALB listeners used Vert.x's default 8 KB maxHeaderSize, so a request with
several JWT cookies got 431 Request Header Fields Too Large. AWS ALBs accept
up to 64 KB of request headers. Raise the listener limit and the target proxy
client's response-header limit to match.

* fix(elbv2): apply the ALB response header and request line quotas

Size the proxy client for the 32 KB response header quota and raise the
listener's request line limit to 16 KB. The large-header test now stays
under the 16 KB single-header limit, sends a 10 KB query, and reads the
data plane's constants.
2026-10-31 17:40:19 -04:00
Jimmy Liu Jia 10f54bb554 refactor(servicecatalog): centralize clock timestamp conversion (#7132) 2026-10-31 17:39:53 -04:00
Andre Kurait cbb563f24c fix(sts): apply role session duration limit to AssumeRole (#7131) 2026-10-31 17:36:45 -04:00
Ridwan 2d68edc4b7 fix(bedrock-agentcore): save a runtime's create tags with the runtime (#7130)
* fix(bedrock-agentcore): save a runtime's create tags with the runtime

The controller added the tags to the runtime after the service had already
stored it. WAL and persistent storage had written the record by then, so the
tags were lost on a crash unless something later saved the runtime again. The
same code ran on a clientToken replay and merged the retry's tags into the
original runtime.

Pass the tags into createAgentRuntime and set them before storage.put, as
CreateMemory does. The replay path returns before that point, so it no longer
changes them. CloudFormation keeps the existing overload because it applies
tags in its own rollback-guarded step.

Fixes #7126

* test(bedrock-agentcore): tighten the runtime create tag tests

The replay test ignored the second create's ARN, so it would still pass if
the retry created a second runtime. Assert that both creates return the same
ARN.

The WAL test started its try block after setup, so a failure there left both
stores and their compaction threads running. Guard each store from the point
it is constructed.
2026-10-31 17:20:19 -04:00
Priamo Germosen 300e62a0ed feat(codeartifact): retain NuGet packages from a public external connection (#7104)
NuGet's native v3/package route can now retain a missing package version
from a repository's own public:nuget-org external connection and serve
it, instead of always 404ing, matching AWS's documented external-
connection behavior already shipped for Maven.

- A version's retention origin is claimed atomically before any fetch
  happens, rejecting a later attempt under a different connection
  outright ("checking asset origins").
- Package-level upstream: BLOCK is respected, including when the
  restriction and the request spell the package name differently
  (nuget/pypi names are case/punctuation normalized everywhere this
  service tracks a package; PackageOriginConfig now keys by that same
  normalization too, instead of the caller's raw spelling).
- A retained version reports originType: EXTERNAL and its source
  connection through DescribePackageVersion/ListPackageVersions, for
  any format that retains (not just Maven).
- A concurrent retention attempt racing a real client's own direct
  push is never mislabeled as an external import: existence in the
  real sidecar alone no longer implies success, only a confirmed claim
  under the exact same connection does.
- Retained bytes are counted toward DescribeDomain's assetSizeBytes,
  never double-counted on a concurrent retry.
- A real HTTP redirect from the public repository is followed instead
  of being treated as a 404.
- Fixed-version retention only; resolving a floating/omitted version by
  merging in nuget.org's own version listing is left for a follow-up,
  the same baseline scope Maven's own external-connection work shipped
  first.

New: NuGetExternalConnectionClient (the outbound client for
public:nuget-org) and CodeArtifactNuGetExternalConnectionImporter (the
retention decision logic), wired into CodeArtifactNuGetController.

The claim/fence/deploy machinery CodeArtifactService already used for
Maven's own external-connection retention is generalized into
format-parameterized methods so npm and pypi can reuse it too, with
Maven's own public methods kept as thin, behavior-identical delegates
over the generic ones.
2026-10-31 16:16:06 -05:00
Priamo Germosen 2b6a8b4e66 feat(emr-serverless): give a job run's driver its driverEnv and S3 archives (#7107)
In the docker runner mode the user guide's way of giving an EMR
Serverless job run its Python libraries did nothing. "Building a Python
virtual environment" packs a virtualenv into an archive in S3 and
submits the job with:

  --conf spark.archives=s3://.../pyspark_venv.tar.gz#environment
  --conf spark.emr-serverless.driverEnv.PYSPARK_DRIVER_PYTHON=./environment/bin/python
  --conf spark.emr-serverless.driverEnv.PYSPARK_PYTHON=./environment/bin/python
  --conf spark.executorEnv.PYSPARK_PYTHON=./environment/bin/python

Floci set no driverEnv variable on the driver's container, and Spark in
local mode unpacks spark.archives into a temporary files folder of its
own once the driver's Python has started, not into the working
directory. With the variables set, the driver could not start: "Cannot
run program "./environment/bin/python"".

Now:

- a spark.emr-serverless.driverEnv.<KEY> property ("Option that adds
  environment variables to the Spark driver"), from the run's
  spark-defaults or a --conf in its sparkSubmitParameters, which wins,
  is an environment variable of the driver's container, replacing one
  of Floci's own of that name;
- each archive of spark.archives (which spark-submit's own --archives
  sets, winning over a --conf, as in Spark) in Floci's S3 is read as the
  run's account, streamed into the created container and unpacked into
  its working directory before spark-submit starts, under the name after
  its # or else its file's name, as Spark's Utils.unpack does it (.jar
  and .zip unzipped, .tar.gz, .tgz and .tar untarred, anything else
  copied). The guide's venv-pack example puts the environment in
  /home/hadoop/environment, and /home/hadoop is the image's working
  directory. An archive that cannot be read fails the run before its
  driver starts, naming it; a cancel, a reset or a shutdown while they
  are put in ends the copy and puts in no other.

SparkJobRunner.Job carries the archives, which classic EMR's steps
leave empty. Spark still unpacks each archive into its own files folder
too, where SparkFiles.get finds it, and gives spark.executorEnv
variables to the Python workers it starts, so those need nothing more.
2026-10-31 16:15:56 -05:00
Andre Kurait 81e1dbc573 fix(sts): cap account-root token durations at one hour (#7125)
* fix(sts): cap account-root token durations at one hour

Cap GetSessionToken and GetFederationToken credentials issued to the account-root identity at one hour, preserving IAM user durations and validation ordering.

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

* test(sts): bound root token expiry by request time

Check the one-hour default using timestamps captured before the request and after the response, allowing millisecond wire precision. Preserve the root duration cap.

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

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-31 17:01:47 -04:00
Jimmy Liu Jia dc04c47791 fix(opensearch): support same-major version upgrades (#7129) 2026-10-31 17:01:31 -04:00
Jimmy Liu Jia 227769385f fix(sam): append resource lists to Globals lists (#7118)
* fix(sam): append resource lists to Globals lists

* fix(sam): replace intrinsic Globals values atomically

* fix(sam): let function architectures replace globals
2026-10-31 16:54:10 -04:00
Jackson Price 3cb727a85e fix(cloudwatch): decompress gzip JSON PutMetricData bodies (#7123)
* fix(cloudwatch): decompress gzip JSON PutMetricData bodies

The AWS CLI and the SDKs that speak JSON 1.0 to CloudWatch gzip a
PutMetricData body of 10 KiB or more and send Content-Encoding: gzip.
AwsJsonController binds the body as a String, so Floci read the
compressed bytes as text and every such request failed with HTTP 400
SerializationException. The metrics were never stored.

Add a reader interceptor that decompresses that one operation's body
when the controller reads it. It runs after every request filter, so
the signature is still verified over the compressed bytes the client
signed, and IAM still decides the request from X-Amz-Target first,
which is sound because nothing in that decision comes from the body.
The decompressed body is bounded by the decoder the CBOR protocol
already uses: past 10 MiB it returns HTTP 413 PayloadTooLargeException,
and a body that cannot be decompressed returns HTTP 400
InvalidRequestException, both in the controller's JSON error format.

A name binding keeps the interceptor on AwsJsonController alone, so
every other resource reads its body as before. In the native image a
global reader interceptor breaks the tag endpoints that resources
inherit from AbstractTagsController, because Quarkus REST then looks
their methods up reflectively.

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

* test(cloudwatch): publish a compressed metric batch through boto3

botocore gzips a PutMetricData body of 10 KiB or more, and with the
pinned boto3 it calls CloudWatch over JSON 1.0. The Python
compatibility suite only ever sent a handful of datums, so it never
sent a compressed request.

Send a 100-datum batch, check that botocore sent it as JSON 1.0 with
Content-Encoding: gzip, and check that all 100 metrics are listed
afterwards. Checking the content type keeps the test from passing
through the CBOR path, which already decompressed gzip, should a later
botocore prefer CBOR.

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

* chore(cloudwatch): reuse signed IAM test users

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-31 16:53:57 -04:00
Allen Sanborn 246473acf5 fix(lambda): omit ImageConfigResponse when an Image function has no image config (#7103) 2026-10-31 16:48:50 -04:00
Hector Ventura 0a4cd51acb fix(eks): tag node groups, Fargate profiles, add-ons, pod identity associations and access entries by ARN (#7113)
* fix(eks): tag node groups, Fargate profiles, add-ons, pod identity associations and access entries by ARN

TagResource, UntagResource and ListTagsForResource read the text after an ARN's last '/' as a cluster name, so a node group, Fargate profile, add-on, pod identity association or access entry ARN looked up a cluster named after its id and answered ResourceNotFoundException. The ARN is now parsed and routed by its resource type to the store that holds that resource, and a child ARN reaches the resource only when it matches the stored ARN.

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

* fix(eks): answer TagResource and UntagResource with 200

The EKS model declares no responseCode on either tag write, so both answer 200, but EksService kept the shared tag route's 204 default.

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

* fix(eks): lock tag writes and keep tags within the TagMap limits

The child retag methods now share their service's lock, so a tag write
racing a delete or disassociate can no longer restore the record it read.
TagResource checks the merged tags against the TagMap limits for every
resource type, and the tag operations answer the BadRequestException and
NotFoundException the model declares. A resource ARN with an empty
cluster or child segment is a bad request instead of a server error.

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

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-31 16:46:44 -04:00
Oleksandr Nikolaichuk f55948cbcc fix(cloudformation): clear EC2 network tags and properties the new template drops (#7124)
A property the previous template declared and the new one drops is now
cleared on update for the EC2 network types: Tags on Subnet,
InternetGateway, RouteTable, NatGateway, EIP and PrefixList, and
MapPublicIpOnLaunch on Subnet, which goes back to false. A property the
stack never declared keeps what was set outside it. A failed update puts
the cleared tags and the flag back from the existing in-place snapshot.

Refs #6606
2026-10-31 16:46:29 -04:00
Andre Kurait ad9de3022a fix(sts): enforce SAML role duration limit (#7121) 2026-10-31 16:44:55 -04:00
Jimmy Liu Jia 87a733edea fix(servicecatalog): use injected clock for plan execution record (#7122) 2026-10-31 15:27:05 -04:00
Jackson Price d173d65eb4 fix(ec2): honor CopyImageTags on CopyImage (#7097)
* fix(ec2): tag an AMI with the tags RegisterImage is given

RegisterImage never read TagSpecification, so an AMI registered with
image tags came back from DescribeImages untagged: its tag filters
matched nothing and DescribeTags listed nothing for it. A tag
specification for another resource type was accepted as well, although
AWS fails that request.

RegisterImage now reads its image tag specifications and refuses any
other resource type with InvalidParameterValue. It checks the tags as
CreateTags does (no aws: prefix, the key and value lengths, at most 50
tags) before registering anything, so a refused request leaves no AMI
behind. The tags are stored before the AMI is, so DescribeImages never
lists it without them, and a key given twice keeps its last value, as
Floci's CreateTags keeps it.

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

* fix(ec2): copy an AMI's tags when CopyImage sets CopyImageTags

CopyImage never read CopyImageTags, so a copy asked to carry its
source's tags came out untagged, and DescribeImages could not find it
by them.

With CopyImageTags=true the copy now gets the caller's tags on the
source, read in the source region, less the aws: system tags, which
AWS does not copy either. Without it, or with false, no tags are
copied, which is AWS's default. The source keeps its tags, and the
copy's are stored in the destination region only. The tags are read
under the source AMI's own id, so a catalog AMI's tags on that id are
copied too, while tags put on one of its aliases are not. Floci keeps
each account's tags apart, so another account's tags never reach the
copy.

CopyImage still neither checks nor applies TagSpecification, and the
docs now say so.

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

* test(ec2): stub the CopyImage overload the handler calls

Upstream's handler test for CopyImage tag specifications stubbed the
five-argument copyImage. On this branch the handler passes
CopyImageTags as well, so the stub never matched, the mock returned
null and the test failed with a NullPointerException. It now stubs the
six-argument call with CopyImageTags false, which is what a request
without it sends.

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

* refactor(ec2): leave RegisterImage tag specifications to upstream's handling

Upstream now reads RegisterImage's TagSpecification in the Query
handler, refuses other resource types and checks the tags before the
AMI is registered, so this branch's own path for the same thing is a
duplicate. The seven-argument registerImage overload and the tag code
in registerImageLocked are removed, and RegisterImage goes back to
upstream's code. CopyImage stores the tags it copies straight after it
registers the copy instead.

The branch's RegisterImage tests go too: upstream's
Ec2CreateTagSpecificationIntegrationTest and Ec2QueryHandlerTest cover
the same behaviour. What the branch adds is CopyImageTags alone.

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

* test(ec2): pin a TagSpecification tag over a copied tag of the same key

With CopyImageTags=true and an image TagSpecification on the same
request, the copy carries both sets. When both name the same key, the
TagSpecification value is the one the copy keeps, since the handler
applies the specification after the service copies the source's tags.
The docs row says so; this test holds it.

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

* fix(ec2): refuse a CopyImage over the tag limit before creating the copy

With CopyImageTags=true and an image TagSpecification, the copied and
the specified tags were each checked against the 50-tag limit on their
own. The service then created the AMI and its snapshots and stored the
copied tags, and only the handler's CreateTags of the specification saw
the combined set: past 50 it answered TagLimitExceeded while the copy
it had just made stayed behind, so a retry under the same Name failed
with InvalidAMIName.Duplicate.

The handler now passes the requested image tags to the service, which
checks the union of copied and requested keys before it registers
anything. The upstream handler test stubs the new signature.

The docs and the test of a key given both ways now say that the
TagSpecification value winning is Floci's behaviour: the public
CopyImage reference does not say how AWS settles that.

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

* refactor(ec2): keep one CopyImage service signature

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-31 15:02:38 -04:00
Jackson Price dbb1ff6d89 fix(autoscaling): launch with the launch configuration's block devices (#7098)
* fix(autoscaling): launch with the launch configuration's block devices

Auto Scaling groups launching from a launch configuration passed none
of its block device mappings to the launch, so their instances got the
AMI's devices alone. They now pass them, with the configuration's
Boolean NoDevice converted to EC2's marker, and instance refresh
replacements get them too. A mapping the launch refuses, such as an
invalid device name, now fails the launch as a failed scaling activity.

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

* test(ec2): count volume store scans for a DescribeInstances response

The test for one volume read per DescribeInstances response counted
calls to instanceVolumeAttachments, so a scan moved inside that
helper's instance loop still passed it. It now counts scans of the
volume store for a three-instance response, which fail with three
scans both before the fix and with that loop.

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

* fix(autoscaling): default launch configuration volumes to delete on termination

* test: share signed Query requests for launch block devices

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-31 15:00:18 -04:00
Aymen JAMAAOUI 2eb75ee686 fix(dynamodb): report WarmThroughput on each global secondary index (#7120) 2026-10-31 14:59:30 -04:00
Andre Kurait f74744dc5f fix(sts): enforce web identity role duration limit (#7119) 2026-10-31 14:59:02 -04:00
Jimmy Liu Jia 224c35830c fix(opensearch): add AWS-supported engine versions (#7117) 2026-10-31 14:55:03 -04:00
Allen Sanborn 9512de107f fix(rds): DescribeDBParameterGroups returns DBParameterGroupNotFound for an unknown name (#7066)
* fix(rds): DescribeDBParameterGroups returns DBParameterGroupNotFound for an unknown name

* refactor(rds): reuse getDbParameterGroup for the named DescribeDBParameterGroups lookup

The named branch built its own copy of the DBParameterGroupNotFound
exception. getDbParameterGroup does the same region-scoped lookup and
throws the same error, so call it instead. The test now also pins the
error message.
2026-10-31 14:53:13 -04:00
Andre Kurait b4cd98fb61 fix(ssm): preserve command exits and terminate timed-out process groups (#7093) 2026-10-31 14:08:37 -04:00
Hector Ventura b7e96c4be8 fix(kms): refuse a key or alias ARN that names another account (#7111)
A key or alias ARN naming another account resolved against the caller's own keys, so an alias ARN from account A, used by account B with an alias of the same name, answered with B's key. Floci does not evaluate key policies, so another account's key is never usable: answer NotFoundException with the ARN as given.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-31 14:05:56 -04:00
Hector Ventura 504c9d23bb fix(cognito): refuse a custom domain certificate from another partition or account (#7110)
requireUsableCertificate checked only the certificate ARN's service, region and resource. ACM finds a certificate by its id in the caller's own account, so an ARN naming another partition or another account was accepted as the caller's certificate. Both now get the same InvalidParameterException as any other unusable certificate.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-31 14:05:03 -04:00
Hector Ventura bc237ae980 fix(redshift): read ARNs with '!' in a secret name or ':' in an IAM path (#7112) 2026-10-31 14:03:19 -04:00
Hector Ventura d2f0455cd9 refactor: check an ARN's service, region and partition through one AwsArnUtils helper (#7109)
Step Functions and Route 53 Resolver each carried the same private check: an ARN of one service, in the request's region and that region's partition. AwsArnUtils.parseIfArnIn now holds it, and both services call it.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-31 14:01:41 -04:00
Andre Kurait de6710ff0e test(iam): preserve immediate revocation when snapshots fail (#7089) 2026-10-31 13:46:53 -04:00
Vũ Thế Huy 3f53b2685d feat(elasticache): apply a changed access string to open sessions (#7101)
* feat(elasticache): apply a changed access string to open sessions

ModifyUser with AccessString or AppendAccessString was installed on the backend only at the user's next authentication, so a connection that was already open kept its old permissions. The service now asks the proxy of every replication group that holds the user to install the new rules on the backend user the open sessions run as, through a short administrator connection. Nothing is sent before the backend is set up or for a user nobody has authenticated as, and an access string with a selector is refused as it is at login.

* fix(elasticache): propagate live ACL updates to serverless and evaluate rules under lock
2026-10-31 13:35:56 -04:00
Vũ Thế Huy 4d99aa9639 feat(eventbridge): authorize the role of Redshift Data API targets (#7095) 2026-10-31 13:23:50 -04:00
Allen Sanborn e3cdb72171 fix(ec2): set the link-local IMDS endpoint up again when an instance starts (#6873) 2026-10-31 13:21:38 -04:00
Rashen Anupama 7569a9a8ec fix(cloudformation): transform SAM layer versions (#7062)
* fix(cloudformation): transform SAM layer versions

Map packaged layer content to Lambda layers, retain version-specific resource identities, and preserve references and retention behavior. Cover publication, replacement and deletion through CloudFormation.

* fix(cloudformation): preserve typed and inherited SAM layer references

Rewrite captured Globals references, retain typed list references for provisioning, and restrict dependency rewriting to resource attributes. Cover each case in unit regressions and stack creation/update.

* fix(cloudformation): keep Fn::Sub overlay variables out of parameter substitution

A variable map localizes names for the template engine, so resolving a
same-named stack parameter first consumed the placeholder and left the map
dead: Key: !Sub ['${Key}', {Key: 'layer.zip'}] published the parameter's
value instead of the layer package the author named.

* refactor(cloudformation): fold SAM logical-id hashing into one helper

The layer-version and function-version generated ids serialized their hash
input the same way - properties sorted, non-ASCII escaped, DEL escaped, then
the first ten hex digits of the SHA-1 - but as two copies. Extract samHashSuffix
so a generated id is its subject plus one shared suffix. Ids are unchanged.

* fix(cloudformation): deploy SAM layers from original content expressions

The transform resolved ContentUri parameters before copying them onto the
generated AWS::Lambda::LayerVersion, so a parameter value that itself held
a ${...} was published inside a Fn::Sub and CloudFormation substituted it a
second time at deploy. Deploy the bucket and key expressions as written and
let the template engine resolve them once; keep the resolved copy only as
the hash input, so a versioned package still yields a distinct logical id.

* fix(cloudformation): keep Fn::Sub local variables out of layer rewrites

The recursive layer-reference walk re-entered an Fn::Sub node through the
blanket children loop, so it treated a variable map as another expression.
With a local variable literally named Ref whose value was a layer's logical
id, the walk rewrote that literal into the generated id and changed what the
stack deployed. Rewrite only the map's values as intrinsic contexts and skip
the already-handled Fn::Sub node in the walk.

* fix(lambda): read a layer's pinned S3 object version

A SAM layer with a packaged ContentUri.Version, or an
AWS::Lambda::LayerVersion whose Content sets S3ObjectVersion, publishes that
pinned package, but the provisioner fetched the object with a null version
and so read the latest one. If the key changed after publishing, the layer
ended up with different code than the template requested. Pass
S3ObjectVersion through to the S3 read so a pinned package stays pinned.

* fix(cloudformation): resolve a whole ContentUri reference before splitting it

Keeping the original ContentUri expressions on the generated layer means a
ContentUri that is itself a parameter reference arrives as a Ref object with
no Bucket or Key, and the transform rejected the stack. Resolve such a
reference to the location it names and split that, while the object form
keeps its expressions for the template engine to resolve at deploy.
2026-10-31 13:20:11 -04:00
Jimmy Liu Jia 9e0bc1b43b test(servicecatalog): use an advanceable clock for termination records (#7102) 2026-10-31 13:15:32 -04:00
Jimmy Liu Jia 25b0f234f9 fix(transfer): omit pagination token on final page (#7081) 2026-10-31 13:13:29 -04:00
Mario Toffia 7cf516a14d fix(cloudformation): honor retained resources on stack deletion (#6723)
* fix(cloudformation): honor retained resources on stack deletion

* test(cloudformation): assert the unretained sibling bucket is removed

* fix(cloudformation): skip every retained resource, whatever its status

A DELETE_FAILED stack can hold a CREATE_FAILED resource that the delete
never touches, because floci only deletes a failed resource it owns for
rollback. Naming it in RetainResources was accepted but left it
CREATE_FAILED with no DELETE_SKIPPED event. AWS reports every retained
resource DELETE_SKIPPED, so the retain check now runs before the
deletability guard.

* test(cloudformation): build the retain integration test on the shared CFN helpers

Use CfnStackWaits.awaitStatus, which also fails at once on another
terminal status, instead of a private poll, and CfnRequests.cfn for the
Query requests.
2026-10-31 12:15:25 -04:00
Andre Kurait 4c52e12834 test(appconfig): preserve application identity during stack deletion (#7080)
* test(appconfig): preserve application identity during stack deletion

Cover SDK stack deletion when another application is named after the managed physical ID, including prior removal of the managed application.

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

* test(appconfig): reuse shared SDK client fixture

Use AwsTestClients for the CloudFormation deletion fixture, preserving both deletion paths and the unrelated application assertions.

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

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-31 12:07:41 -04:00
Kenshin Okinaka d53f9ca0c6 test(ecr): read the parked manifest body so the deadlock test does not depend on socket buffers (#7091)
concurrentManifestPushesOnOneConnectionDoNotDeadlock paused the first
push's 4 MiB body at the fake registry. It passed only where the loopback
socket buffers absorb the whole body: on macOS less than 1 MiB fits, the
data plane pauses the first stream, and its unread DATA fills the HTTP/2
connection window, so the second push's drained body stalls and the
writes time out.

The registry now reads the first body and holds only the answer, which
it sends on the request's own context. The first push keeps the write
lock without leaving bytes in the client connection, and removing the
waiting-body drain still makes the test fail. Drop the latch and the
assertion that could never fail.
2026-10-31 11:56:42 -04:00
Vinícius Ribeiro f0a1b11385 fix(cloudformation): keep SMS_MFA on a user pool update until MFA is turned off (#7088)
* fix(cloudformation): keep SMS_MFA on a user pool update until MFA is turned off

The AWS::Cognito::UserPool reference says that once SMS_MFA is enabled, only
MfaConfiguration OFF turns it off. An update that stopped listing SMS_MFA in
EnabledMfas cleared it. replaceUserPoolMfaConfig now keeps the pool's SMS
setting when none is given and the mode is not OFF.

Closes #7086

* fix(cognito): keep SMS MFA with the pool's current SMS settings

Keeping SMS MFA replayed the settings it was enabled with, so an update that
dropped SMS_MFA and changed SmsAuthenticationMessage or SmsConfiguration put
the old values back over the ones updateUserPool had just applied. The kept
SMS MFA now takes the pool's current message and SMS configuration.
2026-10-31 11:52:52 -04:00
TATSUNO “Taz” Yasuhiro 3acebc90fe fix(s3): leave a null delete marker when deleting from a suspended bucket (#7092) 2026-10-31 11:52:41 -04:00
Vũ Thế Huy dd423ee161 feat(redshift): copy cluster snapshots into the configured destination region (#7058)
* feat(redshift): copy cluster snapshots into the configured destination region

EnableSnapshotCopy used to only record the destination on the cluster. A background sweep now copies each available snapshot taken after copy was enabled into a per-Region copy store, with its own dump file, retention and KMS key from the copy grant. Describe, delete, restore and tagging use the copy when the request's Region has one.

* fix(redshift): harden snapshot copy expiry, rollback and same-region enable

Expiry re-reads the copy under the lock so a replaced copy is not deleted. A failed flush undoes the copy record and the source mark before the dump is removed. A sweep re-checks that copy is still enabled to the destination. EnableSnapshotCopy refuses the cluster's own Region, and CreateClusterSnapshot refuses an identifier a copy already holds in that Region.

* fix(redshift): harden snapshot copy and share the sweep scheduler base and dump copier

Snapshot copy: keep a retained copy when a source snapshot is recreated under the same name, flush the copy before marking the source, only apply the cluster's copy retention to copies of the same cluster generation, recheck the copy settings under the snapshot lock before each copy, and leave shadowed sources out of DescribeTags.

Refactor: the five SweepWorker scheduler wrappers now extend SweepScheduler, and both services copy dumps through SnapshotDumpCopier.

* docs(redshift): note the hybrid storage limit of snapshot copy

Hybrid storage does not report a failed flush, so a crash can leave a source snapshot marked as copied without its copy. Persistent and WAL storage report the failure before the source is marked.
2026-10-31 11:34:57 -04:00
Matheus OliveiraandPriamo Germosen f21b371c43 fix(msk): default EncryptionInTransit clientBroker to TLS (#7054)
CreateCluster that omit EncryptionInfo or clientBroker described
TLS_PLAINTEXT, but the MSK API and CloudFormation schema both name the
default as TLS. An explicitly supplied value still echoes as shipped.

Closes #6968

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-10-31 11:31:27 -04:00
Priamo Germosen 264513650c feat(emr): apply a cluster's spark-env and spark-hive-site to its steps (#7047)
In the docker runner mode a step's spark-submit got the spark-defaults
of the cluster's Configurations, and nothing else from them. The
Release Guide's other two Spark classifications that change what a job
does were ignored:

- spark-env "Sets values in the spark-env.sh file", through its nested
  export classification ("If any classification ends in env, use the
  export sub-classification"). It is how a cluster picks the Python
  PySpark runs (PYSPARK_PYTHON) or the JVM (JAVA_HOME). Its exports are
  now the step container's environment variables, replacing any of
  Floci's own with the same name. The image's spark-env.sh only
  defaults PYSPARK_PYTHON, PYSPARK_DRIVER_PYTHON, SPARK_HOME and
  HADOOP_CONF_DIR, so the exports win there.
- spark-hive-site "Sets values in the hive-site.xml for Spark", as the
  Management Guide uses it to put Spark's tables in the Glue Data
  Catalog (hive.metastore.client.factory.class). Its properties now
  reach spark-submit as spark.hadoop. settings, which Spark's Hive
  client reads as it would hive-site.xml; a spark.hadoop. setting in
  spark-defaults wins over them, as it would over hive-site.xml.

SparkJobRunner.Job carries the environment, which an EMR Serverless run
leaves empty. The exports are set as given, with no shell expansion,
and a command or script step sees them too; emr.md says so.

Separately, the pattern EcrRegistryManager reads an ECR image's Region
with, which EMR Serverless checks an application's custom image
against, now names the hosts it takes: AwsPartitions.dnsSuffixRegex()
for AWS's, as AWS_ECR_URI does, and localhost or localhost.floci.io
with a port for the repositoryUri Floci's ECR hands out. It took any
host after the Region before, so an image on a registry that only
looks like ECR's (<account>.dkr.ecr.<region>.registry.internal/...)
was refused for being in another Region.
2026-10-31 10:27:25 -05:00
Priamo Germosen bfd3bcbbce fix(athena): read and check a request naming no catalog as AwsDataCatalog (#7061)
Athena's GetDataCatalog, ListDatabases, ListTableMetadata and
GetTableMetadata handlers read the catalog name with has() and
asText(), so a JSON null became a catalog named `null`: GetDataCatalog
then answered InvalidRequestException rather than the AwsDataCatalog
it answers for a request naming none. They now read it through the
handler's text(), as GetWorkGroup and StartQueryExecution read
WorkGroup, so a JSON null names no catalog.

Under IAM enforcement, a GetDataCatalog naming no catalog was checked
on `*` though Floci answers AwsDataCatalog, so a grant on that catalog
was refused and a deny on it did not apply, and the three catalog
reads given a JSON null CatalogName were checked on `datacatalog/null`
as well as on AwsDataCatalog. The request-resources table now reads a
request naming none, or a JSON null, as naming AwsDataCatalog for all
four, as it reads Athena's primary workgroup.

The table's regeneration also takes up drift in AWS's Service
Reference since the last sync, which the online check of both IAM
tables fails on: AWS now lists cognito-idp:DescribeTermsByClient among
the actions it authorizes DescribeTermsByClient as, so the
authorized-actions map no longer maps it to DescribeTerms and the
request-resources table checks it as its own action, and the map
gains MediaConnect's new BatchGetDestinationEndpoint and
BatchGetSourceEndpoint. Floci serves none of these operations.
2026-10-31 10:27:14 -05:00
Kenshin Okinaka f40d784f66 fix(ses): check PutEmailIdentityDkimSigningAttributes against the SES v2 shapes (#7084)
A SigningAttributes member that is not a JSON object answered a
Floci-only BadRequestException. The operation now runs the shared
SES v2 shape check first, so a member of the wrong JSON type is a
SerializationException with AWS's deserializer message, ahead of the
origin check and the identity lookup, as AWS answers it. A missing
identity now answers AWS's "The specified email identity, <id>, does
not exist."
2026-10-31 11:19:49 -04:00
Oleksandr Nikolaichuk 5e9df931e3 fix(cloudformation): clear an AppSync property the new template drops on update (#6995)
* fix(cloudformation): clear an AppSync property the new template drops on update

An update whose template drops a property the previous template declared now clears it on the five AppSync types, and one the stack never declared keeps the value set outside it. ProvisionContext.droppedProperties names the dropped properties.

* test(cloudformation): move the AppSync removal case into AppSyncCfnIntegrationTest

The case reuses the class's helpers, now built on CfnRequests.cfn, instead of a second copy. Documents the AppSync update rule next to the AWS::NoValue section.
2026-10-31 10:22:30 -04:00
TATSUNO “Taz” Yasuhiro 32a47daee0 feat(lambda-web): move a revision to Failed once its code is gone (#7065) 2026-10-31 10:11:21 -04:00
Allen Sanborn 3b4a2ec14d fix(ec2): propagate transit gateway attachments to the default propagation route table (#7060)
* fix(ec2): propagate transit gateway attachments to the default propagation route table

* refactor(ec2): build transit gateway route table propagations in one helper

The default-propagation path in storeNewAttachment and
enableTransitGatewayRouteTablePropagation built the same propagation
record field for field. Both now call storePropagation.

* test(ec2): assert the resource id of a default-created propagation

The create-site VPC id argument to the propagation helper was not checked
by any test; only the resource type was.
2026-10-31 10:07:01 -04:00
Jimmy Liu Jia b3dad93daf fix(appconfigdata): consume configuration tokens only once (#7082) 2026-10-31 10:05:25 -04:00
Aniket Shukla 65b0881954 fix(cloudformation): preserve SES receipt rule update order (#7071)
* fix(cloudformation): preserve SES receipt rule update order

* fix(cloudformation): preserve unknown legacy SES anchors

* fix(cloudformation): simplify legacy SES rule ordering
2026-10-31 10:02:50 -04:00
Allen Sanborn 759b6d1f4b fix(ec2): apply DescribeIpamPools filters (#7039)
* fix(ec2): apply DescribeIpamPools filters

* fix(ec2): resolve DescribeIpamPools scope filters from the pool owner's IPAM

- ipam-scope-type, ipam-scope-arn, ipam-arn and ipam-region now resolve the
  scope through the pool's own IPAM across account partitions, so a
  RAM-shared pool described by id matches them.
- pool-depth stops at a deleted ancestor instead of failing the request
  with InvalidIpamPoolId.NotFound; an orphaned pool counts as top-level.
- The scope lookup runs only for filters that need it, once per scope per
  request, so pool-field filters no longer scan the IPAM store.

* fix(ec2): log the tolerated NotFound in IPAM pool scope and depth lookups

AGENTS.md requires a tolerated exception to be logged. Both catches can
only see InvalidIpamId.NotFound / InvalidIpamPoolId.NotFound (create
rejects a blank source id), so they stay unnarrowed and log at debug.

* refactor(ec2): reuse Ec2Service.matchesTagFilter for IPAM pool tag filters

matchesTagFilter holds no instance state, so make it static and
package-private and let matchesPoolFilter call it instead of repeating
the tag:<key> / tag-key branch. The shared helper also treats a null tag
list as no tags, so a pool restored with tags=null no longer fails
DescribeIpamPools with a NullPointerException.
2026-10-31 10:00:34 -04:00