Commit Graph
289 Commits
Author SHA1 Message Date
Yorí e3368e014c feat(lambda): support ImageConfig Command and EntryPoint for Image (#630)
package type
2026-04-28 20:19:12 -05:00
Hector Ventura d28b175cb0 fix(ec2): persist VPC DNS attributes and support DescribeVpcEndpointServices (#624) 2026-04-28 00:39:32 -05:00
Hector Ventura f5ec6fc887 feat(codebuild,codedeploy): add management APIs (#622) 2026-04-28 00:09:12 -05:00
Kenshin Okinaka 33ce936d44 fix(lambda): inject default AWS credentials into Lambda containers (#623)
SDK calls inside Lambda containers fell through to IMDS and timed out
because AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY / AWS_SESSION_TOKEN
were absent from the runtime environment. Inject placeholder values
before the user-supplied --environment so the SDK credential chain
resolves without IMDS, while still honouring user overrides via
Docker's last-wins duplicate-env semantics.
2026-04-28 00:04:54 -05:00
Hector Ventura d39bdf1c22 feat(elbv2): Elastic Load Balancing v2 management API (Phase 1) (#617)
* feat(elbv2): add Elastic Load Balancing v2 management API (Phase 1)
* fix: adding new service to health check test
2026-04-27 22:52:52 -05:00
Hector Ventura c7152cef8a fix(kms): GetKeyRotationStatus returns false for asymmetric and HMAC keys (#618)
* fix(kms): return false for GetKeyRotationStatus on asymmetric/HMAC keys

AWS updated GetKeyRotationStatus behavior so asymmetric and HMAC keys
return { KeyRotationEnabled: false } instead of UnsupportedOperationException.
EnableKeyRotation and DisableKeyRotation still reject these key types.

* fix(kms): return false for GetKeyRotationStatus on asymmetric/HMAC keys

AWS updated GetKeyRotationStatus behavior so asymmetric and HMAC keys
return { KeyRotationEnabled: false } instead of UnsupportedOperationException.
EnableKeyRotation and DisableKeyRotation still reject these key types.
2026-04-27 22:50:49 -05:00
Mike Pettypiece 15f51ea7c3 fix: OOM with S3:PutObject (#620) 2026-04-27 20:40:11 -05:00
TiM e6341cfc09 fix(s3): emit x-amz-transition-default-minimum-object-size on lifecycle GET/PUT (#441) (#615)
* fix(s3): emit x-amz-transition-default-minimum-object-size on lifecycle GET/PUT (#441)

terraform-provider-aws v6.x added a stability wait that compares
TransitionDefaultMinimumObjectSize between PUT input and GET output.
The AWS SDK v2 reads that field only from the
x-amz-transition-default-minimum-object-size response header, never
from the XML body. Floci stored lifecycle XML verbatim and never set
the header, so the SDK parsed it as null/empty, never matched the
provider default (all_storage_classes_128K), and the wait timed out
after 3 minutes.

Persist the value on the Bucket model, read it from the PUT request
header (defaulting to all_storage_classes_128K), and emit it on both
PUT and GET responses. DELETE clears it for symmetry.

Coverage:
- REST Assured tests for default/custom/round-trip/delete-clears.
- AWS Java SDK v2 round-trip in S3LifecycleSdkIntegrationTest, the
  level the existing #492 body-only fix did not exercise.

Issue #441 was auto-closed by #492 without a real fix; reopens the
underlying defect.

* test(s3): move SDK lifecycle round-trip to compatibility-tests

- Move S3LifecycleSdkIntegrationTest to compatibility-tests/sdk-test-java as S3LifecycleTest, adapted to use TestFixtures.s3Client() and AssertJ to match the existing compat suite.
- Drop the test-scope software.amazon.awssdk:s3 dependency from the main pom.xml; the in-tree JUnit tests do not need an SDK client.
- Addresses review feedback on PR #615.
2026-04-27 18:11:14 -05:00
TiM b3276b65ab fix(docker): avoid host mountinfo false positives (#616) 2026-04-27 17:43:29 -05:00
Christine Nguyen 02facf40f6 fix(pipes): invoke non-Lambda targets per-record instead of batch envelope (#590) 2026-04-27 17:28:35 -05:00
TiM e5848487aa fix(apigateway): propagate TOKEN authorizer context to AWS_PROXY Lambda (#581)
* fix(apigateway): propagate TOKEN authorizer context to AWS_PROXY Lambda

REST API Gateway TOKEN authorizers return a principalId + context map that
floci silently dropped, so downstream AWS_PROXY Lambdas saw an empty
event.requestContext.authorizer. LocalStack propagates both; this brings
floci to parity and closes #574.

- Thread authorizer result through invokeAuthorizer via a small
  AuthorizerResult record into buildProxyEvent; emit
  requestContext.authorizer only when a CUSTOM authorizer ran
- Stringify context values at emit time to match AWS's flat-string wire
  contract
- Replace the literal "api/stage/METHOD/path" methodArn in the authorizer
  event with the real arn:aws:execute-api:region:acct:apiId/stage/METHOD/path
  built from the incoming request, so policy-scoping authorizers can match

Adds ApiGatewayAuthorizerContextIntegrationTest covering successful context
propagation + principalId + real methodArn, unprotected routes (no
authorizer injected), and deny returning 403.

Out of scope: v2 HTTP API JWT authorizer context, REST REQUEST authorizer
event-shape parity, authorizerResultTtlInSeconds caching.

* test(apigateway): bump authorizer-context Lambda timeout to 30s

The integration test creates two Node Lambdas back-to-back. Both
inherited the default 3s function timeout, so on CI the proxy
container's cold start ran past 3s while the authorizer was still
warming, returning 502 from the API Gateway invoke path.

Setting Timeout=30 on createNodeLambda gives both functions enough
headroom for the concurrent cold starts. Mirrors the pattern Hector
suggested in the PR review.
2026-04-26 17:55:43 -05:00
Ricardo Lima 9bdcfaf2b1 fix(lambda): drop dead pooled containers in WarmPool.acquire() before reuse (#610) 2026-04-26 17:54:11 -05:00
Dixit R JainandDixit R Jain 7592151cb6 fix(cloudformation): resolve changeset by ARN in DescribeChangeSet, ExecuteChangeSet, DeleteChangeSet (#608)
The AWS CLI's  passes the full changeset ARN
(returned by CreateChangeSet) as the ChangeSetName parameter to subsequent
calls. CloudFormationService was doing a direct map lookup by the raw
parameter value, which always missed because changesets are stored by
short name — causing a 400 ChangeSetNotFoundException and the CLI to
crash with .

Add resolveChangeSetName() to extract the short name from an ARN before
the map lookup, and apply it in describeChangeSet, executeChangeSet, and
deleteChangeSet.

Closes #606

Co-authored-by: Dixit R Jain <dixitrjain@Mac-1319.lan>
2026-04-26 17:26:54 -05:00
Hector Ventura eeedfe09a2 fix(rds): fix DBSubnetGroup shape, non-master auth pass-through, and volume lifecycle (#604)
* fix(rds): fix DBSubnetGroup shape, non-master auth pass-through, and volume lifecycle (#548, #503, #567)
* fix(rds): fix wrong storage value and docs
* fix(rds): fix master password check
2026-04-25 22:13:52 -05:00
Hector Ventura c7987ad1de fix(s3-control): accept plain S3 ARN (arn:aws:s3:::bucket) in ListTagsForResource (#603)
Go SDK v2 and Terraform AWS provider v6 send arn:aws:s3:::<name> for
general-purpose buckets instead of the S3 Control form
arn:aws:s3:<region>:<account>:bucket/<name>. The plain ARN has no
region and no account segment, so the existing :bucket/ search found
nothing and returned a 400.

extractBucketName() now recognises both forms: the existing
:bucket/<name> form first, then the plain arn:<p>:s3:::<name> form
as a fallback.
2026-04-25 19:38:41 -05:00
Hector Ventura 404b42bdc0 feat(lambda): bind-mount hot-reload via S3Bucket=hot-reload (#601)
* feat(lambda): add bind-mount hot-reload mode via S3Bucket=hot-reload

Functions created with S3Bucket=hot-reload and S3Key=/absolute/path
have their host directory bind-mounted into /var/task rather than
packaged as a ZIP. Each invocation runs an ephemeral container so
file changes on disk are picked up immediately without calling
UpdateFunctionCode or re-uploading code.

Feature is disabled by default; opt in with:
  FLOCI_SERVICES_LAMBDA_HOT_RELOAD_ENABLED=true

An optional path allowlist (FLOCI_SERVICES_LAMBDA_HOT_RELOAD_ALLOWED_PATHS)
restricts which host directories may be bind-mounted.

* fix: missing hot reload enable env
2026-04-25 19:38:03 -05:00
Hector Ventura 7dbd0225d4 fix(lambda): wire S3VirtualHostFilter to container-aware DNS suffix (#598)
S3VirtualHostFilter was reading config via ConfigProvider at
  construction time, always deriving baseHostname from floci.base-url.
  When running inside Docker, Lambda containers resolve S3 via the
  embedded DNS suffix (e.g. bucket.floci:4566), not the external
  base-url hostname. The filter never matched those virtual-host headers,
  so S3 requests from Lambda containers were served as path-style misses.

  Switch to CDI injection (EmulatorConfig + ContainerDetector) so that
  in Docker mode baseHostname is set to EmbeddedDnsServer.DEFAULT_SUFFIX
  (or FLOCI_HOSTNAME when configured), consistent with what the embedded
  DNS actually resolves.

  Add @Startup to EmbeddedDnsServer for eager initialisation and export
  DEFAULT_SUFFIX as a shared constant. Add LambdaDnsResolutionTest to
  validate the full path: Lambda container → embedded DNS → virtual-host
  filter → S3 object.
2026-04-25 19:37:42 -05:00
Hector Ventura 5621235ae0 fix(lambda): replace blocking /next handler with reactive pattern (#596)
GET /runtime/invocation/next returned 204 after a 30-second poll
  timeout, violating the AWS Lambda Runtime API spec. The spec defines
  only 200 as a valid success response for this endpoint. The .NET
  Lambda RIC reads Lambda-Runtime-Aws-Request-Id unconditionally after
  every /next call and crashes with KeyNotFoundException on 204.

  Replace blockingHandler + LinkedBlockingQueue.poll(30s) with a
  non-blocking handler that parks the RoutingContext in waitingContexts.
  enqueue() dispatches to a parked caller via vertx.runOnContext(),
  holding zero worker threads while idle. stop() drains waitingContexts
  with 204, which is valid only on shutdown when the container exits.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-04-25 19:37:25 -05:00
Ricardo Lima 1b119faf0d fix(lambda): parse empty payload in lambda (#600) 2026-04-25 11:44:18 -05:00
iam-ssrivastav 5f94b429c2 feat(cognito): add TagResource, UntagResource, ListTagsForResource for user pools (#579) (#591)
* feat(cognito): add TagResource, UntagResource, ListTagsForResource for user pools

Dispatch the three Cognito IDP tag operations through CognitoJsonHandler and
resolve user pools by parsing the resource ARN (O(1) pool-store lookup, not a
full scan). Malformed ARNs now surface as InvalidParameterException rather
than a swallowed ResourceNotFoundException.

Reject reserved floci:* keys on standalone TagResource via
ReservedTags.rejectReservedTagsOnUpdate, matching the existing strip-on-write
behavior on CreateUserPool / UpdateUserPool. Mutations are synchronized on
the pool instance to match the ensureJwtSigningKeys pattern.

Covered by new unit tests (CognitoServiceTest, CognitoJsonHandlerTest), AWS
CLI bats (cognito.bats), and Java SDK compat tests (CognitoFeaturesTest).

* chore: retrigger CI
2026-04-25 09:50:09 -05:00
Christine Nguyen 12c89ba751 fix(pipes): read EventBridgeEventBusParameters for Source and DetailType (#589) 2026-04-25 09:42:57 -05:00
Christine Nguyen e5b733a09d fix(pipes): return parameters and tags in mutation responses, warn on stream record loss (#588) 2026-04-25 09:36:11 -05:00
Hector Ventura e023936a81 feat(lambda): embedded DNS server for virtual-hosted S3 resolution (#585)
* feat(lambda): embedded DNS server for virtual-hosted S3 resolution

  Lambda containers cannot resolve virtual-hosted S3 URLs
  (my-bucket.floci:4566) because Docker DNS has no wildcard support —
  queries for *.floci fall through to public DNS and hit real AWS.

  Adds a Vert.x UDP/53 DNS server that binds automatically when Floci
  runs inside Docker. It resolves any *.{floci.hostname} query to
  Floci's container IP and forwards everything else upstream. Lambda
  containers receive Floci's IP as their DNS server via HostConfig.withDns().

  An optional floci.dns.extra-suffixes config allows LocalStack migrants
  to route *.localhost.localstack.cloud without changing Lambda code.

  Netty NioDatagramChannel was tried first but silently dropped IPv4
  UDP packets due to AF_INET6 socket defaults — Vert.x DatagramSocket
  with setIpV6(false) resolves this.

* fix: adding missing dns class
2026-04-25 09:33:00 -05:00
Hector Ventura 1ddbec0efb feat(athena): real SQL execution via floci-duck DuckDB sidecar (#584)
* feat(athena): real SQL execution via floci-duck DuckDB sidecar

  - Lazy-start floci/floci-duck:latest on first StartQueryExecution call;
    reuse the running container for all subsequent queries
  - Inject Glue tables as CREATE OR REPLACE VIEW statements via setup_sql
    before the user SQL so DDL runs outside the COPY(...) wrapper
  - SerDe-aware format inference: inferReadFunction now checks
    SerdeInfo.SerializationLibrary in addition to InputFormat, so standard
    AWS JSON tables (TextInputFormat + JsonSerDe) map to read_json_auto
  - ImageCacheService: skip Docker Hub pull when image is already present
    locally, preventing local builds from being overwritten
  - Add AthenaIntegrationTest (5 unit integration tests)
  - Add AthenaTest and DataLakeTest SDK compatibility tests
  - Update docs: athena.md (full rewrite), glue.md, README, CHANGELOG

* fix: docker image check fix
2026-04-25 08:28:20 -05:00
Raman Belakapytski 5ad4c06d74 feat(sqs): clear SNS FIFO dedup cache on PurgeQueue (#594)
Clear SNS FIFO topic deduplication for topics with SQS subscriptions targeting a purged queue when `clearFifoDeduplicationCacheOnPurge` is enabled.
2026-04-25 08:27:59 -05:00
Kenshin OkinakaandKenshin OKINAKA 763ea379d7 feat(ses): implement email template CRUD with stored, inline, and ARN variants (#573)
* feat(ses): implement email template CRUD with stored, inline, and ARN variants

Adds CreateTemplate / GetTemplate / UpdateTemplate /
DeleteTemplate / ListTemplates on both V2 REST JSON
(/v2/email/templates) and V1 Query.

SendEmail / SendTemplatedEmail resolve templates in three forms
with Mustache-style {{var}} substitution against TemplateData:
  - TemplateName references a stored template
  - TemplateArn extracts the name from the template/<name>
    segment of an SES template ARN (region and account segments
    are not validated, mirroring how KMS / Secrets Manager
    handle ARNs in Floci)
  - TemplateContent (V2 only) supplies inline subject / text /
    html without storing the template first

V2 Content.Template requires exactly one of TemplateName,
TemplateArn, or TemplateContent; violations return
BadRequestException (400). V1 SendTemplatedEmail accepts
TemplateArn either alone or alongside Template (name) — the
name is used for resolution when both are present, matching
AWS where boto3 and the Java SDK keep Template as a required
field and treat TemplateArn as supplementary for cross-account
addressing.

Templates persist region-scoped via StorageFactory in
ses-templates.json. Template names reject leading/trailing
whitespace (same rule as identities) and are validated through
a single validateTemplateName helper reachable from every
resolution path. listTemplates is sorted by CreatedTimestamp
with TemplateName as a tiebreaker for deterministic output.

Error codes: the service layer throws V1-style codes
(TemplateDoesNotExist / AlreadyExists / InvalidTemplate /
InvalidParameterValue); SesController remaps them to
NotFoundException (404) / AlreadyExistsException (400) /
BadRequestException (400) for V2 callers.

* test(ses): add Python and Java SDK compatibility tests for templates

Covers boto3 (ses / sesv2) and AWS Java SDK v2 (SesClient /
SesV2Client) against the SES email template CRUD, inline
TemplateContent, and TemplateArn paths. Happy path,
duplicate-create rejection, missing-template lookups,
Mustache-style variable substitution, and 3-way selector
conflicts on V2 Content.Template are exercised on both SDK
surfaces.

Adds:
- Python: ses_client / sesv2_client conftest fixtures and a
  tests/test_ses_templates.py suite covering V1 + V2
- Java: sesv2 Maven dependency, SesV2Client factory in
  TestFixtures, and a SesTemplateTest covering V1 + V2

* docs(ses): document email template CRUD and templated send

Adds the new V1 template actions (CreateTemplate / GetTemplate
/ UpdateTemplate / DeleteTemplate / ListTemplates /
SendTemplatedEmail) and the V2 /v2/email/templates endpoints
to the SES service reference, and extends the README service
matrix to mention template support on the SES / SES v2 rows.

* fix(ses): add template actions to SES_ACTIONS for unsigned request routing

Unsigned clients (curl, aws --no-sign-request) were falling through to
the SQS handler because the six template Query actions were not
registered in SES_ACTIONS.

* fix(ses): narrow exception catch to JsonProcessingException in template endpoints

Broad Exception catch was masking unexpected errors (e.g. NPE) as 400
responses. Narrowed to JsonProcessingException which is the only
checked exception from objectMapper.readTree().

* test(ses): add template variable substitution edge cases and cross-region isolation

Add SesServiceTemplateTest with 14 unit tests for applyTemplateData
covering undefined variables, spaced/hyphenated names, unclosed braces,
non-string JSON values, regex metacharacters, and case sensitivity.

Add cross-region isolation integration test verifying templates created
in one region are not visible in another.

* test(ses): add awscli compatibility tests for template CRUD and templated send

Cover create, get, update, list, delete template and send-templated-email
via the AWS CLI. Uses JSON parameter format to avoid awscli parser issues
with Mustache-style {{variable}} syntax.

---------

Co-authored-by: Kenshin OKINAKA <kenshin_okinaka@realcross.co.jp>
2026-04-24 20:59:49 -05:00
Stas Burnashev e0dc45e012 fix(dynamodb): serialise concurrent mutations and transactions (#572)
* test(dynamodb): failing concurrency tests reproducing #571

Exercises DynamoDbService directly with a starting-gate CountDownLatch and
@RepeatedTest(5) to catch read-check-mutate-put races that single-threaded
tests cannot see.

Scenarios cover: arithmetic if_not_exists counters, ADD updates, conditional
PutItem/DeleteItem with attribute_exists/attribute_not_exists, mixed put+update
on the same key, transactWriteItems (overlap and disjoint), batchWriteItem,
and stream event ordering. Each scenario has a baseline single-threaded sibling.

30 of 51 executions fail on main, matching the races described in the plan.

* fix(dynamodb): serialise single-item mutations with per-item locks

Adds a per-(storageKey, itemKey) ReentrantLock registry and wraps the full
read → check-condition → mutate → put → persist → stream-capture sequence
inside putItem, updateItem, and deleteItem. Locks are created lazily on first
access and never removed; ReentrantLock is used so the upcoming transaction
path can re-enter these methods after acquiring each participant's lock.

Unrelated items still run in parallel — only threads contending for the same
item serialise, matching real DynamoDB's per-item linearisability.

Fixes the updateItem, putItem, deleteItem, and stream-ordering scenarios in
DynamoDbConcurrencyIntegrationTest. The transactWriteItems scenario still
races and is addressed in the next commit.

Refs #571.

* fix(dynamodb): serialise transactWriteItems via total-ordered lock acquisition

Resolves every participant's (storageKey, itemKey) up front, acquires each
ReentrantLock in deterministic ascending order, then evaluates all conditions
against a snapshot nobody else can mutate. Writes apply under the same locks;
inner putItem/updateItem/deleteItem calls re-enter their lock for free.

Fixes the last remaining DynamoDbConcurrencyIntegrationTest scenarios — the
all-or-nothing transaction test now observes committed == versionA == versionB
across repeated runs, and the disjoint-commute scenario proves the sort order
prevents deadlock.

Closes #571.

* test(compat): end-to-end concurrency scenarios against running Floci

Adds the four mandatory compatibility tests that exercise the same locking
semantics through the AWS SDK over HTTP: concurrent UpdateItem arithmetic,
concurrent PutItem(attribute_not_exists), concurrent overlapping
TransactWriteItems, and mixed concurrent UpdateItem + PutItem.

N=20 per scenario to keep CI fast; each scenario uses a CountDownLatch starting
gate so client threads dispatch simultaneously and the server actually sees
overlapping work.

* docs(changelog): note the DynamoDB concurrency fix under [Unreleased]

Flags the behaviour change for callers whose previously-racing
UpdateItem/PutItem/TransactWriteItems calls will now see the
ConditionalCheckFailedException or TransactionCanceledException that real
DynamoDB would raise.

* fix(dynamodb): harden transaction ordering and drop dangling plan references

Addresses review feedback on #572:

* Replace the delimited-string ordering key for transactWriteItems with a
  Comparator over TransactParticipant tuples. User-supplied PK/SK bytes can
  contain any character, so "storageKey + \0 + itemKey" is not an injective
  ordering — tuple comparison avoids the collision risk entirely.
* Release a table's item locks alongside itemsByTable / itemStore in
  deleteTable so the registry tracks the table's lifetime instead of growing
  unboundedly across create/drop cycles.
* Remove Javadoc and inline comment references to PLAN-dynamodb-concurrency.md,
  which was a local working doc and was never committed. Issue #571 stays as
  the public reference.
2026-04-24 20:53:20 -05:00
Mateus Scheuer Macedo c687977585 fix(lambda): support nested python handler module paths (#570)
* fix(lambda): support nested python handler module paths

* fix(lambda): accept python package handlers in zip validation

- close Files.walk with try-with-resources during handler validation
- accept modulePath/__init__.py for python runtimes
- add regression coverage for nested python package handlers

Addresses Copilot feedback on PR #570
2026-04-24 20:42:13 -05:00
TiM 273434893f feat(cognito): add TagResource, UntagResource, ListTagsForResource for user pools (#579)
* feat(cognito): add TagResource, UntagResource, ListTagsForResource for user pools

Dispatch the three Cognito IDP tag operations through CognitoJsonHandler and
resolve user pools by parsing the resource ARN (O(1) pool-store lookup, not a
full scan). Malformed ARNs now surface as InvalidParameterException rather
than a swallowed ResourceNotFoundException.

Reject reserved floci:* keys on standalone TagResource via
ReservedTags.rejectReservedTagsOnUpdate, matching the existing strip-on-write
behavior on CreateUserPool / UpdateUserPool. Mutations are synchronized on
the pool instance to match the ensureJwtSigningKeys pattern.

Covered by new unit tests (CognitoServiceTest, CognitoJsonHandlerTest), AWS
CLI bats (cognito.bats), and Java SDK compat tests (CognitoFeaturesTest).

* chore: retrigger CI
2026-04-24 01:56:03 -05:00
Christine Nguyen 2d1fe19d88 fix(dynamodb): enforce DeletionProtectionEnabled on create, update, and delete (#583) 2026-04-24 01:22:26 -05:00
Christine Nguyen eed72e6222 feat(pipes): add filtering, input templates, batch sizes, and DLQ routing (#576) 2026-04-23 22:56:05 -05:00
TiM df58c71d8b fix(dynamodb): accept full ARN for TableName across operations (#575) (#580)
Real AWS DynamoDB accepts both short table names and full table ARNs for
TableName inputs. Floci only accepted short names, which broke OpenSearch
Data Prepper's dynamodb source plugin (requires table_arn) and any
Terraform flow that feeds aws_dynamodb_table.x.arn into the SDK.

- Add DynamoDbTableNames resolver: canonicalizes TableName input,
  rejects ARNs targeting index/stream resources, and rejects ARNs whose
  region does not match the request region (400 InvalidParameterValue,
  matching the #450 Lambda ARN precedent).
- Normalize at every DynamoDbService lookup boundary, including
  transaction condition paths and batch RequestItems map keys, so
  internal callers handling request-derived input cannot bypass the
  resolver.
- CreateTable explicitly rejects ARN-form TableName via requireShortName
  so ARN input cannot be persisted as the canonical table identity
  (which would produce nested ARN-on-ARN TableArn values).
- UpdateTable stream enable/disable now use the canonical
  table.getTableName() instead of the raw request TableName. Without
  this, calling UpdateTable via ARN keyed stream state under the ARN
  while reads canonicalize, stranding the stream.
- Covers DescribeTable, Scan, Query, GetItem, PutItem, UpdateItem,
  DeleteItem, BatchGetItem, BatchWriteItem, TransactGetItems,
  TransactWriteItems, UpdateTable, DeleteTable, DescribeTimeToLive,
  UpdateTimeToLive, DescribeContinuousBackups, UpdateContinuousBackups,
  Enable/DisableKinesisStreamingDestination.
- Tests: 32 resolver unit tests, 7 integration tests (item/batch/
  transact/TTL/backups/streaming/validation), 1 awscli bats case.
2026-04-23 22:32:40 -05:00
Christine Nguyen 51bf4f8480 feat(pipes): add source polling and target invocation for EventBridge Pipes (#555) 2026-04-22 23:36:48 -05:00
Rasheed 2fb5a1f8aa fix(s3): enforce conditional writes (#566) 2026-04-22 23:35:35 -05:00
Raman Belakapytski 102cb997f3 feat(sqs): add option to clear deduplication cache on PurgeQueue (#561) 2026-04-22 23:05:52 -05:00
TiM 2201c70ef1 feat(cognito,kms): allow caller-pinned resource IDs via reserved tag prefix (#568)
Allow KMS CreateKey and Cognito CreateUserPool to accept a reserved floci:override-id tag at creation time so tests can pin deterministic resource IDs without a lookup round trip.

Strip reserved floci:* tags from stored metadata and responses, reject reserved tags on KMS TagResource, wire KMS CloudFormation provisioning through tagged key creation, and add focused unit, handler, integration, and AWS CLI bats coverage for the new behavior.
2026-04-22 22:52:42 -05:00
Hector Ventura 86906ebd90 fix(native,acm): fix native image reflection for acm (#559) 2026-04-21 23:03:24 -05:00
Mateus Scheuer MacedoandMestreY0d4-Uninter bdc13f894e fix(s3): wrap S3 Control XML errors in ErrorResponse wrapper (#560)
* fix(s3): wrap S3 Control XML errors in ErrorResponse wrapper (#557)

* fix(s3): align S3 Control error request ids

- reuse the XML body request id in S3 Control error response headers
- strengthen regression tests to assert the top-level RequestId and header/body alignment

Addresses Copilot review feedback on PR #560.

---------

Co-authored-by: MestreY0d4-Uninter <241404605+MestreY0d4-Uninter@users.noreply.github.com>
2026-04-21 23:03:06 -05:00
Hector Ventura ce60457392 fix(lambda): add missing FunctionConfiguration fields and fix response shape (#546) 2026-04-21 19:44:34 -05:00
Daniel Abeledo 999ac85ffa feature(secretsmanager): add handling for UpdateSecretVersionStage (#545)
* feature(secretsmanager): add handling for UpdateSecretVersionStage
* feat: add comp-tests for awscli secretsmanager update-secret-version-stage
2026-04-21 19:43:48 -05:00
Victor Sanchez Velasco b9957dfdbe feat(scheduler): invoke targets when schedules fire (#551)
Adds a background dispatcher that reads persisted schedules and invokes their
targets on time, closing the CRUD-only gap called out in PR #260 and
documented under "Not Yet Supported".

- SchedulerExpressionParser parses at(), rate(), and 6-field cron() with
  optional ScheduleExpressionTimezone (default UTC).
- ScheduleInvoker delivers to SQS, Lambda, SNS, and EventBridge PutEvents,
  mirroring the EventBridgeInvoker pattern but adapted to Scheduler's Target
  model (raw Input string, no JSONPath/template).
- ScheduleDispatcher is a single-threaded ticker that scans every schedule,
  gates on State/StartDate/EndDate, fires due schedules, and honours
  ActionAfterCompletion=DELETE for one-time at() schedules.
- FlexibleTimeWindow, RetryPolicy and DeadLetterConfig are stored but not
  yet honoured; those can be layered on incrementally.

Config (floci.services.scheduler):
  - invocation-enabled (default true)
  - tick-interval-seconds (default 10)

Unit tests cover the parser (at/rate/cron, timezone, validation) and the
dispatcher (firing, once-semantics, delete-after-completion, state gating,
start/end windows, unsupported expression handling).

Closes #550
2026-04-21 19:42:01 -05:00
TiM 9ea28ee629 fix(kms): support HMAC_* key specs in CreateKey (#544)
CreateKey with `--key-spec HMAC_{224,256,384,512} --key-usage
GENERATE_VERIFY_MAC` now succeeds instead of throwing
InvalidCustomerMasterKeySpecException. DescribeKey returns the matching
MacAlgorithms array (HMAC_SHA_*), and GetPublicKey correctly rejects
HMAC keys with UnsupportedOperationException.

Validation also rejects the two incompatible pairings:
- HMAC_* without GENERATE_VERIFY_MAC usage
- GENERATE_VERIFY_MAC usage with any non-HMAC spec

HMAC material is generated with SecureRandom and base64-stored on the
existing privateKeyEncoded field (same pattern as RSA/ECC private key
bytes). Generation sits outside the try block that wraps asymmetric
keypair creation, so ValidationExceptions aren't rewrapped as 500s.

Closes #497.

Out of scope (follow-up PRs):
- GenerateMac / VerifyMac operations
- HMAC key rotation support
- Catch-rewrap bug in generateKeyMaterial for asymmetric keys
2026-04-21 19:38:54 -05:00
Daniel Abeledo d27fcd9410 bug(secretsmanager): incorrect update of AWSPENDING on secret value update (#542) 2026-04-21 19:31:18 -05:00
Hector Ventura 4f0150870a feat(docker): centralize Docker config and add private registry authentication (#549) 2026-04-21 08:45:37 -05:00
Hector Ventura c8057785eb fix(lambda): initialize ESM pollers at startup and fix worker-pool exhaustion in RuntimeApiServer (#543) 2026-04-21 07:24:27 -05:00
Christine Nguyen 9f231afc3b feat(pipes): add EventBridge Pipes service skeleton with CRUD API (#539) 2026-04-21 07:23:49 -05:00
Stas Burnashev 59c1d727fc fix(dynamodb): return attributes for UPDATED_NEW/UPDATED_OLD on new items (#538)
* fix(dynamodb): return attributes for UPDATED_NEW/UPDATED_OLD on new items

When UpdateItem creates a new item, oldItem is null. The UPDATED_NEW
branch required oldItem != null, so no attributes were returned.

Handle null oldItem by returning all newItem attributes (everything
is new). Same fix for UPDATED_OLD with null newItem.

Closes #537

* fix: exclude key attributes from UPDATED_NEW, remove dead UPDATED_OLD branch

- Diff newItem against the request key when oldItem is null, so key
  attributes are excluded from UPDATED_NEW (matches AWS behavior)
- Remove unreachable UPDATED_OLD else branch (newItem is never null)
- Assert key attributes are absent in the new-item test
2026-04-21 07:20:57 -05:00
iam-ssrivastav 4605d7d38f feat(firehose): implement DeleteDeliveryStream API and add integratio… (#535)
* feat(firehose): implement DeleteDeliveryStream API and add integration tests

* fix(firehose): use delete() instead of remove() on StorageBackend
2026-04-21 07:18:44 -05:00
edwintian 7d79bedbd9 feat(appconfig): implement resource tagging and predefined deployment strategies (#533)
* feat(appconfig): implement resource tagging and predefined deployment strategies

Add AppConfigTagHandler to handle ListTagsForResource/TagResource/UntagResource
for AppConfig ARNs, and seed built-in strategies (AppConfig.AllAtOnce etc) so
Terraform's aws_appconfig_* resources provision without errors.

* feat(appconfig): match AWS AppConfig built-in strategy values:
Set correct FinalBakeTimeInMinutes (AllAtOnce: 10, Linear50: 1) and
descriptions for predefined deployment strategies. Fix test @Order gap.
2026-04-21 07:16:26 -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