Commit Graph
1324 Commits
Author SHA1 Message Date
Roberto Perez AlcoleaandHector Ventura 66af545053 feat(s3): add conditional request headers (If-Match, If-None-Match, If-Modified-Since, If-Unmodified-Since) (#48)
* feat(s3): add conditional request headers (If-Match, If-None-Match, If-Modified-Since, If-Unmodified-Since)

Implement precondition evaluation for GetObject and HeadObject per
HTTP/S3 spec. Evaluation order: If-Match (412) → If-Unmodified-Since
(412, only when If-Match absent) → If-None-Match (304) →
If-Modified-Since (304, only when If-None-Match absent). Returns
S3-style XML error bodies for 412 responses. Supports comma-separated
ETags and wildcard (*) in If-Match/If-None-Match.

Fixes #46

* fix(s3): remove javadoc comments, add missing HEAD precondition tests

- Remove Javadoc from checkPreconditions, eTagMatches and parseHttpDate
- Add inline comment explaining the double-fetch optimization in getObject
- Add HEAD tests for If-Match (200/412), If-Modified-Since (304) and If-Unmodified-Since (412)
- Adjust cleanupAndDeleteBucket from @Order(100) to @Order(70)
- Renumber conditional header test orders to stay sequential

---------

Co-authored-by: Hector Ventura <hectorvent@gmail.com>
2026-03-29 00:16:39 -05:00
Masatoshi Tadaandtada fa4e107572 fix(KMS): Allow arn and alias to encrypt (#69)
Thanks again, @MasatoshiTada!

This is a great addition to Floci. Your continued support really makes a difference. Hope to see you around soon!

---------

* fix(KMS): Allow arn and alias to encrypt

* fix(KMS): Allow alias-arn to encrypt

---------

Co-authored-by: tada <tada20591@cs.saisoncard.co.jp>
2026-03-27 14:06:48 -05:00
Kurt McAlpine 7b87bf2c1f fix: DynamoDB table creation compatibility with Terraform AWS provider v6 (#89)
Hey @kurtmc, you're amazing!  

Thank you so much

---

The Terraform AWS provider v6 calls waitTableWarmThroughputActive after
creating a DynamoDB table, which checks DescribeTable for
WarmThroughput.Status == "ACTIVE". Without this field the waiter retried
for ~2.5 minutes then failed with "couldn't find resource (21 retries)".

- Add WarmThroughput with Status ACTIVE to DescribeTable/CreateTable responses
- Add BillingModeSummary for PAY_PER_REQUEST tables
- Parse BillingMode and Tags from CreateTable/UpdateTable requests
- Add DeletionProtectionEnabled field to table responses
- Extend CBOR protocol handlers to support DynamoDB, SQS, SNS, StepFunctions
2026-03-26 17:46:26 -05:00
thegagne f82b370ab2 feat: add JSONata query language support for Step Functions (#84)
Thanks again, @thegagne!
This is a great addition to Floci. Your continued support really makes a difference. Hope to see you around soon!

---
* feat: add JSONata query language support for Step Functions

Add JSONata as an alternative query language for Step Functions, matching
the AWS feature launched in late 2024. When a state machine definition
sets "QueryLanguage": "JSONata", the JSONPath fields (InputPath,
Parameters, ResultSelector, ResultPath, OutputPath) are replaced by
Arguments and Output, with expressions wrapped in {% %} delimiters.

Implementation:
- Add dashjoin jsonata-java 0.9.9 dependency (zero-dep, 160KB)
- New JsonataEvaluator: handles {% %} expression evaluation, Jackson↔Map
  conversion, $states variable binding, recursive template resolution
- AslExecutor: dual query language branches for all state types (Pass,
  Task, Choice, Wait, Map, Parallel, Succeed, Fail)
- $states.input, $states.result, $states.context (Execution, StateMachine,
  State metadata) all supported
- Definition validation: rejects JSONPath-only fields in JSONata mode,
  rejects JSONata→JSONPath per-state override (only JSONPath→JSONata
  is allowed, matching AWS behavior)

All behavior validated against real AWS Step Functions.

* fix: return error and cause fields in DescribeExecution response

DescribeExecution was not returning the error and cause fields for
failed executions. AWS includes these in the response so the SDK can
surface them via DescribeExecutionResponse.error() and .cause().

Add error/cause fields to the Execution model and include them in the
JSON handler response when present.
2026-03-26 13:18:32 -05:00
ByronLudwig 26facf26e5 feat: Adding/Fixing support for virtual hosts (#88)
Thanks again, @ByronLudwig!

I saw the PR in floci test project. 

This is a great addition to Floci. Your continued support really makes a difference. Hope to see you around soon!


Fixes https://github.com/hectorvent/floci/issues/79
2026-03-26 13:09:25 -05:00
David Hunter 9bf23d5513 feat: add SES (Simple Email Service) emulation (#14)
Thanks again, @daphid4!

This is a great addition to Floci. Your continued support really makes a difference. Hope to see you around soon!

---
* feat: add SES (Simple Email Service) emulation

Implements SES v1 Query protocol with the following actions:
- VerifyEmailIdentity, VerifyEmailAddress, VerifyDomainIdentity
- DeleteIdentity, ListIdentities, GetIdentityVerificationAttributes
- SendEmail, SendRawEmail
- GetSendQuota, GetSendStatistics, GetAccountSendingEnabled
- ListVerifiedEmailAddresses, DeleteVerifiedEmailAddress
- SetIdentityNotificationTopic, GetIdentityNotificationAttributes
- GetIdentityDkimAttributes

Identities are auto-verified in the emulator for local development.
Sent emails are stored in-memory and accessible via statistics APIs.

All 20 integration tests passing, full suite (537 tests) green.
2026-03-26 11:38:23 -05:00
Ben Rozenboim 20b40c1565 feat: add HOSTNAME_EXTERNAL support for multi-container Docker setups (#82)
Hey @justmeben, thanks for opening this! 

Great that you're willing to work on it. Feel free to go ahead, the issue is yours!

--
* feat: add HOSTNAME_EXTERNAL support for multi-container Docker setups

SQS, SNS, S3, EventBridge, and Lambda services all use `baseUrl` to
construct URLs in API responses (e.g. SQS QueueUrl). This URL defaults
to `http://localhost:4566`, which breaks in multi-container Docker
Compose setups where "localhost" resolves to the wrong container.

Add `hostnameExternal` config property (env: FLOCI_HOSTNAME_EXTERNAL)
that overrides the hostname in all response URLs. When set to the
Docker service name (e.g. "floci"), SQS returns
`http://floci:4566/000000000000/queue` instead of
`http://localhost:4566/...`.

This is equivalent to LocalStack's HOSTNAME_EXTERNAL and is essential
for any multi-container integration testing setup.

Closes #81

* rename to FLOCI_HOSTNAME to match LocalStack's LOCALSTACK_HOSTNAME
2026-03-26 09:18:17 -05:00
Fred Peña e9461645ba Merge pull request #52 from rpalcolea/fix/sns-publish-batch-json
fix(sns): add PublishBatch support to JSON protocol handler
2026-03-26 10:15:10 -04:00
Daniel Jipa c57d9ebcf8 feat: implement GetRandomPassword for Secrets Manager (#76) (#80)
Thanks again, @danjee!

This is a great addition to Floci. Your continued support really makes a difference.

Hope to see you around soon!

Closes #76
2026-03-25 17:16:49 -05:00
Levan Giguashvili 838016660c fix: align S3 CreateBucket and HeadBucket region behavior with AWS (#75)
🙌 Thanks again, @levan-giguashvili-lmnd!
This is a great addition to Floci — your continued support really makes a difference. Hope to see you around soon!
2026-03-25 10:54:36 -05:00
GuanZitong c95dd1068e fix: Storage load after backend is created (#71)
🎉 Merged! Thank you so much, @GuanZitong!

This is exactly the kind of contribution that helps Floci grow — your work is genuinely appreciated.

If you're up for it, there's plenty more to dig into:
- 👀 Check out the open issues — some are tagged as good first steps for contributors
- 💬 If you have ideas or ran into something while working on this, feel free to open an issue or start a discussion
- 🔧 PRs for documentation, tests, and bug fixes are always welcome

Hoping to see your name pop up again soon. Welcome to the Floci community! 🙌
2026-03-25 10:13:32 -05:00
Conor Heine 8a8d55d972 feat: add ACM support (#21)
* feat: add ACM support

* fix: address code review issues - pagination, idempotency TTL, AES-256

  - BouncyCastle static initialization to prevent race conditions
  - Cursor-based pagination for ListCertificates
  - Idempotency token 1-hour TTL with lazy expiration
  - AES-256-CBC encryption replacing Triple-DES
  - 58 tests passing with new edge case coverage

* fix: address PR #21 review feedback

- Add GraalVM native image hints for BouncyCastle (initialize-at-run-time, reflection config)
- Add runtime initialization for AcmService and CertificateGenerator (SecureRandom fix)
- Log security warning lazily on first certificate creation/import (not at startup)
- Add AcmStorageConfig interface for consistency with other services


---

🎉 Merged! Thank you so much, @cahna!

This is exactly the kind of contribution that helps Floci grow — your work is genuinely appreciated.

If you're up for it, there's plenty more to dig into:
- 👀 Check out the open issues — some are tagged as good first steps for contributors
- 💬 If you have ideas or ran into something while working on this, feel free to open an issue or start a discussion
- 🔧 PRs for documentation, tests, and bug fixes are always welcome

Hoping to see your name pop up again soon. Welcome to the Floci community! 🙌
2026-03-25 10:10:34 -05:00
Roberto Perez Alcolea 543df0539b fix(sns): add PublishBatch support to JSON protocol handler
Add PublishBatch, GetSubscriptionAttributes, SetSubscriptionAttributes,
and ConfirmSubscription to the SnsJsonHandler switch statement so modern
AWS SDK v2+ clients using the JSON protocol can call these operations.

Includes integration tests verifying PublishBatch via JSON protocol
returns Successful entries with MessageIds, plus an empty-entries edge
case.
2026-03-24 14:09:58 -07:00
Levan Giguashvili 7d5890a644 fix: add S3 GetObjectAttributes and metadata parity (#29)
Implement GetObjectAttributes on the S3 GET path and persist
object metadata such as storage class, checksums, and multipart
part manifests so GET and HEAD behave closer to AWS and LocalStack.

Also add service and integration coverage for metadata headers,
copy-based metadata replacement, multipart attributes, and
versioned object attribute reads.
2026-03-24 14:29:09 -05:00
Juan Diego López e05b7ec7be Merge pull request #41 from breezy-bytes/feature/cloudformation-add-delete-change-set
feat: add support for DeleteChangeSet in CloudFormation
2026-03-24 13:39:36 -04:00
ByronLudwigandByron Ludwig 6e8713d9fe fix: return versionId in CompleteMultipartUpload response (#35)
🎉 Merged! Thank you so much, @ByronLudwig!

This is exactly the kind of contribution that helps Floci grow — your work is genuinely appreciated.

If you're up for it, there's plenty more to dig into:
- 👀 Check out the open issues — some are tagged as good first steps for contributors
- 💬 If you have ideas or ran into something while working on this, feel free to open an issue or start a discussion
- 🔧 PRs for documentation, tests, and bug fixes are always welcome


Fixes hectorvent/floci#32

Co-authored-by: Byron Ludwig <byron.ludwig@iconsolutions.com>
2026-03-24 12:37:50 -05:00
Fred Peña 861cf14a7d Merge pull request #26 from hectorvent/fix/lambda-missing-runtime-ruby-issue-18
fix: add ruby lambda runtime support (#18)
2026-03-24 12:22:19 -04:00
Fred Peña ab4648bd01 Merge pull request #36 from ByronLudwig/fix/nosuchversion-error-code
fix: return NoSuchVersion error for non-existent versionId
2026-03-24 12:16:23 -04:00
Benjamin Hintz 794939c331 Add support for CloudFormation's DeleteChangeSet 2026-03-24 17:06:01 +01:00
Hector Ventura ad31e7a7b7 fix(s3): truncate LastModified timestamps to second precision (#24) 2026-03-24 10:27:26 -05:00
Byron Ludwig 5576222999 fix: return NoSuchVersion error for non-existent versionId
When requesting an object with a versionId that doesn't exist, S3
returns NoSuchVersion, not NoSuchKey. Updated getObject to distinguish
between a missing key and a missing version.

Fixes https://github.com/hectorvent/floci/issues/33
2026-03-24 14:50:08 +00:00
Hector Ventura 38bdaf9616 fix: add ruby lambda runtime support (#18) 2026-03-24 01:44:35 -05:00
Hector Ventura 0e29c65266 fix: fix s3 createbucket response format for rust sdk compatibility (#11) 2026-03-23 11:58:08 -05:00
Hector Ventura 61433f59ab firt commit 2026-03-15 17:43:56 -05:00