Commit Graph
640 Commits
Author SHA1 Message Date
Hector Ventura f01a680bff fix(cloudformation): create stage from AWS::ApiGateway::Deployment inline StageName (#1400)
AWS::ApiGateway::Deployment accepts an inline StageName; previously the deployment was created but the stage was not, so get-stages returned empty and invoking .../{stage}/_user_request_/... returned Stage not found. Now create the stage (with StageDescription.Description when present) bound to the new deployment.

Refs #1163
2026-06-17 00:03:41 -05:00
Hector Ventura 17d5bb84fa feat(cloudformation): provision Kinesis Firehose delivery streams (#1399)
Inject FirehoseService and add provision + delete handling for AWS::KinesisFirehose::DeliveryStream. Maps DeliveryStreamName and the S3/ExtendedS3 destination configuration (BucketARN, Prefix, BufferingHints) plus Tags. Ref returns the delivery stream name; Fn::GetAtt Arn returns the stream ARN.
2026-06-16 23:37:35 -05:00
James Netherton ca5fb043a7 feat(kms): add EnableKey support (#1381) 2026-06-16 23:17:52 -05:00
Jason van Zyl 660a8bceb3 feat(ssm): execute run commands in EC2 containers (#1387) 2026-06-16 22:51:21 -05:00
Hector Ventura 5cd48f0492 refactor(floci): regroup UI and DuckDB under services.floci (#1397)
Move the UI service classes (FlociUiManager, UiPages) into services.floci.ui and the DuckDB helper (FlociDuckClient, FlociDuckManager) into services.floci.duck, with tests mirrored. Pure package move: importers updated, no behavior change.
2026-06-16 18:57:25 -05:00
David Phillips 01b38bb4bb ci: run focused native compatibility tests (#1375)
* fix: register Glue catalog payloads for native image

* fix: include AppSync parser resources in native image

* fix: include API Gateway VTL native metadata

* ci: run focused native compatibility tests
2026-06-16 18:54:22 -05:00
Hector Ventura 9327a252d6 feat(cloudformation): provision Auto Scaling groups and launch configurations (#1372)
Inject AutoScalingService and add provision + delete handling for
AWS::AutoScaling::LaunchConfiguration and AWS::AutoScaling::AutoScalingGroup.
Launch configurations map ImageId, InstanceType, KeyName, SecurityGroups,
UserData and IamInstanceProfile; groups map the launch configuration or launch
template, sizes, availability zones, target groups, load balancers, health check
and tags. Ref returns the resource name; Fn::GetAtt Arn returns the resource ARN.
Docker-free integration test: CreateStack -> DescribeAutoScalingGroups shows the
group referencing the launch configuration.
2026-06-16 01:05:02 -05:00
Hector Ventura 6004e57c29 feat(cloudformation): provision CloudWatch metric alarms (#1371)
Inject CloudWatchMetricsService and add provision + delete handling for
AWS::CloudWatch::Alarm, mapping AlarmName, Namespace, MetricName, Statistic,
Period, EvaluationPeriods, Threshold, ComparisonOperator, Dimensions, the action
lists and TreatMissingData. Ref returns the alarm name; Fn::GetAtt Arn returns
the alarm ARN. Docker-free integration test: CreateStack -> DescribeAlarms shows
the alarm.
2026-06-16 00:40:03 -05:00
shrimptails-f 571d81afe3 feat(cognito): align user pool client config APIs with AWS behavior (#1360)
* feat(cognito): align CreateUserPoolClient and DescribeUserPoolClient with AWS behavior

* feat(cognito): align user pool client config APIs with AWS behavior
2026-06-16 00:34:17 -05:00
Hector Ventura c269d500f9 feat(cloudformation): provision Kinesis data streams (#1370)
Inject KinesisService and add provision + delete handling for AWS::Kinesis::Stream,
mapping Name, ShardCount, StreamModeDetails, RetentionPeriodHours and Tags. Ref
returns the stream name; Fn::GetAtt Arn returns the stream ARN. Docker-free
integration test: CreateStack -> DescribeStreamSummary shows the stream.
2026-06-16 00:18:24 -05:00
Kenshin Okinaka c267d3ae1c fix(ses): canonicalize only the domain of suppression-list email addresses (#1350)
* fix(ses): canonicalize only the domain of suppression-list emails

The previous change lower-cased the whole EmailAddress, but real AWS SES V2
(verified 2026-06-15) is case-sensitive on the local-part and case-insensitive
only on the domain: PutSuppressedDestination for Foo@Example.COM stores and
reads back Foo@example.com, Foo@x and foo@x are two distinct entries, and a
GET/DELETE whose local-part case differs returns NotFound. Full lower-casing
wrongly merged local-part variants and altered the address on read-back.

normalizeSuppressionEmail now lower-cases only the part after the last '@'
and preserves the local-part. The integration tests are rewritten to pin the
verified behavior: domain-case-insensitive match and de-dup, local-part
case-sensitive (distinct entries), latest Reason wins on a domain-only
collision.

Suppression entries persisted by a pre-canonicalization Floci (trim-only key)
would otherwise become unreachable once the domain is normalized. All five
suppression lookups — PUT / GET / DELETE / send-time check / event resolution —
fall back to the legacy raw-trimmed key via existingSuppressionKey, and PUT
migrates the entry onto the canonical key, so older entries stay readable,
deletable, and still suppress sends, without a re-PUT leaving a stuck
duplicate. A unit test seeds a legacy-keyed entry directly to pin these paths.

* refactor(ses): single-read suppression lookup and safe legacy migration

Address review on the suppression-list case fix:
- existingSuppressionMatch returns the resolved entry with its storage key,
  so GET/DELETE/send-time/event lookups read the store once instead of
  probing with isPresent() and re-fetching (was 2 reads on a canonical hit,
  3 on a legacy hit; per-address in collectSuppressedReasons).
- PutSuppressedDestination writes the canonical key before deleting the
  legacy one it migrated from, so a failed write can't drop the entry.
- The domain-case GET test seeds its own entry, removing the dependency on
  an earlier ordered test.
2026-06-16 00:06:28 -05:00
Konda Balaji Rao 1a42aafcfb fix(core): return XML error for missing action and add volume action fallbacks (#1348)
This commit addresses the XML parser error on clients when requests are made without the 'Action' parameter. Previously, it returned a 204 No Content response with an empty body; now it returns a 400 Bad Request status and a structured XML 'MissingAction' error. It also adds missing EC2 volume actions ('CreateVolume', 'DescribeVolumes', 'DeleteVolume') to the unauthenticated fallback list in the query controller.

Closes #1333
2026-06-15 23:58:37 -05:00
Hector Ventura 57d9ef5ad8 feat(cloudformation): provision CloudWatch Logs log groups (#1369)
Inject CloudWatchLogsService and add provision + delete handling for
AWS::Logs::LogGroup, mapping LogGroupName, RetentionInDays and Tags. Ref returns
the log group name; Fn::GetAtt Arn returns the log-group ARN. Docker-free
integration test: CreateStack -> DescribeLogGroups shows the group.
2026-06-15 23:57:26 -05:00
Hector Ventura 50c768643d feat(cloudformation): provision EKS clusters and node groups (#1368)
Inject EksService and add provision + delete handling for AWS::EKS::Cluster and
AWS::EKS::Nodegroup. Clusters are created via the EKS createCluster API
(RoleArn, ResourcesVpcConfig, version); node groups via createNodegroup under
their cluster. Ref returns the resource name; Fn::GetAtt exposes Arn (and the
cluster Endpoint). Stack deletion removes the cluster/node group.
2026-06-15 23:29:50 -05:00
Lorenzo Galassi ed102b0ed2 fix(scheduler): 🐛 support aws-sdk universal targets and FIFO MessageGroupId (#1344)
ScheduleInvoker routed solely by substring-matching the target ARN, so a
universal target (arn:aws:scheduler:::aws-sdk:sns:publish) matched the
":sns:" branch and passed the universal-target ARN itself to SnsService as
the topic, failing at fire time with "Topic does not exist". The real
TopicArn carried in the target Input was never read.

Detect the aws-sdk:<service>:<action> form before the ARN routing and
dispatch sns:publish / sqs:sendMessage using the parameters parsed from
Input. Also add Target.SqsParameters so templated FIFO SQS targets honor
MessageGroupId instead of failing with "The request must contain the
parameter MessageGroupId".

Closes #1265
2026-06-15 23:29:03 -05:00
Hector Ventura eb730a455e feat(cloudformation): provision RDS resources (#1367)
Inject RdsService and add provision + delete handling for AWS::RDS::DBInstance,
DBCluster, DBSubnetGroup, DBParameterGroup and DBClusterParameterGroup.
DBInstance/DBCluster start real RDS containers (same path as the direct API).
Ref returns the resource identifier; Fn::GetAtt exposes Endpoint.Address,
Endpoint.Port and the resource ARN (plus ReadEndpoint.Address for clusters).
Stack deletion removes each resource so create/delete is symmetric.
2026-06-15 22:24:04 -05:00
Hector Ventura feae421666 feat(cloudformation): provision EC2 instances (#1366)
Add provision + delete handling for AWS::EC2::Instance: CreateStack runs a real
instance via Ec2Service.runInstances (ImageId, InstanceType, KeyName,
SecurityGroupIds, SubnetId, UserData, IAM instance profile, Tags) and stack
deletion terminates it. Ref returns the instance id; Fn::GetAtt exposes
AvailabilityZone, PrivateIp/PublicIp and PrivateDnsName. Docker-free integration
test isolated to ap-southeast-2 to avoid shared in-memory EC2 state.
2026-06-15 22:03:54 -05:00
Hector Ventura ad61bb5e2c feat(cloudformation): add Fn::GetAZs and Fn::Cidr intrinsics (#1365)
Implements the Fn::GetAZs and Fn::Cidr (IPv4) intrinsic functions in
CloudFormationTemplateEngine. Fn::GetAZs returns the region's availability zones;
Fn::Cidr carves a CIDR block into equally sized subnets. A resolveList helper
lets Fn::Select compose with these list-returning intrinsics. Adds an end-to-end
test that drives subnet provisioning through Fn::Select(Fn::GetAZs)/Fn::Cidr.
2026-06-15 21:37:31 -05:00
Hector Ventura 0b665ab455 fix(ec2): persist EC2 state so CloudFormation references survive restart (#1364)
Ec2Service kept all VPC/subnet/security-group/instance state in plain in-memory
maps, so in persistent storage mode it was lost on restart while CloudFormation
reloaded its stacks and exports. The persisted exports/stack then referenced EC2
ids that no longer existed: describe-subnets returned nothing and ELBv2 failed
with SubnetNotFound.

Migrate the in-memory maps to StorageBackend via StorageFactory (mirroring
RdsService) so all EC2 networking and instance metadata persists and reloads on
startup. In-place mutations (security group rules, routes, gateway attachments,
EIP associations, tags, instance state) put the entity back so changes persist
immediately. Default-resource seeding is skipped when a region already has
persisted resources to avoid duplicates after reload. Adds an ec2 per-service
storage override for parity with rds.

Closes #1297
2026-06-15 21:37:20 -05:00
Ahmed khaled bd96d4e866 feat(docdb): add Amazon DocumentDB service emulation (#1341)
* feat(docdb): add DocDbCluster model

* feat(docdb): add DocDbInstance model

* feat(docdb): add DocDbContainerHandler

* feat(docdb): add container manager and service config

* feat(docdb): add DocDbService with cluster and instance lifecycle

* feat(docdb): add DocDbQueryHandler

* feat(docdb): Register the service in ResolvedServiceCatalog and Dispatch in AwsQueryController

* test(docdb): add integration test for cluster and instance lifecycle

* fix(docdb): probe MongoDB readiness with a TCP connect instead of a Gremlin HTTP request

* fix(docdb): stop persisting the cluster master password at rest

* fix(docdb): return a generic AWS error envelope for unexpected failures

* feat(docdb): add mock mode to return responses without starting a container
2026-06-15 20:12:20 -05:00
Hector Ventura 2536b4ab86 feat(ui): serve a landing page and launch the floci-ui console on demand (#1313)
* feat(ui): serve a landing page and launch the floci-ui console on demand

A browser hitting the Floci endpoint (GET / with Accept: text/html) now gets a
small embedded landing page; SDK/CLI traffic falls through to S3 ListBuckets
unchanged. The 'Open Floci UI' button hits /_floci/ui, which lazily starts the
floci-ui sidecar container, injects FLOCI_ENDPOINT so its API can reach Floci,
and serves an interstitial that polls /_floci/ui/status and redirects to the UI
once ready.

The sidecar is a single instance on one configured host port
(floci.services.ui.port, default 8080) and is adopted if already running. A
missing or unavailable image is reported as a friendly message instead of a 500.
Embedded ui/*.html is registered in quarkus.native.resources.includes so it is
present in the native image.

* feat(ui): branded landing dashboard, port 4500, reachable endpoint

Reskin the landing page to floci.io branding and surface live data from
/_floci/* (version, ready state, services grid). Publish the UI sidecar on a
fixed 4500 host+container port. Inject a self-discovered FLOCI_ENDPOINT via
DockerHostResolver so the UI reaches Floci over the Docker network instead of
hardcoded host.docker.internal logic; add FlociUiManagerTest.

* fix(s3): keep ListBuckets Content-Type as application/xml for non-HTML callers

The landing-page content negotiation listed text/html first in @Produces and
returned the ListBuckets XML without an explicit media type, so RESTEasy
negotiated Accept: */* (SDK/CLI default) to text/html and stamped that on the
response. Put application/xml first and pin the XML response type so non-browser
callers always receive application/xml; browser (Accept: text/html) callers
still get the landing page.
2026-06-15 20:10:13 -05:00
Jason van Zyl 3acab2bf27 Add IAM provisioning preflight support (#1250)
* fix(iam): seed provisioning managed policies

* feat(iam): support policy simulation preflight

* fix(iam): address provisioning preflight review feedback

* fix(iam): normalize condition context in evaluator
2026-06-15 17:13:01 -05:00
Hector Ventura 1fe6b18987 fix(cloudformation): provision EC2 VPC and subnet resources instead of stubbing (#1342)
AWS::EC2::VPC and AWS::EC2::Subnet (and related networking resources) had no
provisioner case, so they fell through to the stub branch: CloudFormation
reported CREATE_COMPLETE and exported a fake "logicalId-<random>" physical id,
but the subnet was never created in EC2. ec2 describe-subnets did not return it
and elbv2 create-load-balancer failed with "The subnet ID '...' does not exist".

Inject Ec2Service into CloudFormationResourceProvisioner and add cases for VPC,
Subnet, SecurityGroup, InternetGateway, RouteTable, SubnetRouteTableAssociation,
Route, NatGateway and EIP. Each delegates to the existing Ec2Service create
methods and sets the physical id to the real vpc-/subnet-/... id so Ref/exports
resolve to resources EC2 and ELBv2 can use. Topological ordering already
guarantees parents are provisioned before children.

Adds a CloudFormation+EC2+ELBv2 integration test plus AWS CLI and CDK
compatibility coverage.

Closes #1297
2026-06-15 01:08:12 -05:00
devansh-jain-18 022436eaae feat(batch): add AWS Batch service support (#1332) 2026-06-14 19:45:15 -05:00
Kenshin Okinaka 234af69bd2 fix(ses): omit unknown identities from GetIdentityNotificationAttributes (#1338)
The handler emitted a map entry with an empty <value> for every queried
identity, including ones that were never verified. Real AWS returns an
empty NotificationAttributes map for an unknown identity and drops it
from a mixed query, never an entry with missing fields (verified against
real AWS SES on 2026-06-13). The fabricated empty entry also violated the
response contract, since the entry's value lacked the required
ForwardingEnabled field. The handler now skips identities the service
doesn't know about.
2026-06-14 19:25:17 -05:00
Simon B. Laursen 4ac4e5d34b fix(sts): persist session secret key so RDS/ElastiCache IAM tokens validate (#1266)
* fix(sts): persist session secret key so RDS/ElastiCache IAM tokens validate

STS session credentials (ASIA... keys) issued by AssumeRole, GetSessionToken,
AssumeRoleWithWebIdentity, AssumeRoleWithSAML and GetFederationToken were
rejected by the RDS and ElastiCache SigV4 validators because the temporary
secret access key was never stored.

Root cause:
- StsQueryHandler generated a random secretKey and returned it to the caller
  but only passed accessKeyId + roleArn to registerSession — the secret was
  discarded.
- SessionCredential had no secretAccessKey field.
- IamService.findSecretKey only checked the accessKeys store (AKIA... keys);
  the sessions store was never consulted.
- RdsSigV4Validator fell back to orElse(accessKeyId), using the key ID itself
  as the signing secret, so every HMAC comparison failed with 28P01.

Fix:
1. Add secretAccessKey field to SessionCredential.
2. Add registerSession overload that accepts the secret and stores it.
3. Update all five STS handlers to call the new overload.
4. Make findSecretKey check sessions as a fallback after accessKeys.
5. Add IamServiceTestHelper.iamServiceWithSessionCredential helper and two
   new RdsSigV4ValidatorTest cases covering the ASIA key path.

The same findSecretKey call is used by the ElastiCache SigV4Validator, so
both services benefit from this fix.

* fix: avoid IAM enforcement crash for identity sessions
2026-06-14 19:21:00 -05:00
Prakhar Kapoor 702d71d604 fix(SQS): max message size should be 1MB, not 256KB (#1339) 2026-06-14 09:49:52 -05:00
Matt LishmanandHector Ventura 5de8d65b1a feat(cloudformation): provision Lambda-backed custom resources and layer versions (#1146)
* feat(cloudformation): provision Lambda-backed custom resources and layer versions

Custom::* and AWS::CloudFormation::CustomResource resources were stubbed in the
provisioner, so the ServiceToken Lambda was never invoked. Stacks reported
CREATE_COMPLETE while the custom resource's work silently never ran (e.g. CDK
BucketDeployment left the destination bucket empty).

Provision custom resources by invoking the ServiceToken Lambda synchronously
and capturing the response it PUTs to ResponseURL:
- CfnResponseController (PUT /cfn-response/{token}) receives the callback
- CustomResourceResponseStore correlates it to the waiting provisioner
- ContainerReachableEndpoint (extracted from ContainerLauncher) gives the
  ResponseURL an address reachable from inside the Lambda container

ResourceProperties scalars are stringified to match CloudFormation (true ->
"true"); Data is exposed via Fn::GetAtt; ServiceToken + properties are stored so
teardown can re-invoke the handler with RequestType=Delete.

Also provision AWS::Lambda::LayerVersion (previously stubbed) so layer ARNs
resolve and layer content is copied into /opt — required for the common
BucketDeployment case, whose handler shells out to a bundled AwsCliLayer.

Covers the single-Lambda synchronous custom-resource pattern; the async CDK
Provider framework (onEvent/isComplete polling) is not emulated.

Closes #1145

* test: pass ecsService/elbV2Service args to provisioner constructor

The merge with main added two constructor params; update the
custom-resource test's direct instantiation to match.

* fix(cloudformation): match AWS custom-resource event shape

Keep ServiceToken inside ResourceProperties (it is also surfaced at the
top level) to match real CloudFormation events, verified against the moto
reference (cloudformation/custom_model.py). Previously it was stripped.

Also include OldResourceProperties on Update requests, which CloudFormation
marks required so handlers can diff against the previous properties. The
prior values are read from the existing stash before it is overwritten.

* test: pass stepFunctionsService arg to provisioner constructor

origin/main added a StepFunctionsService parameter to the
CloudFormationResourceProvisioner constructor; update the custom-resource
test to match after merging main.

---------

Co-authored-by: Hector Ventura <hectorvent@gmail.com>
2026-06-14 00:55:57 -05:00
Hector Ventura 08797954d9 fix(glue): return partitions in deterministic order from GetPartitions (#1335)
GlueService.getPartitions returned partitions in storage-scan order, which is
not stable across runs because partition keys embed the table name. Sort by
partition values so GetPartitions is deterministic, matching the existing
sorted-list convention in GlueService and the moto reference, which preserves a
stable partition order.

De-flakes the sdk-test-awscli "Glue catalog: table and partition lifecycle"
compatibility test, whose assertions assume a stable partition order.
2026-06-14 00:45:33 -05:00
David Phillips f70709a70f fix: make S3 conditional puts atomic (#1329) 2026-06-13 23:25:18 -05:00
David Phillips 763cdb5314 fix: return BadRequest for S3 dot-dot paths (#1325) 2026-06-13 19:55:26 -05:00
David Phillips cf761a9698 fix: reject missing Glue table deletes (#1323) 2026-06-13 19:41:57 -05:00
David Phillips 5a964e516d fix: support Glue table statistics deletion (#1324) 2026-06-13 19:34:42 -05:00
Lorenzo Galassi c9e4f931b7 fix(appconfig): stop AppConfig route hijacking S3 bucket named "configuration" (#1317)
* fix(appconfig): stop AppConfig route hijacking S3 bucket named configuration

A path-style S3 request to a bucket named exactly "configuration" (e.g.
GET /configuration?list-type=2) matched AppConfigData's literal
GET /configuration route ahead of S3's /{bucket} template, so routine
list/read calls returned HTTP 500 (NullPointerException on a null
configuration_token).

Move AppConfigData GetLatestConfiguration to an internal path and add a
@PreMatching AppConfigConfigurationRouteFilter that rewrites genuine
requests (those carrying a configuration_token) onto it. Requests without
a token keep the bare /configuration path and fall through to S3's
/{bucket} route. This mirrors the existing SqsQueueUrlRouterFilter and
LambdaUrlRoutingFilter path-rewrite pattern and avoids one controller
depending on another.

Closes #1294

* fix(appconfig): drop unreachable configuration_token guard

The route is bound to the internal path and the @PreMatching filter only
rewrites onto it when a configuration_token is present, so the guard could
never fire. Remove it and the now-unused AwsException import.
2026-06-13 19:10:25 -05:00
Samarth Tikotkar 8ba258c37a fix(ecs): add network mode and resources validation for fargate task … (#1274)
* fix(ecs): add network mode and resources validation for fargate task definitions

* fix(ecs): add validation for ECS with fargate for task definition

* fix(ecs): add exact error messages and compatibilities default to EC2 when requiresCompatibilities not provided
2026-06-13 18:59:27 -05:00
Jason van Zyl 22a50b3c80 Add RDS provisioning support (#1253)
* feat(rds): add subnet groups and orderable options

* feat(rds): support subnet group modification

* feat(rds): return managed master user secrets

* fix(rds): preserve instance tags

* fix(rds): honor requested engine versions

* fix(rds): return routable proxy endpoints

* fix(rds): accept PostgreSQL SSL negotiation

* fix(rds): initialize PostgreSQL IAM role

* fix(rds): include PostgreSQL 18 orderable option

* fix(rds): address provisioning support review feedback
2026-06-13 18:46:42 -05:00
David Phillips 59a2659e41 fix: support Glue partition APIs (#1315) 2026-06-13 09:28:58 -05:00
Hector Ventura 33cb72e341 feat(wafv2): add AWS WAF v2 management API (Phase 1) (#1327)
Add the wafv2 (AWSWAF_20190729) JSON 1.1 service: Web ACLs, IP sets, regex
pattern sets, and rule groups, plus resource association, logging and permission
policies, and tagging. Uses LockToken optimistic concurrency and isolates the
CLOUDFRONT and REGIONAL scopes.

Covered by an in-repo RestAssured integration test and an AWS SDK v2
compatibility test.
2026-06-13 09:25:55 -05:00
Hector Ventura 8b5adea915 feat(emr): add Amazon EMR management API (Phase 1) (#1321)
Add the elasticmapreduce (ElasticMapReduce) JSON 1.1 service: cluster lifecycle
with a simulated state machine, job-flow steps, instance groups and fleets,
security configurations, and tags. Honours the ActionOnFailure legacy alias and
EMR's distinct error shapes.

Operations: RunJobFlow, DescribeCluster, ListClusters, TerminateJobFlows,
SetTerminationProtection, SetVisibleToAllUsers, SetKeepJobFlowAliveWhenNoSteps,
SetUnhealthyNodeReplacement, ModifyCluster, AddJobFlowSteps, DescribeStep,
ListSteps, CancelSteps, AddInstanceGroups, ListInstanceGroups, AddInstanceFleet,
ListInstanceFleets, ListInstances, CreateSecurityConfiguration,
DescribeSecurityConfiguration, DeleteSecurityConfiguration,
ListSecurityConfigurations, AddTags, RemoveTags.

EmrService holds a static SecureRandom, so it is registered under
quarkus.native.resources additional-build-args --initialize-at-run-time to keep
the GraalVM native build working.

Covered by an in-repo RestAssured integration test and an AWS SDK v2
compatibility test.
2026-06-13 09:01:48 -05:00
Lorenzo Galassi a7b0826c96 fix(cognito): 🐛 include USERNAME in SRP PASSWORD_VERIFIER challenge (#1316)
InitiateAuth with USER_SRP_AUTH returned a PASSWORD_VERIFIER challenge
whose ChallengeParameters carried USER_ID_FOR_SRP but not USERNAME. Real
AWS Cognito returns both, and the .NET Amazon.Extensions.CognitoAuthentication
SRP client reads ChallengeParameters["USERNAME"], so it threw
KeyNotFoundException against floci.

Add USERNAME alongside USER_ID_FOR_SRP and assert it in the SRP flow test.

Closes #1305
2026-06-13 02:30:27 -05:00
Kenshin Okinaka a032ec5ac0 fix(ses): keep MailFromAttributes block when MAIL FROM is unconfigured (#1310)
GetEmailIdentity dropped the entire MailFromAttributes block for an
identity with no MAIL FROM domain configured, so an SDK caller saw
mailFromAttributes() == null on the emulator but non-null on real AWS.
AWS keeps the block carrying BehaviorOnMxFailure and omits only the
inner MailFromDomain / MailFromDomainStatus fields.

Clearing the MAIL FROM domain also resets BehaviorOnMxFailure to
UseDefaultValue, matching AWS, so a cleared identity is indistinguishable
from one that was never configured.
2026-06-13 02:16:14 -05:00
David Phillips e8e44e70bc fix: support Glue column statistics (#1309) 2026-06-13 01:59:45 -05:00
Hector Ventura 2c057db396 fix(ec2): embed image catalog in native image and load it lazily (#1308)
RunInstances 500d on the native image because ec2/image-catalog.yaml was not
embedded: the app-local resource-config.json pattern is not reliably honored by
Quarkus' native build. Register the catalog via quarkus.native.resources.includes,
mirroring the pricing-snapshots entry.

Also load the catalog lazily instead of in the bean constructor so a missing or
unparseable resource no longer fails EC2 bean creation, which keeps mock mode
(which never reads the catalog) working.

Refs #1296
2026-06-13 01:48:34 -05:00
Kenshin Okinaka 161a6ba7e0 fix(ses): persist inline options on v2 CreateConfigurationSet (#1307)
* fix(ses): persist inline options on v2 CreateConfigurationSet

CreateConfigurationSet parsed only ConfigurationSetName and Tags,
silently dropping the SendingOptions and SuppressionOptions blocks of
the request. GetConfigurationSet then fabricated a default
SendingOptions ("SendingEnabled": true via the null-means-enabled
effective getter), so a set created with SendingEnabled: false read
back as true, and SuppressedReasons vanished entirely. Real AWS echoes
both blocks verbatim (verified live 2026-06-12).

The controller now parses both blocks onto the ConfigurationSet before
the single store write, with the same structural validation as the
dedicated PUT endpoints (non-object blocks, non-boolean SendingEnabled
and non-string reasons are rejected with BadRequestException). The
service validates suppression reason values at create alongside the
existing tag validation, so an invalid reason rejects the request
without leaving a half-created set behind. The SuppressedReasons
structural parsing is shared with PutConfigurationSetSuppressionOptions
via a common helper.

The remaining five inline option groups (Tracking / Delivery /
Reputation / Vdm / Archiving) have no model fields or endpoints yet
and stay out of scope.

* fix(ses): match AWS error layers on v2 CreateConfigurationSet options

Live verification against real AWS SES V2 (2026-06-13) showed the
endpoint validates inline options in two layers that the previous
commit conflated into BadRequestException:

- Type violations fail in the deserialization layer with
  SerializationException: non-object option blocks ("Expected null"),
  a non-array SuppressedReasons ("Expected list or null"), and
  non-string reason elements / non-boolean scalars for SendingEnabled
  (token-style messages such as "NUMBER_VALUE can not be converted to
  a String").
- Value violations fail in the validation layer with
  BadRequestException using the constraint-style message ("1 validation
  error detected: ..."), which differs from the natural-language
  sentence the PUT endpoint uses for the same check.

SendingEnabled itself follows AWS deserialization semantics: a missing
member inside a present SendingOptions block defaults to false, any
string coerces to true, and an explicit null fails with a null-message
SerializationException. SuppressionOptions without SuppressedReasons
reproduces the 500 InternalFailure AWS itself returns, so code
developed against Floci fails the same way it would in production.

* fix(ses): align null suppressed-reason handling with AWS on v2 create

Live verification (2026-06-13) shows AWS lets a null element pass the
SuppressedReasons deserialization ("Expected list or null") and rejects
it in value validation with the same natural-language sentence the PUT
endpoint uses, not the constraint-style message reported for invalid
non-null values. CreateConfigurationSet now branches accordingly, the
parsing helper's javadoc documents the intentional null pass-through,
and the FALSE_VALUE token message is covered by a test now that it is
verified rather than inferred.

* fix(ses): make null suppressed-reason branch explicit on v2 create

The null check relied on validateConfigSetSuppressionReason always
throwing, which would silently fall through to the constraint-style
message if that method ever changed. The branch now throws directly,
with the sentence shared through a message helper. Also locks the
verbatim AWS "Expected null" response for non-object option blocks
into a test so the surprising message does not get "fixed" later.
2026-06-13 01:48:13 -05:00
Lorenzo Galassi ceb4d84431 fix(athena): 🐛 align GetWorkGroup with AWS behavior (#1301)
GetWorkGroup previously returned a hardcoded default response for any
workgroup name, ignoring workgroups created via CreateWorkGroup and
never failing for non-existent ones.

- Return stored Name, State, Description, CreationTime and
  Configuration for created workgroups, scoped by region
- Throw InvalidRequestException (400) when the workgroup is not found,
  matching the AWS error shape and message
- Keep the default view for the primary workgroup
- Make DeleteWorkGroup actually remove the entry from the store so a
  deleted workgroup is no longer returned and its name can be reused
- Document DeleteWorkGroup in the supported actions table

Closes #1128
2026-06-13 01:43:26 -05:00
TomDav28andTomer David 91f8af7062 fix(sqs): release in-flight ReceiveMessage long polls when their queue is deleted (#1286)
Co-authored-by: Tomer David <tomer.david+catonian@catonetworks.com>
2026-06-13 00:04:07 -05:00
devansh-jain-18 e063ac18ee feat(rds-data): add RDS Data API support (#1262)
* feat(rds-data): add RDS Data API support

* fix(rds-data): harden Data API validation

* fix(rds-data): harden review findings
2026-06-12 23:39:05 -05:00
shrimptails-f 70e63caf10 fix(elbv2): enforce ALB subnet availability zone rules (#1247)
* fix(elbv2): enforce ALB subnet availability zone rules

* test(cloudformation): use real default subnets in ELBv2 stack test
2026-06-12 22:41:17 -05:00
iam-ssrivastav f8cf476848 fix(ses): omit MailFromAttributes if MAIL FROM domain is not configured (#1273) 2026-06-12 22:18:22 -05:00
shrimptails-f ee341003bf refactor: remove unused code (#1303)
* refactor: remove unused imports and dead references

* chore: remove unused suppress warnings and cleanup formatting
2026-06-12 17:53:46 -05:00