Commit Graph
299 Commits
Author SHA1 Message Date
TiM d16945f30d fix(lambda): raise Jackson maxStringLength for large inline zip uploads (#412) (#418)
Jackson 2.15+ defaults StreamReadConstraints.maxStringLength to 20 MB,
blocking Lambda CreateFunction when the base64-encoded ZipFile exceeds
that limit. AWS allows up to 50 MB direct upload (~67 MB base64).

Add an ObjectMapperCustomizer that raises the limit to 100 MB, and an
integration test that sends a >20 MB base64 payload to verify it works.
2026-04-13 17:42:06 -05:00
TiM cf9eb32516 feat(kinesis): implement EnableEnhancedMonitoring and DisableEnhancedMonitoring (#417)
Terraform fails when shard_level_metrics is configured because these
operations returned UnsupportedOperation. Store requested metrics on
the stream model and return them in DescribeStream/DescribeStreamSummary
responses. Validates metric names and handles the ALL expansion.

Closes #410
2026-04-13 16:14:11 -05:00
Mikołaj Kłosowski db21bc9ec6 fix(sqs): use queue-level VisibilityTimeout as fallback in ReceiveMessage (#413)
When ReceiveMessage does not specify a VisibilityTimeout parameter,
doReceiveMessage falls back to the global default (30s) instead of the
queue's own VisibilityTimeout attribute. This causes messages to stay
invisible far longer than expected, which in turn breaks DLQ redrive
for queues configured with a short visibility timeout — the message
never becomes visible within a reasonable window for the receive-count
check to trigger.

Read the queue's VisibilityTimeout attribute as the intermediate
fallback before using the global default.
2026-04-13 16:12:22 -05:00
TiM 972faafe13 ci(compat): parallelize sdk-test-awscli bats execution (#414)
Enable file-level parallelism (--jobs 4) for the awscli compatibility
test suite. Replace hardcoded resource names in rds.bats and ecr.bats
with unique_name() to prevent cross-file collisions under parallel
execution, matching the pattern used by the other 13 bats files.
2026-04-13 15:37:32 -05:00
TiM bffc374406 fix(dynamodb): implement DELETE action for set attributes (#312) (#415)
The DELETE clause in UpdateExpression was stubbed out with a
break statement, silently ignoring the operation. This caused
DELETE on SS/NS/BS sets to be a no-op.

Add applyDeleteClause (clause parser) and applyDeleteOperation
(set subtraction) mirroring the existing ADD implementation.
Empty sets after removal trigger attribute deletion per the
DynamoDB spec.
2026-04-13 15:34:49 -05:00
Hector Ventura cfe48dfabe fix(iam): enforce iam when it turned on (#411)
* fix: iam enforment feature
* fix: adding iam enforment test
* fix: adding iam enforment and update documentation
2026-04-13 14:21:47 -05:00
sf-jin-ku 0c4eb1380c feat(sfn): add SQS sendMessage integrations (#409)
* feat(sfn): add SQS sendMessage integrations
* fix(sfn): normalize aws-sdk SQS errors
* test(sfn): assert queue cleanup succeeds
* fix(sfn): support aws-sdk waitForTaskToken for SQS
2026-04-13 14:20:51 -05:00
Christine Nguyen f183cf2fb5 fix(lambda): resolve handler paths with subdirectories and skip validation for dotnet runtimes (#404) 2026-04-13 14:19:46 -05:00
sf-jin-ku c8797e2456 feat(s3): preserve Content-Disposition on object responses (#408)
* feat(s3): preserve Content-Disposition on object responses
* fix(s3): preserve Content-Disposition for multipart uploads
* test(s3): avoid duplicate order annotations
2026-04-13 14:18:14 -05:00
Christine Nguyen 3621c32b88 fix(s3): remove XML declaration from GetBucketLocation response (#403) 2026-04-13 14:17:22 -05:00
Takahiro Tsuruda 300bfa4356 feat(iam): seed AWS managed policies at startup (#400)
* feat(iam): seed AWS managed policies at startup

Seed 14 commonly-used AWS managed policies (e.g.
AWSLambdaBasicExecutionRole, AdministratorAccess) into the IAM
policy store on startup via @PostConstruct. This ensures that
documented examples using attach-role-policy with standard AWS
policy ARNs work out of the box.

Also adds Scope filter support to ListPolicies (AWS/Local/All).

Closes #329

* fix(iam): reject mutations on AWS managed policies and validate Scope param

AWS managed policies (arn:aws:iam::aws:policy/...) are now immutable —
deletePolicy, createPolicyVersion, deletePolicyVersion,
setDefaultPolicyVersion, tagPolicy, and untagPolicy return AccessDenied
(403) for these ARNs, matching real AWS behavior.

Also adds Scope validation to listPolicies: unrecognized values now
return ValidationError (400) instead of silently falling through to All.
2026-04-13 11:25:01 -05:00
TiM 682f05d898 test(apigatewayv2): add QuarkusTest integration test for HTTP API v2 (#399)
Cover full CRUD lifecycle for all six v2 resource types: APIs,
routes, integrations, authorizers, deployments, and stages.
26 ordered tests verify create, get, list, and delete operations
plus 404 on deleted API. Mirrors the existing v1
ApiGatewayIntegrationTest approach.
2026-04-13 11:15:51 -05:00
TiM eb6749870b fix(elasticache,rds): prevent orphaned Docker containers on shutdown and restart (#398)
ElastiCache and RDS container managers used deterministic container names
without conflict handling, causing 409 errors when restarting after an
interrupted run. Containers were also never cleaned up on shutdown.

- Force-remove stale containers by name before creating new ones
- Track active containers in ConcurrentHashMap with stopAll() for shutdown
- Add container cleanup to EmulatorLifecycle.onStop() (proxies first, then containers)
- Add @AfterAll safety net to ElastiCacheIntegrationTest
2026-04-13 11:07:49 -05:00
TiM 702faf58e1 chore: align config between YAML files and docs; add missing service sections (#397)
Close drift gaps between main YAML, test YAML, and docs reference.
Test YAML: fix rds.proxy-base-port (7000→7001), add apigatewayv2/acm
sections, expand opensearch with proxy ports, fix appconfigdata missing
value, add acm storage flush. Main YAML: add apigatewayv2 section.
Docs: add apigatewayv2/appconfig/appconfigdata/ecr full config blocks,
clarify note about unlisted keys.
2026-04-13 11:06:01 -05:00
Victor Sanchez Velasco bc8caa43f8 fix(cloudformation): populate SQS queue ARN in resource attributes (#396)
When provisioning AWS::SQS::Queue via CloudFormation, the resource's
'Arn' attribute was being read from Queue#getAttributes(), but QueueArn
is a computed attribute in SqsService#getQueueAttributes() — it is not
stored on the Queue object itself. As a result, the Arn attribute was
set to an empty string.

This broke Fn::GetAtt references to queue ARNs. For example, an
EventBridge Rule target built with CDK's SqsQueue target construct
would end up with an empty Arn, silently dropping all events:

  "Targets": [{
    "Arn": {"Fn::GetAtt": ["MyQueue", "Arn"]}
  }]

Fix: build the ARN from region + accountId + queueName, matching the
format used by SqsService#getQueueAttributes.

Added integration test that verifies Fn::GetAtt resolves correctly
when used for an EventBridge Rule target ARN.
2026-04-13 11:05:06 -05:00
TiM cd62fda111 fix(apigatewayv2): add missing JSON handler operations and stageName auto-deploy (#393)
* fix(apigatewayv2): add missing JSON handler operations and stageName auto-deploy

The JSON 1.1 handler was missing GetDeployment, DeleteDeployment, and
DeleteIntegration operations. Callers using the X-Amz-Target path
(non-SDK, Terraform, CLI --cli-input-json) would get UnknownOperation
errors for these actions.

Additionally, the handler passed PascalCase map keys from the JSON 1.1
payload directly to service methods that expect lowerCamelCase. Added
key normalization so both REST and JSON 1.1 paths produce consistent
input for the service layer.

createDeployment now respects the stageName parameter: when provided,
it auto-deploys by updating the named stage's deploymentId and
lastUpdatedDate, matching AWS behavior. Throws NotFoundException if
the stage doesn't exist.

- Add GetDeployment, DeleteDeployment, DeleteIntegration switch cases
- Add toLowerCamelCase() key normalizer for JSON 1.1 map inputs
- Implement stageName auto-deploy in createDeployment
- 9 new integration tests covering the full deployment lifecycle,
  stageName auto-deploy, missing stage 404, and delete operations

* fix: address review feedback on apigatewayv2 changes

- Validate stage exists before persisting deployment to prevent
  orphan deployments on invalid stageName (Codex finding)
- Add JSON 1.1 path tests using X-Amz-Target and PascalCase keys
  to directly exercise the handler's normalization and new switch
  cases (both reviewers)
- Handle List values in toLowerCamelCase normalization for nested
  object arrays (Gemini suggestion)
- Add orphan deployment assertion to missing-stage 404 test
2026-04-13 11:01:03 -05:00
TiM f053db583a fix(auth): bind SigV4 token identity and use timing-safe comparison (#389)
RDS and ElastiCache SigV4 validators accepted any valid token regardless
of which user it was signed for. A token signed for user A could
authenticate as user B if the signature was cryptographically valid.

- RdsSigV4Validator.validate() now takes clientUsername and rejects
  tokens where DBUser doesn't match the connecting PostgreSQL user
- ElastiCache SigV4Validator.validate() now takes expectedUsername and
  rejects tokens where User doesn't match the AUTH username
- PostgresProtocolHandler passes clientUsername to the validator
- ElastiCacheAuthProxy passes the AUTH username to the validator
- Both validators use MessageDigest.isEqual() for signature comparison
  instead of String.equals() to prevent timing side-channel attacks
- 4 new test cases: wrong-user rejection + null-username backwards compat
  for both RDS and ElastiCache validators
2026-04-12 23:16:17 -05:00
TiM 7d3bab5327 chore(deps): pin json-schema-validator below 2.0.0 (#388)
json-schema-validator 2.x has breaking API changes and 3.x requires
Jackson 3 (tools.jackson.*), incompatible with the Jackson 2
(com.fasterxml.jackson.*) used throughout the project.

Pin to 1.x to prevent Dependabot raising unmergeble bumps.

Ref: #381
2026-04-12 22:32:32 -05:00
Hector Ventura 2127ac995f fix: updating dependencies (#391) 2026-04-12 22:26:59 -05:00
TiM 903eab9737 fix(elasticache): scope single-arg AUTH to default user per Redis ACL spec (#390)
Redis 6+ ACL spec defines that AUTH <password> (single-arg form) only
authenticates the "default" user. The previous implementation matched
any PASSWORD user associated with the group, allowing a non-default
user's password to authenticate without specifying a username.

- Filter single-arg AUTH fallback to only match users with
  userName "default" within the group's associated user set
- Add ElastiCacheServiceTest with 3 unit tests covering single-arg
  default-only matching, two-arg named user matching, and group
  auth token fallback
2026-04-12 22:15:46 -05:00
TiM 0c8395244a test(compat): gate Lambda dispatch tests on container availability (#387)
Tests that invoke Lambda with REQUEST_RESPONSE depend on Docker-in-Docker
for container execution. When DinD is unavailable in CI, these tests time
out instead of skipping. Add a shared memoized probe
(TestFixtures.isLambdaDispatchAvailable) that creates a throwaway Lambda,
invokes it with a 30s timeout, and caches the result per JVM. Tests that
need real dispatch now skip cleanly via Assumptions.assumeTrue.

Java: ApiGatewayV2ExecuteTest, LambdaLongPathTest, S3NotificationsTest
Go: lambda_test.go Invoke subtest
2026-04-12 22:06:41 -05:00
Hector Ventura 6610c3c527 chore: release 1.5.3 1.5.3 2026-04-12 21:34:57 -05:00
Hector Ventura 035a99d018 fix(cloudformation): resolve stacks by ARN in addition to name (#386) 2026-04-12 21:16:59 -05:00
TiM 9ffb26497d test(elasticache): SDK compat suite for replication groups and users (#370)
* test(elasticache): add SDK compat suite

New ElastiCacheTest drives Floci through the AWS SDK v2
ElastiCacheClient surface. First SDK-level compat coverage for this
service.

Covers:
- CreateReplicationGroup / DescribeReplicationGroups /
  DeleteReplicationGroup lifecycle
- CreateUser / DescribeUsers / ModifyUser / DeleteUser lifecycle
- duplicate group / user rejection (AlreadyExistsException shapes)
- missing group / user retrieval (NotFoundException shapes)
- proxy port allocation via direct TCP connection using raw Socket
  (Lettuce is already in sdk-test-java/pom.xml:118 if a real Redis
  client is needed later)

Run separately from the internal Phase 3 integration test so
SDK-contract failures don't tangle with server-logic bugs in review.

* fix(test): add user-group association step for scoped auth validation

Tests now associate user with group via ModifyReplicationGroup before
authenticating. Verifies pre-association rejection, then post-association
success.

* fix(test): document userGroupIdsToAdd deviation in ElastiCache compat suite

Floci treats userGroupIdsToAdd as raw user IDs because UserGroup
resources are not yet implemented. Documented as known deviation
so the test is explicit about exercising current behavior.

* fix(test): replace Java 21 getFirst() with get(0) for Java 17 compat

CI targets Java 17; List.getFirst() requires Java 21.

* fix(test): use proxyHost() and relax exception types for emulator deviations

* ci: re-trigger after flaky ApiGatewayV2ExecuteTest timeout
2026-04-12 21:04:35 -05:00
dependabot[bot] c1db3cfb01 chore(deps): bump docker/setup-buildx-action from 3.12.0 to 4.0.0 (#385)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.12.0 to 4.0.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/8d2750c68a42422c14e847fe6c8ac0403b4cbd6f...4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
2026-04-12 20:53:30 -05:00
TiM d69fd70545 test(elasticache): internal Quarkus integration test with cross-group isolation (#369)
* test(elasticache): add internal Quarkus integration test

New ElastiCacheIntegrationTest drives the ElastiCache service as a
QuarkusTest for protocol and state-transition coverage. First test
surface for this service (zero coverage previously).

Covers the query-API action matrix (CreateReplicationGroup,
CreateUser, ModifyUser, DescribeUsers, DeleteUser,
DeleteReplicationGroup) plus:
- proxy port allocation on group creation
- auth token rotation via ModifyUser
- state->response shape parity with the XML query API
- group-auth-token enforcement

Gates on Docker availability via Assumptions.assumeTrue so CI jobs
without a docker daemon skip cleanly rather than fail.

Does NOT assert SigV4 signature validation - the global
floci.auth.validate-signatures flag is disabled in the test harness
(src/test/resources/application.yml:36). Real SigV4 assertions for
this service are covered by Phase 0 validator unit tests.

* fix(test): add user-group association and cross-group isolation tests

Tests now call ModifyReplicationGroup to associate users with groups
before authenticating. Adds negative tests:
- Unassociated user rejected before association
- User from group A rejected on group B (cross-group isolation)

* fix(test): use string comparison for XML port and single-element assertions
2026-04-12 20:50:44 -05:00
dependabot[bot] ccdf3dc40c chore(deps): bump actions/checkout from 4 to 6 (#384)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
2026-04-12 20:30:55 -05:00
dependabot[bot] 852ad35843 chore(deps): bump actions/setup-python from 5 to 6 (#379)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
2026-04-12 20:30:24 -05:00
dependabot[bot] 1575328392 chore(deps): bump docker/build-push-action from 6.19.2 to 7.1.0 (#383)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.19.2 to 7.1.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/10e90e3645eae34f1e60eeb005ba3a3d33f178e8...bcafcacb16a39f128d818304e6c9c0c18556b85f)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
2026-04-12 20:29:51 -05:00
Hector Ventura e3e8903ffa fix(s3): implement S3 Control ListTagsForResource, TagResource, Untag… (#363)
* fix(s3): implement S3 Control ListTagsForResource, TagResource, UntagResource (#341)
* fix(s3): implement S3 Control ListTagsForResource, TagResource, UntagResource (#341)
2026-04-12 20:24:23 -05:00
TiMandHector Ventura e2680cf5f5 test(apigatewayv2): execute-api dispatch compat suite (#372)
* fix(apigatewayv2): fix route matching for path-parameter routes

routeKeyMatchesPath() used String.replace() on Pattern.quote() output,
which performs literal string matching. Path-parameter placeholders like
{id} and {proxy+} were wrapped in \Q...\E by Pattern.quote(), making
them invisible to the replace() calls. All parameterized routes silently
failed to match.

Rewritten to iterate over placeholders with a regex Matcher, quoting
only the literal segments between them. {param} maps to [^/]+ and
{proxy+} maps to .+ as before.

* test(apigatewayv2): add execute-api dispatch compat suite

New ApiGatewayV2ExecuteTest exercises the v2 execute-api dispatch
path end-to-end: create HTTP API, deploy a Lambda backend via
LambdaClient, wire integration/route/stage/deployment, then invoke
through the execute-api URL and assert the Lambda response flows
back through the gateway.

Scope (per PLAN_FLOCI_2 Phase 7 prerequisite decisions):
- pins current dispatch behavior where stage existence and deployment
  status are NOT checked before dispatch (see
  ApiGatewayExecuteController.java:842-847)
- JWT/token authorizer dispatch path only (REQUEST authorizer has no
  dispatch path today - out of scope)
- no mapping templates / request transforms (no layer exists in
  apigatewayv2/model/Integration.java)

Cross-service blame attribution: if this suite fails while the
existing LambdaTest compat suite passes in the same run, the failure
is on the gateway side.

Gated on Docker for the Lambda backend.

* fix(apigatewayv2): support ANY method and empty proxy in route matching

routeKeyMatchesPath now treats ANY as a wildcard that matches all HTTP
methods, matching AWS API Gateway v2 behavior. Also relaxed {proxy+}
regex from .+ to .* so /echo/{proxy+} matches /echo/ with an empty
proxy value.

* fix(test): skip Lambda-dependent execute tests when dispatch unavailable

CI may not support Docker-in-Docker for Lambda containers. Gate
dispatch and JWT+dispatch tests on the first dispatch response so
they skip instead of fail.

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Co-authored-by: Hector Ventura <hectorvent@gmail.com>
2026-04-12 20:23:40 -05:00
dependabot[bot] 44307bc70f chore(deps): bump actions/download-artifact from 4 to 8 (#382)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v8)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
2026-04-12 20:21:54 -05:00
dependabot[bot] 647481e00b chore(deps): bump docker/login-action from 3.7.0 to 4.1.0 (#378)
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.7.0 to 4.1.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/c94ce9fb468520275223c153574b00df6fe4bcc9...4907a6ddec9925e35a0a9e82d7399ccc52663121)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
2026-04-12 20:10:13 -05:00
dependabot[bot] d880d202b1 chore(deps): bump actions/setup-java from 4 to 5 (#377)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4 to 5.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
2026-04-12 20:09:28 -05:00
dependabot[bot] f33ef0f52c chore(deps): bump actions/upload-artifact from 4 to 7 (#376)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
2026-04-12 20:08:30 -05:00
TiM 58c0ebbabd test(apigatewayv2): management API compat suite with deploymentId fix (#371)
* fix(apigatewayv2): propagate deploymentId when creating a stage

ApiGatewayV2Service.createStage was dropping the deploymentId field
from the CreateStage request, so stages were being created without
their stage->deployment linkage. The management API handler now
stores deploymentId on the Stage model.

Required for stage->deployment round-trip verification; surfaced by
the upcoming ApiGatewayV2ManagementTest which asserts GetStage
returns the deploymentId that CreateStage was called with.

* test(apigatewayv2): add management API compat suite

New ApiGatewayV2ManagementTest covering the control-plane CRUD
surface: API, route, integration, stage, deployment, authorizer
create/get/list/delete round-trips via ApiGatewayV2Client.

Scope:
- create/get/list/delete for each resource
- JWT authorizer shape (token path only)
- stage->deployment linkage (depends on the createStage
  deploymentId fix in the preceding commit)
- round-trips that assert response field shapes match the SDK model

Out of scope (intentional, per PLAN_FLOCI_2 Phase 2):
- No update endpoints - @PATCH/@PUT handlers do not exist in the
  v2 management block (ApiGatewayController.java:783-1020)
- No execute-api / dispatch / Lambda invocation - that is Phase 7
- No REQUEST authorizer coverage - no dispatch path exists today

* fix(test): assert deploymentId in getStages list response

Codex review flagged that the list endpoint assertion only checked
stageName but not deploymentId. Added filtered assertion to verify the
deployment reference survives the list round-trip.

* fix(test): use deploymentStatusAsString() for enum comparison

SDK returns DeploymentStatus enum, not a String. Using
deploymentStatusAsString() avoids type mismatch assertion failure.
2026-04-12 20:01:27 -05:00
TiM 9e79859cea fix(apigatewayv2): fix route matching for path-parameter routes (#368)
routeKeyMatchesPath() used String.replace() on Pattern.quote() output,
which performs literal string matching. Path-parameter placeholders like
{id} and {proxy+} were wrapped in \Q...\E by Pattern.quote(), making
them invisible to the replace() calls. All parameterized routes silently
failed to match.

Rewritten to iterate over placeholders with a regex Matcher, quoting
only the literal segments between them. {param} maps to [^/]+ and
{proxy+} maps to .+ as before.
2026-04-12 19:57:25 -05:00
TiM f3c9314114 chore(ci): CI hygiene batch (concurrency, timeouts, action pinning, Dependabot) (#375)
* chore(ci): CI hygiene batch (concurrency, timeouts, action pinning, Dependabot)

Rework of #350 with release-related changes removed per maintainer
feedback on #348 (semantic-release intentionally disabled while main
stabilizes).

What's included:
- Concurrency groups on all workflows (cancel superseded runs)
- timeout-minutes on all jobs (prevent stuck builds)
- SHA-pinned third-party actions (supply chain hardening)
- Dependabot config for Maven deps + GitHub Actions
- CODEOWNERS routing CI/release paths to @hectorvent
- SECURITY.md with private vulnerability reporting instructions

What's NOT included (intentionally):
- semver.yml changes (semantic-release on main)
- .releaserc.json changes (main branch addition)

* chore: switch Dependabot schedule from weekly to monthly
2026-04-12 19:56:28 -05:00
TiM 66141049b5 fix(elasticache): scope user auth to groups, use StorageFactory, throw NotFoundFault (#367)
Four bugs fixed:

1. Cross-group auth bypass: validatePassword() scanned all users globally,
   so credentials from group A worked against group B. Now only checks
   users explicitly associated via ModifyReplicationGroup.

2. StorageFactory violation: ElastiCacheService instantiated InMemoryStorage
   directly, bypassing persistence configuration. Now uses StorageFactory
   with "elasticache" storage key.

3. Missing NotFoundFault: listReplicationGroups/listUsers returned empty
   lists for non-existent IDs instead of throwing. AWS SDK expects
   ReplicationGroupNotFoundException/UserNotFoundException.

4. Hardcoded localhost: endpoint address was hardcoded to "localhost",
   ignoring FLOCI_HOSTNAME configuration. Now uses config.hostname().

Also adds ModifyReplicationGroup handler for user-group association and
registers elasticache in the storage config hierarchy.
2026-04-12 19:52:56 -05:00
TiM cc5508ffd4 test(rds): JDBC-based IAM auth compat suite for RDS proxy (#366)
* test(rds): add JDBC-based IAM auth compat suite

New RdsJdbcCompatTest drives a real JDBC connection through the RDS
proxy. IAM auth happens at the JDBC wire layer, not through RdsClient
management calls, so this is the only way to actually verify IAM
auth behaves against Floci.

Covers:
- create DB instance with IAM authentication enabled
- generate an auth token via the AWS SDK GenerateAuthenticationToken
  path and open a JDBC connection using that token as the password
- reject connections with a tampered/expired auth token
- proxy port allocation per instance, released on delete
- ModifyDbInstance toggling IAM authentication mid-lifecycle

Uses postgresql JDBC driver (already declared in
sdk-test-java/pom.xml:186). Gated on Docker being available so CI
jobs without a docker daemon skip.

* fix(test): address review findings for RDS JDBC compat suite

Restructure IAM toggle test to start with IAM disabled, verify
rejection, then enable via modify and verify success. Relax port
reuse assertion from exact equality to range check (7000-7099) to
avoid coupling to allocator implementation detail. Increase
connection timeout from 45s to 60s for Docker environments.

* fix(test): address round 6 review findings for RDS JDBC compat suite

Fix stale proxyPort after instance replacement (Codex + Gemini).
Restructure IAM tests: create with IAM enabled for positive tests,
add dedicated non-IAM instance test for negative case. Mark IAM
toggle-via-modify test as @Disabled since RdsAuthProxy.iamEnabled
is final and modifyDbInstance does not restart the proxy. Add
port-parameterized connection helpers for multi-instance tests.

* fix(test): assert old password rejection after ModifyDBInstance

Codex review flagged that the password-change test proved the new
password works but never verified the old one stops working. Add an
explicit assertion that connecting with the pre-modify password throws
SQLException before verifying the new password succeeds.

* fix(test): relax non-IAM rejection assertion to accept TCP-level refusal

When IAM is disabled, the proxy may reject at the TCP level ("connection
attempt failed") rather than the PostgreSQL auth level ("password
authentication failed"). Both are valid rejection modes.
2026-04-12 19:49:34 -05:00
TiM 14d51a4093 test(appconfig): edge case coverage for polling, deployments, empty configs (#365)
* test(appconfig): add edge case coverage for polling, deployments, empty configs

Extends both AppConfigIntegrationTest (internal Quarkus) and the
compat-suite AppConfigTest with five additional cases:

- stale configuration token is rejected with BadRequestException once
  a newer next-poll token has been issued
- syntactically invalid configuration token is rejected
- updated deployment is visible when polling with the next-poll token
  (create v2 hosted config, start deployment, confirm response body
  flips to v2 payload and Version-Label header updates)
- RequiredMinimumPollIntervalInSeconds is accepted in the start
  configuration session request but NOT enforced on subsequent polls
  (pins current Floci behavior per PLAN_FLOCI_2 Phase 1 decision:
  storing-but-not-enforcing is the behavior under test, enforcement
  would be a separate feature PR)
- empty configuration profile (no hosted config version, no
  deployment) returns an empty octet-stream body with empty
  Version-Label

No changes to AppConfigDataService or any main sources; this is
test-only expansion over existing scaffolding.

* fix(test): address review findings for AppConfig edge case tests

Document poll-interval 15s as known emulator deviation (AWS returns
the requested value, emulator always returns 15). Add explicit
nextPollIntervalInSeconds() assertions to the SDK compat test.
Clarify null vs "" Version-Label difference between SDK and HTTP
transport layers.
2026-04-12 19:48:36 -05:00
Hector Ventura 812ecf6880 fix(lambda): correct Function URL config path from /url-config to /url (#364) 2026-04-12 03:15:22 -05:00
TiM 34cc0903a8 test(rds): expand query handler and service unit coverage (#362)
* test(rds): expand query handler and service unit coverage

RdsQueryHandlerTest additions:
- describe DB instances with unknown filter falls back to
  unfiltered list
- CreateDBInstance with invalid AllocatedStorage falls back to
  default and pins engine-version default resolution
- unknown engine gets generic default version
- ModifyDBParameterGroup ignores parameters that are missing a value
- DescribeDBParameters rejects missing DBParameterGroupName (400)
- unsupported operation returns UnsupportedOperation query error

RdsServiceTest additions:
- modifyDbInstance with blank password does not overwrite the
  existing master password
- modifyDbInstance can toggle IAM authentication without changing
  password
- deleteDbCluster fails with InvalidDBClusterStateFault when cluster
  still has member instances

Adds src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker
pinning to mock-maker-subclass so the new ArgumentMatchers.eq usage
works on JDK 21 without the inline mock maker. Pure unit tests, no
container dependency.

* test(rds): address review findings for query handler tests

Drop mock-maker-subclass config that broke InitializationHooksRunnerTest
(Mockito inline mock-maker is the correct default for Java 25 final class
mocking). Fix unknownEngine test to verify the realistic error path:
handler defaults version to "1.0" for unknown engines, service rejects
with InvalidParameterValue, handler wraps into 400 query error.

Full suite 1842/0 green (clean build).
2026-04-12 02:16:29 -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 093a465bde fix: merge branch 'main' of github.com:hectorvent/floci 2026-04-11 21:34:09 -05:00
Hector Ventura a987a44acd fix: adding missing lambda test 2026-04-11 21:33:47 -05:00
Hector Ventura 12775e836d fix(secretsmanager): resolve partial ARNs without random suffix (#360) 2026-04-11 21:30:42 -05:00
Hector Ventura 5129897946 fix(s3): include non-versioned objects in ListObjectVersions response (#359) 2026-04-11 21:26:12 -05:00
Hector Ventura fddb1c7bfd fix(cognito): correct HMAC signature computation in USER_SRP_AUTH (#358) 2026-04-11 21:06:43 -05:00
Hector Ventura 095eefc90b fix(eventbridge): implement advanced content filtering operators (#356) 2026-04-11 20:23:18 -05:00