Commit Graph
5386 Commits
Author SHA1 Message Date
Priamo Germosen c09aa1f813 test: fold four Quarkus test profiles into CloudFormationSettingsProfile (#8822)
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
ContainerDataPlaneProfile, DynamoDbPartitionedStorageProfile and the profiles
nested in CloudFrontDisabledServingTest and SageMakerGpuDockerIntegrationTest now
share CloudFormationSettingsProfile: each setting is read by one service that no
other class in the group calls, and no profile here names a container namespace,
which an EMR cluster's node names need to stay short. The persistent path is the
one setting every class sees, and the Javadoc says what lands under it.
2026-11-18 00:23:04 -04:00
Priamo Germosen 31a0441cab test: fold five Quarkus test profiles into S3EnforceAuthProfile (#8821)
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
RdsAdvertisePortProfile, LambdaDurableScriptedProfile and the profiles nested in
BedrockProxyTimeoutIntegrationTest, EmrTimedLifecycleIntegrationTest and
IotFleetIndexingConnectivityIntegrationTest now share S3EnforceAuthProfile: each
setting is read by one service that no other class in the group calls. The
DynamoDB Local class stays apart: its backend refuses to start without an
endpoint, so an application it shared would fail to boot for every other class.
2026-11-17 23:52:51 -04:00
Priamo Germosen 0db13c5231 test: fold five Quarkus test profiles into ContainerBackedEc2Profile (#8820)
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
ExtraCorsOriginProfile, LambdaCodeSourcesProfile and the profiles nested in
Ec2CapturedImageReclaimIntegrationTest, Ec2RestoreEveryAccountIntegrationTest
and SqsAwsEndpointStrategyIntegrationTest now share a new ContainerBackedEc2Profile.
Ec2RestoreEveryAccount's profile was the same as Ec2CapturedImageReclaim's, since
security groups are enforced by test default, and the CORS, Lambda and SQS settings
each reach only requests no other class here sends.
2026-11-17 23:50:53 -04:00
Priamo Germosen 3d39a40eb3 test: fold three Quarkus test profiles into IamEnforcementProfile (#8816)
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
DocDbMockProfile and the profiles nested in HttpDataSourceInvokerIntegrationTest
and LogsUnknownRegionAuthorizationIntegrationTest now share IamEnforcementProfile.
No other class here calls DocumentDB or sends a region no partition publishes,
and the DocumentDB classes sign every request as the test root stand-in without a
role, so IAM enforcement passes them. RdsIamEnforcementProfile starts from the new
enforcementOverrides(), so its application keeps the settings it had.
2026-11-17 23:32:06 -04:00
Priamo Germosen 6829c0b592 fix(cloudtrail): give resource-tag conditions the tags of the trail a request names (#8814)
The generated request resources give CloudTrail's trail type the
aws:ResourceTag/ key, but no service answered the cloudtrail namespace's
stored tags, so a condition on a trail's tags saw none.
CloudTrailService now answers it: storedTags reads the trail stored
under its home Region, which its ARN names, and its name, in the
request's account, where the tag handlers read, in place, and matched on
the whole ARN. A tag with no value, which AddTags allows, reads as the
empty string. A trail is stored whole and its tags never change in
place, so no lock change.
2026-11-17 23:02:52 -04:00
Priamo Germosen 98c0a50ab5 fix(eks): execute nothing in a k3s container until its API server answers (#8810)
On a cgroup v2 host, k3s moves the root cgroup's processes into /init
and then enables the cgroup controllers, which the kernel allows only
while the root cgroup is empty, and k3s does not retry. Floci executed
in the container right after starting it, and an exec landing in
between made kubelet exit with "cgroup ["kubepods"] has some missing
controllers", so the cluster never became ACTIVE.

k3s serves its API only after that step, so a started container now
waits for its API to answer before anything is executed in it:

- The guest setup that ran right after start (the link-local metadata
  endpoint, the Pod Identity forward, the VPC routes, the audit log
  follower and the node registration listeners, of which a volume
  restore makes a device node in the container) is registered before
  the container starts and runs once isReady sees the API answer, on a
  virtual thread of its own, so neither the CreateCluster request nor
  the readiness poller waits on it. A cluster is ready only once its
  node is set up. This covers create, restore, an adopted container
  and a node capacity swap, all of which the poller checks.
- Node group user data waits for that setup, following a node replaced
  meanwhile, since it executes in the container and may read the
  metadata endpoint. If the API does not answer within 10 minutes, the
  user data fails the node group.
- A route table update, an EC2 instance joining and an
  eks-pod-identity-agent add-on change before the API answers leave the
  node to its setup and to finalizeCluster, which now registers each
  joined node on its own and leaves one that fails to be joined again.
- A delete waits for a setup already running, so it releases the log
  follower that setup attached. The control plane log stream, read
  through Docker's log API, is still attached at start.

Closes #5389
2026-11-17 23:02:14 -04:00
Jimmy Liu Jia 5b9709677e refactor(bedrock): share tag key and value validation (#8811) 2026-11-17 22:56:14 -04:00
Murtuza Chhil e6f4758bc1 feat(paymentcryptography): the Multi-Party Approval team of an operation (#8812)
* feat(paymentcryptography): the Multi-Party Approval team of an operation
* docs(paymentcryptography): what the Multi-Party Approval does not make
* docs(paymentcryptography): the action table in the order the handler names
* style(paymentcryptography): the multi-region work comes with the branch
* fix(paymentcryptography): the tests of the team share the operation they name
* fix(paymentcryptography): the removal does not change what a lookup holds
2026-11-17 22:52:57 -04:00
Priamo Germosen 39a4afc722 test: fold six Quarkus test profiles into SidecarContainersProfile (#8806)
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
BedrockProxyBackendProfile, DsqlDatabasesProfile, IotSettingsProfile and three
profiles nested in their test classes now share SidecarContainersProfile: each
setting is read by one service that no other class in the group calls. Profiles
that extend it start from the new containerOverrides(), so the shared settings
stay with the classes they were checked against, and DsqlEnforcementProfile
states its own settings. ContainerDataPlaneProfile stays apart: the sidecar
namespace makes an EMR node's container name pass the 63-character DNS label
limit, and its HDFS then cannot resolve its datanodes.
2026-11-17 22:48:15 -04:00
Kenshin Okinaka 82e6677b7e fix(ses): match the MIME message SES returns from TestRenderTemplate (#8809)
TestRenderTemplate and TestRenderEmailTemplate returned an RFC 1123 Date, a raw UTF-8 Subject, 8bit bodies and always two parts. They now write the message the way SES does: an ISO-8601 Date, a non-ASCII Subject as folded encoded words, a single part for a template with one, and each body as 7bit, quoted-printable or base64 by its octets, so the message is printable ASCII and the XML sanitizer goes. The rendering data is checked before the template lookup and answers "Template rendering data is invalid", a missing template answers "Unable to find <name> for <account>", the list-management placeholder renders as a sample link, and {{{v}}} is substituted like {{v}}, on the send path too.
2026-11-17 22:42:23 -04:00
Jimmy Liu Jia 70da9dfb0c fix(cloudformation): validate vendored properties in HandlerReader (#8733)
* fix(cloudformation): validate SES properties in HandlerReader
* fix(cloudformation): apply HandlerReader validation across vendored types
* test(cloudformation): share HandlerReader failure assertions
2026-11-17 22:40:28 -04:00
Priamo Germosen 2906767f77 test: fold two Quarkus test profiles into S3IamEnforcementProfile (#8808)
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
RdsAndDocDbMockProfile and EksIrsaDockerIntegrationTest's nested profile now
share S3IamEnforcementProfile. Their RDS, DocumentDB and EKS settings are each
read by one service no other class here calls; the DocumentDB classes sign every
request as the test root stand-in without a role and never call S3, so IAM
enforcement and the S3 settings pass them through, and EKS IRSA relies on IAM
enforcement itself.
2026-11-17 22:37:14 -04:00
Priamo Germosen c5f043990a test: fold nine Quarkus test profiles into RdsMockProfile (#8805)
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
RealElbV2DataPlaneProfile, RealEksProfile, SynchronousBillingEmissionProfile,
ShellLessBackendProfile and five profiles nested in their test classes now share
RdsMockProfile: each setting is read by one service that no other class in the
group calls, and only DynamoDbBackendResetIntegrationTest posts an emulator
reset, which its own backend refuses in the preflight; DynamoDB never starts
in this application, so no class here calls it. The billing pair gets a free
port rather than 4566. The profile's Javadoc lists every override and who relies
on it.
2026-11-17 22:36:54 -04:00
Priamo Germosen 09d8bd5b8b test: fold two Quarkus test profiles into IndependentServiceSettingsProfile (#8807)
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
ShellLessClusterProfile and StrictProtocolClaimingIntegrationTest's nested
profile now share IndependentServiceSettingsProfile. No other class in the group
calls ElastiCache, and strict claiming only answers an RPC-signaled request no
protocol claims differently, which only the two protocol classes send.
2026-11-17 22:25:36 -04:00
Priamo Germosen 70940e1f7f fix(iam): refuse a malformed policy ARN as AWS words it (#8802)
A PolicyArn that parses as no ARN cleared the declared length and reached
the lookup, so eight operations answered 404 NoSuchEntity where AWS answers
400 ValidationError. IamArnShapes reads the member after the generated
constraints and answers the two sentences the recordings carry: attaching
names the value, everything else reports nothing it could parse, the value
slot rendering empty. A PolicySourceArn of * is refused on the entity ahead
of the member's declared length, which is the order AWS answered it in.

The operations with no recording of their own follow the parse sentence,
documented on the IAM page beside the older recording it supersedes.
2026-11-17 22:25:03 -04:00
Priamo Germosen 3210ee0263 feat(emr): run the YARN timeline server and the Tez UI on a cluster's primary node in the docker runner mode (#8804)
With runner-mode docker, a cluster with Hadoop now runs the YARN
timeline server on its primary node, and one with Tez too the Tez UI
("Tez | http://master-public-dns-name:8080/tez-ui"), and
GetOnClusterAppUIPresignedURL opens both for real, on their own hosts,
as the cluster's other interfaces open (YarnTimelineService, TezUI).

The timeline server is Hadoop's own on its default port, 8188, its
store on the primary node's volume; the ResourceManager publishes its
applications to it, and, as no source gives how EMR's Tez reaches it, a
Hive step's Tez logs its DAGs to it through its REST interface
(ATSHistoryLoggingService). The Tez UI is Tez's own page, served on
8080, whose configuration (/etc/tez-ui/conf/configs.js, which the
image's page links to and lacks) names the timeline server and the
ResourceManager by the node's name, which Floci makes the link's hosts;
both answer cross-origin requests from the Tez UI's host. Both start
with the node's other daemons, the timeline server before the
ResourceManager, and the node is ready once both answer. The Tez UI runs
where the cluster's image has Tez, one with Hive or Floci's Pig, and an
image without its files serves none rather than keep the node from being
ready. Neither runs
for a release of the AWS runtime for Apache Spark, as their persistent
interfaces are not there.

EmrAppUiNightlyIntegrationTest runs them for real: after a Hive step,
the timeline server holds its Tez DAG and its application history, and
the Tez UI's page and configuration open, the timeline server answering
a request from the Tez UI's host.
2026-11-17 22:23:59 -04:00
Priamo Germosen 77565a9c60 fix(timestream-influxdb): give resource-tag conditions the tags of the resource a request names (#8803)
The generated request resources give Timestream for InfluxDB's
db-instance, db-cluster, db-parameter-group and db-backup types the
aws:ResourceTag/ key, but no service answered the timestream-influxdb
namespace's stored tags, so a condition on such a resource's tags saw
none. TimestreamInfluxDbService now answers it: storedTags reads the
resource the ARN's type and id name, under the Region the ARN names, in
the request's account, where the handlers read, in place, and matched
on the whole ARN. Tag calls already run one at a time and give the
resource a new map; the tags fields are now volatile.
2026-11-17 22:19:08 -04:00
mrfelek f06695cf08 fix(eks): forward the Pod Identity address to Floci with NAT rules while its add-on is installed (#8736)
A stock rancher/k3s node has no package manager, so the socat relay Floci installed for the EKS Pod Identity address, 169.254.170.23, never started, and every pod's credentials request timed out. The address is now sent straight to Floci's credentials endpoint with iptables NAT rules, a PREROUTING rule for the pod network and an OUTPUT rule for the node and hostNetwork pods, and what an older Floci set up for the address, its relay included, is removed. The rules follow the eks-pod-identity-agent add-on: CreateAddon adds them, DeleteAddon removes them unless preserve is set, and a node start or a restart's adoption sets them from the stored add-on, under a lock of the cluster. The Pod Identity webhook reads the same stored add-on.

Closes #5629
2026-11-17 21:50:25 -04:00
Murtuza Chhil 33ed71437d feat(paymentcryptography): a deletion is scheduled, and it can be cancelled (#8799)
DeleteKey removed a key at once, so there was no waiting period and nothing to cancel. It now schedules the deletion: the key is disabled and kept as DELETE_PENDING, with the moment the deletion takes effect after the DeleteKeyInDays waiting period (seven days by default), and it keeps its aliases, tags and resource policy. Floci does not sweep the period, so the key stays pending. RestoreKey cancels the deletion: the key returns to CREATE_COMPLETE without a pending timestamp and stays disabled until StartKeyUsage, as the guide's example shows. Replicas carry the pending state and its timestamp, a replica is not restored on its own, and a pending key refuses another deletion, StartKeyUsage and StopKeyUsage with ConflictException.
2026-11-17 21:23:28 -04:00
Priamo Germosen c2b9957032 fix(core): answer /_floci/ui/status with a map the native image can serialize (#8800)
GET /_floci/ui/status answered 500 in the native image: Jackson found
no properties on UiController.StatusResponse, a record whose components
the image carried no reflection metadata for, although the record had
@RegisterForReflection. The UI launcher polls this endpoint, so its
wait view stayed on "Starting Floci UI" after the sidecar was up.

The body is now a map, as the other /_floci endpoints build theirs,
which needs no reflection. Its {ready, url, error} shape is unchanged.

The AWS CLI compatibility suite, which runs against the native image,
calls the endpoint so a body that cannot be serialized there shows up.

Closes #5251
2026-11-17 21:20:07 -04:00
Jimmy Liu Jia 6bde4e6bb3 fix(cloudformation): provision Bedrock application inference profiles (#8772) 2026-11-17 21:08:02 -04:00
Priamo Germosen 261fcac13a fix(s3vectors): give resource-tag conditions the tags of the vector bucket or index a request names (#8797)
The generated request resources give S3 Vectors' VectorBucket and Index
types the aws:ResourceTag/ key, but no service answered the s3vectors
namespace's stored tags, so a condition on a vector bucket's or an
index's tags saw none. S3VectorsService now answers it: storedTags reads
the bucket stored under the Region the ARN names and its name, in the
request's account, where the handlers read, in place, and matches the
bucket, or the index an index ARN names, on the whole ARN; an index ARN
reads the index's own tags. Tags are only ever replaced by a new map,
under the bucket's lock, and the tags fields are now volatile.
2026-11-17 21:07:50 -04:00
Priamo Germosen 0475f96d85 feat(emr): run a Spark History Server on a cluster's primary node in the docker runner mode (#8796)
With runner-mode docker, a cluster with Spark now runs a Spark History
Server on its primary node, as EMR's does ("Spark HistoryServer |
http://master-public-dns-name:18080/"), and GetOnClusterAppUIPresignedURL
opens it for real, on its own host, as the cluster's other interfaces
open.

Where the primary node runs the server, a step's Spark on the cluster's
YARN keeps its event logs where "By
default, Amazon EMR stores event logs in the /var/log/spark/apps
directory of HDFS" (spark.eventLog.dir hdfs:///var/log/spark/apps, which
the cluster's spark-defaults may replace), and names the server as
spark.yarn.historyServer.address, so an ended application's tracking URL
leads to its page there. The primary node makes that folder with the
others in its HDFS, starts the server once it is there, reading it and
listening where HDFS does, as one of the node's daemons, and is ready
once it answers. Its port is published on the host's loopback interface
as the other interfaces' are. With an ApplicationId, the server's link
lands on the application's page.

EmrAppUiNightlyIntegrationTest runs it for real: after a SparkPi step,
the ResourceManager's proxy sends the application's tracking URL on to
its page on the server's own host, the server lists it from its event
logs, and the server's own link lands on it.
2026-11-17 21:06:32 -04:00
TATSUNO “Taz” Yasuhiro a1de0ee905 fix(dynamodb): order items tied on an index key by their key hash (#8798)
A Query or a PartiQL read of a secondary index returned items tied on the index key in table-key order, while DynamoDB returns them in the order of a hash of the table key: MD5 over the bytes "Outliers" followed by the key bytes. A local secondary index hashes the table sort key alone and a global secondary index the partition key followed by the sort key. A string hashes as its UTF-8 bytes, a binary value as its own bytes and a number in the layout of an Oracle NUMBER. A descending read reverses that order, and the table key still settles a tie of the hash, so ExclusiveStartKey and the end of a page follow the same order.
2026-11-17 21:02:15 -04:00
Jackson PriceandAndre Kurait 0dedd49f79 fix(logging): escape apostrophes in formatted diagnostics (#8776)
Java's MessageFormat reads a lone apostrophe as the start of a quoted section, so thirteen log patterns that used one in a word like "image's" printed their placeholders as literal text or lost the apostrophe. Each apostrophe is now doubled, so the warnings show their arguments again; the EKS legacy-state warning names the volume to pass to docker volume inspect. WarmPoolTest drops a cleanup stub that could go unused once the original stop finished, since the released latch's answer already serves any later stop.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-17 20:32:24 -04:00
Priamo Germosenanddchakrav-github aeba963c8a feat(fis): fail the calls a running inject-api action impairs (#8793)
FIS's aws:fis:inject-api-internal-error, -throttle-error and
-unavailable-error actions were recorded as running and never did
anything. A running one now fails the calls it impairs: calls signed
with a session of one of its target roles, to one of the operations it
names in its service namespace, at its percentage.

- FisApiFaultFilter runs after IAM enforcement and reads the operation
  from the route that serves the call, through RequestOperationResolver,
  for every protocol. Only the accounts and Regions where such an
  experiment runs are looked into, so any other request costs a set
  lookup and leaves nothing cached, whatever account ID it names.
- EC2 answers with InternalError, RequestLimitExceeded or Unavailable,
  from its error code list. Kinesis answers with the common errors
  InternalFailure, ThrottlingException or ServiceUnavailable, in JSON or
  CBOR to match the request.
- Templates must give service as ec2 or kinesis, a percentage from 1 to
  100, comma-separated operations and a duration from one minute to 12
  hours. A template stored before these checks is checked again when an
  experiment starts from it.
- An inject-api action completes once its duration runs out, worked out
  on each read rather than on a timer, and an action that starts after
  it then starts. The experiment completes when every action has
  completed or been skipped.
- floci.services.fis.inject-api-any-service, off by default, lets the
  actions target any namespace, named by its IAM namespace or by the
  name it signs under. Those services answer with the common errors in
  their protocol's envelope, a Query or REST-XML ErrorResponse in the
  service's own XML namespace; Route 53's catalog entry now carries its
  namespace, as its own errors do.

The error bodies a filter answers with move into ProtocolErrorResponses,
which IamEnforcementFilter, AwsQueryController and ServiceEnabledFilter
now share instead of each building its own Query ErrorResponse.

The fault injection carries over the design of dchakrav-github's #4591.

Refs #4623

Co-authored-by: dchakrav-github <42748809+dchakrav-github@users.noreply.github.com>
2026-11-17 20:20:48 -04:00
Priamo Germosen 5110042f6c fix(kinesisanalytics): give resource-tag conditions the tags of the application a request names (#8794)
The generated request resources give Managed Service for Apache Flink's
application type the aws:ResourceTag/ key, but no service answered the
kinesisanalytics namespace's stored tags, so a condition on an
application's tags saw none. KinesisAnalyticsV2Service now answers it:
storedTags reads the application stored under the Region the ARN names
and its name, and in the default Region under the name alone, in the
request's account, where the handlers read, in place, and matched on the
whole ARN; a read that misses both keys while a legacy record moves
looks under the Regional key again. TagResource took no lock and
UntagResource changed the map in place; both now give the application a
new map one call at a time, and the tags field is volatile.
2026-11-17 20:03:10 -04:00
Priamo Germosen 4b342dad3f feat(emr): open a cluster's on-cluster application UIs for real in the docker runner mode (#8773)
With runner-mode docker, GetOnClusterAppUIPresignedURL now opens the
interfaces that run on the cluster's primary node for real: its
ResourceManager, an application master through the ResourceManager's
web proxy, its MapReduce JobHistory server, and the NodeManager of a
primary node that works.

Each opens on a host of its own, as AWS's application UIs do under
emrappui-prod.<region>.amazonaws.com, which are on the Public Suffix
List: http://<secret>-<port>.emrappui.<Floci's host and port>/, the
secret 26 random base32 characters only the link holds, so the host is
the link's authority, as the interface takes no AWS credentials.
EmrAppUiProxy, a Vert.x route ahead of the REST layer, sends a request
to that host on to the node's port, which the primary node publishes on
the host's loopback interface (Floci in a container joins the cluster's
network instead). It asks the interface under the browser's host, so
the links the interface writes itself are the browser's, and makes each
link the node's daemons write to one another by the node's name a link
to that interface's own host under the same secret, in text answers and
Location headers; an answer too large to hold goes on unchanged. A
request's body streams on as it arrives, an interface that sends nothing
for a minute has the request given up, and a link of a cluster that has
ended opens nothing, the node's port it found asked for again every ten
seconds while the cluster runs.

A link asked for before the primary node runs, as on a cluster no step
has run on yet, starts the node as a step would, through runOnCluster,
running nothing, and is not PresignedURLReady until the node is; its
host answers 503 meanwhile. With an ApplicationId each interface lands
on the application's page. The link lasts an hour, as Floci's page
links do. An interface Floci does not run (the Spark History Server,
the YARN timeline server, the Tez UI), and any link in the immediate
mode, still opens Floci's own page.

Floci's TLS certificate names *.emrappui.localhost and
*.emrappui.localhost.floci.io.

Lambda's CreateFunction and UpdateFunctionCode now refuse a direct
ZipFile upload over 50 MB from its Base64 length, before decoding it,
so a request already over the limit takes no more memory than it came
in; its RequestEntityTooLargeException is as before, and the test of it
builds its oversized upload without the bytes behind it.

EmrAppUiNightlyIntegrationTest runs it for real on an emr-7.5.0
cluster: the ResourceManager's link starts the primary node and opens
the ResourceManager, and after a MapReduce step its REST answer's links
open the application master's logs on the NodeManager's host and,
through the web proxy's redirect, the job on the JobHistory server's
host, as the JobHistory server's own link does. The nightly job's
timeout and image prefetch take the new check.
2026-11-17 19:48:12 -04:00
Ghassan Gedeon Achi 87a93ebe92 fix(athena): bind a query's ExecutionParameters (#8763)
StartQueryExecution ignored ExecutionParameters, so a parameterized query failed with "Expected N parameters, but none were supplied". Each value is now bound to its ? placeholder as Athena reads it, as the SQL text of one expression: in parentheses, or bare when it is a lone literal. A value that isn't one expression, such as a lone name, an open quote or brackets that don't pair, is bound as a string, so it cannot add a statement, and the bound statement goes through the one-statement check again. The partition-projection checks, the Glue view and S3 Tables setup and the translation to DuckDB all read the bound statement, and a parameter count that doesn't match fails the query with Athena's INVALID_PARAMETER_USAGE message.

Closes #8679
2026-11-17 19:16:51 -04:00
Niels Kootstra 6a92129c2f fix(ecs): list the services that joined a namespace in ListServicesByNamespace (#8774)
* fix(ecs): list the services that joined a namespace in ListServicesByNamespace
* fix(ecs): keep the namespace a service joined and refuse a negative page token
* docs(ecs): name ListServicesByNamespace among the ten-at-a-time listings in paginate
2026-11-17 19:10:35 -04:00
mrfelek f0c234485b fix(appsync): keep GraphQL APIs and custom domain names in their Region (#8745) 2026-11-17 19:09:57 -04:00
Joaquín Gamboa 1942378624 feat(dsql): answer a PostgreSQL server's password challenge (#8690)
* feat(dsql): answer a PostgreSQL server's password challenge
* refactor(dsql): move BackendAuthenticator beside PostgresWire
* test(dsql): run the AuthenticationOk checks over both SCRAM modes
* fix(dsql): refuse an empty SCRAM salt
* fix(dsql): refuse a SCRAM mandatory extension and repeated attributes
* fix(dsql): refuse a password request once the authentication started
* fix(dsql): allow one SASL exchange per connection
* fix(dsql): require the server nonce to extend the client nonce
* fix(dsql): bound the SCRAM messages and salt a backend sends
* fix(dsql): prepare a SCRAM password with SASLprep as PostgreSQL does
* refactor(rds): log the proxy in to its backend through BackendAuthenticator
* fix(dsql): check a SCRAM password before NFKC, as PostgreSQL does
* test(rds): take the mock MD5 backend's expected answer from BackendAuthenticator
2026-11-17 19:03:32 -04:00
Priamo Germosen 8e88ba0915 fix(accessanalyzer): give resource-tag conditions the tags of the analyzer a request names (#8778)
The generated request resources give Access Analyzer's Analyzer type the
aws:ResourceTag/ key, but no service answered the access-analyzer
namespace's stored tags, so a condition on an analyzer's tags saw none.
AccessAnalyzerService now answers it: storedTags reads the analyzer
stored under the Region the ARN names and its name, in the request's
account, where the handlers read, in place, and matched on the whole
ARN. An analyzer's tags are set when it is created and never change.
2026-11-17 18:57:32 -04:00
Oleksandr Nikolaichuk 523eba559e fix(cloudformation): create an EKS cluster with its encryption and network settings, a replacement included (#8739) 2026-11-17 18:53:23 -04:00
TATSUNO “Taz” Yasuhiro 77a4a1ff65 fix(dynamodb): scan when a PartiQL branch names the sort key twice (#8728)
* fix(dynamodb): scan when a PartiQL branch names the sort key twice
* fix(dynamodb): stop at the first PartiQL branch that names the sort key twice
* chore(dynamodb): keep the PartiQL two sort-key rule in one place
* chore(dynamodb): test PartiQL index reads that name the index sort key twice
2026-11-17 18:49:34 -04:00
Allen Sanborn a9cb14b2ea fix(s3): match AWS wording for NoSuchBucket and NoSuchUpload messages (#8655)
Several S3 error messages differed from the text AWS sends. NoSuchBucket and an unversioned bucket's BucketNotEmpty drop their trailing period, and every NoSuchBucket in S3Service now comes from one helper. A bucket with a versioning state adds "You must delete all versions in the bucket." to BucketNotEmpty, NoSuchUpload explains that the upload ID may be invalid or the upload aborted or completed, and InvalidPrefix reads "The annotation prefix you have provided is invalid." Error codes and HTTP statuses are unchanged.
2026-11-17 18:42:56 -04:00
Priamo Germosen f76de9c463 refactor(iam): move request operation resolution out of the enforcement filter (#8785)
IamEnforcementFilter works out which service a request reaches, the
operation it calls there and the IAM action that operation is authorized
as, for Query, Smithy RPC v2, JSON and REST requests alike. That lives in
private methods of the filter and runs only while IAM enforcement is on.

The fault-injection half of #4623 needs the same answer for every request,
enforcement on or off, to match FIS inject-api actions against the
operations they name. Move it, unchanged, into RequestOperationResolver:

- ResolvedAuthorization becomes the public ResolvedOperation record.
- The resolver is an application-scoped bean rather than a JAX-RS
  provider, so it takes the matched ResourceInfo as a parameter.
- The filter builds its own instance from the four collaborators it
  already holds, so none of its constructors change.

RequestOperationResolverTest covers each protocol against the real service
catalog and action rules, with no Quarkus boot.

Refs #4623
2026-11-17 18:35:09 -04:00
Priamo Germosenanddchakrav-github aa2a9f959e feat(core): log every request and response as JSONL behind floci.request-log (#8767)
Seeing what a client sent, and what Floci answered, meant reading
service logs. floci.request-log.enabled (FLOCI_REQUEST_LOG_ENABLED), off
by default, appends one JSON object per request and response to
floci.request-log.file (./floci-requests.jsonl by default). Each line is
shaped like a HAR 1.2 entry and carries callerAccessKeyId, the access
key id the request was signed with, so every call can be tied to the
caller that made it.

The request is captured pre-matching, ahead of every other filter, so a
request another filter aborts is still logged. Its body is read on the
worker thread by a post-matching filter, only when its declared length
is within 256 KiB, and handed back whole to the resource; a chunked
body is not read, so a slow upload never holds a worker. A body that is
not valid UTF-8 is stored base64, a response is cut at 256 KiB with its
full size kept, and a response streamed to the client is never read.

Signature, session-token, credential and cookie headers and presigned
query parameters are redacted, matched by decoded name in the URL too.
Lines are written by a thread of their own from a bounded queue, so a
stalled file never holds a response. The file is created readable by
its owner only, and only a regular file is written: a symbolic link, a
named pipe or a directory at the path is refused.

This is the request-log half of #4623, carried over from #4591.

Refs #4623

Co-authored-by: dchakrav-github <42748809+dchakrav-github@users.noreply.github.com>
2026-11-17 18:34:18 -04:00
Priamo Germosen 57c1704083 fix(iam,sts): hold a GetSessionToken session to the operations it may reach (#8775)
AWS limits the credentials GetSessionToken returns twice over, and Floci held
them to neither (STS API Reference, GetSessionToken, "Permissions"): "You cannot
call any IAM API operations unless MFA authentication information is included in
the request", and "You cannot call any AWS STS API except AssumeRole or
GetCallerIdentity". A session minted without a device reached every IAM
operation and the whole of STS with whatever its user's policies allowed.

Under enforcement such a session is now refused every IAM operation unless an
MFA device minted it, and every STS operation but AssumeRole and
GetCallerIdentity whether or not one did, carrying the sentence GetSessionToken
and GetFederationToken already answer a session caller with. The IAM half names
what the credentials do not hold. AWS publishes no sentence for either refusal,
so both are Floci's own wording, and the STS page records that along with the
difference between the reference's two bullets and the user guide's compressed
one, which this follows the reference on.

A federated session keeps the limits it already carried, an assumed-role session
carries none of these, and the sessions Floci mints for a presigned URL, for a
delegation and for its own signing all name a role or a presigned action, so none
of them is one of these.
2026-11-17 18:33:54 -04:00
rajp33 d7c2616c72 fix(rds): accept IAM auth for PostgreSQL logical replication connections (#8671) 2026-11-17 17:00:09 -04:00
Andre Kurait 6a5a464ca8 test(emr): move Hive and Spark steps to nightly checks (#8738)
* test(emr): move Hive steps to nightly checks alongside session checks
* test(emr): declare nightly Hive and Spark timeout
2026-11-17 16:50:18 -04:00
Andre Kurait 79897e645a test(paymentcryptography): paginate state-filtered key assertions (#8770) 2026-11-17 16:43:21 -04:00
Oleksandr Nikolaichuk 790b93e739 fix(cloudformation): update a KMS key in place unless the engine says it must be replaced (#8718)
An AWS::KMS::Key update created a new key every time and left the old one enabled. The key now keeps its id: Description, KeyPolicy, Enabled, EnableKeyRotation and Tags are updated in place, keeping tags added outside the stack, and a failed stack update puts them back. A changed KeySpec, KeyUsage, Origin or MultiRegion fails the update, as the AWS::KMS::Key reference says. Create now honors KeyPolicy, Enabled, EnableKeyRotation, Origin and MultiRegion, and a key that a failed create or update leaves behind is scheduled for deletion.

Part of #6606
2026-11-17 16:33:26 -04:00
Niels Kootstra 0e782b62f2 fix(sagemaker): filter ListModels by CreationTimeAfter and CreationTimeBefore (#8766)
ListModels ignored CreationTimeAfter and CreationTimeBefore and returned every model. Both now filter before paging, beside NameContains: CreationTimeAfter keeps the models created at or after its time and CreationTimeBefore those created before it, as the ListModels reference describes, and a bound that is not a number is a SerializationException. The page token records both bounds, so a token reused with a changed bound is refused with a ValidationException, as ListTrainingJobs does for its filters.

Closes #7627
2026-11-17 16:23:37 -04:00
Jeremy Chapeau 8eda666f82 fix(iam): populate aws:CurrentTime, aws:EpochTime and aws:TokenIssueTime (#8131)
Every request context now carries aws:CurrentTime and aws:EpochTime, the time of the request, including S3's own bucket-policy check and the context of a call a service makes. Every session Floci issues records when it was issued, the STS sessions and the EC2, ECS and Lambda role sessions among them, and a request signed with it carries that as aws:TokenIssueTime, which long-term access keys leave out, as the IAM User Guide describes. A role policy that denies sessions issued before a time, the guide's way of revoking them, now takes effect.

Closes #8130
2026-11-17 16:14:54 -04:00
Priamo Germosen 1e66899a95 fix(signer): give resource-tag conditions the tags of the signing profile a request names (#8771)
The generated request resources give Signer's signing-profile type the
aws:ResourceTag/ key, but no service answered the signer namespace's
stored tags, so a condition on a signing profile's tags saw none.
SignerService now answers it: storedTags reads the profile stored under
the Region the ARN names and its name, in the request's account, where
the tag handlers read, in place, and matched on the whole ARN. Tag
writes already gave the profile a new map but took no lock, so two
could lose one's tags; every write of a profile's tags now runs one at
a time, and the tags field is volatile.
2026-11-17 15:53:06 -04:00
Priamo Germosen 9821a919b6 feat(emr): run a notebook execution's notebook on its cluster in the docker runner mode (#8764)
With runner-mode docker, StartNotebookExecution now runs the notebook on
its cluster as a step's command runs: a spark-submit there, a YARN
application with the cluster's Spark settings, as the execution's
ExecutionRoleArn, else the cluster's instance profile, with its
EnvironmentVariables (KERNEL_EXTRA_SPARK_OPTS, as AWS's example passes,
going to spark-submit as its options).

No source names AWS's kernel, so a program of Floci's own runs it,
needing only Python and PySpark, which every release's image has, not
Jupyter: it reads the notebook through the cluster's S3A, puts
NotebookParams in papermill's way (a cell tagged injected-parameters
after the one tagged parameters, else first, in place of any an earlier
run left; a name that is not a Python variable's fails the run), clears
every earlier output, runs the code cells in one namespace holding spark
and sc, keeping each one's output, its last expression's value and any
error, stops at the first cell that raises, and writes the notebook as
run as <name>.ipynb and <name>.html, then exits 3. A %%sql cell runs its
body with spark.sql, a %%local or %%spark one as Python, and other cell
magics are not run; % and ! lines are dropped only from a cell that is
not Python as it stands.

The notebook is the execution's NotebookS3Location; Floci keeps no EMR
Notebook's own S3 location, so an execution named by EditorId alone
fails at once. No source gives where AWS writes the notebook as run, so
Floci writes it under the OutputNotebookS3Location prefix, else beside
the notebook, in a folder named for the execution, and reports the one
OutputNotebookFormat names, the HTML one, else the notebook, as
OutputNotebookURI. The execution is START_PENDING until its container
runs, then RUNNING, and FINISHED, FAILED at the first raising cell (any
other failure giving the run's exit code), or STOPPED,
StopNotebookExecution going through STOPPING; its cluster's end stops
it, and one a restart left behind fails as interrupted.

EmrService.runOnCluster runs such a command on a cluster through the
cluster preparation steps and sessions share, its cluster's storage held
while it runs and its end stopping it. As a step's, its thread starts
nothing once its cluster has shut down or a reset's or a shutdown's
teardown has begun; one that cannot be handed to its thread ends at
once.

EmrNotebookExecutionNightlyIntegrationTest runs it for real on an
emr-7.5.0 cluster: a parameterized notebook's run, an earlier run's
parameters in it, written to S3 with its outputs, its %%sql cell's among
them, and HTML; a failing notebook's FAILED with its error kept and an
earlier run's later outputs gone; and a misnamed parameter's run failed
with its exit code.
The nightly job's timeout and image prefetch take the new check.
2026-11-17 15:08:32 -04:00
Priamo Germosen 45aeeb0652 fix(cognito-identity): give resource-tag conditions the tags of the identity pool a request names (#8765)
The generated request resources give Cognito identity pools'
identitypool type the aws:ResourceTag/ key, but no service answered the
cognito-identity namespace's stored tags, so a condition on an identity
pool's tags saw none. CognitoIdentityService now answers it: storedTags
reads the pool stored under the Region the ARN names and its id, in the
request's account, where the tag handlers read, in place, and matched on
the whole ARN. TagResource and UntagResource changed the pool's map in
place with no lock; they now give it a new map one call at a time, and
the tags field is volatile. UpdateIdentityPool, which sets the tags
too, replaces the pool under the same lock.
2026-11-17 14:48:33 -04:00
Ghassan Gedeon Achi f64dea0ba5 fix(athena): run a query that ends in a semicolon or a comment, and reject a second statement (#8682) 2026-11-17 14:40:44 -04:00
Ghassan Gedeon Achi f0b8368a9e fix(athena): run Trino's multi-argument UNNEST on DuckDB (#8683)
* fix(athena): run Trino's multi-argument UNNEST on DuckDB
* test(athena): pin an array of rows as one UNNEST column, as on Athena
* refactor(athena): share identifierEnd and skipSpaceAndComments with AthenaIcebergStatements
2026-11-17 14:39:55 -04:00