* feat(dms): add endpoint, replication instance and replication task lifecycles
DMS dispatched only replication subnet groups and tagging, so CreateEndpoint,
CreateReplicationInstance, CreateReplicationTask and their siblings answered
UnknownOperationException and no aws_dms_endpoint, aws_dms_s3_endpoint,
aws_dms_replication_instance or aws_dms_replication_task could be applied.
Adds Create/Describe/Modify/Delete for endpoints, replication instances and
replication tasks, plus Start/StopReplicationTask, which the provider calls for
start_replication_task and before modifying or deleting a running task.
- Resources are ARN-addressed (endpoint:, rep:, task:) with a 26-character
generated id or the caller's ResourceIdentifier, and tagged through the
existing tagging operations.
- Instances are available and tasks ready from creation, the states the
provider's waiters target; describe filters follow the API reference and a
filter that matches nothing is ResourceNotFoundFault.
- Endpoint settings structures round-trip, minus every SecretString member;
ModifyEndpoint merges them unless ExactSettings is true.
- Deleting an endpoint or instance a task uses, a subnet group an instance
uses, or a running task is InvalidResourceStateFault.
The unsupported-operation test now uses CreateReplicationConfig, which is still
unimplemented.
* style(dms): order DmsService imports alphabetically
* docs(dms): list CdcStartTime and the missing describe actions as unimplemented
* test(dms): cover tag add and remove on endpoint, instance and task ARNs
* fix(dms): runtime-init DmsService, resolve the default subnet group, reject reversed task endpoints
- Register DmsService under --initialize-at-run-time: its static SecureRandom
otherwise lands in the native image heap (guard test and native builds).
- Store only the three members KerberosAuthenticationSettings models instead of
a deep copy of whatever the caller sent.
- An instance created without a subnet group now describes the "default" group
in full (VPC, subnets, status) from the region's default-VPC subnets.
- CreateReplicationTask rejects a source ARN that is not a SOURCE endpoint and a
target ARN that is not a TARGET endpoint.
* fix(dms): name the swallowed default-subnet exception, sync the DMS matrix count
The default-subnet fallback deliberately swallows AwsException; name it
`ignored` and say why that is safe, per AGENTS.md.
docs/services/index.md listed DMS at 6 operations; the handler dispatches 20.
Add the reverse of the reversed-endpoints test: a source endpoint passed as
TargetEndpointArn, which is the only test reaching the TARGET type check.
* fix(elasticache): report a memcached cluster's node count, type, ARN and nodes
CreateCacheCluster with Engine=memcached kept only the cluster id, so
DescribeCacheClusters answered with id, status, engine, version and
ConfigurationEndpoint alone. terraform's aws_elasticache_cluster reads
num_cache_nodes, node_type, parameter_group_name, subnet_group_name,
security_group_ids, arn and cache_nodes back from that describe, so every
memcached cluster planned a diff no apply could settle.
The memcached create now takes the same CreateCacheClusterRequest the redis
path does and stores NumCacheNodes (default 1, below 1 refused),
CacheNodeType (default cache.t4g.micro, as for redis), the parameter and
subnet group names, security group ids, PreferredAvailabilityZone and an
ARN. The describe emits them for memcached as it does for redis and, with
ShowCacheNodeInfo, one CacheNode per node (0001..000N), each reporting the
cluster endpoint since one container serves them all. A record persisted
before node counts were stored reports one node. Redis output is
unchanged.
* fix(elasticache): cap a memcached cluster at 40 nodes
A create with NumCacheNodes above 40 now fails with
NodeQuotaForClusterExceeded (400), as AWS does, instead of storing the
count and listing that many nodes on a ShowCacheNodeInfo describe.
* fix(iam): compare numeric and boolean condition values
A condition value written as a JSON number, such as
{"NumericLessThan":{"s3:max-keys":10}}, or as a boolean under an operator
other than Bool, parsed to an empty value list, so the condition never
matched. Compare both as strings, as IAM does.
* fix(iam): never match an unparsable numeric or date condition value
compareNumeric and compareDates returned 0 when a value failed to parse, so
NumericEquals and DateEquals matched a non-numeric or non-date value and an
Allow could grant access. Numeric values were also compared as doubles, so
integers beyond 2^53 collapsed together. Compare numbers as BigDecimal, and
treat a value that does not parse as not satisfying the operator.
* fix(iam): never match a null numeric or date condition value
* fix(iam): accept epoch seconds and W3C short date forms in date conditions
* fix(iam): read lowercase date-time separators in date conditions
* chore(iam): keep the policy-variable comment next to its pattern
* test(iam): cover Null conditions with unquoted boolean values
* feat(sqs): thread accessKeyId through RequestContext and AccountContextFilter
* fix(iam): resolve caller user id and align assumed role id with role id
* feat(sqs): stamp senderId on Message model and in SqsService
* feat(sqs): return message-specific senderId in SQS query and JSON handlers
* test(sqs): add integration tests for SenderId caller principal (#4829)
* fix(sqs): guard against unsatisfied CDI instance in resolveCurrentSenderId
* fix(sqs): address review findings and fix CI for caller principal SenderId
- Catch RuntimeException in SqsService to prevent compiler incompatibility
- Fallback SenderId to queue owner account when outside request context
- Deliver SNS fanout messages with SNS service principal SenderId
- Support presigned requests without X-Amz-Algorithm in AccountContextFilter
- Populate assumedRoleId and roleSessionName for ECS, EKS and Lambda sessions
* fix(sqs): validate session token for temporary credentials and fix CI regressions
- Validate session token matching when resolving caller principal for temporary credentials
- Generate unique session names for EKS Pod Identity to avoid sender ID collision
- Restore default floci-session session name for Lambda execution role sessions
- Align SqsService mock in SnsServiceTest with 9-parameter sendMessage signature
* fix(sts,lambda): pass sessionToken to resolveCallerUserId and scope Lambda assumed role IDs
* fix(lambda): align execution role session name and assumed role ID with function name
* fix(sqs): resolve SenderId caller in SQS handlers, not in sendMessage
Internal producers (S3 notifications, EventBridge, SNS) call sendMessage
on the thread of the request that triggered them, so SenderId picked up
that caller's role session. Resolve the caller in the SQS Query/JSON
handlers where a real SendMessage call is known, and pass it down.
sendMessage without an explicit senderId now defaults to the queue owner.
* feat(lambda): durable function callbacks
A CALLBACK operation started at checkpoint gets a callback id that
SendDurableExecutionCallbackSuccess, Failure and Heartbeat complete or
keep alive, after which the function is invoked again to see it.
TimeoutSeconds and HeartbeatTimeoutSeconds time it out with
Callback.Timeout or Callback.Heartbeat. A completed, timed out or
stopped callback answers CallbackTimeoutException, an unreadable id
"Invalid callback id". The callback id carries the execution ARN, which
IAM authorizes the callback actions against.
Option range errors now name the update, as AWS does
("updates.1.member.waitOptions.waitSeconds").
* fix(lambda): name a repeated durable update as AWS does
AWS rejects two updates of one operation in a batch, other than a START
closed by its STEP or CONTEXT action, with "Cannot update the same
operation twice in a single request."
* fix(lambda): leave a durable execution waiting after a body-less callback failure
AWS marks a callback failed with an empty request body as FAILED but does
not invoke the function again, so the execution keeps waiting. The SDKs
send {} when Error is omitted, which does invoke it.
* fix(lambda): bound a durable callback failure's error at 1 MB
AWS rejects an Error over 1048576 bytes, measured as compact JSON, with
InvalidParameterValueException "Error object size must be less than or
equal to 1048576 bytes."
* test(lambda): keep a pending durable callback across a restart
* fix(lambda): reject a durable callback failure body that is not a JSON object
AWS treats only an empty body as a failure with no Error. Whitespace,
null or broken JSON get 400 SerializationException and leave the
callback open.
* docs(lambda): note the durable callback result limit AWS enforces
* fix(apigateway): format request times with an English locale
The REST requestTime, the HTTP API requestContext.time and the Lambda
function URL requestContext.time were formatted with
"dd/MMM/yyyy:HH:mm:ss Z" under the JVM default locale, so on a
non-English machine the month came out localized (e.g. "10月"). A REST
context mapping forwards that value into an integration request header,
where the JDK HTTP client rejected it and the call failed with 500.
Pin the formatters to Locale.ENGLISH, as the WebSocket event builder
already does, and have the HTTP API proxy and authorizer events reuse
the shared formatter in UTC instead of the system time zone.
* test(apigateway): cover HTTP API event times under a non-UTC host
Build the HTTP API proxy and REQUEST authorizer events under a Japanese
default locale and an Asia/Tokyo default time zone, and assert that
requestContext.time has an English month, a +0000 offset and the same
instant as timeEpoch. buildRequestAuthorizerEventV2 becomes
package-private so the test can reach it.
The SES v2 model release of 2026-09-01 (botocore 1.43.86) added
UpdateConfigurationSet, a partial update whose only member is
MessageSecurityOptions, the S/MIME signing scheme of a configuration
set. CreateConfigurationSet accepts the same member and
GetConfigurationSet returns it.
Floci stores and returns the setting but never signs a message. Where
the API reference is silent, the request handling follows what SES
answered in us-west-2: an absent SigningScheme leaves the stored value
alone, an empty one resets it to DefaultScheme, both union members
store SmimeScheme, and a missing SignatureFormat stores DETACHED.
* fix: create Firehose buckets and backfill EKS OIDC issuers in the resource's region
Firehose auto-created a missing destination bucket, and the Parquet staging
bucket, in the default region rather than the stream's, and the EKS startup
backfill minted the OIDC issuer of a pre-IRSA cluster in the default region
rather than the cluster's. Both now take the region from the resource's ARN,
as cluster creation already does.
* fix(firehose): keep the shared default and staging buckets in the default region
Creating every missing bucket in its stream's region let the first stream to
deliver decide the region of the buckets all streams share: the default
destination bucket, used by every stream without its own, and the Parquet
staging bucket. Only a stream's own destination bucket now follows the
stream's region; the shared ones stay in the default region, as before. The
tests cover a configured bucket in eu-west-1 and the shared default bucket.
* fix(firehose): tell a stream's own destination from the shared default by configuration
The shared default bucket was recognised by its name, so a stream that
configured floci-firehose-results as its own destination had a missing
bucket created in the default region instead of its own. Whether the bucket
is the stream's own now follows from the stream having a destination
configured, the same test that picks the bucket.
* fix: send ElastiCache, Memcached, DocDB and Amazon MQ container logs to the resource's region
The container managers attached the CloudWatch Logs stream, and labelled
the container, with the default region, so a cluster or broker created in
another region logged to the default one. The ElastiCache, Memcached and
DocDB managers now take the resource's region: the request's on create, the
one in the resource's ARN on a startup restore. Amazon MQ reads its broker's
ARN. A Memcached cluster records no ARN or region, so a restored one still
logs to the default region.
* fix(elasticache): keep a Memcached cluster's log region across a restart
A Memcached cluster records no ARN, so a restore had no region to give its
container and logged to the default region, although the cluster logged to
its own region until the restart. The cluster record now keeps the region it
was created in (persisted only, not in any response), and the restore uses
it; a record from before this has none and keeps the default. The handler
test now checks the request region is passed on.
* fix(emr): keep cluster operations in the cluster's region
EMR looked a cluster up by id alone, so DescribeCluster, AddJobFlowSteps,
the instance group and fleet operations, policies, tags, TerminateJobFlows
and the cluster-wide setters acted on a cluster created in another region;
only ListClusters filtered by region. Every lookup now goes through one
region-aware findCluster: a cluster from another region reads as an unknown
id (InvalidRequestException), and terminate and the setters skip it, as they
skip an unknown id. A cluster recorded without a region stays reachable.
* test(emr): check a cluster-wide setter from another region leaves the cluster unchanged
* fix(ecs): keep task definitions and their revisions per region
Task definitions were keyed family:revision and revision counters by family
alone, so registering a family in one region bumped its revision in every
other, and ListTaskDefinitions, ListTaskDefinitionFamilies and the describe,
deregister and delete lookups saw every region's definitions. Both stores
now key by region (region::family:revision, region::family), as clusters
already do, and every read keeps to the request region.
A definition's region is read from its own ARN, so definitions persisted
under the old keys still resolve; the next write re-files one under its new
key, so none is listed twice.
* fix(ecs): drop a task definition's old storage key only for that same definition
The old family:revision key named no region, so re-filing a definition under
its region's key removed whatever sat under that old key, even another
region's not-yet-migrated definition. The old entry is now removed only when
its ARN is the definition being written; EcsTaskDefinitionLegacyKeyTest seeds
an old-key definition and covers both the re-filing and another region's
registration of the same family and revision.
* fix(ecs): read a task definition's region without failing on an unreadable ARN
Every task definition list and lookup read each definition's region with
AwsArnUtils.parse, which throws on a null or malformed ARN, so one bad
stored record failed every call. The region now comes from regionOrDefault,
as elsewhere in the tree: a definition whose ARN cannot be read counts as the
request's region, and ListTaskDefinitions skips one with no ARN to list.
* fix(ecs): keep a task definition with an unreadable ARN in the default region
The fallback for a definition whose ARN cannot be read was the requesting
region, so such a definition was seen from every region: its family's next
revision in any region counted it, and lists and lookups everywhere included
it. It now belongs to the default region, as a task with an unreadable ARN
already does, so it still breaks no lookup and is seen in one region only.
EcsTaskDefinitionLegacyKeyTest covers the same family registered in another
region.
* fix: scope Lambda event source mappings, DynamoDB export and import jobs, Auto Scaling activities and Cognito user pools to the request region
These resources are stored for every region in an account, and their list
and lookup paths returned all of them, so a request signed for one region
saw another region's resources:
- Lambda: GetEventSourceMapping and ListEventSourceMappings (and update and
delete, which go through the lookup) keep to the mapping's region; a
mapping persisted before its region was recorded uses its function ARN's.
- DynamoDB: ListExports, ListImports, DescribeExport and DescribeImport
keep to the region in the job's ARN.
- Auto Scaling: scaling activities record their group's region and
DescribeScalingActivities filters on it; activities persisted before it
was recorded stay visible.
- Cognito: ListUserPools keeps to the region in the pool ARN, else the pool
id's prefix.
Each case is covered by a test that creates the resource in eu-west-1 and
reads it from eu-west-1 and us-west-2; all four fail without this change.
* fix(dynamodb): look up a replayed ImportTable client token in the request region only
DescribeImport and ListImports now see only the request region's jobs, but
ImportTable still matched a ClientToken across every region, so replaying a
token from a second region returned the first region's import, which that
region's DescribeImport then reported as not found. The token lookup now
takes the same region filter, and RegionScopedListsIntegrationTest covers the
replay.
* fix(cognito): refuse a user pool from another region on every signed operation
ListUserPools only showed the request region's pools, but DescribeUserPool,
DeleteUserPool, AdminGetUser and the rest looked a pool up by id alone, so a
caller in another region could still read or delete it. AWS serves a pool
only in the region its id names. Every operation that names a UserPoolId is
signed for the caller's region, except the unsigned UpdateAuthEventFeedback,
so the handler now refuses such a pool as not found before dispatching; the
unsigned sign-up and sign-in flows, the OIDC endpoints and the API Gateway
authorizer are unchanged. RegionScopedListsIntegrationTest covers describe,
AdminGetUser and delete from another region.
CopyObject read the whole source into a byte array with getObject and
wrote it back out for the copy, so a source of 2 GiB or more failed as an
internal error, even though S3 copies objects up to 5 GiB in one call.
In the disk-backed modes the source is now pinned with a temporary hard
link to the file generation its metadata describes, taken through the
same optimistic snapshot GetObject uses, and that link is moved into
place as the copy's file. The copy's ETag and checksum are prepared
before any bucket monitor is taken, and the pinned file is read, once and
streamed, only for what cannot carry over: a single-part source's ETag is
the MD5 of its bytes and is kept, while a multipart source needs the MD5
computed, and a requested or composite checksum becomes a full-object one
through a new incremental S3Checksum.Calculator. A failed copy removes its
pinned link. Memory mode still copies the byte array.
As on S3, a CopyObject source larger than 5 GiB (5368709120 bytes) is now
rejected with InvalidRequest, "The specified copy source is larger than
the maximum allowable size for a copy source: 5368709120"; such an object
is copied with UploadPartCopy.
* fix(apigateway): evaluate Lambda authorizer policies with one evaluator
HTTP API (payload 1.0 and 2.0) and WebSocket $connect authorizers now
evaluate every policy statement against the execute-api ARN, instead of
reading only the first statement's Effect.
REST, HTTP and WebSocket APIs share AuthorizerPolicyEvaluator: one
validator and one set of condition keys (aws:SourceIp from the transport
address, aws:SecureTransport, aws:CurrentTime). IAM CIDR conditions now
match IPv6 ranges.
* fix(apigateway): reject malformed authorizer policy conditions
A Condition operator IAM does not know, an operator without keys, or a key
without values evaluated as a non-match or an unconditional match, so a
malformed Deny could be skipped and a malformed Allow could grant access.
Validate each operator and its values and return 500 instead. Numeric and
boolean condition values are now compared rather than dropped.
* fix(iam): leave scalar condition values to #5086
The numeric and boolean condition-value parsing moves to its own pull
request, together with the numeric and date comparison fixes it needs.
* docs: update the IAM operation count in the Service Matrix
Follow-up to #5003. The webhook verified a long-term key through
findSecretKeyInAnyAccount, and EksWorkerAuthentication then called
resolveAccountId to learn which account owns it. On a key from another
account both scanned every account's keys, so one token review scanned
twice.
findSecretKeyInAnyAccount now returns the secret with the account that
owns it, and EksTokenValidator carries that account on the VerifiedToken.
EksWorkerAuthentication compares it with the cluster's account instead
of looking the key up again. The owner is the request's account when the
key is found there, the scanned account otherwise, and null for a
temporary key, whose session already records its account.
The same keys are accepted, and system:masters still goes only to
long-term keys of the cluster's account (or of the default account on
unscoped webhook paths). One case changes, in both directions: the
owner is now always the account whose stored secret verified the
signature. Before, a key ID stored in two accounts could verify against
one and be attributed to the other, because resolveAccountId took the
first match in scan order, so such a key could be admitted for the wrong
account or denied for the right one.
Co-authored-by: Robin Baeckman <27041454+RobinBaeckman@users.noreply.github.com>
* fix(docker): pass the resolved TLS config to the Docker HTTP client
The client config carried TLS material from DOCKER_TLS_VERIFY/DOCKER_CERT_PATH or the active context, but the ApacheDockerHttpClient was built without it, so TLS daemons were spoken to in plain HTTP. The HTTP client is now built in a package-private newHttpClient that passes clientConfig.getSSLConfig(); a TLS-verify config with unreadable certificates now fails the build, which the test uses to observe that the SSL config is actually consumed.
Fixes#4608
* test(docker): use explicit types and imports in the TLS client tests
* feat(lambda): run durable functions with checkpoints, waits and step retries
Invoking a durable function starts a durable execution, through Invoke or through an ARN (EventBridge, Scheduler, function URLs, destinations). The function checkpoints through CheckpointDurableExecution and GetDurableExecutionState, and Floci re-invokes it when a wait or a step retry comes due. GetDurableExecution, GetDurableExecutionHistory, ListDurableExecutionsByFunction and StopDurableExecution read and stop executions. Timers are persisted deadlines fired by a background sweep, so an execution survives a restart. Callbacks and chained invokes are rejected at checkpoint time.
* fix(iam): authorize durable execution actions against the owning function
A durable execution route has no /functions/ segment, so its resource fell back to *. The function name now comes from the execution ARN in the path.
* fix(lambda): keep durable executions inside their account
The execution APIs took the account from the ARN in the path, so another account could read or stop an execution. An ARN of another account is now ResourceNotFoundException.
* fix(lambda): limit the error size of an EXECUTION checkpoint too
* fix(lambda): reject an EXECUTION close that carries the other result kind
AWS rejects SUCCEED with an Error and FAIL with a Payload on the EXECUTION operation, as it does for steps.
* fix(lambda): spend a durable wake-up when a failed invocation schedules its retry
* fix(lambda): keep a durable crash retry's backoff across a restart
* fix(lambda): bound the durable execution locks
A lock per execution ARN was kept forever, even for an ARN that did not exist. A fixed set of striped locks replaces it. Locks are never nested, so a shared stripe cannot deadlock.
* fix(lambda): accept PAUSED, PAUSING and DELETING as durable status filters
AWS accepts them and answers an empty list, since Floci never puts an execution in those states.
* fix(lambda): reject a non-finite durable list timestamp
* test(lambda): resume a durable execution from its JSON file after a restart
* fix(lambda): keep durable executions inside their region
An execution ARN of another region now answers ResourceNotFoundException "Function not found", as AWS does, instead of reaching the execution past the IAM check of the request region.
* fix(lambda): validate durable list parameters before an empty status filter answers
Statuses of only PAUSED, PAUSING or DELETING still checks MaxItems and Marker, as AWS does. The bad Marker message is "Invalid Marker".
* perf(lambda): skip the execution scan for a status filter that matches nothing
Statuses of only PAUSED, PAUSING or DELETING now checks MaxItems and Marker without listing the account's executions.
* test(lambda): drop durable tests that repeat other coverage
The in-memory restart test repeats the persistence test, and the Docker success case repeats the compat suite's checkpoint loop. The Docker test keeps the failure case.
* fix(lambda): re-attach a durable execution name only on the same version
AWS keeps execution names unique per function across versions. A sync Invoke of another version with the same name and payload is DurableExecutionAlreadyStartedException, not the existing execution.
* chore(lambda): simplify the durable execution engine
Drop stored fields nothing reads, share the unseen-operations and
page-cursor helpers, skip the name scan for a generated name, and save
an execution once per invocation instead of twice.
* fix(lambda): reject a non-integer durable MaxItems as AWS does
AWS answers MaxItems=x on the durable execution APIs with
SerializationException "'x' can not be converted to Integer".
* docs(lambda): list the durable execution size limits as not emulated
* fix(iam): authorize durable execution actions against the execution ARN
The durable execution actions take the durable execution resource,
function:name:version/durable-execution/name/id. A role allowed on
function:name:* may checkpoint, one allowed only on the unqualified
function ARN is denied.
* fix(lambda): answer an unknown durable execution on checkpoint as a bad token
CheckpointDurableExecution and GetDurableExecutionState do not model
ResourceNotFoundException. AWS answers InvalidParameterValueException:
"Checkpoint token is not valid for the durable execution ARN" for a
token minted for another execution, "Invalid checkpoint token" otherwise.
* fix(lambda): replay a durable checkpoint retried with the same ClientToken
AWS answers a retry of the last checkpoint with the same ClientToken
with the same state and a usable next token, even though the request
token is spent. A different ClientToken, a retry after the next
checkpoint, or a retry of the checkpoint that closed the execution is
still an invalid checkpoint token.
* fix(lambda): validate durable list filters as AWS does
ListDurableExecutionsByFunction takes one status at most and answers
more with InvalidParameterValueException "Cannot filter by more than one
status". An unreadable StartedAfter or StartedBefore is
SerializationException "'<value>' can not be converted to Date", and a
plain date is accepted. Type errors come first, then MaxItems and status
values, then the single-status rule, then the function lookup.
* docs(lambda): note the history IncludeExecutionData default
* fix(lambda): report durable MaxItems and Statuses errors as AWS does
AWS puts an invalid MaxItems and an invalid Statuses into one
ValidationException ("2 validation errors detected: ...; ..."), MaxItems
first. A negative MaxItems must be greater than or equal to 0. MaxItems
is checked before the execution or function is looked up.
* refactor(lambda): share one durable execution ARN pattern with IAM
IAM and the durable execution service now recognize an execution ARN
with the same pattern, the one AWS validates it with.
* fix(lambda): replay a durable checkpoint answer as it was sent
On AWS a retry with the same ClientToken returns the operations as the
first answer had them: a WAIT stays STARTED in the retry even after it
has elapsed, while a fresh checkpoint reports it SUCCEEDED.
* feat(eks): apply nodegroup labels, taints and capacity type to the node
* fix(eks): address review feedback on nodegroup metadata injection
* fix(docs): sync IAM operation count in service matrix
* fix(eks): use single string literals without concatenation in log messages
* chore(eks): resolve phantom nodegroup review finding
* docs(eks): document CAPACITY_BLOCK capacity type for nodegroups
* feat(cloudformation): provision AWS::Transfer::User
Adds the user type to TransferCfnProvisioner with in-place update and replacement.
* Fix#4655
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
* docs: count the IAM SSH public key operations in the service matrix
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
---------
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
* feat(eventbridge): add ApiDestination target support (#4702)
- Add ApiDestination, ApiDestinationState, and HttpParameters models
- Implement CRUD operations for API destinations in EventBridgeService
- Add CreateApiDestination, DescribeApiDestination, UpdateApiDestination, DeleteApiDestination, ListApiDestinations actions in EventBridgeHandler
- Support HttpParameters on targets in PutTargets and ListTargetsByRule
- Implement HTTP delivery to API destinations in EventBridgeInvoker with connection auth and SSRF protection
- Add CloudFormation provisioning for AWS::Events::ApiDestination in EventsCfnProvisioner
- Update docs and tests
* fix(eventbridge): harden ApiDestination delivery and CloudFormation lifecycle
- Throw on delivery failure so TargetDispatcher retries 429/5xx and connection
errors and dead-letters permanent failures
- Enforce InvocationRateLimitPerSecond per destination
- Run the OAuth client-credentials exchange for OAUTH_CLIENT_CREDENTIALS connections
- Reject non-http(s) endpoints and wildcard hosts, encode path parameter values,
keep the query before any fragment, and stop logging URLs that may carry secrets
- Resolve destination and connection ARNs only when they match the stored ARN
- Validate every UpdateApiDestination field before applying any of them
- Paginate ListApiDestinations with Limit and NextToken
- Keep HttpParameters on AWS::Events::Rule targets and roll back
AWS::Events::ApiDestination updates from a snapshot
* fix(eventbridge): keep connection credentials authoritative and require a valid endpoint host
- Apply target headers and query parameters before the connection's so a target
cannot override its credentials, and replace header names that differ only by case
- Reject endpoints without a parsed host (for example https://:8080/path)
- Sweep stale rate-limit windows once the map grows
* fix(eventbridge): make the ApiDestination rate limit check atomic
Count permits inside ConcurrentHashMap.compute on an immutable window so the
stale-window sweep can no longer remove a window another delivery is using,
which let concurrent deliveries exceed InvocationRateLimitPerSecond.
* refactor(eventbridge): drop the in-service InMemoryStorage constructor and tidy tests
- Remove the compatibility constructor that instantiated InMemoryStorage inside
EventBridgeService; tests pass the ApiDestination store explicitly
- Import classes instead of qualifying them inline in the ApiDestination integration test
- Surface worker failures in the concurrent rate limit test by checking each Future
* docs: correct the EventBridge and IAM operation counts in the service matrix
* test(iot): cover custom authorizer management against AWS
* feat(iot): manage custom authorizers
Serve CreateAuthorizer, DescribeAuthorizer, UpdateAuthorizer,
DeleteAuthorizer, ListAuthorizers, SetDefaultAuthorizer,
DescribeDefaultAuthorizer and ClearDefaultAuthorizer on the AWS REST-JSON
paths, with the validation, messages, defaults, key merge, delete rules,
ordering and paging measured against AWS. Authorizer ARNs are tagged
through the existing IoT tag routes. Authorizers are stored, not evaluated.
Closes#4821
* fix(iot): read authorizer public key PEM line by line like AWS
A key without its PEM header line, or with an indented or inline header, is not a valid RSA key, a header without its end line cannot convert, and text before the header is skipped, as measured on AWS.
* fix(iot): validate authorizer names like AWS, SetDefaultAuthorizer included
A name member reports every violated constraint in one message, the pattern first, and a missing one must not be null. SetDefaultAuthorizer validates authorizerName before the lookup, as measured on AWS.
* fix(iot): validate the authorizer name on describe, update and delete like AWS
DescribeAuthorizer, UpdateAuthorizer and DeleteAuthorizer now reject a malformed or overlong authorizerName path member with AWS's 400 InvalidRequestException messages instead of a 404, measured on eu-west-1.
* fix(iot): route tag calls to the authorizer service on the ARN resource
IotTagHandler matched ":authorizer/" anywhere in the ARN, so an ARN with that text outside the resource field reached the authorizer service and failed with a 500. It now routes on the parsed resource prefix, and any other IoT ARN goes through IotService as before.
* feat(cognito): provision user group attachments
Serve AWS::Cognito::UserPoolUserToGroupAttachment through a new per-service
provisioner. Ref is <UserPoolId>|<GroupName>|<Username>, as measured on AWS.
Every property is createOnly, so a change replaces the membership and the old
one is removed in cleanup; delete tolerates a membership that is already gone.
* test(cognito): read stack outputs with XmlPath
* fix(cognito): attach users to groups from their recorded parts, as AWS does
* test(cognito): cover pipe group names and alias updates, delete seeded pools
* fix(cognito): remove an unrecorded attachment named unambiguously by its id
* test(cognito): pin that a failed rollback keeps the replacement's recorded parts
* fix(docker): finish a failed tar copy's writer before retrying
* test(docker): wait for each attempt's tar writer instead of racing it
Restores RetryingTarCopier.copyStreamed to its state on main: joining a failed attempt's writer could block on a writer stalled outside the pipe.
* docs(cloudformation): note the no-op delete of a short membership id
The class Javadoc said an unrecorded id that does not split into exactly three parts is refused. An id of fewer parts names no membership and its delete does nothing; only more parts is refused.
* fix(cloudformation): keep __Floci attributes out of Fn::GetAtt
Provisioners keep private state under __Floci attribute keys. Fn::GetAtt and Fn::Sub resolved them like any attribute, so a template could read, for example, an attachment's recorded pool, group and username, while AWS resolves no such attribute. They now resolve as unresolved, like any attribute a type does not have.
* docs(cloudformation): note that custom resource Data keys under __Floci are reserved
* feat(redshift-serverless): add running workgroups and Data API WorkgroupName support
Redshift Serverless workgroups get full CRUD (Create/Get/List/Update/Delete),
tagging by ARN, and the AWS::RedshiftServerless::Namespace and ::Workgroup
CloudFormation types with dotted Fn::GetAtt keys taken from the registry
schema. A namespace has at most one workgroup, and DeleteNamespace is refused
while one is attached.
Each workgroup runs a PostgreSQL container behind an authenticating proxy,
sharing the managers and the proxy port pool with provisioned Redshift. Add
GetCredentials, accept WorkgroupName (name or ARN) in the Redshift Data API,
and push a changed namespace adminUserPassword down to the running backend.
The runtime is re-attached when Floci restarts.
Not covered: snapshots, usage limits, endpoint access, and COPY/UNLOAD/Spectrum
on workgroups.
* fix(redshift-serverless): stop the runtime when workgroup creation fails after it started
If persisting the workgroup record failed after the container and proxy were
already running, the runtime was left behind with no record. createWorkgroup
now stops it (best effort) and releases the endpoint on the failure path.
Fix the CloudFormation error for a NamespaceName change: suggesting a new
WorkgroupName can never succeed because a namespace holds only one workgroup.
* fix(redshift-serverless): reset omitted CloudFormation properties and order startup observers
When UpdateStack drops a property from the template, the provisioner now sends
its default (BaseCapacity, EnhancedVpcRouting, PubliclyAccessible, Port,
TrackName, PricePerformanceTarget) instead of keeping the stored value, which
matches CloudFormation semantics. MaxCapacity has no default and keeps its
stored value.
Give the workgroup StartupEvent observer a @Priority after RedshiftService so
every persisted cluster has reserved its proxy port before workgroups restore
theirs.
Also remove an unused import and move DEFAULT_DATABASE to the top of
RedshiftContainerManager.
* fix(redshift-serverless): address review findings on password rotation and namespace updates
- Roll the backend password back when a rotation cannot be completed or stored, and apply
it last so validation failures never leave the backend ahead of the stored namespace.
- Keep a workgroup endpoint reserved when its runtime cannot be stopped during clear().
- Reject an in-place DbName change in CloudFormation, since it is fixed at creation.
- Reset an omitted KmsKeyId and DefaultIamRoleArn on CloudFormation updates.
* fix(redshift-serverless): keep rollback failures from masking errors and drop stale GetAtt role
- Do not reset the proxy password when the role restore fails, and attach restore
failures to the original exception instead of replacing it.
- Remove Namespace.DefaultIamRoleArn from the stack resource when an update no
longer declares a default role.
* docs: correct the Redshift Serverless operation count in the service matrix
* fix(redshift-serverless): expose Workgroup.ConfigParameters through Fn::GetAtt
* fix(redshift-serverless): parse ConfigParameters resolved from a GetAtt attribute
* docs(redshift-serverless): list every unsupported operation group
* fix(s3): reject a malformed aws-chunked upload instead of storing its framing
When an aws-chunked body could not be decoded, the decoder logged the
failure and returned the raw body, so PutObject and UploadPart stored
the chunk headers and signatures as the object's content. A body that
ended before its final zero-length chunk was silently truncated.
A request whose x-amz-content-sha256 declares a streaming payload is
always framed, so a body that does not decode, or that ends before its
final chunk, now fails with a 400 IncompleteBody and nothing is stored.
The SigV4a (ECDSA) streaming variants count as streaming payloads too.
A Content-Encoding naming aws-chunked without that declaration does not
guarantee framing, so a body that does not decode is still kept as
sent, rather than decoding to an empty object as before.
* fix(s3): require each chunk's line break and the closing line of a streaming upload
A streaming body whose chunk data was not followed by a line break, or
that ended right after its final chunk line or partway through its
trailer, was still accepted and stored. For a request that declares a
streaming payload, each chunk's data must now be followed by a line
break and the body must reach the empty line that ends it; otherwise
the upload fails with a 400 IncompleteBody.
* fix(eventbridge): make UpdateArchive a partial update
UpdateArchive reset the event pattern to null and the retention to 0
whenever a request omitted them. On AWS an omitted Description,
EventPattern or RetentionDays keeps the stored value, an empty
Description or EventPattern clears it, and RetentionDays 0 sets 0.
* feat(eventbridge): provision AWS::Events::Archive
CloudFormation stubbed AWS::Events::Archive with a fake ARN and created
nothing. EventsArchiveCfnProvisioner now creates a real archive through
EventBridgeService.
Ref is the archive name and Fn::GetAtt Arn the archive ARN. ArchiveName
is generated when omitted and kept across updates. Description,
EventPattern and RetentionDays update in place, sending only the
properties the template declares, and a failed stack update restores
them from a snapshot. Changing SourceArn or ArchiveName, or dropping an
explicit name, replaces the archive and deletes the displaced one once
the update commits. A replacement that keeps an explicit name is refused
with CloudFormation's custom-named resource error before any change.
KmsKeyIdentifier is ignored.
Closes#4815
* fix(eventbridge): reject an archive source that is not an existing bus of the account and region
CreateArchive now checks EventSourceArn as AWS does, before the archive
name: a bus in another account fails with AccessDeniedException, one in
another region with ValidationException, and a bus that does not exist
with ResourceNotFoundException. The AWS::Events::Archive provisioner goes
through the same service call, so a stack can no longer reach
CREATE_COMPLETE with an archive that could never capture an event.
* test(eventbridge): roll back an in-place archive update when a later resource fails
A stack update changes an archive's description and retention in place,
then fails on a second archive whose source bus does not exist. The stack
ends UPDATE_ROLLBACK_COMPLETE, DescribeArchive shows the original values
and the second archive was never created. The golden case passes on AWS
and is mirrored in the Floci integration test.
* fix(cloudformation): refuse declaring a generated archive name explicitly
Adding ArchiveName with the name CloudFormation generated for an unnamed
archive asks AWS to replace the archive under the same custom name, which
it refuses with the custom-named resource error and rolls the stack back.
Floci took the in-place path and reached UPDATE_COMPLETE; the existing
refusal now also fires when the previous name was generated.
* fix(cloudformation): provision a real archive when updating a stack whose archive was stubbed
A stack created before AWS::Events::Archive had a provisioner holds the dispatcher's stub, whose physical id names no archive. Its next update now creates the archive instead of failing to describe that id, and the stub id is left to the replacement cleanup.
* fix(eventbridge): validate archive description, pattern and retention as CreateArchive and UpdateArchive do
CreateArchive and UpdateArchive now reject a description over 512 characters, an event pattern over 4096 characters and a negative retention with the ValidationException AWS returns, all violations reported together. The check runs before the source, existence and duplicate checks, so it also fails the AWS::Events::Archive resource in a stack.
* feat(eks): stop shipping a default storage class in clusters
* test(eks): verify coredns rollout status and preserve cluster storage on restore
* test(eks): assert storage class absence after coredns rollout completes
* docs(eks): clarify stock storage class and provisioner behavior
* fix(stepfunctions): resolve a Lambda task's function ARN in its own account and region
A Lambda Task given a full function ARN was resolved by bare name in the
state machine's account and region, so an ARN in another region or account
failed as not found, or invoked a same-named function of the state machine's.
The ARN's account and region are now used: the legacy form (Resource is the
function ARN) invokes the function where the ARN says, and an ARN in another
account reaches that account's function. The optimized lambda:invoke
integration calls Lambda's Invoke in the state machine's region, which
refuses an ARN from another region, so that case fails the task with
Lambda.InvalidParameterValueException, Lambda's own error and message.
* fix(stepfunctions): refuse a cross-account Lambda task under IAM enforcement
Resolving a function ARN in its own account let a state machine invoke
another account's function. Floci evaluates no Lambda resource policy, and
under IAM enforcement its own Invoke API refuses such a call because no
resource-based policy allows it, so a Lambda task now fails the same way
(Lambda.AccessDeniedException) when enforcement is on. With enforcement off,
the default, the function is still invoked.
* test(sqs): make the region isolation case fail when SQS leaks queues across regions
RegionIsolationIntegrationTest created the same queue name in two regions
and then listed only us-east-1, so it passed even if ListQueues ignored the
region. It now creates a queue that exists only in each region plus one name
in both, checks that each region's ListQueues shows its own queues and not
the other's, and deletes all four.
* test(sqs): delete the region isolation queues even when an assertion fails
Deleting the current version in a versioned bucket made the previous
version current by reading its whole file into a byte array and writing
it out again as the current file, under the bucket lock. A version over
2 GiB could not be read that way, and because the new current version's
metadata was published before the file, the failure left the key pointing
at the promoted version while its current file still held the deleted
version's bytes.
The current file is now a hard link to the promoted version's file, the
way a versioned multipart upload already stores its current file, so a
version of any size is promoted without being read; in memory both
entries share the version's array, as they already did. The body is also
put in place before the metadata is published, the order PutObject
writes in, so a concurrent GET can no longer pair the promoted version
with the deleted version's bytes.
UploadSSHPublicKey, GetSSHPublicKey, ListSSHPublicKeys, UpdateSSHPublicKey
and DeleteSSHPublicKey, stored per user with the documented quota of five.
AWS accepts the body in ssh-rsa form or as PEM, so both are read, and the
body is kept exactly as it arrived: a caller that uploaded PEM gets that PEM
back rather than a re-encoding. GetSSHPublicKey converts, because Encoding is
required and decides the form of the response.
Fingerprint is the MD5 of the OpenSSH blob, confirmed by reproducing the
worked example in the IAM API Reference rather than assumed. It is not the
digest EC2 reports for the same key, which is taken over the DER: both are
sixteen bytes of colon hex, so the wrong one would look right.
The two rejection errors are kept apart the way the model separates them. A
body in neither accepted encoding is UnrecognizedPublicKeyEncoding; one in a
recognised encoding that will not parse, or that carries a key type other
than ssh-rsa, is InvalidPublicKey. An OpenSSH line is recognised by its
key-type token rather than by whether part of it base64-decodes, since a
short word often does.
DuplicateSSHPublicKey is per user, unlike the account-wide rule for signing
certificates, and compares fingerprints so the same key in the other
encoding still counts. A key blocks DeleteUser until removed and follows the
user across an UpdateUser rename, both under a lock taken in the same order
DeleteUser takes it.
* chore: replace var with explicit types in src/main files no open PR touches
* chore: replace var with explicit types in src/test files no open PR touches
* chore: replace var with explicit types in sdk-test-java files no open PR touches
The data plane proxy overwrote repeated Accept headers, so only the last one reached registry:2.
* Fix#4869
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
* feat(redshift): materialize Glue external tables into PostgreSQL
Add ExternalTableMaterializer, which loads a Glue-backed external table
into the cluster's PostgreSQL through a staging table, plus
SpectrumCatalogResolver (Glue binding first, phase-one catalog as a
fallback) and SpectrumGlueCsvAdapter (simple CSV tables keep the
streaming path and need no floci-duck sidecar).
The bound IAM role is enforced for every S3 object read, including
Iceberg metadata, manifests and data files, before DuckDB sees them.
SpectrumS3Reader now reads through the role as well, so a phase-one
external schema needs a real role associated with the cluster.
Spectrum semantics: hidden files and folder markers are ignored, a
partitioned table without registered partitions returns no rows, and a
sized string value wider than its column in bytes becomes NULL.
Also: PartitionProjection accepts IN lists for injected columns and
checks each table alias, S3Service hides the Spectrum scratch bucket from
ListBuckets, S3TransferException becomes public, and
FLOCI_SERVICES_REDSHIFT_SPECTRUM_MAX_ROWS is added.
* fix(redshift): harden external table loads against review findings
- A session outside a transaction waits for a slow load instead of
failing after 30 seconds; only a session in a transaction keeps the
timeout, since it can hold a PostgreSQL lock the Java lock cannot see.
- A missing S3 bucket is reported as XX000, not as access denied.
- A load failure goes to the log with its cause and returns a generic
message, because the cause can carry DuckDB request text.
- The partition fingerprint includes input format and SerDe, so a format
change at the same location reloads the table.
- A partition value wider than its sized string key becomes NULL, as a
data column does, instead of failing the whole load.
- The first load of an account removes scratch objects left by a JVM
that died mid-load, keeping those younger than an hour.
- Document why the phase-one reader enforces the role without the
cluster association check.
* fix(redshift): use a real IAM role in the Spectrum compat test
The external schema now enforces its IAM role, so the compat test needs a
role that exists, trusts redshift.amazonaws.com and is associated with the
cluster. Create it through the IAM SDK client, pass it to CreateCluster and
delete it in the cleanup.
* fix(redshift): address review findings on the external table materializer
- PartitionProjection: a table name must end at an identifier boundary, comma
separated sources are checked like FROM and JOIN sources, an unqualified
injected column is accepted when exactly one source declares it, and a
constant may be wrapped in parentheses.
- The partition fingerprint covers the whole descriptor (columns, formats,
SerDe and parameters), and an Iceberg table is read on every query because
its snapshot can change without any visible change to the Glue table.
- A transactional load that keeps the committed columns keeps the schema
signature, so a view that depends on the table can still be refilled.
- Files under a hidden folder such as _temporary are ignored, not only
hidden file names.
- The scratch bucket is told apart from a user bucket of the same name by a
tag: a user bucket is listed, never written to, and never swept.
- Drop the SPECTRUM_MAX_ROWS row from the docs until routing makes the cap
reachable.
* fix(redshift): verify slow-load wait with timeout
* feat(apigatewayv2): implement UpdateVpcLink and VPC link tagging
* feat(cloudformation): provision AWS::ApiGatewayV2::VpcLink
* fix(cloudformation): keep VPC link and integration connection state on updates
* fix(cloudformation): restore the integration connection when its own update fails
ListTenants now honours Filter.TENANT_NAME_CONTAINS and Filter.SENDING_STATUS
the way SES v2 matches them, with the validation messages and precedence SES
answers: the filter's keys and values, then the page size and an empty token,
then the filter's values. The filter is applied before the page is cut, and a
token continues only the filter it was taken with.
* fix(dynamodb): size() of a Binary counts its bytes, not its base64 text
size() on a B attribute returned the length of the base64 text, so a
3-byte value had size 4 and conditions and filters such as
size(b) = :three gave the wrong answer. It now decodes the value first.
begins_with on binaries now decodes through the same helper, so a value
that is not base64 fails with a 400 SerializationException, as the
binary comparisons already did, instead of an uncaught 500.
* test(dynamodb): cover begins_with matching a valid binary prefix
* fix(athena): accept IN lists and check each table in the injected-partition filter
The injected-partition check treated any mention of the column in a WHERE
clause as a filter, and it matched a table by name prefix.
- Accept col IN ('a', 'b'): Athena allows IN lists for injected columns, up to
1,000 values.
- Check every source table on its own alias, so a filter on one table cannot
stand in for another table's filter. A comma separated source counts like a
FROM or JOIN source, and a table name must end at an identifier boundary so
events_daily is not a reference to events.
- Accept an unqualified column when exactly one source in the query declares it.
- Accept a constant wrapped in parentheses, and reject a computed value such as
'abc' || suffix, which is not a static value.
- NATURAL, LATERAL and TABLESAMPLE after a table name are not taken for its alias.
* fix(athena): address review feedback for injected partition projection filter
- Support comma-separated sources after JOIN ... ON or USING clauses
- Scope ambiguous column check to each subquery FROM clause
- Preserve quoted aliases and aliases specified with AS keyword
- Accept static literals wrapped in arbitrary balanced parentheses
- Enforce the 1,000 item limit on IN lists according to Athena spec
* fix(athena): mask subqueries in where clause to isolate partition filter scopes
* fix(athena): accept constant expressions in injected partition filter
* fix(athena): exclude function invocations and cast types from source column matching
* fix(athena): reject qualified CTE and source column references in partition filter
* fix(athena): allow multi-part function calls in static partition filter