Commit Graph
1582 Commits
Author SHA1 Message Date
Hector Ventura c426e805fe fix(cloudwatch): implement tagging support for metrics and alarms (#320) 2026-04-09 21:45:54 -05:00
TiM 202d6eb824 feat(kinesis): resolve stream name from StreamARN parameter (#304)
* feat(kinesis): resolve stream name from StreamARN parameter

Most Kinesis actions now accept StreamARN as an alternative to
StreamName, matching real AWS behavior. A shared resolveStreamName
helper extracts the stream name from the ARN (guarding against
malformed and consumer ARNs) and throws InvalidArgumentException
when neither field is valid. handleListShards inline logic replaced
with the shared helper. CreateStream excluded (no ARN at creation).

* fix(kinesis): use dedicated stream in ARN put/get test and renumber after rebase

The putAndGetRecordsByArn test read from shardId-000000000000 which was
split by an earlier test, so GetRecords returned 0 records. Use a
dedicated 1-shard stream and tighten assertions. Renumber ARN test
orders (20-23) to avoid collision with upstream retention period tests.
2026-04-09 21:45:24 -05:00
TiM 92ba56b086 fix(dynamodb): remove duplicate list_append handler that breaks nested expressions (#321)
The original list_append handler (case-sensitive, using extractFunctionArgs with
naive comma splitting) shadows the #317 handler (case-insensitive, paren-aware
findNextComma + evaluateSetExpr). Nested expressions like
list_append(if_not_exists(items, :e), :v) hit the old handler first, which mangles
the arguments. Delete the old handler since #317's is a strict superset.
2026-04-09 21:44:38 -05:00
Matej Šnuderl 89a07448c0 feat(s3): preserve Cache-Control header on PutObject, GetObject, HeadObject, and CopyObject (#313)
Add cacheControl as a dedicated field on S3Object (following the
contentEncoding pattern) and thread it through putObject, storeObject,
and copyObject in S3Service. Extract Cache-Control from request headers
in S3Controller.putObject, return it in appendObjectHeaders for
GetObject/HeadObject responses, and handle it in handleCopyObject with
REPLACE directive support.

Includes 6 integration tests covering put, get, head, copy-preserve,
copy-replace, and cleanup.
2026-04-09 19:43:08 -05:00
TiM a770b61a7b feat(kinesis): add IncreaseStreamRetentionPeriod and DecreaseStreamRetentionPeriod (#305)
Wire up the two retention period API actions that were missing despite
the model already having retentionPeriodHours with getter/setter.

Validation matches AWS behavior:
- Increase rejects values <= current or > 8760 (365 days)
- Decrease rejects values >= current or < 24 hours

Closes #291
2026-04-09 19:32:27 -05:00
Uğur Tafralı 0eb908a765 fix: implement list_append with if_not_exists support (#317) 2026-04-09 19:31:40 -05:00
Hector Ventura 55325eca9a fix: support LocalStack-compatible _user_request_ URL for API Gateway execution (#314) 2026-04-09 17:55:09 -05:00
GitMarco 8bac81807e Fix(dynamoDB): handle null for Java AWS SDK v2 DynamoDB EnhancedClient correctly (#309)
* Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command
* Revert "Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command"
* fix(dynamoDB): support Java AWS SDK v2 enhanced client null values
* fix(dynamoDB): added compatibility integration test for DynamoDB EnhancedClient. Including suggestion for default host+port for test fixture, so `mvn test -q` can work even without setting the env variable set.
2026-04-09 17:53:48 -05:00
Fred PeñaandHector Ventura 04cbeb542f fix: Implement S3 Lambda notifications (#278)
* feat: Implement S3 Lambda notifications

Add support for S3 event notifications to AWS Lambda functions.
- Introduce `LambdaNotification` model to represent Lambda configurations.
- Update S3 controller to parse and serialize `CloudFunctionConfiguration` in notification XML.
- Implement logic in `S3Service` to extract Lambda ARN details and invoke functions upon matching S3 events.
- Add unit and integration tests for Lambda notification configuration persistence and event triggering.

* test(s3-notifications): Add S3 bucket notification compatibility tests

Introduces `S3NotificationsTest` to verify S3 event notifications for SQS, SNS, and Lambda targets.
Includes tests for notification configuration round-trip and Lambda invocation with object filters.
Adds `s3NotificationLoggerZip` to `LambdaUtils` for creating a test Lambda function.

Co-authored-by: Hector Ventura <hectorvent@gmail.com>
2026-04-08 23:11:20 -05:00
bkindersleytrulioo ae49bfb378 feat: load persisted dynamodb streams on start up (#299)
* init persisted streams
* add test
2026-04-08 23:09:41 -05:00
bkindersleytrulioo 552e71e76f fix: DynamoDB DescribeTable returns Projection.NonKeyAttributes (#300)
* support nonkeyattributes
* attempt integration tests
* fix tests
2026-04-08 23:05:52 -05:00
Hector Ventura 7af3600bca fix: implement missing RDS resource identifiers and fix filtering (#231) (#302) 2026-04-08 23:05:02 -05:00
Hector Ventura 7c6e6a6dfa fix: implement SRP-6a authentication for Cognito (#284) (#298) 2026-04-08 22:47:49 -05:00
Hector Ventura 9ca82e5748 feat(eventbridge): add InputTransformer support and S3 event notifications (#294)
* feat(eventbridge): add InputTransformer support for rule targets

Support InputPathsMap + InputTemplate on EventBridge targets so events
can be projected to a subset of fields before delivery to SQS/SNS/Lambda.

- Add InputTransformer model with inputPathsMap and inputTemplate fields
- Parse and serialize InputTransformer in PutTargets / ListTargetsByRule
- Apply transformer in invokeTarget: extract JSONPath variables, substitute
  <varName> placeholders in the template
- Use Jackson JsonPointer for JSONPath resolution ($.a.b.c → /a/b/c)
- Add unit tests for extractJsonPath and applyInputTransformer edge cases
- Add integration tests covering full put/list/deliver/transform flow

Fixes #140
2026-04-08 16:23:59 -05:00
Hector Ventura 0bad9338f9 fix: register Xerces XML resource bundles for native image (#293) (#296)
In GraalVM native image the Xerces XML parser throws MissingResourceException
(an unchecked exception) when it tries to format an error message for malformed
input but cannot locate its message bundles. This exception was not caught by
the existing `catch (XMLStreamException ignored)` blocks in XmlParser, causing
it to propagate and crash S3 requests that arrive with non-XML bodies (e.g.
CDK PutObject calls during asset publishing).

Two-layer fix:
- Widen all five catch blocks in XmlParser from XMLStreamException to Exception
  so any parse failure — regardless of cause — results in an empty/default
  return value, matching the documented contract of each method.
- Add resource-config.json registering the three Xerces XML message bundles
  (XMLMessages, XMLSerializerMessages, xpath regex message) so the bundles are
  available at native image runtime and the MissingResourceException is not
  thrown in the first place.
2026-04-08 16:23:10 -05:00
Victor Sanchez Velasco c475e52984 feat(cloudformation): add AWS::Events::Rule provisioning support (#261)
CloudFormation stacks containing AWS::Events::Rule resources were marked
as CREATE_COMPLETE but no actual EventBridge rules or targets were created.
This happened because the resource type was falling through to the default
stub handler in CloudFormationResourceProvisioner.

Changes:
- Inject EventBridgeService into CloudFormationResourceProvisioner
- Add provisioning handler for AWS::Events::Rule that creates actual rules
  via EventBridgeService.putRule() and wires inline targets via putTargets()
- Add delete handler that removes targets before deleting the rule
- Support auto-generated rule names when Name property is omitted
- Handle EventPattern, ScheduleExpression, State, Description, RoleArn,
  and inline Targets from CloudFormation properties
2026-04-08 16:16:54 -05:00
Matej Šnuderl 3d2cc1c95e fix(s3): use case-insensitive field lookup for presigned POST policy validation (#289)
Presigned POST requests may send the policy field as either 'Policy' or
'policy'. The existing implementation only checked lowercase 'policy',
causing validation failures for clients that use uppercase field names.

Refactor to use case-insensitive field lookup so both variants are
handled correctly.
2026-04-08 12:42:45 -05:00
Matej Šnuderl 944fddf5ac fix(s3): use ConfigProvider for runtime config lookup in S3VirtualHostFilter (#288)
Replace @ConfigProperty constructor injection with programmatic
ConfigProvider.getConfig() lookup to fix native image crash when
FLOCI_HOSTNAME is set at runtime. @PreMatching JAX-RS filters run
before CDI beans are fully initialized, so neither @ConfigProperty
nor @ConfigMapping beans are available during filter construction.

Also make bucket extraction hostname-aware: only treat the first label
as a bucket name when the remainder matches the configured base hostname
(or a well-known AWS S3 domain). This prevents false positives when
Floci sits behind a multi-label hostname like floci.svc.cluster.local.
2026-04-08 10:23:52 -05:00
Hector Ventura 4724db97be feat: add KMS GetKeyPolicy, PutKeyPolicy and fix CreateKey Tags (#258 #259 #269) (#280) 2026-04-08 01:37:38 -05:00
Hector Ventura 5e8b39c1aa fix: resolve Cognito auth, token, and user lookup issues (#218 #220 #228 #229 #233 #234 #235) (#279) 2026-04-08 01:30:26 -05:00
Uğur Tafralı b723a9c519 fix: add list_append support to DynamoDB update expressions (#277)
DynamoDbService was not handling the list_append function in update
expressions. This adds the logic to extract both list arguments, resolve
them from expression attributes or item attributes, and merge them into
the DynamoDB list format (with "L" structure).

Includes integration test covering basic list append operation.
2026-04-08 00:36:06 -05:00
GitMarco 1ddc8a32f7 fix: dynamodb support add function multiple values (#263)
* Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command
* Revert "Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command"
* Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command
2026-04-07 23:37:22 -05:00
GitMarco 2dca523907 Fix/sns put timestamp in message envelope (#268)
* Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command
* Revert "Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command"
* Fixes SNS/SQS enveloped message missing Timestamp in Body field.
* Fixes SNS/SQS enveloped message missing Timestamp in Body field.
2026-04-07 23:13:39 -05:00
Hector Ventura 6d5839bec8 fix(s3): versioning IsTruncated, PublicAccessBlock, ListObjectsV2 pagination, K8s virtual host routing (#276) 2026-04-07 22:57:33 -05:00
Uğur Tafralı 399a96d70c fix: include ProvisionedThroughput in DynamoDB GSI responses (#273)
DescribeTable responses were missing ProvisionedThroughput attributes on Global Secondary Indexes. Updated the JSON handler to extract and set ReadCapacityUnits and WriteCapacityUnits from the response payload for both DescribeTable and Create operations.
2026-04-07 21:11:01 -05:00
Uğur Tafralı caabf46b1c fix: drain warm pool containers on server shutdown (#274) 2026-04-07 20:47:03 -05:00
Louis Garret e7ab687a6a feat: add SES V2 REST JSON protocol support (#265)
* feat: add SES V2 REST JSON protocol support
* fix: address SES V2 review feedback
2026-04-07 13:59:28 -05:00
Conor Heine 13916913e8 fix: handle base64-encoded ACM cert imports (#248) 2026-04-07 13:20:27 -05:00
edwintian 81f1a01c39 fix: issues 226 227 (#257)
* feat(eventbridge): add ListTagsForResource support
* feat(lambda): add GetFunctionCodeSigningConfig endpoint
2026-04-07 13:17:30 -05:00
Hector Ventura 18bee5b278 feat(sfn): nested state machine execution and activity support (#254, #91) (#266) 2026-04-07 12:41:25 -05:00
Hector Ventura 37026b75f1 feat(secretsmanager): add support for BatchGetSecretValue (#115) (#264) 2026-04-07 12:41:06 -05:00
Hector Ventura 0ef6f87cba feat(lambda): add missing runtimes, fix handler validation, long path… (#256)
* feat(lambda): add missing runtimes, fix handler validation, long path extraction, and code signing config
* fix: removed unrequired go.sum and package-lock.json from compatibility test
2026-04-07 12:40:30 -05:00
Kenshin Okinaka 48b6ca3475 feat(scheduler): add EventBridge Scheduler service (#260)
* feat(scheduler): add EventBridge Scheduler ScheduleGroup CRUD

Introduces the scheduler service skeleton with ScheduleGroup CRUD over
the REST JSON protocol at /schedule-groups/{Name}. The default group is
lazily seeded on first access, mirroring the EventBridge default bus
pattern. Covers Create/Get/Delete/List, region scoping, name validation,
and the default-group delete guard.

* feat(scheduler): add Java SDK compatibility tests for ScheduleGroup CRUD
* feat(scheduler): add Schedule CRUD operations
2026-04-07 12:36:59 -05:00
Conor Heine f4f1752b0d fix: return 400 when encoded s3 copy source is malformed (#244)
fix: replace silent exception swallowing and add per-test timeout in Python test suite

test: misc compatibility-tests cleanups

- Added sync comments to both main.tf files
- Created compatibility-tests/.dockerignore
- Cached CRC32 table in Node setup.ts
- Removed >/dev/null 2>&1 from 3 Dockerfiles

test: add missing .terraform.lock.hcl

chore: remove .terraform.lock.hcl
2026-04-06 16:53:14 -05:00
Mike Pettypiece d02a1d9a13 fix: default shell executable to /bin/sh for Alpine compatibility (#241)
The init hook executor defaulted to /bin/bash, which is not available on
Alpine-based Docker images (eclipse-temurin:25-jre-alpine). This caused
startup hooks to fail with "No such file or directory". /bin/sh is
universally available and POSIX-compatible.
2026-04-06 15:27:06 -05:00
Georgios Andrianakis 7ea586e446 fix: make EmulatorLifecycle use more idiomatic Quarkus code (#190) 2026-04-06 11:13:34 -05:00
Matej Šnuderl cd1759aebe fix(s3): enforce presigned POST policy conditions (eq, starts-with, content-type) (#203) 2026-04-06 11:08:50 -05:00
Christian Franzen b4afdbb842 feat: use AWS-specific content type within the response of all JSON-based controllers (#240) 2026-04-06 11:05:24 -05:00
Conor Heine eeefb729c4 test: move compatibility tests into this repo (#225)
* test: move compatibility tests into this repo
* fix: add StatisticValues parsing to CloudWatchMetricsJsonHandler
* fix: add missing required abstract methods to EmulatorConfig in EventBridgeSchedulerIntegrationTest
* test: add sdk tests for multipart S3 copy coverage
* fix: cover and fix smithy cbor and multipart s3 copy regressions
* test: migrate more test coverage to new folder
* test: add missing ec2 expectation in healthcheck test
* docs: update READMEs in `./compatibility-tests`
2026-04-06 09:35:53 -05:00
Hector Ventura 2859d257b5 feat(ec2): add EC2 service with 61 operations, integration tests, and docs (#213)
* feat(ec2): adding ec2 service
* feat(ec2): add EC2 service with 61 operations, integration tests, and docs
2026-04-06 00:22:53 -05:00
Hector Ventura c79f02f26f feat(lambda): add AddPermission, GetPolicy, ListTags, ListLayerVersions, etc endpoints (#223) 2026-04-06 00:21:59 -05:00
Hector Ventura d4ebc8e820 fix(lambda): support Code.S3Bucket + Code.S3Key in CreateFunction and UpdateFunctionCode (#219) 2026-04-06 00:10:06 -05:00
yusuke-uranaka 4e6e9533b5 feat: add GlobalSecondaryIndexUpdates support in DynamoDB UpdateTable (#222)
Support Create and Delete actions in GlobalSecondaryIndexUpdates
parameter for the DynamoDB UpdateTable operation. The Update action
(throughput modification) is accepted and ignored since the emulator
does not enforce throughput limits.

Also handles AttributeDefinitions updates required when adding new
GSI key attributes.

Closes #221
2026-04-06 00:08:14 -05:00
Mahamed-Belkheir e8c6440489 feat: add scheduled rules support for EventBridge Rules (#217) 2026-04-05 20:08:52 -05:00
Conor Heine b973b7060d fix: fall back to Docker bridge IP when host.docker.internal is unresolvable (#216)
On native Linux Docker, host.docker.internal doesn't exist (only Docker Desktop
provides it). Detect this and use the bridge IP (172.17.0.1) instead, so Lambda
containers can reach the Runtime API without manual configuration.
2026-04-05 16:00:55 -05:00
Hector Ventura 0de7931480 fix(lambda): copy code to TASK_DIR for provided runtimes (#206) 2026-04-05 10:28:16 -05:00
Hector Ventura 80e205452b fix(ses): add missing Result element to query protocol responses (#207) 2026-04-05 10:27:43 -05:00
Hector Ventura 55b2f292cc fix(lambda): honour ReportBatchItemFailures in SQS ESM (#208) 2026-04-05 10:27:06 -05:00
Hector Ventura 07a7a97b47 feat(ecs): adding ecs service (#209)
* feat(ecs): adding ecs service
* feat(ecs): adding ecs service
2026-04-05 10:25:41 -05:00
F. P. 6d49f0983f feat(eventbridge): forward resources array and support resources pattern matching (#210)
* test: add tests before changing code
* feat: Forward resources array
* feat: Add support for 'resources' pattern matching
2026-04-05 09:56:35 -05:00