Commit Graph
102 Commits
Author SHA1 Message Date
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
thegagne 53dd7a68dd feat(sfn): JSONata improvements, States.* intrinsics, DynamoDB ConditionExpression, StartSyncExecution (#205)
* feat(sfn): add StartSyncExecution and fix per-state QueryLanguage override

- Remove incorrect validation that blocked per-state QueryLanguage: JSONPath
  overrides when the top-level machine uses JSONata — AWS allows this
- Implement StartSyncExecution for EXPRESS state machines: extract doExecute
  from executeAsync, add executeSync that blocks until the execution finishes,
  wire up handler and service method
- Document remaining DynamoDB output shape issues (singleton unwrap, getItem
  key format) in issues/ for follow-up
2026-04-04 21:08:31 -05:00
Andreas Caravella 858775c38e fix(sns): make Subscribe idempotent for same topic+protocol+endpoint (#185)
AWS Subscribe returns the existing subscription when called with the
same TopicArn, Protocol, and Endpoint. Floci was always creating a new
subscription, causing duplicates to accumulate across test re-runs.
2026-04-04 15:49:42 -05:00
Andreas Caravella fe4ffd1ee4 feat(dynamodb): add ScanFilter support for Scan operation (#175)
* feat(dynamodb): add ScanFilter support for Scan operation
* fix(dynamodb): address review feedback for ScanFilter PR
2026-04-04 15:48:46 -05:00
Hector Ventura 59cdc3fea6 fix(s3): prevent S3VirtualHostFilter from hijacking non-S3 requests (#199) 2026-04-03 20:08:51 -05:00
Hector Ventura 1e44f39c7c fix(secretsmanager): return KmsKeyId in DescribeSecret and improve ListSecrets (#195) 2026-04-03 18:22:40 -05:00
Hector Ventura ecf25d4736 feat(lambda): implement ListVersionsByFunction API (#182) (#193) 2026-04-03 18:22:18 -05:00
Hector Ventura 73546637ec fix: return stable cursor tokens in GetLogEvents to fix SDK pagination loop (#90) (#184) 2026-04-03 18:21:53 -05:00
Hector Ventura 441d9f179e fix(cognito): enrich User Pool responses and implement MfaConfig stub (#198) 2026-04-03 18:21:29 -05:00
Hector Ventura 9d6181c547 fix(cognito): auto-generate sub, fix JWT sub claim, add AdminUserGlobalSignOut (#68) (#183) 2026-04-03 18:20:50 -05:00
Fred Peña d93296a766 fix: resolve numeric ExpressionAttributeNames in DynamoDB expressions (#192)
* docs: expand community section with GitHub Discussions
* docs: simplify supported services table
* fix: support DynamoDB Query BETWEEN and ScanIndexForward=false
* docs: simplify supported services table
* fix: resolve numeric ExpressionAttributeNames in DynamoDB expressions
2026-04-03 12:38:36 -05:00
Georgios Andrianakis 084237ddf4 fix: polish HealthController (#188)
* Use more idiomatic map creation in HealthController
* Remove unnecessary `@Inject` from HealthController

The annotation is not needed as there is a single constructor
2026-04-03 10:06:50 -05:00
Fred Peña cdbcb572c8 Merge pull request #191 from hectorvent/fix/lambda-provided-runtime-path
fix(lambda): copy function code to /var/runtime for provided runtimes #114
2026-04-03 11:00:20 -04:00
Hector Ventura a5ad6cf7bc fix(lambda): copy function code to /var/runtime for provided runtimes (#114) 2026-04-03 09:15:52 -05:00
yoyo f994b9545b feat: support GenerateSecretString and Description for AWS::SecretsManager::Secret in CloudFormation (#176)
* feat: support GenerateSecretString and Description for AWS::SecretsManager::Secret in CloudFormation
* fix: reject both SecretString and GenerateSecretString per AWS spec
2026-04-03 09:03:38 -05:00
John Coyne 52d53f9a69 fic: env var for base lambda overwrite (#189)
* feat: AWS ECR Override for Lambda images

To support users who wish to pull AWS Lambda images from private registries (eg Artifactory hosted proxy repos), a new config option / environment variable is introduced.

resolves #165
2026-04-03 08:25:57 -05:00
Trevin Chow 835f8c6ff4 feat(cloudwatch-logs): add ListTagsForResource, TagResource, and UntagResource support (#172)
Add the newer resource-based tag operations (ListTagsForResource,
TagResource, UntagResource) to the CloudWatch Logs handler. These
operations use ARN-based resource identification instead of the older
log group name-based operations (ListTagsLogGroup, TagLogGroup,
UntagLogGroup).

The implementation extracts the log group name from the resource ARN
and delegates to the existing tag service methods.

Fixes #77
2026-04-03 02:31:28 -05:00
Julian Bruder e78c833794 fix(s3): Evaluate S3 CORS against incoming HTTP Requests (#131) 2026-04-03 00:58:00 -05:00
fguery ef06fc3493 feat(s3): support Filter rules in PutBucketNotificationConfiguration (#178)
* fix(s3Notification): ensure filter in the XML body does not crash the xml parser
* fix(S3): notification configuration should support filtering by key name
* refacto: use a generic xml parser method as a base, instead of creating a while new XML parser
2026-04-03 00:34:47 -05:00
Beytullah Gunduz 845ac85363 fix(s3): return CommonPrefixes in ListObjects when delimiter is specified (#133)
* fix(s3): return CommonPrefixes in ListObjects when delimiter is specified

ListObjects with a delimiter silently dropped nested keys instead of
grouping them into CommonPrefixes entries. Refactor the delimiter logic
to properly separate direct objects from common prefixes and include
them in the XML response, matching real S3 ListObjectsV2 behavior.

docs(s3): add reference link for using prefixes in ListObjects

* refactor(s3): following copilot review, sort common prefixes and all objects in ListObjects response. Update integration tests to reflect changes in object ordering.

* feat(s3): implement maxKeys limit for ListObjects with delimiter as suggested by copilot in the scope of CommonPrefix fix. Added a test to cover it

* fix(s3): enhance delimiter handling in ListObjects to correctly separate direct objects and common prefixes. Update logic to maintain maxKeys behavior and ensure proper sorting of results, aligning with S3 ListObjectsV2 specifications.

* fix(s3): update ListObjectsResult to include isTruncated flag and adjust XML response in S3Controller to reflect this change. Enhance tests to verify truncation behavior aligns with S3 ListObjectsV2 specifications.

* fix(s3): ensure Prefix element in ListBucketResult is not null by providing an empty string fallback when prefix is null following test results in floci-compatibility-tests
2026-04-02 18:34:39 -05:00
Benedikt Schneppe 4529823557 fix(sns): pass messageDeduplicationId from FIFO topics to SQS FIFO queues (#171)
* fix(sns): pass messageDeduplicationId from FIFO topics to SQS FIFO queues

   SnsService.deliverMessage was passing null as the messageDeduplicationId
   to sqsService.sendMessage when delivering to FIFO SQS subscriptions.
   This caused the SQS service to throw an InvalidParameterValue exception
   for queues without ContentBasedDeduplication enabled. The exception was
   silently swallowed by the catch block, resulting in silent message loss.

   Thread the resolved deduplication ID through deliverMessage for both
   publish() and publishBatch() call sites.

* fix(sns): resolve ContentBasedDeduplication in publishBatch and add FIFO dedup tests
2026-04-02 18:14:32 -05:00
Matej Šnuderl fb42087631 feat: health endpoint (#139)
* feat: add /_floci/health endpoint and Dockerfile.seed for persistence
* chore: remove Dockerfile.seed and persistence docs, keep health endpoint only
* fix: address PR review comments on health endpoint

- Change edition from 'community' to 'floci-open-source'
- Show all services in health response (enabled='running', disabled='available')
- Support both /_floci/health and /_localstack/health paths for backward compatibility

* fix: use floci-always-free edition value per reviewer preference
* test: assert full JSON response in health endpoint tests
* test: use raw JSON string for health endpoint assertion
2026-04-02 18:05:35 -05:00
Hector Ventura 5440ae8a55 fix(sqs): support binary message attributes and fix MD5OfMessageAttributes (#168) 2026-04-02 17:59:10 -05:00
Hector Ventura 7253559207 fix(s3): list part for multipart upload (#164) 2026-04-02 17:58:35 -05:00
Ricardo LimaandHector Ventura 78be5232e2 fix: resolve CloudFormation Lambda Code.S3Key base64 decode error (#62)
* fix: resolve CloudFormation Lambda Code.S3Key base64 decode error
* fix: conflicts with main + 2 tests failing

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Co-authored-by: Hector Ventura <hectorvent@gmail.com>
2026-04-02 11:19:23 -05:00
Beytullah Gunduz 020a54642d fix(s3): resolve file/folder name collision on persistent filesystem (#134)
* fix(s3): resolve file/folder name collision on local filesystem

When using floci persistent option with Scala Spark. Spark creates S3 keys doing a PutObject
for something like `output.parquet/part-0001.parquet` and then another PutObject for
`output.parquet`. It work on S3 since it allows it.

Append a `.s3data` suffix to all stored data files on disk to prevent collision

* fix(s3): add test for object marker and child file conflict resolution
* fix(s3): refactor versioned file test to use separate S3Service instance
2026-04-02 10:35:02 -05:00
Fred Peña cf2c705b7d fix: support DynamoDB Query BETWEEN and ScanIndexForward=false (#160)
* docs: expand community section with GitHub Discussions
* docs: simplify supported services table
* fix: support DynamoDB Query BETWEEN and ScanIndexForward=false
* docs: simplify supported services table
2026-04-01 16:55:51 -05:00
yoyo 675d5a33d0 Feat/cfn auto physical name generation (#163)
* refactor(cfn): add stackName param and generatePhysicalName utility

Add stackName parameter to provision() method signature and pass it
from CloudFormationService.executeTemplate(). Add generatePhysicalName
helper that generates AWS-like names: {stackName}-{logicalId}-{suffix}.

No resource naming behavior changed yet — this commit only introduces
the infrastructure for the next step.

* feat(cfn): use generatePhysicalName for all unnamed resources

Replace cfn-xxx random fallback names with AWS-like naming pattern
{stackName}-{logicalId}-{suffix} for 12 resource types:

- S3 Bucket (lowercase, max 63)
- SQS Queue (max 80)
- SNS Topic (max 256)
- DynamoDB Table/GlobalTable (max 255)
- Lambda Function (max 64)
- IAM Role (max 64), User (max 64), Policy (max 128),
  ManagedPolicy (max 128), InstanceProfile (max 128)
- SSM Parameter (path-based: /cfn/{stackName}/{logicalId})
- SecretsManager Secret (max 512)
- ECR Repository (lowercase, max 256)
2026-04-01 16:17:52 -05:00
Simone Paolo Petta 59c24c5e4e fix: defer startup hooks until HTTP server is ready (#157) (#159)
Startup hooks that make HTTP calls back to floci (e.g. aws cli) deadlocked
because they ran synchronously during StartupEvent, before the HTTP server
bound to port 4566. Hooks now run on a virtual thread that polls for port
readiness first. When no hooks are configured, behavior is unchanged.
2026-04-01 07:36:01 -05:00
Jakub d1b9a9ca6d feat: implement UploadPartCopy for S3 multipart uploads (#98) 2026-04-01 01:27:19 -05:00
Ilya Bryzgalov eef66983d9 feat: add support of Cloudformation mapping and Fn::FindInMap function (#101) 2026-04-01 01:24:47 -05:00