Commit Graph
3688 Commits
Author SHA1 Message Date
Andre Kurait 5b24703815 fix(ec2): normalize subnet IPv6 CIDRs and expose zone network borders (#6387)
Normalize subnet IPv6 responses and expose regional availability-zone network borders. Keep the read-only regional test at a unique execution order.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 20:27:03 -04:00
Kenshin Okinaka 0acb8cd44c fix(ses): read every SES v2 request body by the same rule (#6385)
Every SES v2 operation reads its body through readOptionBody, now also
CreateEmailIdentity, CreateEmailTemplate, UpdateEmailTemplate,
CreateCustomVerificationEmailTemplate,
UpdateCustomVerificationEmailTemplate and TagResource, which read a body
that is not a JSON object as one without members. Only an empty body is
read as one without members; a whitespace-only body, malformed JSON and
anything but whitespace after the object are a SerializationException
without a message, as AWS answers them. The hand-rolled copies in the
tenant, contact, account, identity, import job, send, dedicated IP,
suppression and template controllers, which answered malformed JSON
with a BadRequestException carrying Jackson's message, are gone, and so
is the import job controller's own strict reader. The operations that
answer an empty body with "Request body is required." no longer give
that answer for a whitespace-only one.
2026-10-23 19:23:56 -04:00
Stuart Lang 42f5019231 fix(cloudwatch): return empty CompositeAlarms and LogAlarms from DescribeAlarms (#6363)
* fix(cloudwatch): return empty CompositeAlarms and LogAlarms from DescribeAlarms

AWS sends every alarm collection even when it is empty. Floci only sent
MetricAlarms, so the AWS CLI's text output printed a leading None line
for each missing paginator result key.

Closes #6362

* test(cloudwatch): check empty alarm collections in sdk-test-python instead of bats

Drop the new AWS CLI bats file and assert the empty CompositeAlarms and
LogAlarms lists in the existing describe_alarms test, as boto3 leaves an
absent list out of the response.
2026-10-23 19:06:44 -04:00
Andre Kurait 8f76b2f0fc chore(logs): share required log group lookups (#6380)
Share plain, stored-name checked and explicit-account lookups while retaining validation order and owner selection.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 19:06:41 -04:00
Andre Kurait ceaad92e06 fix(autoscaling): apply group capacity reservation preferences (#6378)
Honor group preferences and inherited targets in the shared launch path. Preserve failed launch state, limit fallback to capacity shortages, and validate all supplied numeric Query target members. Reuse existing SDK coverage.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 18:23:50 -04:00
Andre Kurait 18910223e1 fix(route53): normalize record name case identity (#6374)
Normalize Route53 record identity without mutating records before batch commit. Reuse the shared ASCII record-name normalization for alias comparison, as requested in maintainer review.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 16:43:25 -04:00
Andre Kurait 5db958c201 fix(redshift-data): isolate receipt sweep failures (#6376)
Continue terminal statement eviction when receipt cleanup fails, preserving active and fresh statements across accounts.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 16:05:46 -04:00
Jimmy Liu Jia 94bdfa462b fix(pipes): render InputTemplate values like AWS (#6352)
* fix(pipes): render input templates correctly (#6308)

* fix(pipes): narrow input template decoding

* fix(pipes): avoid nested body double decoding
2026-10-23 16:00:32 -04:00
Andre Kurait c7d81d7e51 test(cloudformation): make idle timeout coverage deterministic (#6373)
Exercise idle expiration and heartbeat renewal with a controlled monotonic clock and scripted future waits. Keep production defaults on System.nanoTime and CompletableFuture.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 15:35:21 -04:00
Andre Kurait 81d399a1ed fix(ec2): honor capacity-reservations-only launches (#6354)
Require reserved capacity for direct, template, Fleet and Auto Scaling launches. Preserve the targeted shortage message shared with restart. Keep CloudFormation timeout fixtures in their separate contribution.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 15:24:58 -04:00
Isak Lindbeck 6914401ede feat(msk): apply SCRAM credentials in redpanda cluster (#6353)
* feat(msk): apply SCRAM credentials in redpanda cluster

* fix(msk): scope SCRAM synchronization to each cluster

* docs(msk): clarify SCRAM users do not enable broker authentication
2026-10-23 15:09:18 -04:00
lex00 5ed0eca7a9 fix(ec2): revoke security group rules by SecurityGroupRuleId (#6192)
* fix(ec2): revoke security group rules by SecurityGroupRuleId

Both revoke operations read SecurityGroupRuleId.N and delete each named
rule, which also drops it from the group's IpPermissions. A rule id that
names no rule of the group in that direction fails the call with
InvalidSecurityGroupRuleId.NotFound and leaves every rule in place.

* fix(ec2): revoke prefix list and unresolved group rules by id

Removing a rule's peer matches its prefix list id, and a group reference
recorded without an id matches the pair that also has none. A permission
is dropped only once every source, prefix lists included, is gone. Revoke
by id checks and removes its rules under the group lock, and the tests
share one CIDR authorize helper.

* test(ec2): build every rule source through one authorize helper

The helper takes the action, prefix lists, CIDR and description, and declares its request as RequestSpecification.
2026-10-23 15:04:35 -04:00
Andre Kurait f50a698ab7 fix(logs): reject filtering nonexistent log groups (#6372)
Check the scoped log group before parsing a FilterLogEvents pattern. Reuse the missing-group error and cover missing, deleted, empty and populated groups through service and SDK tests.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 15:04:18 -04:00
Jimmy Liu Jia 2cda0110a6 fix(apigateway): map Cognito list claims in REST integrations (#6348)
* fix(apigateway): map Cognito list claims in REST integrations

* fix(apigateway): serialize Cognito groups for mappings
2026-10-23 15:00:56 -04:00
Vũ Thế Huy 38c641ec7e feat(redshift-data): support client token idempotency (#6343)
* feat: support Redshift Data API client token idempotency

* test: verify Redshift Data API retry compatibility

* fix: address Redshift Data admission and cleanup races

* refactor(redshift-data): remove implicit in-memory receipt constructor
2026-10-23 14:36:33 -04:00
Aniket Shukla 4093694451 fix(iot): emit retained message timestamps in milliseconds (#6365)
Match the IoT Data Long response contract instead of emitting floating-point seconds. Cover both retained read responses with fixed values, missing-timestamp controls, and SDK wire round trips.
2026-10-23 14:08:01 -04:00
Vũ Thế Huy 1b8548a0af feat(redshift): create final snapshots before deleting clusters (#6346)
* feat(redshift): create final snapshots before deleting clusters

* fix(redshift): clean failed dumps and scope snapshot locking

* fix(redshift): default manual snapshot retention and fix Spectrum cleanup
2026-10-23 14:06:47 -04:00
Andre Kurait 1f31f5bf48 fix(route53): compare alias target DNS names canonically (#6357)
Fold only ASCII DNS letters and accept an optional trailing dot while keeping distinct target values and rejected batches intact. Exercise compatibility cases using the suite endpoint.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 13:49:29 -04:00
TATSUNO “Taz” Yasuhiro 7e6439cf86 feat(lambdaweb): check the execution role as AWS does (#6347)
* feat(lambdaweb): check the execution role as AWS does

AWS refuses a revision whose execution role is in another account with
403 AccessDeniedException. It refuses a role that does not exist or does
not trust lambda.amazonaws.com with 400 ValidationException, and that
check gives no aws:SourceAccount or aws:SourceArn. An environment
assumes the role with the function as its source, and a request gets
502 Platform.CannotAssumeRole when Lambda can no longer assume it.

* fix(iam): match a wildcard principal and the service keys in service trust

{"AWS": "*"} lets Lambda assume a role, and a Deny on it refuses the role.
Lambda sets aws:PrincipalIsAWSService to true and aws:PrincipalServiceName
to its principal when it checks the role and when an environment assumes it.

* fix(lambdaweb): answer CannotAssumeRole when the role goes during a start

A role deleted after the trust check gave the container the account's
placeholder credentials. AWS answers 502 Platform.CannotAssumeRole for a
deleted role.
2026-10-23 10:50:14 -04:00
Aniket Shukla 99171dcbe0 fix(organizations): return OU and account paths (#6341)
* fix(organizations): return OU and account paths

* fix(organizations): stabilize list path rendering

Render selected resources from request-local parent IDs without leaf rereads. Preserve scoped ancestry errors and tolerate concurrent removal or movement. Reduce account collection scans for a full 20-row page from 21 to 1.

* refactor(organizations): share ancestry walk and path format

Keep live, CloudFormation, and cached list paths on one traversal with caller-supplied parent lookups. Preserve scoped fallback and stale-row handling, and cover root-to-leaf path parity at three depths.
2026-10-23 10:24:22 -04:00
Andre Kurait 7c8daff08f feat(lambda): retarget provisioned alias allocations (#6335)
Retarget provisioned alias allocations while retaining quota and cleanup ownership. Isolate failed replacement writes or unsupported targets to their allocation so unrelated configurations continue reconciling. Retry the retained allocation when its target or storage recovers.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 10:19:57 -04:00
Mario Toffia 6133474079 fix(logs): report missing log groups and streams with AWS's messages (#6340)
ResourceNotFoundException for a missing log group, log stream or
subscription filter now carries AWS's fixed text, ending with a period
and without the resource name. PutLogEvents looks up the log group
before the stream, so a put to a missing group reports the group, as
AWS does, instead of the stream.

Closes #6338
Closes #6339
2026-10-23 10:08:26 -04:00
Andre Kurait 5182449625 fix(ec2): report targeted reservation capacity exhaustion (#6344)
Return ReservationCapacityExceeded when a matching targeted reservation lacks capacity at precheck or admission, including restart. Preserve mismatch errors and existing resource cleanup.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 10:06:37 -04:00
Aniket Shukla 589a6a91f7 fix(bedrock): validate guardrail ARNs for tag actions (#6342) 2026-10-23 09:41:24 -04:00
Jimmy Liu Jia d4f454a1cf fix(elasticache): preserve and mutate resource tags (#6327)
* fix(elasticache): preserve and mutate resource tags

* fix(elasticache): complete resource tag mutations

* docs(elasticache): sync tag actions

* docs(services): update ElastiCache action count

* fix(elasticache): use AWS InvalidARN tag error code

* fix(elasticache): align resource tag mutations with lifecycle and AWS errors
2026-10-23 09:04:51 -04:00
Priamo Germosen a815434e21 fix(codeartifact): release the sidecar concurrency permit when a pypiserver container is torn down (#6337)
SidecarConcurrency's SIDECAR_PERMITS map (added in #6262) never dropped its
entry when repositoryContainerId's container was released, so deleting a
CodeArtifact pypi repository leaked one Semaphore for the life of the
process. Reposilite's shared container key is unaffected since it never
tears down.
2026-10-23 07:50:06 -05:00
Jimmy Liu Jia 1473fc9b83 fix(eventbridge): enforce tag resource ownership (#6326)
* fix(eventbridge): enforce tag resource ownership

* fix(eventbridge): resolve tag ARN partition from request region

* fix(eventbridge): report missing tag resources
2026-10-23 08:49:15 -04:00
Andre Kurait d05399feb1 feat(ec2): associate instances with capacity reservations (#6336)
Associate eligible instances with capacity reservations across EC2, AutoScaling and CloudFormation. Preserve account ownership, rollback, physical stop/start ordering and bounded targeted quota admission.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 08:40:28 -04:00
Vũ Thế Huy 7e51e69c44 feat(redshift): support default IAM roles for COPY and UNLOAD (#6304)
* feat(redshift): support default IAM roles for COPY and UNLOAD

* fix(redshift): distinguish default role keyword from literals

* fix(redshift): accept blank default IAM roles
2026-10-23 08:33:20 -04:00
Priamo Germosen a8b5e8b8ec fix(iam): hold a root approval of a delegation request to four hours (#6321)
Delegated access has two ceilings and only one of them belongs to the request.
The twelve hours sessionDurationType declares are held at the filing, where
SessionDuration arrives. The other is the approver's, and the user guide's own
note states it: "The maximum duration for delegated access is 12 hours.
However, root users can only approve delegation requests with a duration of 4
hours or less. If a request specifies more than 4 hours, you must use a
non-root identity to approve the request." Nothing read it, so the account root
could approve a twelve-hour delegation and the credentials it bought ran that
long.

It is read at the approval rather than at the filing, because that is where the
approver is known: a request longer than four hours is refused for root and the
same request is approvable by an IAM user or role of that account, which is the
remedy the note itself names. Root is the caller whose ARN ends in :root, what
this family already names an approver by, and what a key naming no IAM user
resolves to, so approving a long request locally means signing as a user rather
than with a bare account id.

AcceptDelegationRequest models NoSuchEntity, ServiceFailure and
ConcurrentModification and nothing for this, and no source gives the code AWS
answers, so AccessDenied is chosen and recorded in docs/services/iam.md: the
guide states the rule as which identity may approve, which is what the
release's own OnlySendByOwner rule already answers that way.

Five tests. Three on the service: the refusal at five hours with the privileged
user then approving the same request, the cap itself approved at four hours
exactly, and twelve hours approved by a user to show the cap is the approver's.
Two over the wire: the same refusal where the account id is the signing key,
and the release's id check answered for an id that breaks its pattern rather
than one that is absent, which the absent half's test left uncovered.
2026-10-23 07:27:14 -05:00
Isak Lindbeck 756e72273c feat(msk): support SCRAM secret associations (#6221)
* feat(msk): add SCRAM secret association metadata APIs

Add association, listing and disassociation endpoints with persisted metadata and secret validation. Broker user management and reconciliation follow separately.

* test(msk): enhance cleanup logic in MskTest for SCRAM secrets and KMS keys

* fix(msk): accept resolved secret ARNs with generated suffixes

* fix(msk): reject KMS alias ARNs for SCRAM secrets

Closes #6229

* fix(msk): reject partial secret ARNs with operation-specific errors

* fix(msk): clean up SCRAM associations for deleted clusters

Add scheduled, account-aware cleanup of association left after cluster delete

* fix(msk): allow disassociation of deleted SCRAM secrets
2026-10-23 07:18:33 -04:00
Mario Toffia deeb3b3075 fix(cloudformation): forward Firehose processing and logging configuration (#6277)
* feat(firehose): store and echo CloudWatchLoggingOptions on S3 destinations

CreateDeliveryStream and UpdateDestination silently dropped CloudWatchLoggingOptions because the S3 destination model had no such member. The block is now stored and echoed on both ExtendedS3DestinationDescription and S3DestinationDescription, defaulting to {"Enabled": false} when omitted, as real AWS does. UpdateDestination merges it member-wise, so an update naming only Enabled keeps the stored log group and stream.

* fix(cloudformation): forward Firehose processing and logging configuration

FirehoseCfnProvisioner now reads RoleARN, ErrorOutputPrefix, CloudWatchLoggingOptions and, for the extended S3 destination only, ProcessingConfiguration, resolving intrinsics before handing them to the service. A Lambda transform declared in a template therefore runs on delivery and is echoed by DescribeDeliveryStream, as on AWS. An omitted member stays null so an UpdateStack keeps the stored value, and an unreadable block fails the resource with ValidationError.

* test(cloudformation): cover a stack Firehose stream's Lambda transform end to end

A stack-created extended S3 stream now reads back its role, error prefix, logging options and
Lambda processor, runs that processor on delivery, and picks up a new function on UpdateStack.

* docs(firehose): describe logging options and the CloudFormation members applied

Document how CloudWatchLoggingOptions is stored, defaulted and merged on the S3 destinations, and note which DeliveryStream properties the CloudFormation provisioner applies.

* fix(cloudformation): validate a Firehose stream's forwarded destination like CreateDeliveryStream

The provisioner now runs the same wire-shape validation CreateDeliveryStream applies, so a bad processor or CompressionFormat fails the resource instead of being stored. A structured destination member present as anything but an object also fails rather than being silently dropped.

* docs(cloudformation): name every Firehose property the provisioner applies

* fix(firehose): validate CloudWatchLoggingOptions names against AWS constraints

LogGroupName and LogStreamName are now checked against AWS's 512-character bound and their modeled patterns, reporting both rules when both fail, as probed against real AWS.

* chore: retrigger CI after a transient npm publish race

native arm64 / sdk-test-node ran npm install between the publication of @aws-sdk/lib-storage 3.1156.0 and @aws-sdk/client-s3 3.1156.0, and failed with ERESOLVE.

* test(firehose): share the delivery and Lambda transform helpers in FirehoseRequests

Moves encode, putRecordBatch, firstKey and the record-id driven Lambda transform answer out of CloudFormationFirehoseIntegrationTest and FirehoseLambdaTransformIntegrationTest into one testing fixture both now use.

* fix(firehose): require both log names when CloudWatch logging is enabled

With Enabled true, a missing or empty LogGroupName or LogStreamName is now refused with AWS's InvalidArgumentException, group before stream, on the merged result for UpdateDestination and ahead of the other semantic checks, as probed against real AWS.

* fix(firehose): fill the defaults on a Redshift destination's S3 backup

Create and describe now apply the S3 defaults, including CloudWatchLoggingOptions Enabled false, to a Redshift destination's backup configuration as well as its intermediate one, so persisted streams heal on read.
2026-10-23 07:00:08 -04:00
Mario Toffia ba353021e1 feat(sqs): publish AWS/SQS queue metrics to CloudWatch (#6280)
* feat(sqs): publish AWS/SQS queue metrics to CloudWatch

Every active queue now reports the AWS/SQS metrics once a minute on the
QueueName dimension: the depth gauges, ApproximateAgeOfOldestMessage, the
send, receive, delete and empty-receive counters, SentMessageSize, and for
FIFO queues the in-flight groups and deduplicated sends. The samples follow
what SQS sends on AWS, so alarms, GetMetricData and GetMetricStatistics see
queue metrics without PutMetricData.

The CloudWatch metric store is now journaled under persistent mode, as the
CloudWatch Logs event store is, since it takes a write per metric per active
queue every minute.

Closes #6275

* fix(sqs): stamp queue metrics with the minute that ended

The publisher now ticks just after each minute boundary and stamps its
samples with the minute that ended, so a call counts in the minute it was
made instead of the minute of a startup-relative tick. A queue whose write
fails no longer stops the others, and the log names it. A queue deleted and
created again between the snapshot and the lookup is skipped instead of
reporting the old queue's depth under the new one.

* fix(sqs): bound AWS/SQS metric history and finish the tick on shutdown

The publisher now drops AWS/SQS datapoints older than the 15 days AWS keeps
one-minute data, once an hour, so the history it generates for an active
queue stays bounded. On shutdown it stops before the storage flush and waits
for a running tick, so the last minute is not written after the store closed.

* test(sqs): keep the scheduled metrics tick out of the test run

The acceptance test publishes its own ticks, but the scheduled one could
still stamp the test queue's depth into a complete period newer than them,
since a tick stamps the minute that just ended. floci.services.sqs.
cloudwatch-metrics-enabled now turns the tick off, and the test
configuration does, as it does for the S3 lifecycle sweep. It also lets a
user opt out of the AWS/SQS metric volume.

* test(sqs): build the metrics test's queue service with SqsServiceFactory
2026-10-23 06:57:51 -04:00
Robin BaeckmanandRobin Baeckman 204231d4b3 fix(eks): restore persisted clusters at startup (#6214)
EksService restores persisted clusters in @PostConstruct, but CDI creates
the bean on first use. After a restart no cluster's k3s container came
back until something called the EKS API, so workloads on it stayed down.
EmulatorLifecycle now calls EksService.restorePersistedRuntime from
onHttpStart, after the start and ready hooks. It waits for the IMDS server
to start, because a recreated cluster's Pod Identity and IMDS relays probe
Floci's HTTP port and IMDS before they route pod traffic there. It runs
after the hooks so they and the ready line don't wait minutes for k3s.
If the restore throws, it is logged and the emulator stays up; EKS
requests retry creating the service, as before.

EksBootRestoreIntegrationTest boots a fresh application with EKS out of
mock mode and checks EksService was created without an EKS request, as
EcsBootReconcilerIntegrationTest does for ECS. Its profile pins the HTTP
port, since onHttpStart acts only on quarkus.http.port.

Co-authored-by: Robin Baeckman <27041454+RobinBaeckman@users.noreply.github.com>
2026-10-23 06:55:02 -04:00
Aniket Shukla bc760f743d fix(ec2): list requested launch template versions (#6329) 2026-10-23 06:51:28 -04:00
Alessandro Lattao 3944d6edc2 fix(dsql): enforce IAM and the cluster's policy on the control plane (#6328)
* fix(dsql): enforce IAM and the cluster's policy on the control plane

A cluster's resource-based policy governs DSQL's control plane as well as
its connections (measured, eu-west-1): a Deny of dsql:GetCluster,
UpdateCluster, TagResource or GetVpcEndpointServiceName refuses that call,
and a call it does not name still answers. With IAM enforcement on, Floci
left every DSQL control plane route unchecked: no rule in
IamActionRegistry mapped one, so the policies, identity or resource, were
never read there.

IamActionRegistry maps every operation of DSQL's model to its action, the
stream operations Floci does not serve included, and
IamRestRouteCoverageTest now checks all of them against botocore's routes,
vendored for DSQL by regen_rest_routes.py. ResourceArnBuilder names the
resource each call is checked against, as the Service Authorization
Reference gives it: the cluster, the stream, or the ARN a tagging route
names, minted in the request's partition. CreateCluster and ListClusters
are checked against cluster/*, as DSQL checks them (measured; the
reference lists ListClusters with no resource). The enforcement filter
then reads the cluster's policy through DsqlResourcePolicyProvider, as it
reads a topic's or a function's.

* fix(dsql): check tagging at /tags too, where the ARN is in the query or body

Asked in review: Floci serves DSQL's tagging at /tags as well as at
/tags/{arn}, naming the ARN in the resourceArn query parameter or body field,
and the rules matched only the path form, so a bare /tags call reached DSQL's
tag handler unchecked. The rules now match both, as Scheduler's do, and the
control plane test tags, lists and untags through each form.
2026-10-23 06:51:19 -04:00
Kenshin Okinaka eea87ca998 fix(ses): answer SES v2 wire-type errors with AWS's messages (#6330)
* fix(ses): answer SES v2 wire-type errors with AWS's messages

A scalar for a map member is "Expected map or null", a string, boolean,
object or list for an integer member gets the Integer conversion message,
and a number is narrowed to an int the way AWS reads it (1.5 is accepted,
a value above the int range saturates before the range check). A body that
is not a JSON object is a SerializationException instead of a BadRequest.

* test(ses): give the new SES v2 tests their own order and share the non-object bodies
2026-10-23 06:51:16 -04:00
Robin BaeckmanandRobin Baeckman b806f76f1b fix(rds): forward a PostgreSQL CancelRequest to the backend (#6127)
A client cancels a running query by opening a second connection and
sending a CancelRequest: the backend's process id and secret key from
the BackendKeyData it received at login. The RDS proxy only knew
SSLRequest and StartupMessage, so it logged "Unexpected PostgreSQL
startup protocol version: 80877102" and closed the connection. The
cancel never reached PostgreSQL and the query kept running.

The client already holds the backend's own key, because the proxy
relays BackendKeyData unchanged. So the proxy now passes the 16 bytes
to the backend on a connection of its own and closes, as the server
does. A cancel of any other length is dropped with its own warning.
Redshift clusters share this handler, so they forward cancels too.
A DB proxy endpoint drops a cancel, because RDS Proxy does not support
one.

The RDS integration tests now share their Docker check and their
CreateDBInstance and DeleteDBInstance calls in RdsRequests. The Docker
check uses DockerAvailability, so only a missing daemon skips a test.

Limits: a cancel still takes one of the proxy's connection permits, so
a proxy at its connection limit refuses it, where PostgreSQL itself
would not. And on an auto-paused Aurora backend, a cancel resumes it,
as any other connection does.

Co-authored-by: Robin Baeckman <27041454+RobinBaeckman@users.noreply.github.com>
2026-10-23 06:46:59 -04:00
Andre Kurait 686d0b5f02 fix(storage): publish replacement batches atomically (#6324)
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 06:46:52 -04:00
TATSUNO “Taz” Yasuhiro 80e5df933b fix(dynamodb): show table creation times to the millisecond (#6325)
* fix(dynamodb): show table creation times to the millisecond

* chore(dynamodb): share the time range check between the tests
2026-10-23 06:46:49 -04:00
Aniket Shukla 33620a59c0 fix(logs): preserve and filter log group classes (#6312)
* fix(logs): preserve and filter log group classes

* fix(logs): format class validation with Smithy errors
2026-10-23 06:43:37 -04:00
TATSUNO “Taz” Yasuhiro e7ca14b03b fix(lambdaweb): apply a revision's NODE_OPTIONS as AWS does (#6290)
* fix(lambdaweb): let heap flags in NODE_OPTIONS replace the defaults as AWS does

AWS drops both of its heap flags when NODE_OPTIONS names
--max-old-space-size or --max-semi-space-size, and puts those on the
command line in their place. Floci kept its own flags, so a larger heap
set in NODE_OPTIONS lost to --max-old-space-size=1024.

* test(lambdaweb): copy a quoted heap value from NODE_OPTIONS as AWS does

AWS puts --max-old-space-size="1536" on the node command line with its
quotes. Node refuses that value, so the start fails with
Runtime.ExitError.

* docs(lambdaweb): put the NODE_OPTIONS sentences after the require.main one

* test(lambdaweb): share the default heap flags in the NODE_OPTIONS tests
2026-10-23 06:43:27 -04:00
Andre Kurait 238d16e541 feat(lambda): initialize provisioned concurrency environments (#6320)
Initialize and route qualifier-owned provisioned environments without invoking handlers during initialization. Keep configuration outcomes committed while failed removal remains owned for retry, and bound cleanup after late invocation release. Preserve on-demand spillover and the separate alias-retargeting stage.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 06:35:02 -04:00
Alessandro Lattao f60cf120c6 fix(dsql): evaluate the cluster's resource-based policy on connect (#6319)
DSQL evaluates a cluster's resource-based policy when a client connects
(measured, eu-west-1): an explicit Deny that applies to the caller refuses
the connection with the hint "User: <caller> is not authorized to perform:
dsql:<action> on resource: <cluster ARN> with an explicit deny in a
resource-based policy", under the statement's conditions, aws:PrincipalArn
and aws:SourceIp among them, and a statement that does not apply leaves the
caller's own policies to decide. With IAM enforcement on, the endpoint
checked only the caller's identity policies.

DsqlResourcePolicyProvider supplies a cluster's policy through
ResourcePolicyProviders, as the SNS and Lambda providers do, and the
endpoint evaluates it with the caller's policies and SCPs as
LambdaTaskAuthorizer and LambdaWebIamAuth evaluate a function's policy:
evaluateResourcePolicyFor, then evaluateResolvedResourcePolicy, with the
client's address as aws:SourceIp. With enforcement off nothing is
evaluated, as for every other policy in Floci.

DsqlService already built the cluster policy's context for the lockout
check and the "is not authorized" sentence for the tag refusals; both now
come from DsqlPrincipals (policyContext, notAuthorized), which the endpoint
uses too, instead of a third copy.

The policy also governs control plane calls on DSQL (measured), but Floci's
IAM enforcement names DSQL's control plane resources as *, so that is left
as it is.
2026-10-23 00:01:44 -04:00
TiM 212a424ed2 fix(s3): keep Object Lock buckets versioning-enabled (#6322)
A bucket with Object Lock is versioned for good. PutBucketVersioning
with Suspended on such a bucket now answers 409 InvalidBucketState and
leaves it Enabled, and PutObjectLockConfiguration on a bucket whose
versioning is unset or suspended answers 409 InvalidBucketState and
enables nothing, matching the AWS-recorded messages. CloudFormation goes
through the same PutBucketVersioning path, so an update that suspends a
locked bucket rolls back.

Both checks run with the write under the bucket monitor, and CreateBucket
with Object Lock now enables versioning and the lock in one step, so no
concurrent request can leave a locked bucket suspended.

Buckets stored in either state by an earlier release load as they were;
the null-version protection for them is unchanged, and its tests now set
that state on the stored bucket.
2026-10-23 00:00:01 -04:00
Priamo Germosen 63d577a245 feat(emr-serverless): tag job runs and report their attempts (#6297)
TagResource, UntagResource and ListTagsForResource now take job run ARNs
(.../applications/<id>/jobruns/<id>), which the model's ResourceArn
allows ("the supported resources are Amazon EMR Serverless applications
and job runs"). They work on the tags StartJobRun stores, so GetJobRun
reports the current set, under the same rules as an application's: at
most 50 tags, no "aws:" prefix. An ARN must be the run's own, so one of
another application or account names nothing, and once an application
is deleted its runs' ARNs name nothing, as its own ARN already does. A
session ARN, which the pattern also allows, now answers
ResourceNotFoundException rather than ValidationException, as sessions
are not emulated.

ListJobRunAttempts (GET .../jobruns/{jobRunId}/attempts) and GetJobRun's
attempt parameter report attempts. Nothing runs, so no run fails and
none is retried: every run is one attempt, number 1, created and updated
with the run. GetJobRun, ListJobRuns and ListJobRunAttempts carry it.
GetJobRun with attempt 1 or none returns the run; another attempt
answers ResourceNotFoundException, in Floci's words, as no source shows
AWS's answer for an attempt a run never made, and leaves the run as it
was.

Also from the #6202 review:

- From release emr-7.11.0 a BATCH run's executionTimeoutMinutes must be
  1 to 10080. The model: "the maximum value is 10080 minutes (7 days)
  starting with Amazon EMR release 7.11. Setting a value of 0 to disable
  the timeout is no longer supported for BATCH mode job runs." Earlier
  releases and STREAMING runs keep 0 to 1,000,000. No source gives the
  error; ValidationException, in Floci's words. The check runs before
  auto-start, under the application's lock, so a refused run leaves the
  application as it was.
- ListJobRuns refuses a state or mode that does not exist and more than
  8 states, and ListApplications a state that does not exist and more
  than 7, with the framework ValidationException. A typo listed nothing
  before. ListApplications' maxResults outside 1 to 50 now answers the
  same framework message, joined with any states violation.
- EmrServerlessRegionIntegrationTest uses EmrServerlessRequests, which
  gains tagsPath, and pins a job run ARN across Regions;
  EmrServerlessTagIntegrationTest moves onto the same helpers.

The enum and range violations are now SmithyValidationErrors.notInEnum,
notAllInEnum and outOfRange, which EMR Serverless uses.

Part of #6046 (part 9).
2026-10-22 22:22:03 -05:00
Priamo Germosen 581cd62790 perf(codeartifact): parallelize per-version metadata fetches in ListPackageVersions (#6262)
Qodo follow-up from #6204: PypiserverSidecarClient and ReposiliteSidecarClient each made
one sequential HTTP request per version (a HEAD per pypi release, a details GET per Maven
version) before CodeArtifactService paginated, so even a one-result page waited on every
version's own round trip.

Both now run their per-version requests through a new shared SidecarConcurrency.mapBounded,
capped at 8 concurrent requests per sidecar container. The cap is enforced by a shared,
per-container permit (keyed by pypiserver's repositoryContainerId, or a single constant for
Reposilite's one shared container) rather than a per-call-only limit, so two simultaneous
listPackageVersions calls against the same container still can't exceed 8 requests between
them. Tasks run on a virtual-thread-per-task executor, not a platform-thread pool: mapBounded
submits every item up front and lets the semaphore do the real gating, so a package with
thousands of versions doesn't start that many platform threads per call, each just parked in
Semaphore.acquire(). A failure (or the caller being interrupted) also cancels the rest of the
call's work, instead of leaving it running against the sidecar after the call has already
failed. Results stay in input order and a failing item still fails the whole call, matching
the original sequential behavior exactly.

Verified with unit tests for the helper (ordering, the per-container concurrency cap, the
cap holding across two simultaneous calls sharing a container, exception propagation,
cancellation of the rest of the work after an early failure) and a 12-version Docker-gated
test per format against the real pypiserver and Reposilite sidecars, on top of the existing
single-version coverage.
2026-10-22 22:21:52 -05:00
Andre Kurait 6bc598fbfd feat(lambda): add provisioned concurrency configuration APIs (#6317)
Add the requested control-plane stage: Put/Get/Delete validation, persistent desired configuration, qualified IAM resources, and cleanup on version, alias, and function deletion. Share the function concurrency lock with reservation changes. Runtime initialization and invocation routing remain separate.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-22 23:19:11 -04:00
Priamo Germosen 27338a62b7 feat(iam): answer GetHumanReadableSummary for a delegation request (#6298)
The ninth and last operation of IAM temporary delegation, and the last one the
model publishes that is not an M3 404: a delegation request now comes back as a
Markdown summary instead of UnsupportedOperation, which takes IAM to 177 of the
180 operations botocore 1.43.113 publishes.

AWS generates that text with a large language model, so this is the one piece of
the family that cannot be its answer. What is sourced is the format, the
reference's own example answering "Human readable summary in Markdown format",
and the shape: EntityArn 20 to 2048, Locale 2 to 12, SummaryContent up to 10000
characters and the four SummaryState values. Every line is read off the record,
so one request summarizes the same way twice: what is being asked for, by whom,
for how long, and where it has got to. The services and actions the console
credits its AI summary with are the one half missing, for the same reason
nothing renders a PermissionPolicy here, that no API registers the template AWS
resolves one from, so the template and its parameters are named instead.

Who may read a summary is who may read the request, which the reference states
outright, so the lookup is GetDelegationRequest's and so is the NoSuchEntity it
answers. The request is authorized against the ARN Floci mints around the id
EntityArn names, which is the one its five by-id siblings already resolve: a
policy naming one request authorizes that request alone, and a deny on it holds
however the caller respells the ARN. An ARN of another service names no request
of IAM's to summarize.

Four answers are chosen rather than read, each recorded in docs/services/iam.md:
an ARN of another entity type is NOT_SUPPORTED, a locale Floci does not write is
NOT_AVAILABLE with no content, a value that is no ARN at all is the modeled
InvalidInput, and an id inside a well formed ARN that no id could match is
NoSuchEntity rather than a constraint failure.

The text is the requester's, and the summary is Markdown, so it is escaped
rather than passed through: the model lets a description, a message and a
parameter value carry newlines and backticks, which would otherwise forge a
heading, a bullet or a code span inside a document read as Floci's own account
of the request. A parameter value the record does not hold is left out, and an
indexed value arriving as a key with nothing under it is no longer stored as
one.
2026-10-22 21:55:05 -05:00
Priamo Germosen 27caa82349 refactor(core): move the Query list member pattern into a shared helper (#6306)
PassedRoles, in core.common, read a Redshift cluster's roles through
RedshiftQueryHandler.memberKeyRegex, so core depended on a service class.
The pattern now lives in core.common.AwsQueryLists, and both call it.

AwsQueryLists reads a list's numbered members in the three forms the
Redshift and RDS handlers accepted: the generic List.member.N, List.Name.N
when the list's shape names its member, and a bare List.N, every N in
numeric order with no stop at a gap. memberKeys gives the key pattern,
values the non-blank values, and memberIndex the number a key ends in,
which the Redshift handler also sorts its integration filters and
parameters by.

The Redshift and RDS handlers each keep their table of the names their
list shapes give their members (Redshift's SubnetIdentifier and
IamRoleArn, RDS's OptionName and AttributeValue, and so on) and pass the
name in, so the helper holds nothing specific to either. RDS had its own
copy of the reader, memberKeyRegex and numericSuffix included, and now
calls the helper too. PassedRoles names IamRoleArn for IamRoles and
AddIamRoles, the way its other cases name the members the handlers read.

No behaviour changes: the same keys are matched, in the same order, and
the same values read.
2026-10-22 21:54:54 -05:00