Commit Graph
3484 Commits
Author SHA1 Message Date
Robin BaeckmanandRobin Baeckman b4c71b9e25 fix(iam): authorize sts:AssumeRole against the role it names (#6334)
IAM enforcement evaluated every STS action against resource *, so a
policy allowing sts:AssumeRole on specific role ARNs never matched and
the call was denied. sts:AssumeRole is now authorized against the
request's RoleArn, as on AWS. Every other STS action stays at *: like
Logs and Secrets Manager, the resource follows the serving operation,
so a RoleArn added to a call that never reads it, such as
GetFederationToken, cannot make a role-scoped Allow grant that call.

Query-protocol parameters were only read from the URL, never from the
form body the SDKs and CLI POST, so SQS and SNS resource ARNs fell back
to a wildcard the same way. For a form POST they are now read from the
body alone: AwsQueryController dispatches on the body and never sees the
URL query, so authorizing a URL value would check one resource and act
on another. SQS preferred a QueueUrl in the URL over the body's, so it
now reads the body first as well.

A resource field with an invalid percent escape is read as absent, so
the check falls back to the default resource instead of throwing out of
the filter; the request then fails in the form reader exactly as it does
without the resource check. The RoleArn is checked untrimmed, as the
handler uses it. docs/services/sts.md no longer lists the * check as a
known limitation.

Co-authored-by: Robin Baeckman <27041454+RobinBaeckman@users.noreply.github.com>
2026-10-24 08:55:41 -04:00
Robin BaeckmanandRobin Baeckman 1476b0e219 feat(eks): advertise a configurable endpoint host (#6331)
endpoint-mode=host always returned https://localhost:<port>, so a cluster
was only usable from the machine running Floci. The new
floci.services.eks.endpoint-host (FLOCI_SERVICES_EKS_ENDPOINT_HOST) is
advertised instead, and added to the k3s certificate as a SAN so the
endpoint still verifies against the cluster CA. It follows rds.endpoint-host.

The value must be a DNS name, a dotted IPv4 address or an IPv6 address;
an IPv6 literal is bracketed in the endpoint URL. A scheme, port, path or
list stops Floci at startup, before persisted clusters are restored, so a
typo cannot leave every restored cluster FAILED.
Network mode inside a container advertises the container name, so it
ignores the setting.

The SAN is fixed when the container is created, so the container carries
the host it was made for as a label, and an adopted container advertises
that host rather than the configured one. When the two differ on restore,
the surviving container is replaced (data volume and port kept), as a
node-capacity change already does; if the replacement fails, the old
container stays and keeps advertising the host its certificate carries.
Unset, nothing changes: no label is added and existing containers are
adopted as before.

Co-authored-by: Robin Baeckman <27041454+RobinBaeckman@users.noreply.github.com>
2026-10-24 08:55:24 -04:00
TiM 39f37c21ff fix(kinesis): stop routing records to closed shards (#6414)
* fix(kinesis): stop routing records to closed shards

Repeated resharding can leave a selected shard and both of its direct children closed. `selectShard` currently falls back to that closed parent, so a successful write can append after the shard's ending sequence number.

- Follow both parent links through closed intermediate shards to an open descendant, with deterministic breadth-first order and visited shard IDs.
- Reject an unreachable open destination before appending. Keep the producer lock, ordinary-key hash selection, ExplicitHashKey routing, and actual returned ShardId.
- Cover repeated splits, split/merge lineage, malformed graphs, handler success/failure results, and Java SDK writes after resharding.

* test(kinesis): protect breadth-first descendant preference

Add a mixed-depth split topology so routing to the still-open direct child is distinguished from depth-first traversal through its closed sibling.

* test(kinesis): cover both mixed-depth shard layouts

Parameterize the split child so the direct-child preference regression rejects depth-first traversal under either child ordering.

* fix(kinesis): preserve the open-shard routing fast path

Delay the lineage snapshot until the selected shard is closed, avoiding a shard-list copy on ordinary open-shard writes. Name expected descendant destinations in routing fixtures and cover an unrelated open shard preceding the reachable child.
2026-10-24 08:51:07 -04:00
Attila Kis bb32ba06eb fix(lambda): honor MaximumRetryAttempts and DestinationConfig.OnFailure for Kinesis ESM (#6133) 2026-10-24 08:38:22 -04:00
TATSUNO “Taz” Yasuhiro 023cb8341b feat(dynamodb): write export files and descriptions as AWS does (#6400)
* feat(dynamodb): write export files and descriptions as AWS does

* fix(dynamodb): check export prefixes as AWS does

* fix(dynamodb): abort the upload of an export file that fails

* chore(dynamodb): share the timed id of backups and exports

* chore(dynamodb): let tests run exports on the calling thread
2026-10-24 08:38:15 -04:00
TATSUNO “Taz” Yasuhiro 4e0bf080ed fix(lambdaweb): refuse a function name another region already has (#6409)
* fix(lambdaweb): refuse a function name another region already has

AWS keeps web function names unique across the regions of an account.
CreateWebFunction with a name another region has is 409
ConflictException "A function named <name> already exists in the
account. Function names must be unique across all regions in an
account.", at the same point as the same-region conflict.

* fix(lambdaweb): key the function name lock by account

* perf(lambdaweb): find a name in other regions without copying every key
2026-10-24 08:37:19 -04:00
lex00 3b4589645b fix(sns): TagResource and UntagResource return their Result element (#6411)
The AWS SDKs decode both responses through TagResourceResult and
UntagResourceResult, so Terraform's aws_sns_topic tag updates now succeed.
2026-10-24 08:30:04 -04:00
Matt Van HornandMatt Van Horn 6256805c33 fix: allow Cognito custom authentication without CreateAuthChallenge (#6410)
createAuthChallenge now returns an empty map when the trigger is absent,
matching a no-op trigger response. Configured triggers still follow the
existing invocation and error handling. Added coverage compares absent
and no-op triggers, checks required decisions and configured-trigger
failures, and exercises multiple challenge rounds through both admin and
non-admin APIs, including session reuse rejection and token issuance.

Fixes #6345

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
2026-10-24 08:27:54 -04:00
Jimmy Liu Jia 2a1d3f3cec fix(application-autoscaling): paginate describe operations (#6398)
* fix(application-autoscaling): paginate describe operations

* fix(application-autoscaling): harden pagination tokens
2026-10-24 08:22:31 -04:00
Kenshin Okinaka 5a9f9cbbd6 feat(ses): add the v2 reputation entity operations (#6407)
* feat(ses): add the v2 reputation entity operations

Implement ListReputationEntities, GetReputationEntity,
UpdateReputationEntityPolicy and UpdateReputationEntityCustomerManagedStatus.
Every tenant is a reputation entity referenced by its full ARN. The policy
and the customer-managed status live on the tenant record, and the status
is the tenant's aggregate SendingStatus. A tenant whose status is DISABLED
is now refused on SendEmail and SendBulkEmail with MessageRejected.

Shapes, messages and validation order follow probes against real SES.

* test(ses): surface unexpected tenant cleanup failures in the reputation compat test
2026-10-24 08:16:23 -04:00
Vũ Thế Huy 4c70d6b1a2 feat(cloudformation): support Redshift snapshot restores (#6395)
* feat(cloudformation): support Redshift snapshot restores

* fix(cloudformation): address Redshift snapshot restore review findings

- Reconcile ManageMasterPassword and KMS key on in-place cluster update
- Avoid overriding inherited snapshot passwords on unrelated template changes
- Reconcile tags by deleting removed tags on update
- Mint ARN for parameter group tags to prevent invalid parameter errors
- Scope mutate locking during snapshot restore to prevent stalling writes

* fix(cloudformation): narrow Redshift snapshot restore scope

* fix(cloudformation): use shared rollback for Redshift state
2026-10-24 08:01:26 -04:00
Andre Kurait 307380750f feat(ec2): configure additional AWS-managed prefix lists (#6401)
Load an opt-in regional catalog when EC2 is enabled, canonicalize and validate its IPv4 entries, and reuse the read-only discovery and security-group paths. Resolve AWS-managed CIDRs for policy evaluation and firewall generation alongside customer-managed lists.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-24 00:35:46 -04:00
Andre Kurait 70ffbb0f02 fix(ecs): serialize concurrent reconciliation passes (#6399)
Use one reentrant pass lock for scheduled and direct ECS reconciliation. Retain direct fixture ticks and add deterministic contention coverage for both entry points, preserving the exact desired task count.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-24 00:24:17 -04:00
Younes Beriane 020015fd4e fix(elbv2): hold an ACM certificate in use while a listener serves it (#6056) 2026-10-24 00:04:54 -04:00
Vũ Thế Huy 348874766f feat(redshift-data): support session reuse (#6396)
* feat(redshift-data): support session reuse

* fix(redshift-data): address session lifecycle review findings

* fix(test): assert Redshift cancellation monitor directly
2026-10-24 00:01:55 -04:00
Andre Kurait eb84c9d65a fix(test): pin presigned credential reuse clock (#6394)
Use a fixed signing time for the URL structure fixture so legitimate session renewal across a second boundary cannot invalidate its credential-reuse assertion.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 23:30:07 -04:00
Priamo Germosen 15de90c3ff feat(stepfunctions): add the emr-serverless optimized integrations (#6386)
A Task can now use the six optimized EMR Serverless integrations the
Step Functions guide lists: createApplication, startApplication,
stopApplication, deleteApplication, startJobRun and cancelJobRun, each
request-response and .sync. Each calls Floci's EMR Serverless in the
state machine's Region. They failed with "Unsupported resource" before.

A Task names the API's members in PascalCase where the API writes them
in camelCase, so a request and a response are mapped against botocore's
EMR Serverless model, now vendored as aws/emr-serverless-shapes.json by
tools/aws/regen_emr_serverless_shapes.py: a structure's members are
renamed, a map keeps the keys the state machine wrote (tags,
InitialCapacity's DRIVER, a configuration's Properties such as
spark.executor.memory), and a member the model does not have is
dropped. A member, ApplicationId and JobRunId included, may be written
in either case. One the model has and Floci's request class lacks is
refused rather than dropped, and a test holds the classes to the model.
request_shapes.py can now keep output shapes for it. A request
without ClientToken gets a random one, as the SDK fills an idempotency
token in; the guide's examples leave it out.

The result is the API's response in PascalCase, or {"ApplicationId"}
where the API answers nothing, as the guide's table says. The guide
finds no difference between a .sync response and the API's, so a .sync
result is the starting call's own: state machines read a
createApplication.sync result's ApplicationId and a startJobRun.sync
result's JobRunId. A .sync Task records TaskSubmitted and polls
GetApplication or GetJobRun until the state the guide names, as the
elasticmapreduce ones do; a run that ends FAILED or CANCELLED, or an
application that can no longer get there, fails the Task with
States.TaskFailed and the describe response as the cause. A wait that
ends early cancels the run of a startJobRun.sync, stops the application
of a startApplication.sync and deletes the one a createApplication.sync
made, the call each integration's IAM policy grants beyond its own and
its read. EMR Serverless answering that the application or run is gone
or past undoing is logged and leaves the Task ending as it was; any
other failure is raised.

An EMR Serverless error keeps its code under EmrServerless., the
exception prefix the guide gives the service; no record shows the
optimized integration's. A Task without the ApplicationId, or a
cancelJobRun without the JobRunId, it acts on fails with
States.TaskFailed before EMR Serverless sees it.

CreateApplication now stores the configurations UpdateApplication
already did (runtime, monitoring, scheduler, disk encryption,
interactive, Identity Center and job-level cost allocation), and
ImageConfiguration keeps applicationLevelDigestResolution. Both were
dropped, from a Task and from the API alike. A runtime configuration
kept only its properties, lifted out of their member: Jackson bound the
properties member to the field of that name holding every member read.
It keeps its classification and properties now, on update as well.

GetApplication no longer returns the application's clientToken, which
its Application has no member for and which the .sync waits read. The
token stays with the stored application, which CreateApplication's
retries are matched on.

The .sync wait loop the elasticmapreduce integrations had is now shared
by both, as are their request and failure helpers, and the two EMR
Step Functions tests share their state machine helpers.

Part of #6046 (part 11).
2026-10-23 22:16:08 -05:00
Priamo Germosen 6215b6fd38 fix(iam): check iam:PassRole for RDS and DMS (#6389)
Under IAM enforcement an RDS or DMS request that names a role went through without iam:PassRole on
it. AWS's Service Reference lists iam:PassRole, passed to rds.amazonaws.com or dms.amazonaws.com,
for each of these operations, so a caller allowed to change a database could attach any role in
the account to it.

RDS, to rds.amazonaws.com:
- AddRoleToDBCluster, AddRoleToDBInstance, RemoveRoleFromDBCluster, RemoveRoleFromDBInstance,
  CreateDBProxy and ModifyDBProxy pass RoleArn, and StartExportTask passes IamRoleArn;
- CreateDBInstance, CreateDBInstanceReadReplica, ModifyDBInstance, CreateDBCluster,
  ModifyDBCluster, RestoreDBClusterFromSnapshot and RestoreDBClusterToPointInTime pass the
  Enhanced Monitoring role, MonitoringRoleArn ("The user that enables Enhanced Monitoring must be
  granted the PassRole permission.");
- they, RestoreDBInstanceFromDBSnapshot and RestoreDBInstanceToPointInTime pass the directory role
  DomainIAMRoleName names, checked on the ARN IAM holds it under, since the name carries no path;
- CreateDBCluster and the two cluster restores pass each role in AssociatedRoles, at any index and
  in either list form, as the RDS handler reads them;
- ModifyOptionGroup passes the role each option it includes takes in its IAM_ROLE_ARN setting, as
  SQL Server's native backup and audit options do, read as the handler reads OptionsToInclude.

DMS, to dms.amazonaws.com: CreateEndpoint and ModifyEndpoint pass ServiceAccessRoleArn and the
role members the DMS model gives each engine's settings structure (ServiceAccessRoleArn,
SecretsManagerAccessRoleArn, SecretsManagerOracleAsmAccessRoleArn), and CreateReplicationInstance
and ModifyReplicationInstance pass KerberosAuthenticationSettings.KeyCacheSecretIamArn.

docs/services/iam.md lists the operations and the roles they pass.
2026-10-23 22:15:57 -05:00
Priamo Germosen ec5597eb5c fix(iam): check EKS's REST routes and roles, and routes with a trailing slash (#6323)
Under IAM enforcement a REST request whose route no rule maps is let through unchecked. No EKS
route had a rule, so any signed caller could create, read, change or delete clusters, node groups,
Fargate profiles, add-ons, access entries and Pod Identity associations with no EKS permission, and
without iam:PassRole on the roles they named. A Pod Identity association hands its service
account's pods the credentials of its role, so a caller could have pods run as any role in the
account.

Every operation of the eks model now has a rule and is checked as the action of its own name, as
the Service Authorization Reference gives it, including the routes Floci does not serve yet, and
IamRestRouteCoverageTest checks the whole model. Floci takes an access entry's principal as the
rest of the path, so a GET or DELETE under an entry reads or deletes an entry: the entry's access
policy routes, which Floci does not serve, run as DescribeAccessEntry and DeleteAccessEntry and are
checked as those.

Each is checked against the resource the reference gives it, in the caller's account, where EKS
looks everything up:
- a cluster against the ARN EKS holds it under, or cluster/<name> in the request's Region for one
  it holds none of, and CreateCluster against the cluster its body names, as the EKS user guide's
  example policy for creating a cluster grants it;
- a node group, Fargate profile, add-on, access entry or Pod Identity association against the ARN
  EKS holds it under, which ends in an id the request does not carry, read through
  EksService.findResourceArn with the lookups its handlers make; listing and creating them, and the
  other routes under a cluster, against the cluster;
- DescribeUpdate against the add-on the update was made to, since the updates Floci keeps are its
  add-ons' and EKS returns one whether or not the request names its add-on, and otherwise the
  cluster;
- a tagging request against the caller's cluster named after the ARN's last /, as EKS tags it.

The roles each operation passes need iam:PassRole, with iam:PassedToService the value the Service
Reference gives: the cluster role, node role, Fargate pod execution role and an add-on's service
account and Pod Identity roles go to eks.amazonaws.com, a Pod Identity association's roleArn to
pods.eks.amazonaws.com ("The IAM principal that is creating the association must have
iam:PassRole."), and an EC2_LINUX or EC2_WINDOWS access entry's principal to ec2.amazonaws.com.

The router also matches a path with a trailing slash as the path without it, while the rules
matched the slash: POST /clusters/, GET /schedules/ and GET /2015-03-31/functions/<name>/ reached
their operation unchecked. A route is now matched without its trailing slash, as the router
matches it. An S3 path is matched as sent, as before: an S3 key may end in a slash, as a folder
marker's does, and S3's rules already take a bucket's one trailing slash.

docs/services/iam.md says which EKS routes are mapped, what each is checked against and the roles
they pass.
2026-10-23 22:15:46 -05:00
Younes BerianeandPriamo 16c159e5b2 fix(rds): run MySQL and MariaDB with their parameter group values (#5981)
* fix(rds): run MySQL and MariaDB with their parameter group values

A DB cluster parameter group or DB parameter group was stored but never
reached the engine: the container started with only the authentication
option, so the database kept MySQL's built-in defaults.

Every container start (create, reboot, stop and start, emulator restart)
now passes the group's overrides as --loose-<name>=<value> server options:
the cluster parameter group for a cluster, the DB parameter group for a
standalone instance. The loose prefix makes the server skip an Aurora-only
parameter with a warning. Formula values and the parameters that decide
where the server listens and keeps its data are left out, and Floci's
authentication options come last so the proxy keeps working.

DescribeDBClusters now reports DBClusterParameterGroup.

Fixes #5946

* fix(rds): layer the Aurora writer's parameter group and switch groups on modify

Review follow-up:

- require_secure_transport and skip_grant_tables are no longer passed to
  the server, like port and socket: Floci's proxy talks to MySQL without
  TLS, and skip_grant_tables turns networking off, so either would lock
  every client out.
- An Aurora cluster's engine now runs with its DB cluster parameter group
  and the writer instance's DB parameter group on top, so an
  instance-level value such as max_connections reaches the database.
  Creating the writer restarts the cluster's container when its group
  changes the engine's options; every later start reads the writer's
  group too.
- ModifyDBCluster takes DBClusterParameterGroupName and ModifyDBInstance
  takes DBParameterGroupName. The group is checked against the engine
  before anything else in the request is applied, recorded at once, and
  used from the database's next start (a reboot), as on AWS.

* fix(rds): apply Aurora groups on a writer reboot and report incompatible-parameters

Review follow-up:

- RebootDBInstance on an Aurora cluster's writer restarts the database the
  cluster's members share, which is how AWS applies a changed DB cluster
  parameter group or writer DB parameter group. A reader's reboot still
  only restarts its endpoint.
- time_zone reaches the server as --default-time-zone, since MySQL has no
  time_zone option, and Aurora's binlog_format=OFF, which turns binary
  logging off and which MySQL refuses as a value, as --skip-log-bin.
- A server that stops while starting with its parameter group's options
  leaves no container, and its instance, or every member of its cluster,
  reports incompatible-parameters until a reboot starts it with values the
  server accepts. Floci logs the server's error lines.
- DescribeDBClusters names a default DB cluster parameter group only when
  DescribeDBClusterParameterGroups lists it.
- The integration test reboots the writer rather than the cluster, checks
  that binary logging is off, covers a refused value, and skips through
  RdsRequests.assumeDocker.

---------

Co-authored-by: Priamo <pgermosen@gmail.com>
2026-10-23 23:15:19 -04:00
TATSUNO “Taz” Yasuhiro 54b3db771a feat(lambdaweb): serve the Lambda metadata endpoint (#6391)
* feat(lambdaweb): serve the Lambda metadata endpoint

AWS gives each environment AWS_LAMBDA_METADATA_API, AWS_LAMBDA_METADATA_TOKEN
and AWS_LAMBDA_RUNTIME_API, all at one server. It answers the zone id to a
Bearer token with any method, "Client.Unauthorized" with 401 to anything
else, Go's 404 to another path before the token, and a 307 to the clean
path.

* fix(lambdaweb): take the metadata port outside the Runtime API range

The width of that range is the Lambda concurrency, and its ports are only
reached over the Docker network, as any other port is. A listen that fails
now closes its server.

* fix(lambdaweb): start the metadata server before a start mints a session

A metadata server that could not start left the role session and the token
of an environment that never ran.
2026-10-23 23:05:55 -04:00
Andre Kurait b9c67b75f7 fix(test): remove RDS snapshot fixture volumes (#6393)
Remove anonymous PostgreSQL data volumes when cleaning up snapshot round-trip test containers.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 23:04:40 -04:00
Andre Kurait ec7cc6713f fix(test): prove ElastiCache tag writer lock contention (#6390)
* fix(test): acquire lifecycle lock before starting tag writer

Start the tag writer only after the test owns the parameter-group lifecycle monitor, preventing a valid early write from failing the deletion-lock assertion.

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

* fix(test): observe parameter-group monitor contention

Require the tag writer to block on the lifecycle monitor held by deletion before proceeding, and bound worker cleanup. A delayed lock-bypass control passes the prior fixture and fails this one.

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

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-23 21:00:04 -04:00
TATSUNO “Taz” Yasuhiro 05d4786138 feat(dynamodb): restore backups across regions (#6349)
* feat(dynamodb): restore backups across regions

* fix(dynamodb): refuse restores across partitions
2026-10-23 20:51:42 -04:00
Andre Kurait a96921afad fix(redshift): reclaim anonymous container volumes (#6382)
Reclaim disposable anonymous volumes while preserving adopted containers during failed recovery. Retain pre-reboot dumps and failed cleanup ownership across partial teardown. Preserve the original database when only proxy shutdown fails. Share startup orchestration while retaining the opt-in cleanup policy.

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