Commit Graph
592 Commits
Author SHA1 Message Date
iam-ssrivastav f8cf476848 fix(ses): omit MailFromAttributes if MAIL FROM domain is not configured (#1273) 2026-06-12 22:18:22 -05:00
shrimptails-f ee341003bf refactor: remove unused code (#1303)
* refactor: remove unused imports and dead references

* chore: remove unused suppress warnings and cleanup formatting
2026-06-12 17:53:46 -05:00
Jason van Zyl d8d70bfd48 Improve ELBv2 target resolution and persistence (#1254)
* fix(elbv2): resolve instance target addresses

* fix(elbv2): persist load balancer state

* fix(elbv2): preserve listener sockets on updates

* test(elbv2): cover persisted state reload

* fix(elbv2): restore target health after reload

* fix(elbv2): address persistence review feedback

* test(elbv2): align subnet-backed zone coverage
2026-06-12 17:46:18 -05:00
Fábio Silva ce12e0284b fix(msk): populate currentBrokerSoftwareInfo in cluster describe response (#1238)
* fix(msk): populate currentBrokerSoftwareInfo in cluster describe response

* fix(msk): map provisioned.kafkaVersion in CreateClusterV2

Addresses review feedback: V2 create requests carry kafkaVersion under
provisioned, not at the top level, so it was always falling back to the
default. Adds integration test coverage for the V1 path, V2 with
provisioned.kafkaVersion, and V2 default fallback.

* fix(msk): update RedpandaManagerTest for MskCluster 3-arg constructor
2026-06-12 17:45:09 -05:00
TomDav28andTomer David c476aca00b fix(sqs): report ApproximateNumberOfMessagesDelayed in GetQueueAttributes (#1285)
Co-authored-by: Tomer David <tomer.david+catonian@catonetworks.com>
2026-06-12 17:21:08 -05:00
Jason van Zyl 9a244a6964 Add CloudTrail trail lifecycle support (#1256)
* feat(cloudtrail): add trail lifecycle operations

* test(cloudtrail): cover provisioning integration

* test(cloudtrail): add SDK compatibility coverage

* fix(cloudtrail): harden trail lifecycle state
2026-06-11 01:57:18 -05:00
shrimptails-f 8c2d18b1d0 fix(athena): align ListWorkGroups with AWS behavior (#1259) 2026-06-11 01:54:53 -05:00
shrimptails-f 94ad081241 fix(elasticache): return reachable Memcached configuration endpoints (#1258) 2026-06-11 01:53:12 -05:00
Jason van Zyl 79bf0d39a6 Stream S3 range responses (#1255)
* fix(s3): stream object range responses

* test(s3): cover streamed object reads

* fix(s3): harden streamed range responses
2026-06-11 01:48:39 -05:00
Jason van Zyl f9c305b7c6 Add EC2 provisioning primitives (#1252)
* feat(ec2): load AMI catalog metadata

* feat(ec2): add Ubuntu 24.04 AMI metadata

* feat(ec2): add launch template APIs

* feat(ec2): add launch template version APIs

* feat(ec2): add VPC endpoint CRUD

* feat(ec2): add NAT gateways and instance offerings

* fix(ec2): add t4g.medium instance offering

* fix(ec2): preserve launch template version data

* fix(ec2): align subnet helper references

* fix(ec2): keep VPC endpoint services empty
2026-06-11 01:32:17 -05:00
Jason van Zyl 6e4087b0f4 Add KMS key state and description operations (#1251)
* feat(kms): support disabling keys

* feat(kms): support key description updates

* fix(kms): tighten key description update coverage
2026-06-11 01:19:09 -05:00
Hector VenturaandRicardo Medina d7f9f95873 feat(cognito): add verification code subsystem (store, dispatcher, SNS/SES inspection) (#1249)
* chore(fixtures): capture AWS Cognito auth flow fixtures for contract tests

Captures 7 wire-format fixtures against wirebit stg pool for use as ground truth
in floci compatibility tests. Includes capture script with PII sanitization and
best-effort user cleanup.

Empirical findings vs spec:
- No client-side rate-limit observed on back-to-back ResendConfirmationCode
- PreventUserExistenceErrors=LEGACY in wirebit prod/stg (older pools)
- Email Destination masking is aggressive: f***@e***

* feat(cognito): add verification code store, message dispatcher and SNS inspection

Introduces the foundation for full Cognito auth flow emulation:

- VerificationCodeService: 6-digit codes hashed with per-code salt, persisted
  via StorageFactory with TTL + 30s rate-limit + 5-attempt invalidation.
- VerificationCode model: serializable to disk for filesystem storage mode.
- CognitoMessageDispatcher: renders VerificationMessageTemplate ({####}
  placeholder + failsafe), dispatches via SesService (email) or SnsService
  (SMS) honoring DeliveryMediums.
- SnsService: now persists every phone publish() as a SentSms record and
  exposes getSentMessages()/clearSentMessages().
- SnsInspectionController: GET/DELETE /_aws/sns mirroring SesInspectionController.
- FixtureLoader + 7 AWS Cognito fixtures captured against wirebit-stg pool
  (sign-up, confirm-signup error, resend, forgot-password unknown-user, SRP
  unknown-user). Relocated from compatibility-tests/ to src/test/resources/
  so JUnit can load them via classpath.

Not yet wired to any flow — that's PR #2-5 in a stacked series.

Tests: 22 new (9 VerificationCodeService + 6 dispatcher + 4 SNS inspection +
3 FixtureLoader). Full suite 4336 passing (was 4314), ElastiCacheIntegrationTest
excluded due to local port-6379 collision.

* feat(ses): SesInspectionController supports ?email= filter

Symmetric to SnsInspectionController.?phone= (added in the verification
code store commit). Lets test helpers retrieve the latest email sent to
a specific recipient without filtering client-side over the full message
list.

GET /_aws/ses?email=user@example.com → only messages where the address
is in ToAddresses.

* fix(cognito): align verification dispatcher with AWS and current SES API

Adapt the adopted verification-code foundation to current main and AWS:
- update CognitoMessageDispatcher to the 12-arg SesService.sendEmail signature
- source the MFA SMS message from the user pool's top-level SmsAuthenticationMessage
  (it is not part of VerificationMessageTemplate, which only holds SmsMessage)
- match AWS's out-of-the-box default verification message text
- document the 30s resend window and 5-attempt cap as emulation heuristics (not
  AWS-published constants) and add TODOs for DefaultEmailOption, medium preference,
  and per-purpose TTL that the auth-flow wiring must honour

Co-authored-by: Ricardo Medina <34877263+ricardomedina98@users.noreply.github.com>

* refactor(cognito): drop dead code flagged by static analysis

- remove no-op ctorRequest local in scripts/aws-fixtures-capture.mjs
- drop the unused purpose parameter from emailTemplateKey() and its call site

Co-authored-by: Ricardo Medina <34877263+ricardomedina98@users.noreply.github.com>

* chore(cognito): remove the one-off AWS fixture-capture dev script

The captured aws-cognito/*.json fixtures remain (FixtureLoader uses those); the Node capture tool is not needed in the repo.

---------

Co-authored-by: Ricardo Medina <34877263+ricardomedina98@users.noreply.github.com>
2026-06-11 00:47:33 -05:00
nblomquistandnathan 92f4ff1ccf Feature/issue 1130 glue database tags (#1248)
* fix(glue): register database tags with tagging API (#1130)

* test(glue): add database tagging compatibility coverage (#1130)

* test(tagging): allow additional tagged resources (#1130)

---------

Co-authored-by: nathan <nathan@debian-dev-small.localdomain>
2026-06-11 00:47:00 -05:00
shrimptails-f 3f8e2600b3 fix(elbv2): validate subnet VPC consistency for load balancers (#1244) 2026-06-11 00:02:56 -05:00
MAN$I VERMAandmansiverma897993 e35d30bc42 feat(athena): support DeleteWorkGroup action (#1213)
* feat(athena): support DeleteWorkGroup action

* feat(athena): validate WorkGroup name and block deletion of primary workgroup

* fix: validate WorkGroup name pattern in DeleteWorkGroup per AWS constraints

---------

Co-authored-by: mansiverma897993 <vmansi756@gmaail.com>
2026-06-10 23:52:08 -05:00
Fábio Silva 2b466bf980 fix(msk): poll correct Redpanda admin readiness endpoint (#1237)
* fix(msk): poll correct Redpanda admin readiness endpoint

* test(msk): pin RedpandaManager.isReady() to the /v1/status/ready admin path

isReady() resolves an admin URL and polls it for a 200 to decide whether
the Redpanda container is ready, but nothing asserted which path it hits.

Add RedpandaManagerTest.isReadyPollsTheCorrectAdminReadinessPathInNativeMode:
a local HTTP server stands in for Redpanda's admin API (200 on
/v1/status/ready, 404 on /ready — the previously-polled path that always
404s), the Docker container-inspect chain is mocked to resolve the admin
port binding to that server, and isReady() is asserted to report ready.
Reverting ADMIN_READY_PATH to /ready makes the assertion fail, pinning
the fix as a regression guard.
2026-06-10 21:36:34 -05:00
David Phillips 27943b35c3 fix: archive Glue table versions (#1233) 2026-06-10 21:33:19 -05:00
Ben Younes d96f65afca fix(lambda): normalize backslash ZIP path separators on extraction (#1215)
* fix(lambda): normalize backslash ZIP path separators on extraction

PowerShell's Compress-Archive writes ZIP entry names with '\' separators,
violating the ZIP spec (APPNOTE.TXT 4.4.17 mandates '/'). On Linux '\' is a
literal filename character, so a .NET/Blazor publish archive extracted to a
single flat file named "wwwroot\app.css" instead of nested directories,
breaking static-file lookups under /var/task.

Normalize '\' -> '/' before any path handling so such archives extract to the
correct nested paths, matching how real AWS Lambda unpacks them. A trailing
separator is also treated as a directory entry, since the backslash form would
otherwise slip past ZipEntry.isDirectory(). The path-traversal guard now runs
on the normalized name, so "..\..\evil" is still rejected.

Closes #1198

* fix(lambda): warn on backslash ZIP separators instead of normalizing

Real AWS Lambda does NOT normalize '\' to '/' in ZIP entry names — a
PowerShell Compress-Archive entry extracts as a literal-named file. The
previous normalization made Floci more forgiving than AWS, letting broken
packages pass locally and fail on deploy.

Replace the normalization with a clear warning that tells the developer
why the backslash entry is problematic and how to repackage correctly
(tar, pwsh, or dotnet lambda CLI). The traversal guard and containment
check stay as-is.
2026-06-10 21:23:54 -05:00
David Phillips 16efcc82eb fix: support Glue UpdateDatabase (#1232) 2026-06-10 21:23:13 -05:00
David Phillips 689d4b7d0a fix: reject relative S3 object keys (#1235) 2026-06-10 18:47:28 -05:00
Hector Ventura 898615707d fix(cloudmap): avoid SecureRandom in native image heap (#1289)
CloudMapService held a static final SecureRandom, which GraalVM evaluates
at build time and bakes into the image heap with a cached seed, failing the
native build (DisallowedImageHeapObjects). Make it a non-static instance field
on the @ApplicationScoped bean so it is created at runtime instead, matching
how other services (msk, opensearch, rds) construct SecureRandom locally.

Also remove the stray src/main/resources/application.yml.bak that triggered an
"Unrecognized configuration file" warning during the native build.
2026-06-10 17:54:20 -05:00
TomDav28andTomer David 076afb3ebd feat(parity): emit LocalStack-compatible "Ready." log line on startup (#1284)
Co-authored-by: Tomer David <tomer.david+catonian@catonetworks.com>
2026-06-10 07:52:15 -05:00
Hector Ventura f669116908 feat(eks): support managed node groups (create/describe/list/delete) (#1226)
* feat(eks): support managed node groups (create/describe/list/delete)

aws eks create-nodegroup returned a 400 S3 error ("POST requires ?uploads
parameter") because EksController declared no route for
/clusters/{name}/node-groups, so the request fell through to S3's path-style
catch-all. Add the nodegroup REST routes (which outrank S3's templated path)
plus management-plane node group CRUD.

Node groups are emulated as catalog records that become ACTIVE immediately,
mirroring mock-mode cluster creation; no real worker nodes are provisioned
(k3s schedules pods on its built-in node in real mode).

Closes #1137

* refactor(eks): drop unused nextToken/maxResults params from listNodegroups
2026-06-09 02:09:16 -05:00
shrimptails-f 2ba1798b5d feat(elbv2): align DescribeLoadBalancers availability zones with AWS behavior (#1206)
* feat(elbv2): align DescribeLoadBalancers availability zones with AWS behavior

* feat(elbv2): align DescribeLoadBalancers availability zones with AWS behavior

* feat(elbv2): return SubnetNotFound for missing load balancer subnets
2026-06-09 00:57:56 -05:00
Luke Walker a89121c625 feat(cloudformation): provision AWS::StepFunctions::StateMachine (#1152)
CloudFormationResourceProvisioner previously had no case for
AWS::StepFunctions::StateMachine, so stacks containing one fell through
to the default branch that stubs a placeholder ARN and reports
CREATE_COMPLETE without invoking StepFunctionsService. Downstream
EventBridge Pipes that target the state machine then fail at runtime
with "State machine does not exist".

Add a provisioner that:

- Resolves StateMachineName (auto-generating from logical id when absent)
- Resolves DefinitionString and applies DefinitionSubstitutions
  (the same ${Var} replacement CloudFormation performs server-side)
- Resolves RoleArn, StateMachineType, and Tags
- Delegates to the existing StepFunctionsService.createStateMachine
- Sets PhysicalId to the canonical ARN (matching AWS Ref semantics)
  and exposes the Arn and Name attributes for Fn::GetAtt

Also wire deletion through StepFunctionsService.deleteStateMachine.

Adds an integration test that creates a stack with substitutions,
asserts the resolved definition is stored, asserts CFN outputs return
the canonical ARN and name, and asserts deletion removes the resource.
2026-06-09 00:42:54 -05:00
Kenshin Okinaka 35f597addd feat(ses): publish events to Firehose, EventBridge, CloudWatch (#1188)
* feat(ses): publish events to Firehose, EventBridge, and CloudWatch destinations

Extend SES V2 configuration set event publishing so destinations beyond
SnsDestination actually deliver. Previously KinesisFirehoseDestination,
EventBridgeDestination, and CloudWatchDestination were stored but the
publisher logged a warning and skipped. PinpointDestination still skips.

- KinesisFirehoseDestination → single Firehose PutRecord per event;
  S3-backed streams flush accumulated records as NDJSON once the default
  count threshold is reached.
- EventBridgeDestination → PutEvents entry with Source=aws.ses,
  DetailType="Email <EventTypeLabel>", payload as Detail. Region is
  stamped on the entry (so matchesPattern + envelope agree on a
  non-default region) and Resources is always present (empty when
  sourceArn is null — matchesPattern's resources-filter branch casts
  entry.get("Resources") unconditionally).
- CloudWatchDestination → MetricDatum to AWS/SES with Unit=Count.
  Dimensions resolved from DimensionConfigurations against EmailTags
  (MESSAGE_TAG / messageTag), email headers (EMAIL_HEADER / emailHeader),
  or ses:configuration-set, falling back to DefaultDimensionValue.
  Timestamp left to putMetricData's epoch-seconds default.

Tests
- SesEventPublishingV2IntegrationTest @Order 14-28: per-destination
  setup → send → assert, plus a cross-region (eu-west-1) EventBridge
  case pinning region propagation end-to-end.
- SesEventPublisherTest (Mockito ArgumentCaptor): the EB PutEvents
  entry always carries Resources as an ArrayNode — integration tests
  cannot pin this because EventBridgeService.buildEventEnvelope
  defaults a missing key via getOrDefault.

Docs
- docs/services/ses.md: replace the SNS-only claim with the four
  supported destination types.

* fix(ses): use AWS past-tense detail-type for EventBridge SES events

The EventBridge publisher was emitting "Email Send", "Email Delivery",
etc — derived from the SNS notification eventType vocabulary by
prepending "Email ". AWS uses a separate past-tense vocabulary on
EventBridge: "Email Sent", "Email Delivered", "Email Bounced", "Email
Complaint Received", "Email Rejected", "Email Opened", "Email Clicked",
"Email Rendering Failed", "Email Delivery Delayed", "Email Subscribed"
(see https://docs.aws.amazon.com/eventbridge/latest/ref/events-ref-ses.html).

A customer rule pattern keyed on the AWS value
({"source":["aws.ses"],"detail-type":["Email Delivered"]}) would
silently fail to match Floci events.

Changes:
- Add SesEventPayload.eventBridgeDetailType returning the past-tense
  EventBridge vocabulary. Kept separate from eventTypeLabel (which
  remains correct for SNS notifications and CloudWatch metric names).
- SesEventPublisher.publishEventBridge uses the new mapping.

Tests
- SesEventPayloadTest.eventBridgeDetailType_matchesAwsPastTenseVocabulary:
  pins all 10 mappings against AWS docs.
- SesEventPublishingV2IntegrationTest @Order 29
  (eventBridge_detailTypePattern_keyedOnAwsSentValue_matches):
  structural pin — creates a rule with EventPattern
  {"source":["aws.ses"],"detail-type":["Email Sent"]} and asserts the
  SQS target receives the SEND envelope. A regression to "Email Send"
  would cause the rule to silently drop the event, failing the test
  without relying on any hard-coded assertion string.
- Existing tests updated to assert the AWS values:
  SesEventPublishingV2IntegrationTest 4 assertions; sdk-test-java
  SesEventPublishingTest 3 assertions.

* fix(ses): emit CloudWatch metric name "RenderingFailure" without space

AWS CloudWatch metric publishing for SES uses "RenderingFailure" (no
space) for the RENDERING_FAILURE event type — verified against real
AWS by configuring a CW event destination on a configuration set,
sending a templated email with a missing TemplateData key to trigger
the rendering failure path, and capturing the new metric name from
`aws cloudwatch list-metrics --namespace AWS/SES`.

Floci's publisher was previously sourcing the CW MetricName from
SesEventPayload.eventTypeLabel, which returns "Rendering Failure" (with
space). That spelling is correct for the SNS notification's eventType
field but wrong for CloudWatch — customer dashboards / alarms keyed on
the AWS-correct "RenderingFailure" never see Floci's metric.

Changes:
- Add SesEventPayload.cloudWatchMetricName returning the CW spelling.
  Mirrors eventTypeLabel for every other case so the two stay aligned
  in shape; only RENDERING_FAILURE differs.
- SesEventPublisher.publishCloudWatch uses the new mapping.
- SesEventPayloadTest.cloudWatchMetricName_matchesAwsCwSpelling pins
  all 10 mappings; RENDERING_FAILURE expectation comes from the live
  AWS capture rather than an AWS docs guess.

DELIVERY_DELAY remains as "DeliveryDelay" in this commit — it could
not be triggered conveniently from the SES sandbox (needs genuine SES
backoff), so leaving the existing value rather than guessing. Flagged
in code comments as needing future verification.

The other simple metric names (Send, Delivery, Bounce, Complaint) were
also verified against the same AWS capture and match Floci's existing
spelling byte-for-byte — no change needed for those.
2026-06-09 00:36:28 -05:00
Prakhar Kapoor 3065774e80 feat(ec2): auto-create default security group and main route table on CreateVpc (closes #1091) (#1177)
* feat(ec2): implement default security group and main route table creation for VPC

* fix(ec2): update route table association check to use boolean value

* test(ec2): update security group test to validate group name and VPC ID

* fix(ec2): update security group description in Ec2Service and corresponding tests

* test(ec2): fix integration test failures

* fix(ec2): fix integration test error

* feat(ec2): update description

* fix(ec2): fix SG id to use 17 character hex code
2026-06-09 00:34:51 -05:00
shrimptails-f 40c1c4339d feat(athena): align CreateWorkGroup with AWS behavior (#1174)
* feat(athena): align CreateWorkGroup with AWS behavior

* fix(athena): align CreateWorkGroup wire contract
2026-06-09 00:32:05 -05:00
Jason van Zyl 65c7440f9d refactor(core): add storage-backed maps for service state (#1243) 2026-06-08 23:39:16 -05:00
David Phillips 94a8bdaca1 fix: preserve Glue column parameters (#1210)
* fix: preserve Glue column parameters

* test: cover Glue column parameters compatibility
2026-06-07 23:19:26 -05:00
David Phillips 1ea22d0f60 fix: support Glue BatchDeleteTable (#1209)
* fix: support Glue BatchDeleteTable

* test: cover Glue BatchDeleteTable compatibility
2026-06-07 23:08:15 -05:00
David Phillips 3894ffcf8a fix: normalize Glue catalog names (#1208) 2026-06-07 22:45:29 -05:00
Hector Ventura b449ba2c29 feat(cloudmap): add AWS Cloud Map (servicediscovery) management API (#1217)
* feat(cloudmap): add AWS Cloud Map (servicediscovery) management API

Implements the Route53AutoNaming_v20170314 JSON 1.1 service: namespace
management (HTTP/public-DNS/private-DNS), services, instance register/
deregister, async operation tracking, DiscoverInstances/DiscoverInstancesRevision
(honouring the data- host prefix), instance health status, and tags.

Dispatched via AwsJson11Controller; storage through StorageFactory; config in
EmulatorConfig + application.yml. Covered by an in-repo RestAssured integration
test and an AWS SDK v2 ServiceDiscoveryClient compatibility test.

* refactor(cloudmap): drop unused prefix variable in scanInstances
2026-06-07 07:24:30 -05:00
Ben Younes e3c19461db feat(iam): seed standard EKS cluster and node group managed policies (#1216)
EKS cluster creation and managed node groups attach a set of AWS managed
policies that floci did not seed, so GetPolicy / AttachRolePolicy failed with
NoSuchEntity (e.g. AmazonEKSClusterPolicy, AmazonEKSVPCResourceController),
breaking the terraform-aws-modules/eks module and the EKS console flow.

Add the standard set to the seeded catalog (all path "/"):
AmazonEKSClusterPolicy, AmazonEKSServicePolicy, AmazonEKSVPCResourceController,
AmazonEKSWorkerNodePolicy, AmazonEKS_CNI_Policy. Documented in the IAM managed
policy catalog (docs/services/iam.md).

Closes #1092
2026-06-07 00:41:48 -05:00
David Phillips ec8e1cf85e fix: enforce Glue table version checks (#1211) 2026-06-07 00:39:30 -05:00
Samarth Tikotkar 882fd03457 fix(ec2): include AttachTime in describe-instances network interface response (#1214) 2026-06-07 00:26:36 -05:00
devansh-jain-18 43f4451834 fix(stepfunctions): honor catch on lambda task failures (#1196) 2026-06-07 00:25:03 -05:00
AgustinBertagna 4446404288 feat(appsync): Phase 2 — Schema Registry, Model Fixes, CRUDL completion & AWS Scalars (#1185)
* build: add graphql-java dependency

* feat(appsync): add and extend data models for Phase 2

- Add AdditionalAuthenticationProvider, DomainName, ChannelNamespace, ApiAssociation models
- Add 14 fields to GraphqlApi (apiType, visibility, owner, etc.)
- Change additionalAuthenticationProviders from raw maps to typed list
- Add 6 fields to Resolver (resolverArn, cachingConfig, maxBatchSize, etc.)
- Add dataSourceArn to DataSource
- Rename FunctionConfiguration.arn to functionArn

* feat(appsync): add service and controller changes for Phase 2

* feat(appsync): add service and controller changes for Phase 2

* test(appsync): add Phase 2 integration tests

Add ~60 new tests for:
- Model completeness (new fields, ARNs, functionArn rename)
- Domain names CRUDL + associate/disassociate
- Channel namespaces CRUDL + update
- Merged API associations CRUDL
- Enhanced metrics
- Schema registry parsing with AWS scalars and extensions
- Directive registration (aws_api_key, aws_subscribe, deprecated, unknown)
- Edge cases (null auth providers, maxBatchSize 0, cleanup on delete)

* test(appsync): add AWS scalar unit tests

Test all 17 AWS scalars:
- All registered in AppSyncScalarRegistry
- AWSDateTime, AWSJSON, AWSEmail parse valid/invalid values
- AWSTimestamp and AWSShort range validation
- AWSURL and AWSPhone format validation

* test(appsync): add SDK compatibility tests for Phase 2

Validate that the AWS SDK Java v2 can read:
- dataSourceArn() on CreateDataSource response
- resolverArn() on CreateResolver response
- functionArn() on CreateFunction response
- BadRequestException on invalid schema creation

* docs(appsync): add Phase 2 operations, schema registry, and AWS scalars documentation

- Add Domain Names, Channel Namespaces, Merged API Associations, Enhanced Metrics
- Document AWS scalar types (17 scalars with validation rules)
- Document AppSync directives (8 directives with locations)
- Update Not Implemented section with future phase references
- Add CLI examples for domain names and channel namespaces
- Update cascade delete to include channel namespaces and domain associations

* docs: add AppSync to service tables, env vars, storage config, and SDK README

- README.md: add AppSync to category table, detailed notes, and architecture diagram
- docs/index.md: add AppSync to supported services table, fix count to 52
- docs/configuration/environment-variables.md: add FLOCI_SERVICES_APPSYNC_ENABLED
- docs/configuration/advanced/application-yml.md: add appsync config block
- docs/configuration/storage.md: add AppSync per-service storage override
- compatibility-tests/sdk-test-java/README.md: add AppSyncTest to services table

* fix(appsync): reuse ObjectMapper and fix AWSJSON serialize for non-string values

AWSJSON scalar was creating a new ObjectMapper on every parseValue() call. serialize() used toString() which produces invalid JSON for Map/JsonNode results.

* fix(appsync): strip string literals and comments before unknown directive validation

The regex @(\w+) incorrectly flagged @ mentions inside GraphQL string literals and comments as unknown directives.

* fix(appsync): prevent silent overwrite on creates, validate required fields and input values

- Add existence checks on createDataSource, createResolver, createType,
  createChannelNamespace, createMergedApiAssociation (→ ConflictException 409)
- Validate authenticationType is required on createGraphqlApi
- Validate typeName is required on createResolver
- Validate dataSourceName exists on createResolver and createFunction
- Prevent associateApi from silently overwriting existing association
- Enforce API key limit (max 2 per API)
- Fix expires parsing to accept ISO 8601 strings, throw on invalid values
- Fix castInt overflow detection
- Fix updateApiKey expires validation (was silently swallowing errors)
- Change InvalidNextTokenException to BadRequestException (AWS standard)
- Fix maxResults=0 to return empty page
- Fix getIntrospectionSchema to throw 404 instead of returning null
- Fix tags with null values (was producing literal string "null")

* test(appsync): fix cascade delete test to create data source before function, align with new validation

* refactor(appsync): remove dead code and unused hasSchema()

- Delete AppSyncDirectiveRegistry.java (100 lines, never used)
- Delete DirectiveValidator.java (45 lines, never called)
- Remove hasSchema() from SchemaRegistry (never called)

* fix(appsync): scalar null-safety, type validation, and DNS resolution

- Add null checks to 5 serialize() methods (AWS_TIMESTAMP, AWS_LONG,
  AWS_INTEGER, AWS_BOOLEAN, AWS_FLOAT) to prevent NPE
- Fix AWS_TIMESTAMP parseValue() ClassCastException on String input
- Replace InetAddress.getByName() with regex in AWS IPAddress to
  prevent DNS resolution (SSRF concern)
- AWSBoolean now rejects non-boolean values (matches AppSync behavior)

* refactor(appsync): centralize directive definitions in AppSyncDirective enum

- Add AppSyncDirective enum as single source of truth for directive
  names and SDL definitions
- Update AppSyncSchemaParser to use enum instead of duplicated strings
- Eliminates 3 sources of truth (validateNoUnknownDirectives Set,
  injectDirectiveDefinitions SDL, and formerly AppSyncDirectiveRegistry)

* perf(appsync): cache scalarMap in AppSyncScalarRegistry

- Initialize scalarMap once in constructor as unmodifiableMap
- Avoids recreating HashMap on every call (was called twice per
  schema parse)

* test(appsync): add tests for scalar fixes and behavior changes

- Add tests for null-safety in serialize() (5 scalars)
- Add test for AWSTimestamp parseValue with String input
- Add tests for AWSIPAddress regex validation (IPv4, IPv6, invalid)
- Add tests for AWSBoolean rejecting non-boolean values
- Add test for scalarMap caching

* test(sdk): add AWS scalars schema creation test

Verifies that schemas with AWS scalar types (AWSDateTime, AWSJSON,
AWSIPAddress, AWSBoolean) parse correctly via the SDK.

* fix(appsync): correct API paths to match AWS documentation

- Channel namespaces: /v1/ → /v2/, channelnamespaces → channelNamespaces
- Domain association: /apis → /apiassociation
- Remove ListApiAssociations (not a real AppSync operation)
- Remove GetEnhancedMetricsConfig (not a real AppSync operation)
- Rename Merged API Association to Source API Association with correct paths:
  - AssociateSourceGraphqlApi: POST /v1/mergedApis/{id}/sourceApiAssociations
  - GetSourceApiAssociation: GET /v1/mergedApis/{id}/sourceApiAssociations/{id}
  - ListSourceApiAssociations: GET /v1/apis/{apiId}/sourceApiAssociations
  - DisassociateSourceGraphqlApi: DELETE /v1/mergedApis/{id}/sourceApiAssociations/{id}

* feat(appsync): add SourceApiAssociation models

Add SourceApiAssociation, SourceApiAssociationConfig, and
SourceApiAssociationSummary models to support merged/source API
association operations per AWS AppSync API Reference.

* feat(appsync): add ChannelNamespace support models

Add AuthMode, HandlerConfig, HandlerConfigs, Integration, and
LambdaConfig models for ChannelNamespace handler configuration
per AWS AppSync API Reference.

* fix(appsync): fix ApiAssociation and ChannelNamespace models

ApiAssociation: remove source/merged API fields, keep only domain
association fields (apiId, associationStatus, deploymentDetail,
domainName) per AWS AppSync API Reference.

ChannelNamespace: add missing fields (channelNamespaceArn,
codeHandlers, created, handlerConfigs, lastModified,
publishAuthModes, subscribeAuthModes, tags) per AWS docs.

* feat(appsync): add missing service methods and fix response models

- associateApi now returns full ApiAssociation object
- createMergedApiAssociation returns SourceApiAssociation
- createSourceApiAssociation returns SourceApiAssociation
- getSourceApiAssociation validates mergedApiId
- listSourceApiAssociations returns SourceApiAssociationSummary
- Add updateSourceApiAssociation method
- Add deleteMergedApiAssociation method
- ChannelNamespace: populate arn, timestamps on create/update

* feat(appsync): fix response formats and add missing endpoints

- associateMergedGraphqlApi: response key apiAssociation → sourceApiAssociation
- disassociateSourceGraphqlApi: returns 200 + body (not 204)
- associateApi: returns full ApiAssociation from service
- Add POST /v1/mergedApis/{id}/sourceApiAssociations/{assocId} (UpdateSourceApiAssociation)
- Add DELETE /v1/sourceApis/{id}/mergedApiAssociations/{assocId} (DisassociateMergedGraphqlApi)

* test(appsync): fix and add integration tests for new endpoints

- Fix associateSourceGraphqlApi: use mergedApiId and sourceApiAssociationStatus
- Fix deleteSourceApiAssociation: expect 200 with body (not 204)
- Add updateDomainName test
- Add associateMergedGraphqlApi test
- Add updateSourceApiAssociation test
- Add disassociateMergedGraphqlApi test

* test(appsync): add SDK tests for missing operations

- Add updateDomainName test
- Add associateMergedGraphqlApi test
- Add updateSourceApiAssociation test
- Add disassociateMergedGraphqlApi test
- Fix test ordering for new domain tests
2026-06-07 00:05:51 -05:00
Matt Van Horn 9a7070992e fix: persist SSE specification and return SSEDescription for encrypted tables (#1191) 2026-06-06 21:08:30 -05:00
David Phillips 24250b658d fix: enforce Glue table version checks (#1184) 2026-06-06 20:55:36 -05:00
Hoang Lan 3732d2491b fix(dynamodb): update DynamoDB's reserved keywords (#1176) 2026-06-06 18:28:38 -05:00
guilhermejsonar a81b961167 feat(cloudwatch): accept log group ARN via logGroupIdentifier (#1172)
DescribeLogStreams, PutLogEvents, GetLogEvents, and FilterLogEvents now
accept either logGroupName or logGroupIdentifier. When an ARN is provided,
the log-group name is extracted from the :log-group: segment (with
trailing :* tolerated). Log-stream identifiers are similarly stripped of
the :log-stream: prefix so SDK responses can round-trip cleanly.
DescribeLogStreams responses also include a per-stream arn field.

Closes #1164
2026-06-06 10:14:56 -05:00
Samarth Tikotkar f359ae854d fix(ecs): retain inactive services for terraform draining and recreation with correct idempotency (#1166)
* fix(ecs): retain inactive services for terraform draining and recreation with correct idempotency

* fix(ecs): enforce strict aws compliance for service lifecycles and idempotency

- retain inactive services
- added status filters to listServices and listServicesByNamespace
- wrote a shared extractServiceName helper
2026-06-06 08:58:21 -05:00
Niraj b9dd0c38a9 feat(ecs): honour task-definition volumes + container mountPoints (#1171)
* feat(ecs): honour task-def volumes + container mountPoints

Implements EC2-launch-type ECS host-bind semantics: a task definition may
declare task-level volumes ({name, host.sourcePath}) and each container
definition may reference them via mountPoints ({sourceVolume, containerPath,
readOnly}). At RunTask launch, each mountPoint resolves its source volume to
the host source path and bind-mounts it into the container (read-only via
withReadOnlyBind, read-write via withBind); unresolved volume references are
skipped with a warning.

This lets stock images be launched with per-task config bind-mounted at a
fixed container path, instead of baking config into per-image wrappers.

- model: Volume, MountPoint records; volumes on TaskDefinition, mountPoints on
  ContainerDefinition
- EcsJsonHandler: parse + serialize round-trip for both
- EcsContainerManager.startTask: resolve volumes and wire binds
- tests: JSON wire-path round-trip + bind-by-access-mode (Docker-free)

* fix(ecs): fail loudly when a task definition resolves zero container definitions

RunTask/StartTask on a task definition with no container definitions used to
launch zero containers silently: the per-container loop was a no-op, the task
still transitioned through PENDING towards RUNNING, and callers polling
DescribeTasks waited forever on a task with nothing behind it.

Validate up front in launchTasks (covers RunTask and StartTask, docker and
mock mode alike): WARN and throw a ClientException (HTTP 400) before any task
is created, consistent with how unresolved task definitions fail.
2026-06-06 08:57:37 -05:00
Tom Myers 772467b7cc fix: tag rpc-v2-cbor timestamp lists so GetMetricData decodes (#1162)
* fix(cloudwatch): tag rpc-v2-cbor timestamp lists so GetMetricData decodes

GetMetricData responses encode MetricDataResults[].Timestamps as a list, but
the rpc-v2-cbor serializer only tagged scalar fields named "Timestamp". The
untagged list elements caused aws-sdk-go-v2 (and the OpenTelemetry Collector
awscloudwatch metrics receiver) to fail decoding with "unexpected value type
cbor.Uint".

Carry timestamp context into array elements and match timestamp members by
their "Timestamp"/"Timestamps" suffix, so every element of a timestamp list is
emitted as a CBOR tag(1) value (epoch seconds, RFC 8949 3.4.2) with integer-ness
preserved. Scalar timestamp handling is unchanged.

Tests:
- AwsJsonCborSerializerTest: asserts tag(1) bytes for scalar and list timestamps,
  integer preservation, and that non-timestamp numbers stay untagged.
- Go SDK compatibility suite: a GetMetricData case that exercises the real
  aws-sdk-go-v2 CBOR client end to end.

* apply copilot suggestions to tests
2026-06-06 08:37:34 -05:00
Clément dbcde087f9 fix(sns): align mobile push error codes, payload resolution, and Token rotation with AWS (#1165)
* fix(sns): align mobile push error codes, payload resolution, and Token rotation with AWS

* ci: retrigger checks
2026-06-06 08:27:16 -05:00
Kenshin Okinaka e36576c2a4 feat(ses): per-configuration-set sending toggle (v1 + v2) (#1193)
Add UpdateConfigurationSetSendingEnabled (SES v1 Query) and
PutConfigurationSetSendingOptions (SES v2 REST, PUT
/v2/email/configuration-sets/{name}/sending) to toggle email sending
on a single configuration set, complementing the existing
account-level UpdateAccountSendingEnabled / PutAccountSendingAttributes
toggle. The two APIs share state: both write
`ConfigurationSet.sendingEnabled` (Boolean, null/true = enabled).

Enforcement is centralized in SesService.validateConfigurationSet,
which is called by SendEmail, SendRawEmail, and SendBulkTemplatedEmail
(v1 and v2 paths). When the CS's sendingEnabled is false, the send is
rejected with SendingPausedException + "Sending is paused for
configuration set <name>" — matching the exact wire shape AWS returns
in production (verified via `aws sesv2 send-email` against an AWS
account with a disabled CS; both ErrorCode and Message reproduce as-is).

Read-back paths:
  - v2 GetConfigurationSet returns SendingOptions: {SendingEnabled}
  - v1 DescribeConfigurationSet with `reputationOptions` attribute
    returns ReputationOptions/SendingEnabled (matches the AWS v1 wire
    contract where SendingEnabled lives under ReputationOptions)

The v1 action is also added to AwsQueryController.SES_ACTIONS so that
action-name-based service routing recognizes it.

Tests
- SesConfigurationSetSendingOptionsV2IntegrationTest (13 cases): toggle
  via both APIs, cross-API state sharing, SendEmail rejection with
  SendingPausedException when disabled, read-back via Get/Describe,
  bad-request validation, unknown CS returns 404 via v2.
- SesConfigurationSetSendingTest (SDK compat, 9 cases): AWS Java SDK
  v2 marshalling of both APIs, with sendEmail rejection asserted as
  `SendingPausedException` (the AWS SDK class corresponding to the
  matched server-side error code).

Docs
- docs/services/ses.md: list both APIs in their respective tables.
2026-06-06 08:16:39 -05:00
Matt Van Horn 70acf49b00 fix: accept AttributesToGet with Select=SPECIFIC_ATTRIBUTES in Query (#1190) 2026-06-05 23:48:19 -05:00
David Phillips 10e28f33c2 feat: support Glue DeleteDatabase (#1181) 2026-06-05 23:38:34 -05:00
shrimptails-f 701d8f4ae9 fix(elbv2): align DeleteTargetGroup with AWS Query response (#1194) 2026-06-05 23:35:30 -05:00