* fix(dynamodb): fix FilterExpression handling for BOOL, List/Set contains, and nested attribute paths
- Add BOOL type support to extractScalarValue() so comparison operators
like <> work correctly with boolean attributes
- Extend contains() to support L (List), SS (String Set), and NS
(Number Set) types instead of only scalar string substring matching
- Support dotted attribute paths in attribute_exists/attribute_not_exists
by navigating through DynamoDB Map (M) structure
Fixes#126
* fix: route SQS JSON 1.0 requests sent to queue URL path correctly (#99)
* fix: route SQS JSON 1.0 requests sent to queue URL path correctly
Newer AWS SDKs (e.g. aws-sdk-sqs Ruby gem >= 1.71) send JSON 1.0
requests to the queue URL path (/{accountId}/{queueName}) rather than
POST /. These were matched by S3Controller's /{bucket}/{key:.+} handler,
returning NoSuchBucket or InvalidArgument XML errors.
Added a @PreMatching ContainerRequestFilter (SqsQueueUrlFilter) that
rewrites the request URI to POST / before JAX-RS routing when both
Content-Type is application/x-amz-json-1.0 and X-Amz-Target starts with
AmazonSQS. The existing AwsJsonController dispatcher then handles the
request normally.
A @Consumes-based approach was attempted first but is ineffective in
RESTEasy Reactive: @Consumes only affects method selection within a
class, not between competing resource classes, so S3Controller was
still selected at the class-routing stage.
Closes#17
* feat(cognito): add group management support
* fix(cognito): handle null precedence in createGroup request
* test(cognito): add tests for JWT escaping special characters in group names and user pool deletion cascading groups
* feat(cognito): enhance group listing by sorting and improve group name validation
* test(cognito): enhance group deletion test to verify group absence after user pool deletion
* feat(cognito): update group and user models to set last modified date on changes
* feat(cognito): update deleteGroup method to set last modified date for users when removing from group
* fix(sns): honor RawMessageDelivery attribute for SQS subscriptions
* fix(sns): address PR review feedback on RawMessageDelivery
- Preserve original SNS attribute DataType (Number, Binary, etc.) by
changing the internal messageAttributes type from Map<String,String>
to Map<String,MessageAttributeValue> throughout the publish pipeline
- Update SnsQueryHandler and SnsJsonHandler to parse DataType from
incoming requests and construct typed MessageAttributeValue objects
- Return Collections.emptyMap() from toSqsMessageAttributes instead
of null for safety on non-raw delivery paths
- Use UUID-based queue names in raw delivery tests for isolation
- Add test asserting message attributes (including Number type) are
forwarded correctly to SQS in raw delivery mode
The AWS SDK v2 uses the __type field in JSON error responses to instantiate
typed exceptions. Query-protocol codes such as
AWS.SimpleQueueService.NonExistentQueue were being forwarded verbatim into
the JSON __type field, causing the SDK to fall back to a generic SqsException
instead of QueueDoesNotExistException.
Add a jsonType() method to AwsException that maps Query-protocol codes to
their JSON-protocol equivalents (e.g. QueueDoesNotExist, QueueNameExists).
Both AwsExceptionMapper and the inline catch in AwsJsonController now call
jsonType() so the mapping is applied consistently across all code paths.
Add contentEncoding field to S3Object and thread it through putObject,
copyObject, getObject, and headObject. aws-chunked is excluded from
persistence as it is a transfer-protocol marker, not a real encoding.
CopyObject respects x-amz-metadata-directive: REPLACE by adopting the
new Content-Encoding from the request instead of the source object.
FilterPolicy subscription attribute was accepted and stored but never
evaluated during publish. Messages were delivered to all confirmed
subscriptions regardless of filter rules. Now evaluates filter policies
supporting exact string matching, numeric comparisons, prefix matching,
exists operator, and anything-but operator per SNS specification.
Fixes#49
AWS SDKs rigorously depend on standard HTTP identification headers
(like `x-amz-request-id` and `x-amzn-RequestId`) to completely and
accurately construct the `ResponseMetadata` payload in their clients.
Because Floci lacked these headers on generic API responses, the SDK
failed to parse identifiers (resulting in `$metadata.requestId` resolving
to `undefined`).
This commit introduces a JAX-RS `AwsRequestIdFilter` to automatically
and globally append these necessary structural headers to every HTTP
response, mapped via a single uniformly-generated UUID. Preexisting
explicitly set controllers (such as Lambda's Invoke) are bypassed
to preserve context.
Added `AwsRequestIdFilterIntegrationTest` verifying end-to-end
protocol formats.
Fixes#145
Implement S3 presigned POST (browser-based) uploads via multipart/form-data
POST to /{bucket}. This is the standard AWS mechanism for browser-based
file uploads using pre-signed policies.
Changes:
- S3Controller: detect multipart/form-data POST on /{bucket} and route to
handlePresignedPost instead of returning InvalidArgument
- Parse multipart body to extract form fields (key, policy, Content-Type,
x-amz-credential, x-amz-signature, etc.) and file data
- Validate content-length-range from the Base64-encoded policy JSON
- Store object via S3Service.putObject with Content-Type from form field
- Return 204 with ETag and Location headers (AWS-compatible response)
Tests:
- 11 new integration tests covering: basic upload, binary data, content-length
validation (reject + accept), missing key/file fields, no-policy upload,
Content-Type precedence (form field over file part), non-existent bucket
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- Implement ListShards handler in KinesisJsonHandler
- Support StreamName and StreamARN parameters
- Support ShardFilter with AT_LATEST type
- Support MaxResults parameter
- Add integration tests for ListShards
* feat(lifecycle): add support for startup and shutdown initialization hooks
* test(lifecycle): add unit tests for initialization hooks
* test(lifecycle): add integration tests for initialization hooks
* docs: add documentation and configuration for initialization hooks
* feat(SFN): add DynamoDB AWS SDK integration and complete optimized updateItem
Add support for the arn:aws:states:::aws-sdk:dynamodb:* resource pattern
in Step Functions Task states, covering all 20 DynamoDB actions Floci
supports. Implement by forwarding directly to DynamoDbJsonHandler with
camelCase-to-PascalCase action name conversion.
Also complete the optimized dynamodb:updateItem integration that was
previously stubbed, and fail unsupported resources with States.TaskFailed
instead of silently passing through.
Validated against real AWS with 20/20 compatibility tests passing.
* fix(SFN): correct DynamoDB error prefix format for optimized and SDK integrations
- AWS SDK integration: use DynamoDb.ErrorCode (no double Exception suffix)
- Optimized integration: catch AwsException and use DynamoDB.ErrorCode prefix
(uppercase DB, matching real AWS behavior)
Validated error format against real AWS for ResourceNotFoundException
and ConditionalCheckFailedException.
Implement HTTP Range header parsing for S3 GetObject requests.
Supports standard range formats: bytes=start-end, bytes=start-,
and bytes=-suffix. Returns 206 Partial Content with Content-Range
header for valid ranges, and 416 Range Not Satisfiable for invalid
ranges. Also adds Accept-Ranges: bytes to GET and HEAD responses.
Fixes#40
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>
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
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.
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
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.
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
🙌 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!
🎉 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! 🙌
* 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! 🙌
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.
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.
🎉 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
Fixeshectorvent/floci#32
Co-authored-by: Byron Ludwig <byron.ludwig@iconsolutions.com>
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