Commit Graph
37 Commits
Author SHA1 Message Date
Hector Ventura 51bd80230e fix: release 1.5.8 2026-04-25 23:02:47 -05:00
Hector Ventura ad76540347 chore: release 1.5.7 2026-04-23 02:24:42 -05:00
Hector Ventura f669be1edb fix: release 1.5.6 (#569) 2026-04-23 02:06:25 -05:00
Hector Ventura 86906ebd90 fix(native,acm): fix native image reflection for acm (#559) 2026-04-21 23:03:24 -05:00
Kenshin Okinaka c69580764e feat(ses): SMTP relay for SendEmail and SendRawEmail (#534)
* feat(ses): add SMTP relay configuration to EmulatorConfig

Add smtp-host, smtp-port, smtp-user, smtp-pass, and smtp-starttls
settings to SesServiceConfig. smtp-host is Optional — when absent or
empty, relay is disabled and emails are stored only (existing behavior).

* feat(ses): implement SMTP relay with Vert.x MailClient and Mime4j

Add SmtpRelay that forwards SES emails to a configured SMTP server
using a dedicated Vert.x MailClient built from EmulatorConfig settings.

Simple emails are sent as MailMessage with From/To/Cc/Bcc/ReplyTo/
Subject/Text/Html. Raw MIME emails are parsed with Apache Mime4j to
extract headers and body, then sent via the same MailClient. When SES
Destinations is provided, it is used as the authoritative envelope
recipient list (MIME Cc headers do not add extra SMTP recipients).

Relay is dispatched asynchronously on a dedicated daemon thread with
a 30-second send timeout. Failures are logged with stack traces but
never affect the API response. The executor and MailClient are only
created when smtp-host is configured and ses.enabled is true, and
shut down in @PreDestroy.

SesService calls SmtpRelay.relay/relayRaw after storing emails so
the inspection endpoint always has the data regardless of relay.

Tests: SmtpRelayTest (12 cases) covers simple/raw relay, disabled
path, error swallowing, base64 decoding, HTML content type, envelope
fallback. SesServiceSmtpTest (5 cases) verifies relay integration
and store persistence.

* docs(ses): document SMTP relay configuration

Add SMTP Relay section to docs/services/ses.md with configuration
example, docker-compose snippet with Mailpit, and behavioral notes.
Add SMTP settings to the YAML sample and environment variable table
in docs/configuration/application-yml.md.

* fix(ses): preserve body against attachment overwrite and extract Bcc from raw MIME

- extractBodyFromEntity now only sets text/html when not already set, so a
  text-typed attachment in multipart/mixed cannot clobber the body picked up
  from multipart/alternative.
- doRelayRaw now reads Bcc from MIME headers alongside To/Cc when the caller
  did not supply Destinations.

* fix(ses): initialize Vert.x NTLMEngineImpl at run time for native image

The vertx-mail-client dependency brings in io.vertx.ext.mail.impl.sasl.NTLMEngineImpl,
whose static state embeds a SecureRandom instance. GraalVM native-image rejects
build-time Random/SecureRandom objects because the cached seed makes runtime
behavior unpredictable. Mark the class for run-time initialization, matching the
existing entry for the Apache HttpClient NTLM engine.
2026-04-20 22:47:06 -05:00
Hector Ventura b7774d17b2 fix: release 1.5.5 2026-04-19 23:45:27 -05:00
Hector Ventura 0f70ff75a8 fix: updating docker client dependency (#513) 2026-04-19 01:04:28 -05:00
Hector Ventura e080543ef4 Release 1.5.4 2026-04-17 03:17:23 -05:00
Hector Ventura ea597c67d6 feat: implement local Data Lake stack (Athena, Glue, and Firehose) (#429)
* feat: implement local Data Lake stack (Athena, Glue, and Firehose)
* fix: adding athena, firehose and glue documentation
* fix: updating dataLateTest
2026-04-15 01:22:10 -05:00
Hector Ventura 2127ac995f fix: updating dependencies (#391) 2026-04-12 22:26:59 -05:00
Hector Ventura 6610c3c527 chore: release 1.5.3 2026-04-12 21:34:57 -05:00
TiM c227c3cd4a test(auth): add SigV4 validator unit tests for RDS and ElastiCache proxies (#361)
* test(auth): add SigV4 validator unit tests for RDS proxy

Direct unit tests against RdsSigV4Validator that bypass the disabled
global floci.auth.validate-signatures flag (application.yml:36). Real
SigV4-sensitive behavior cannot be asserted from the running Floci
test harness, so validator-level tests are the only path to real-auth
coverage.

Covers three cases:
- accept: token signed with host:port
- reject: signature omits port from canonical host header
- reject: expired token (beyond X-Amz-Expires)
2026-04-12 02:15:49 -05:00
Hector Ventura 494cff2e14 chore: release 1.5.2 2026-04-10 02:36:30 -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
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
Mahamed-Belkheir e8c6440489 feat: add scheduled rules support for EventBridge Rules (#217) 2026-04-05 20:08:52 -05:00
Georgios Andrianakis 86b50d46d9 Cleanup quarkus dependencies (#187)
* Remove redundant dependencies
* Replace `quarkus-junit5` dependencies with `quarkus-junit`
2026-04-03 18:20:19 -05:00
thegagne d1d7ec3bd3 feat(APIGW): OpenAPI/Swagger import, models, and request validation (#113)
* feat(APIGW): add AWS integration type for API Gateway REST v1

Add support for the API Gateway REST v1 AWS (non-proxy) integration type,
enabling direct service calls via VTL request/response mapping templates.

New components:
- VtlTemplateEngine: Apache Velocity engine with $input (body, json, path,
  params shorthand), $util (escapeJavaScript, urlEncode, base64, parseJson),
  $context, and $stageVariables
- AwsServiceRouter: parses action-based integration URIs and dispatches to
  13 internal service handlers (states, dynamodb, sqs, sns, events, etc.)

Integration features:
- Content-Type negotiation for request template selection
- passthroughBehavior (WHEN_NO_MATCH, WHEN_NO_TEMPLATES, NEVER)
- Request parameter mapping (method.request.* -> integration.request.*)
- Response parameter mapping with full JSONPath body extraction
- Integration response selection via selectionPattern regex matching
- VTL directives: #set, #foreach, #if/#else

Also fixes SFN timestamps to use epoch float (e.g. 1743263483.047) matching
real AWS format.

* feat(APIGW): add OpenAPI/Swagger import, models, and request validation

Add ImportRestApi (POST /restapis?mode=import) and PutRestApi
(PUT /restapis/{apiId}?mode=overwrite) supporting OpenAPI 3.0 and
Swagger 2.0 specs with x-amazon-apigateway-integration extensions.

- Parse OpenAPI specs via swagger-parser, create resources/methods/integrations
- Import components.schemas as API Gateway Models with JSON Schema
- Import x-amazon-apigateway-request-validators as RequestValidators
- Validator precedence: operation > path > API-level default
- Model CRUD endpoints (create, get, list, delete)
- Request body validation against JSON Schema (Draft 4) at execute-api layer
- Required parameter presence validation (query string, header)
- mode=merge returns 400 with clear error message
- 22 integration tests, 792 total passing

* fix(APIGW): match real AWS behavior for validators and mode=merge

- Remove path-level x-amazon-apigateway-request-validator (AWS only
  supports operation-level > API-level default, verified against real AWS)
- Accept mode=merge in PutRestApi (treated as overwrite for now, since
  real AWS accepts it — returning 400 was incorrect)

Verified: 31/31 compat tests against real AWS, 39/39 against Floci.
2026-03-30 20:12:21 -05:00
Cyril Schumacher 7b2576fb42 feat(lifecycle): add support for startup and shutdown initialization hooks (#128)
* 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
2026-03-30 11:00:44 -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
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
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
semantic-release-bot 7c95cfe1b6 chore(release): 1.0.11
## [1.0.11](https://github.com/hectorvent/floci/compare/1.0.10...1.0.11) (2026-03-24)

### Bug Fixes

* add S3 GetObjectAttributes and metadata parity ([#29](https://github.com/hectorvent/floci/issues/29)) ([7d5890a](https://github.com/hectorvent/floci/commit/7d5890a6440ca72d565f3d987afa380825ba5861))
2026-03-24 19:29:51 +00:00
semantic-release-bot 91029ccaad chore(release): 1.0.10
## [1.0.10](https://github.com/hectorvent/floci/compare/1.0.9...1.0.10) (2026-03-24)

### Bug Fixes

* return versionId in CompleteMultipartUpload response ([#35](https://github.com/hectorvent/floci/issues/35)) ([6e8713d](https://github.com/hectorvent/floci/commit/6e8713d9fe4e1b3f6536f979899209daa00b0a04)), closes [hectorvent/floci#32](https://github.com/hectorvent/floci/issues/32)
2026-03-24 17:38:32 +00:00
semantic-release-bot 8053ae7c2e chore(release): 1.0.9
## [1.0.9](https://github.com/hectorvent/floci/compare/1.0.8...1.0.9) (2026-03-24)

### Bug Fixes

* add ruby lambda runtime support ([#18](https://github.com/hectorvent/floci/issues/18)) ([38bdaf9](https://github.com/hectorvent/floci/commit/38bdaf9616bdb833dbe1b8d4f13c30659b390768))
2026-03-24 16:23:02 +00:00
semantic-release-bot 93f37272d3 chore(release): 1.0.8
## [1.0.8](https://github.com/hectorvent/floci/compare/1.0.7...1.0.8) (2026-03-24)

### Bug Fixes

* return NoSuchVersion error for non-existent versionId ([5576222](https://github.com/hectorvent/floci/commit/557622299951b50c795204503ef727b8dac9b6b8))
2026-03-24 16:17:08 +00:00
semantic-release-bot 5eeb6828cc chore(release): 1.0.7
## [1.0.7](https://github.com/hectorvent/floci/compare/1.0.6...1.0.7) (2026-03-24)

### Bug Fixes

* s3 unit test error ([0d77526](https://github.com/hectorvent/floci/commit/0d77526e2e457e8827ce82042dc5854d62794fde))
2026-03-24 15:56:06 +00:00
semantic-release-bot d15ed94f52 chore(release): 1.0.6
## [1.0.6](https://github.com/hectorvent/floci/compare/1.0.5...1.0.6) (2026-03-24)

### Bug Fixes

* **s3:** truncate LastModified timestamps to second precision ([#24](https://github.com/hectorvent/floci/issues/24)) ([ad31e7a](https://github.com/hectorvent/floci/commit/ad31e7a7b7ed8850ba668f7f09c3cad6dc8c81b0))
2026-03-24 15:28:36 +00:00
semantic-release-bot 114aa7cee8 chore(release): 1.0.5
## [1.0.5](https://github.com/hectorvent/floci/compare/1.0.4...1.0.5) (2026-03-23)

### Bug Fixes

* fix s3 createbucket response format for rust sdk compatibility ([#11](https://github.com/hectorvent/floci/issues/11)) ([0e29c65](https://github.com/hectorvent/floci/commit/0e29c65266e55f48118ec00a4e6971d6264b08f2))
2026-03-23 22:34:54 +00:00
semantic-release-bot e4446c0377 chore(release): 1.0.4
## [1.0.4](https://github.com/hectorvent/floci/compare/1.0.3...1.0.4) (2026-03-20)

### Bug Fixes

* adding build for development branch ([ae15f4c](https://github.com/hectorvent/floci/commit/ae15f4c79c7a28ba50c0426be5cdf1446cdafdeb))
* adding build for development branch ([95cb2aa](https://github.com/hectorvent/floci/commit/95cb2aaf1e63cf3a8b359bd5ab1c0b9f6cfb506b))
* docker build on native ([525f106](https://github.com/hectorvent/floci/commit/525f106eb4d302192d128a2ee00a80adbcb12c67))
* rename github action ([1fe1f6b](https://github.com/hectorvent/floci/commit/1fe1f6b7d87aa25573f015e2483b1c98a5962c4a))
* update workflow to download artifact into target ([4c18934](https://github.com/hectorvent/floci/commit/4c1893459579a6e5e1fa37145ace2a8433cd56e2))
2026-03-20 01:03:33 +00:00
semantic-release-bot 52062fba45 chore(release): 1.0.4-dev.3
## [1.0.4-dev.3](https://github.com/hectorvent/floci/compare/1.0.4-dev.2...1.0.4-dev.3) (2026-03-17)

### Bug Fixes

* update workflow to download artifact into target ([4c18934](https://github.com/hectorvent/floci/commit/4c1893459579a6e5e1fa37145ace2a8433cd56e2))
2026-03-17 02:51:08 +00:00
semantic-release-bot 8d94e9a3b3 chore(release): 1.0.4-dev.2
## [1.0.4-dev.2](https://github.com/hectorvent/floci/compare/1.0.4-dev.1...1.0.4-dev.2) (2026-03-17)

### Bug Fixes

* rename github action ([1fe1f6b](https://github.com/hectorvent/floci/commit/1fe1f6b7d87aa25573f015e2483b1c98a5962c4a))
2026-03-17 02:13:17 +00:00
semantic-release-bot d97e9f3ce9 chore(release): 1.0.4-dev.1
## [1.0.4-dev.1](https://github.com/hectorvent/floci/compare/1.0.3...1.0.4-dev.1) (2026-03-17)

### Bug Fixes

* adding build for development branch ([ae15f4c](https://github.com/hectorvent/floci/commit/ae15f4c79c7a28ba50c0426be5cdf1446cdafdeb))
* adding build for development branch ([95cb2aa](https://github.com/hectorvent/floci/commit/95cb2aaf1e63cf3a8b359bd5ab1c0b9f6cfb506b))
* docker build on native ([525f106](https://github.com/hectorvent/floci/commit/525f106eb4d302192d128a2ee00a80adbcb12c67))
2026-03-17 01:34:37 +00:00
semantic-release-bot 0b6e6ccf19 chore(release): 1.0.3-dev.1
## [1.0.3-dev.1](https://github.com/hectorvent/floci/compare/1.0.2...1.0.3-dev.1) (2026-03-17)

### Bug Fixes

* adding build for development branch ([ae15f4c](https://github.com/hectorvent/floci/commit/ae15f4c79c7a28ba50c0426be5cdf1446cdafdeb))
* adding build for development branch ([95cb2aa](https://github.com/hectorvent/floci/commit/95cb2aaf1e63cf3a8b359bd5ab1c0b9f6cfb506b))
* improving native image compilation time ([49c69db](https://github.com/hectorvent/floci/commit/49c69db32314f7e2f94114d86d50e88b3e2a3884))
* update git pages config for the docs ([286bef9](https://github.com/hectorvent/floci/commit/286bef9dd7bfcf162f2ca5c2c030ea280e0b6de6))
2026-03-17 01:27:02 +00:00
semantic-release-bot 41729d5e9c chore(release): 1.0.2
## [1.0.2](https://github.com/hectorvent/floci/compare/1.0.1...1.0.2) (2026-03-15)

### Bug Fixes

* docker built action not being triggered ([a6b078f](https://github.com/hectorvent/floci/commit/a6b078fd76f973305ccab2e1ce6b45795e76b9b3))
2026-03-15 23:27:57 +00:00
semantic-release-bot 9a0c755843 chore(release): 1.0.1 [skip ci]
## [1.0.1](https://github.com/hectorvent/floci/compare/1.0.0...1.0.1) (2026-03-15)

### Bug Fixes

* github action trigger ([156ceb2](https://github.com/hectorvent/floci/commit/156ceb2d884391864a24787e01b2c64b15b5f0f3))
2026-03-15 23:01:46 +00:00
Hector Ventura 61433f59ab firt commit 2026-03-15 17:43:56 -05:00