* feat(cognito): hand email codes to the CustomEmailSender trigger
* test(cognito): decrypt CustomEmailSender codes with the AWS Encryption SDK
* docs(cognito): document the CustomEmailSender trigger
* fix(cognito): fail a CustomEmailSender delivery as Cognito does
Measured on Cognito (eu-west-1, 2026-10-16), with the events a real sender
received:
- CreateUserPool and UpdateUserPool refuse a custom sender trigger without
a KMSKeyID ("KMSKeyId parameter is required when Custom SMS/Email Lambda
trigger is used."), and CreateUserPool a key that does not exist
("Encountered error when CreateGrant was attempted on the input KMS key -
Key '<id>' does not exist"), both InvalidParameterException.
- A disabled key fails the request with CodeDeliveryFailureException
"Caller needs to enable the configured KMS Key", a key pending deletion
with "Unable to encrypt CustomEmailSender/CustomSMSSender code using the
configured KMS Key". The sign-up is kept, unlike a failed SES delivery,
and InitiateAuth answers the same error rather than InternalErrorException.
- A function that is gone, or that Cognito may not invoke, answers
UnexpectedLambdaException "CustomEmailSender invocation failed due to
error AccessDeniedException."
- request.clientMetadata is null for every source, InitiateAuth's
ClientMetadata included, so the parameter that carried it is gone.
The branch also follows main since it was written: CognitoService takes
enforceTokenValidityLimits, and signUp ValidationData and ClientMetadata.
* fix(cognito): withdraw a code the CustomEmailSender could not take
Review of #6031: when the handover failed, the code issued for it stayed
live in SignUp, ForgotPassword and both attribute flows, so asking for a
code again within 30 seconds answered LimitExceededException. Measured
on Cognito (eu-west-1): it hands out a code again at once, on a healthy
pool and once a key that could not encrypt is enabled again, for
ResendConfirmationCode and ForgotPassword alike.
sendThroughCustomEmailSender now withdraws the code before it fails, for
every flow, and the two catches that withdrew it by hand (resend and the
sign-in OTP) leave that to it.
* fix(cognito): hand the CustomEmailSender the request's ClientMetadata
Review of #6031: the developer guide lists ClientMetadata for the
sign-up, forgot-password and sign-in sources, and the branch passed null
for every one on the strength of InitiateAuth alone. Measured on Cognito
(eu-west-1): SignUp, ResendConfirmationCode, ForgotPassword,
GetUserAttributeVerificationCode and UpdateUserAttributes each hand the
function the request's ClientMetadata; only the sign-in code's event has
none, even when InitiateAuth sends one. A request without ClientMetadata
gives null, as measured before.
ResendConfirmationCode, ForgotPassword and the two attribute calls now
take the request's ClientMetadata through the service, with overloads
that keep their previous signatures. resolveTriggerArn's custom sender
branch gets its braces.
---------
Co-authored-by: outof-place <contact@outofplace.space>
The SES v2 model release of 2026-09-29 moved ListEmailIdentities to
POST /v2/email/list-identities and ListConfigurationSets to
POST /v2/email/list-configuration-sets, each with a new Filter member.
Floci now serves both bindings, so the suites can move to SDKs that
send the new ones.
Java moves 2.55.3 to 2.55.11 and Python 1.43.100 to 1.43.108, the
current releases of each.
The SES tenant-level deliverability launch on 2026-09-17 added a TENANT_NAME
metric dimension to BatchGetMetricData and a TenantName filter to the message
insights export. Both reached the Java SDK in 2.55.0 and botocore in a release
after the pinned one, so the suites could not express either against the
versions pinned here.
Java moves 2.52.0 to 2.55.3 and Python 1.43.69 to 1.43.100, the current
releases of each.
#2940 widened the compatibility workflow to build the native image for both
published architectures and run all eight suites on both, sixteen suite jobs per
PR. What the suites check is arch-neutral, and with several PRs in flight the
jobs sat queued for the shared runner pools for longer than they take to run.
The suites now run against the arm64 image only. Both native images are still
built, so each published architecture is proven to link and package, and one
amd64 suite stays: sdk-test-python now carries a Firehose compression delivery
test, mirroring the Java one, that proves the x86_64 snappy JNI library
survived the native build. That is the one resource registered per platform,
and the proof moves from the slowest leg to the fastest.
The two Snappy variants are container formats around raw Snappy blocks: the
xerial snappy-java stream and Hadoop's block framing, neither of which has a
Python reader without native system libraries. The test parses the framing
itself, following Floci's writer, and decodes the raw blocks with cramjam,
which ships wheels for both architectures. The results artifact carries the
architecture in its name so the two Python uploads are distinguishable.
* chore(compat): align pinned SDK versions across the Python, Java, and CDK suites
Bump the exact-pinned SDK versions to a common recent baseline so the suites no longer
span a wide release window:
- sdk-test-python: boto3 / botocore 1.37.1 -> 1.43.69
- sdk-test-java: AWS SDK for Java v2 2.44.14 -> 2.52.0
- compat-cdk: aws-cdk-lib 2.171.1 -> 2.264.0, aws-cdk 2.171.1 -> 2.1135.1,
aws-cdk-local ^2.0.0 -> ^3.0.4
Bumping boto3/botocore also restores the current SES v2 model (97 -> 112 operations,
including the Tenant and ReputationEntity families).
The aws-cdk 2.1000+ CLI (decoupled from the library version line) publishes template
assets to S3 using virtual-hosted-style URLs and needs aws-cdk-local v3. Pointing
AWS_ENDPOINT_URL_S3 at Floci's virtual-hosted domain (http://s3.localhost.floci.io:4566)
makes the SDK build <bucket>.s3.localhost.floci.io, which resolves via public DNS locally
and via Floci's embedded DNS (already injected with --dns in the compat workflow) inside
the Docker network, instead of the unresolvable <bucket>.floci.
The Go, Node, AWS CLI, Terraform, and OpenTofu suites float to the latest by design and
are left unchanged.
* chore(compat): let AWS_ENDPOINT_URL_S3 be overridden in the compat-cdk helper
Use a ${:-default} fallback like the other endpoint/region variables in
common-setup.bash so a caller or CI can point the CDK S3 virtual-host endpoint
elsewhere (e.g. a non-4566 port), instead of hard-coding it.
* test: move compatibility tests into this repo
* fix: add StatisticValues parsing to CloudWatchMetricsJsonHandler
* fix: add missing required abstract methods to EmulatorConfig in EventBridgeSchedulerIntegrationTest
* test: add sdk tests for multipart S3 copy coverage
* fix: cover and fix smithy cbor and multipart s3 copy regressions
* test: migrate more test coverage to new folder
* test: add missing ec2 expectation in healthcheck test
* docs: update READMEs in `./compatibility-tests`