Commit Graph
4194 Commits
Author SHA1 Message Date
Andre Kurait d6aed932a1 fix(ecr): paginate repository descriptions (#7711)
Preserve named lookups and bind continuation tokens to region and account.

Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-11-06 20:47:00 -04:00
Jackson Price a14dc18feb fix(codepipeline): snapshot actions before concurrent request reads (#7710)
Copy action-list membership under the existing execution monitor before
listing, approval and stage lookups. Reuse the snapshot for action ownership
lookup and stop completion so registration cannot invalidate a traversal.

Cover the four affected request paths with deterministic registration tests.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-11-06 20:13:28 -04:00
Andre Kurait 765647268b fix(sns): forward CloudFormation subscription roles (#7683)
Resolve SubscriptionRoleArn for SNS subscriptions and update the role without replacing the subscription. Remove the covered CloudFormation property gap.

Validate RawMessageDelivery and FilterPolicy when Subscribe reuses an existing subscription; preserve omitted/default attributes and explicit updates.

Update the stack subscription by its prior physical identity when topic, protocol and endpoint are unchanged. Preserve Subscribe validation for creates and target replacements, reset dropped declared attributes and validate firehose roles before other attribute writes. Cover FilterPolicy and raw delivery updates/removal through CloudFormation and SNS SDKs.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-06 20:12:45 -04:00
Rafael Padilla feb9364760 fix(apigatewayv2): accept array aud claim in HTTP API JWT authorizer (#7377) 2026-11-06 20:10:56 -04:00
Murtuza Chhil 4617e4a4f8 feat(paymentcryptography): the data plane as a service of its own (#7396)
* feat(paymentcryptography): the data plane as a service of its own

docs(paymentcryptography): the data plane has a page of its own

fix(paymentcryptography): a MAC under a three-key Triple DES key is computed

test(paymentcryptography): a key of another purpose does not encrypt data

feat(paymentcryptography): the data plane's IAM is generated

fix(paymentcryptography): a DUKPT MAC needs a base derivation key

fix(paymentcryptography): a key whose material is not held is refused

docs(paymentcryptography): the data plane's example runs

test(paymentcryptography): the data plane through the AWS SDK

test(paymentcryptography): the data plane through the AWS CLI

fix(paymentcryptography): the CLI test removes the keys it makes

docs(compat): the AWS CLI suite names the data plane

test(paymentcryptography): the route is read as the registry reads it

test(paymentcryptography): the request names its method and its URI

fix(paymentcryptography): the cipher pads no data

fix(paymentcryptography): the data plane takes the service scope

fix(paymentcryptography): a MAC length that is not a number is refused

docs(paymentcryptography): the data plane says the cipher pads no data

fix(paymentcryptography): the data plane ciphers with Triple DES as well

fix(paymentcryptography): the scope alias names the model's scope

fix(paymentcryptography): the Triple DES cipher is BouncyCastle's

fix(paymentcryptography): the usage and the blob keep their comments

fix(paymentcryptography): a key's family is read from its algorithm

fix(paymentcryptography): the cipher reads the vector through one helper

test(paymentcryptography): the keys are built by one builder

fix(paymentcryptography): the data plane checks the model's rules

fix(paymentcryptography): the Triple DES check value is BouncyCastle's

fix(paymentcryptography): the SDK names it TDES_2_KEY

docs(contributing): the ciphers come from BouncyCastle

refactor(paymentcryptography): the model owns the request shapes

refactor(paymentcryptography): the ciphers are BouncyCastle's

test(compat): one helper makes a key of either algorithm

docs(contributing): the cipher rule comes out

fix(paymentcryptography): the refusals are the model's

refactor(paymentcryptography): the ciphers are one helper each

refactor(paymentcryptography): the generators share the helper

docs(paymentcryptography): the javadocs name both ciphers

test(aws): the moved constants read from the shared helper

fix(paymentcryptography): the deprecated cipher constructors go

chore(paymentcryptography): the duplicate import goes

test(paymentcryptography): the DUKPT vectors the standard publishes

fix(paymentcryptography): the DUKPT refusal is the derivation's

docs(paymentcryptography): the retail MAC is over a double-length key

fix(paymentcryptography): the ISO 9797-1 MAC pads only a partial block

refactor(paymentcryptography): the refusals the model already makes

chore(aws): the routes are generated from the models again

* chore(aws): the IAM resources are generated again
2026-11-06 20:05:00 -04:00
TATSUNO “Taz” Yasuhiro ae196fb9ac perf(apigateway): skip execute-api work on requests for other services (#7691)
The execute-api host filter parsed the request URI and ran a regular
expression on every request. The response filter created the
request-scoped route context on every response, and that object calls
UUID.randomUUID() when it is created.

The host filter now refuses a host without the regular expression and
returns before it reads anything else. The response filter checks the
path first, so the route context is created only for API Gateway paths.
2026-11-06 20:00:27 -04:00
Joe Ebmeier d9f0bab177 fix(s3): preserve encryption fields on browser POST uploads (#7646)
fix(s3): authorize POST encryption settings and report them

fix(s3): reject incompatible POST encryption fields

fix(s3): normalize POST encryption before authorization
2026-11-06 19:47:59 -04:00
Charles Swanberg 8bc134cc84 fix(lambda): limit a function container's memory and swap together to its MemorySize (#7704) 2026-11-06 19:39:52 -04:00
Abhigya 8b81638490 fix: release origin connections after refused WebSocket upgrades (#7694) 2026-11-06 19:22:26 -04:00
Vũ Thế Huy 8cff513c8d feat(redshift): take an S3 bucket as the source of an integration (#7466)
CreateIntegration accepts arn:aws:s3:::bucket with a Serverless namespace or cluster target. The bucket must exist in the integration's Region and have no period in its name, a bucket joins a target once, and a target takes at most 50. The integration reports SourceType s3-event-notifications, starts no poller and publishes no zero-ETL events.

fix(redshift): validate S3 integration source and target identities

fix(redshift): resolve unstored S3 bucket Region in default Region

Fall back to the deployment default Region when an S3 bucket has no stored Region, match bucket partition using RegionResolver.partitionForRegion, and remove the unused two-argument RedshiftZeroEtlEndpoints constructor.
2026-11-06 19:20:05 -04:00
Matheus Oliveira ad8c35888f fix(cognito): report EXTERNAL_PROVIDER status for federated users (#7553)
Federated users provisioned via the hosted UI were reported with
UserStatus CONFIRMED. AWS reports EXTERNAL_PROVIDER for users that
sign in with a third-party identity provider.

- Set user status to EXTERNAL_PROVIDER in provisionFederatedUser
- Update test assertion accordingly

Closes #7545

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

fix(cognito): preserve status of linked and permanent-password federated users

Addresses qodo review: provisionFederatedUser no longer overwrites
EXTERNAL_PROVIDER on linked local profiles or federated profiles that
had a permanent password assigned.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

fix(cognito): track auto-provisioned status to preserve linked users on re-sign-in

Use a persisted federatedAutoProvisioned flag instead of overwriting
federatedProviderName, so linked profiles and permanent-password users
keep their status across repeated federated sign-ins.

Addresses pgermosen review.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

test(cognito): add re-sign-in status preservation tests

Covers linked profile re-sign-in and permanent-password profile re-sign-in.
Addresses pgermosen review.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-11-06 19:18:24 -04:00
Jackson PriceandAndre Kurait cb07f9f773 fix(rds-data): make transaction expiry tests independent of scheduling (#7630)
Use an injectable UTC clock for transaction deadlines. Advance the test clock
only after the blocking query starts, then check idle expiry after it finishes.
This removes the one-second wall-clock race without changing runtime TTLs.

test(rds-data): reuse the shared manual clock

Use ManualClock for the transaction concurrency fixture and advance it
through its existing duration-based interface.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-06 19:15:18 -04:00
luiseterc 1ce40a1c79 fix(iam): populate stored caller principal tags (#7591) 2026-11-06 19:14:20 -04:00
jwoa95 983fdecc79 feat(elbv2): make backend HTTP connection reuse configurable (#7557)
Expose backend keep-alive and idle-pool timeout controls while retaining the existing defaults. Preserve target failures without replaying uncertain requests, and document target timeout hints and local transport limits.

Validate negative idle timeouts with a Floci-specific error before creating clients, and attempt every fixture cleanup step while preserving aggregated failures. Cover negative, zero and positive configuration values and real-listener connection behavior.

Closes #7524

test(elbv2): replace timer-dependent backend checks
2026-11-06 19:11:17 -04:00
Mario Toffia 2df2a1e149 fix(ecs): give an awsvpc task the address it reports (#7645)
With Docker-backed VPC networks, one container of an awsvpc task joins
its VPC's Docker network at the task ENI address, so the address
DescribeTasks reports answers. A Lambda function with VpcConfig joins
the same network at an address leased from its first subnet, skipping
addresses an interface already holds, and returns it once its container
is removed. Peer and Cloud Map addresses still resolve on the network a
container was created on.

Closes #7639
2026-11-06 19:10:49 -04:00
TATSUNO “Taz” Yasuhiro dba4a4fc52 fix(dynamodb): refuse a keyword after a dot in a PartiQL path (#7685)
* fix(dynamodb): refuse a keyword after a dot in a PartiQL path

* test(dynamodb): give the path dot test its own order
2026-11-06 19:07:49 -04:00
Hector Ventura 7cf443fcee chore: rename the package to io.floci.aws (#7689)
Move the Java sources from io.github.hectorvent.floci to io.floci.aws, matching io.floci.gcp, io.floci.az and io.floci.oci. Generated by tools/rename/rename_package.py apply on the base commit, with no other edits.

Logger categories and the arn.fail-on-blank-region property move to the io.floci.aws prefix. The pom groupId becomes io.floci; the artifactId stays floci.

Refs #6589

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-11-06 11:07:21 -04:00
Andre Kurait 81ff58630e fix(ec2): use EC2 envelopes for token and signature errors (#7640) 2026-11-06 09:38:23 -04:00
TATSUNO “Taz” Yasuhiro 07d75c8c8e fix(dynamodb): check BatchGetItem and BatchWriteItem table names, list sizes and enums before the tables (#7650) 2026-11-06 09:37:11 -04:00
Daniël van Ziel c1a88b8ab8 feat(bedrock-agentcore): keep runtime endpoint create tags and support tagging them (#7597) 2026-11-06 09:31:50 -04:00
Oleksandr Nikolaichuk 0cb45a86df fix(cloudformation): keep NAT gateway secondary addresses the stack never declared (#7669)
* fix(cloudformation): keep NAT gateway secondary addresses the stack never declared

* test(cloudformation): keep NAT gateway secondary addresses the stack never declared

* fix(cloudformation): a null NAT gateway secondary property counts as not declared

* test(cloudformation): a null NAT gateway secondary property counts as not declared
2026-11-06 09:28:00 -04:00
jwoa95 f8670f64fb feat(quicksight): add metadata APIs and limited registered-user embedding (#7529)
Closes #7522

Origin comparisons preserved host casing and default ports, CSP named only the immediate parent, and expired sessions remained in storage indefinitely. Normalize both sides of origin checks, allow all configured ancestors, and reap expired sessions across accounts with the shared sweep worker.
2026-11-06 09:11:30 -04:00
luiseterc 5058163409 fix(route53): resolve private SRV records with stored values (#7587) 2026-11-06 09:08:09 -04:00
Niels Kootstra 44565360e2 fix(secretsmanager): keep a version written under the rotation token during the test step (#7663) 2026-11-06 09:02:26 -04:00
luiseterc c3058a8de4 fix(iam): generate resource and request tag condition context (#7589) 2026-11-06 09:02:14 -04:00
TATSUNO “Taz” Yasuhiro cf4b3f0e82 perf(core): read the SigV4 credential scope without regular expressions (#7658)
* perf(core): read the SigV4 credential scope without regular expressions

Every request ran its Authorization header through regular expressions
five to eight times to read the access key, the region and the signing
service. The account id check String.matches("\\d{12}") also compiled a
new pattern twice per request.

SigV4CredentialScope, RegionResolver and AccountResolver now read the
common header shape with indexOf. Any other shape still goes through the
same regular expressions, so every result stays the same. The account id
check is a plain loop.

* perf(core): read the access key by hand and skip the regexes without a credential
2026-11-06 08:56:43 -04:00
Jimmy Liu Jia 7f43385349 fix(rdsdata): escape PostgreSQL question-mark operators (#7632) 2026-11-06 08:55:58 -04:00
Vũ Thế Huy 576646aae7 fix(redshift): run COPY ETL options on PostgreSQL 15 across protocols (#7514) 2026-11-06 08:50:21 -04:00
Charles Swanberg a0b39a4ad0 fix(cloudformation): name an https ResponseURL for a custom resource when TLS is on (#6993) 2026-11-06 08:44:43 -04:00
Hector Ventura b1ba11c61e feat(stepfunctions): evaluate the execution role on SNS and EventBridge tasks (#7622) 2026-11-06 08:34:39 -04:00
Jackson Price cdcb79a832 fix(codepipeline): synchronize action abandonment with registration (#7634)
StopPipelineExecution traversed the action list while a worker could append
to it under the execution monitor. Use the same monitor for abandonment
so a concurrent registration cannot invalidate the traversal.

Add a deterministic public-handler regression that registers an action
while the stop waits and verifies that only in-progress actions are abandoned.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-06 08:30:39 -04:00
Niels Kootstra bcbd7c8d9d fix(secretsmanager): stage an AWSPENDING version for the test step of a rotation that is not immediate (#7642) 2026-11-05 16:45:19 -04:00
ShryukGrandhi 13d6dd18d4 fix(elbv2): serve and restore load balancers outside the default account (#7620)
A listener port carries no credentials, so the data plane read target
groups, load balancers and listeners as the default account and answered
502 for any other account. Read them as the account in the listener ARN.

Startup ran outside a request too, so only the default account's indexes,
listeners and health monitors came back. Rebuild the indexes from every
account and restore each stored account as itself.

Signed-off-by: ShryukGrandhi <85529990+ShryukGrandhi@users.noreply.github.com>
2026-11-05 16:38:40 -04:00
TATSUNO “Taz” Yasuhiro 221d25a4cd chore: reuse the shared SigV4 URI encoder and signing key helpers (#7635)
Five classes had their own copy of the SigV4 URI encoder, and three had their own copy of the signing key derivation and HMAC-SHA256. They now call SigV4Canonicalization.uriEncode and SigV4RequestValidator. The S3 list response encoding for encoding-type=url also uses the shared encoder instead of URLEncoder and three replacements.
2026-11-05 16:36:37 -04:00
Oleksandr Nikolaichuk fd29b4aa32 test(cloudformation): record and ratchet what a dropped property does (#7599) 2026-11-05 16:21:36 -04:00
Jackson PriceandAndre Kurait a884257311 fix(appconfig): isolate resources and sessions by region (#7621)
Scope AppConfig stores, sessions and deployment cursors to the request's
account and region. Keep legacy keys in the configured default region.
Adapt the source change to current deployment and CloudFormation behavior,
and cover storage reloads and SDK routing.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-05 16:13:12 -04:00
Aniket Shukla 36fbc33a2f fix(stepfunctions): scope callbacks and workers to execution region (#7633) 2026-11-05 15:48:46 -04:00
TATSUNO “Taz” Yasuhiro 0c33083803 perf(sns): find a topic's subscriptions without copying every subscription key (#7631)
* perf(sns): find a topic's subscriptions without copying every subscription key

* perf(sns): match a topic's subscription keys without copying each one
2026-11-05 15:42:48 -04:00
Andre Kurait d34c8443cd fix(ec2): return modeled authentication error envelopes (#7613) 2026-11-05 15:36:40 -04:00
Jimmy Liu Jia f2debe4ce0 fix(cloudformation): preserve KMS key spec and usage on create (#7612)
* fix(cloudformation): preserve KMS key spec and usage on create

* fix(cloudformation): delegate KMS key defaults to service
2026-11-05 15:30:24 -04:00
Vũ Thế Huy de71d91d8c feat(redshift): add COPY JOB create, list, show, alter and drop (#7465)
A job stores the parameters of a COPY from S3 in the cluster database, and sys_copy_job lists it with AWS's columns. The checks AWS documents are made when the job is created: an S3 source, an explicit IAM_ROLE, no manifest, access keys, MAXERROR or IGNOREALLERRORS, no hyphen in the name, no transaction block, at most 200 jobs. COPY JOB RUN is refused until files can be loaded automatically.
2026-11-05 15:11:51 -04:00
Jimmy Liu Jia e9378bb71a fix(core): avoid Podman host-gateway aliases in container builder (#7572)
* fix(core): avoid Podman host-gateway aliases in container builder

* fix(core): share host alias parsing and log probe failures

* refactor(lambda): reuse builder host alias guard and test fixture

* fix(docker): register version response for native image
2026-11-05 14:08:44 -04:00
jibin-jusdb a613d7b0c3 fix(ec2): let only the latest service-network lookup publish its address (#7583)
StartInstances keeps the container, so the container check alone let a lookup started before a stop overwrite the address learned after the next start. Each lookup now takes a sequence number under the instance lock and publishes only while it is still the latest for the instance.

fix(ec2): drop service-network lookup state when an instance terminates

The lookup sequence and retry marker were cleared only when a launch failed, so every instance terminated normally kept an entry for the life of the process. terminate now clears both under the instance lock, and a lookup that runs once the instance is shutting down or terminated starts nothing and records nothing.

test(ec2): share the paused service-network lookup between the race tests

The replacement, stop-and-start and teardown tests each built the same paused lookup by hand: two latches, an inspect that blocks on its first call, and a virtual-thread lookup joined after the release. PausedLookup holds that setup once.

Closes #7582
2026-11-05 13:58:32 -04:00
Matheus Oliveira e42f97df08 fix(ec2): implement filters for DescribeVpcEndpointServices (#7261)
- Add support for owner, service-name, service-region, service-type,
  supported-ip-address-types, tag:key, and tag-key filters
- Build service details with all properties for filtering
- Validate filter names before iterating services
- Return InvalidFilter (HTTP 400) for unknown filter names
- Keep requested service names unchanged
- Preserve S3 gateway service in China partition
- Validate service-name filter values, reject regex metacharacters
- Use AWS error message wording for unsupported filter values
- Use Ec2Service.requireSupportedFilters for filter name validation
- Reuse Ec2Service.wildcardMatches for wildcard matching
- Integration tests for all filter types
- Cover unknown filter name, '[' and 's3+' values, and refusal after an
  earlier filter empties the candidate set

Closes #6958

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-11-05 13:56:26 -04:00
Andre Kurait f719d6af56 fix(ecr): validate lifecycle policy documents before mutation (#7611) 2026-11-05 13:54:02 -04:00
Abhigya 2c49f5ecb5 fix(core): share URI rewrite workaround with Lambda and Cognito (#7610) 2026-11-05 13:40:59 -04:00
galsuchetzky-act 918ce95b53 fix(cloudformation): list a service-managed stack set's targets and tags in DescribeStackSet (#7242)
AWS returns a stack set's tags and the recorded root and OU deployment targets of a service-managed stack set. Read the same saved targets that ListStackSetAutoDeploymentTargets reports.

Replace the tag map on UpdateStackSet instead of clearing and refilling a map that a concurrent DescribeStackSet may be reading. Copy the request's tags so the published map is independent of later request changes.

Cover both response members, an update interleaved with tag iteration, and request-map isolation with regression tests.

Use the shared account-scoped InMemoryStorageFactory for the added regression tests instead of a private factory copy.
2026-11-05 13:38:13 -04:00
Aymen JAMAAOUI 5bcb83b932 fix(iam): check Redshift requests on the resources they name (#7287)
Under IAM enforcement, Redshift requests were checked on `*`, so a
grant scoped to a cluster, a snapshot or a database user was refused,
and a deny scoped to one never applied.

The redshift namespace moves from NOT_COVERED to NAMESPACES in the
request resources generator, with corrections where the generated rule
checks the wrong resource. GetClusterCredentials now also gives the
redshift:DbUser condition key, from a new generated table, to its own
check and to the CreateClusterUser check that AutoCreate adds.

Refs #5907

fix(redshift): act only on a snapshot of the cluster the request names

A snapshot request is checked on snapshot:<cluster>/<name> for the
cluster it names, but DeleteClusterSnapshot, RestoreFromClusterSnapshot
and DescribeClusterSnapshots found the snapshot by its name alone. A
caller allowed on one cluster's snapshots could act on a snapshot of
another cluster by naming the allowed one.

A snapshot taken from another cluster than the one the request names,
in SnapshotClusterIdentifier, the cluster of a SnapshotArn, or
DescribeClusterSnapshots' ClusterIdentifier, is now not found.

Refs #5907

chore(iam): generate the Lambda Web and Redshift condition keys into one table

chore(redshift): read a restore's snapshot ARN once
2026-11-05 11:57:59 -04:00
TATSUNO “Taz” Yasuhiro ddfc63f6b6 fix(dynamodb): use the older check order and wording for an UpdateItem without Key or nested too deep (#7608) 2026-11-05 11:56:52 -04:00
Arshad bc9f7b518d fix(sqs): return InvalidAddress for Query requests on a /queue/{region}/ path (#7578) 2026-11-05 11:55:05 -04:00