Commit Graph
762 Commits
Author SHA1 Message Date
Simone Primarosa 31a19df6f5 feat(eks): enable IMDS and link-local metadata access from pod network (#4039)
Pods running without hostNetwork: true run in isolated network namespaces
managed by the CNI plugin (e.g. flannel in k3s). When pods send requests
to link-local addresses such as IMDS (169.254.169.254:80), the packets reach
the host node network namespace where CNI portmap installed
-A PREROUTING -m addrtype --dst-type LOCAL -j CNI-HOSTPORT-DNAT.
Because 169.254.169.254 is assigned to lo, the kernel evaluates its addrtype
as LOCAL, causing non-host-network pods to misroute or drop link-local traffic
if an ingress controller binds the same port.

This introduces EksPodNetworkRouting and an opt-in configuration setting
floci.services.eks.imds-pod-network (defaulting to false to preserve default
pod network isolation). When enabled alongside floci.services.eks.imds,
DNAT iptables rules are programmed in a dedicated FLOCI-LINK-LOCAL chain
inserted at rule 1 of PREROUTING. Requests originating from the cluster pod CIDR
targeting configured link-local endpoints (such as IMDS at 169.254.169.254:80,
and extensible for Pod Identity at 169.254.170.23:80) are explicitly DNATed
to the node's loopback listener, preempting CNI-HOSTPORT-DNAT without
conflicting with CNI portmap or flannel routing.

LinkLocalEndpoint strictly validates IPv4 literal format to reject non-IPs
or malformed strings. Rules are idempotent and degrade gracefully if iptables
configuration fails, ensuring cluster startup is never aborted.
2026-09-21 16:04:20 -04:00
Niels Kootstra c0ed88d647 fix(scheduler): deliver the default event to targets without Input (#4018)
* fix(scheduler): deliver the default event to targets without Input

Templated targets without Input received "{}" instead of the default
"Scheduled Event" notification that EventBridge Scheduler delivers, so
consumers that switch on detail-type or source never matched. Only SQS
targets had a dead-letter body in the shape of the target service's API;
every other target's body was the raw payload. CreateSchedule and
UpdateSchedule also accepted a non-JSON Input for the templated Lambda,
Step Functions, and EventBridge targets that the API reference requires
to be well-formed JSON.

Deliver the default notification (version, id, detail-type, source,
account, time, region, resources, and detail as the string "{}") to
every templated target whose Input is absent, with an id that is stable
per occurrence so retries and the dead-letter body carry the same event.
Materialize dead-letter bodies with the request fields of Lambda Invoke,
SNS Publish, Step Functions StartExecution, EventBridge PutEvents, and
ECS RunTask, next to the existing SQS SendMessage shape. Reject a
non-JSON Input for Lambda, Step Functions, and EventBridge targets with
a ValidationException, while SQS, SNS, and universal targets keep
accepting any text.

The invoker now takes the schedule and the occurrence time, since the
default event needs the schedule ARN, account, region, and time. RoleArn
is still not consulted at delivery: no Floci delivery path evaluates a
role's permissions, so that is left for a platform-wide follow-up.

Refs #3951

* fix(scheduler): reject blank and trailing-token Input for JSON targets

CreateSchedule and UpdateSchedule checked Input with readTree, which
accepts text after the JSON value ("{} garbage") and returns a missing
node for a blank value, so both were stored for Lambda, Step Functions,
and EventBridge targets. Parse with FAIL_ON_TRAILING_TOKENS and reject a
blank Input, which the API reference gives a minimum length of 1.

Import the scheduler model's AwsVpcConfiguration in ScheduleInvoker
instead of qualifying it inline. The ECS model's type of the same name
stays qualified, with a comment naming the clash.
2026-09-21 15:14:53 -04:00
Simone Primarosa 6a3380d13a feat(eks): implement cluster addon management (#4038)
* feat(eks): implement cluster addon management

* fix(eks): address addon management review comments

* fix(eks): handle uncataloged k8s versions and association validation ordering
2026-09-21 14:18:07 -04:00
Simone Primarosa 49d28fb685 feat(eks): support native kubernetes versions and network cidrs (#4064)
Support standard AWS EKS Kubernetes versions (1.28 and above) with strict
1.xx validation format, mapped to stable k3s images when requested. Fall
back to default-image (with 1.29 cluster version metadata) when no version
is specified. Support service IPv4 CIDR validation (RFC 1918 containment,
/12 to /24 prefix, non-overlapping with VPC CIDR) with automatic fallback
to alternative CIDR, and preserve standard k3s pod CIDR to avoid collisions
with Docker networks.
2026-09-21 14:15:06 -04:00
Daniël van Ziel 4618d633e0 fix(textract): retain async results until expiry (#3965) 2026-09-21 14:11:16 -04:00
Abhigya ace99b34b0 feat(ecs): service members, service role and capacity provider management (#4037)
CreateService and UpdateService carry the members AWS documents on the Service
shape, rather than dropping them: deploymentConfiguration, serviceRegistries,
platformVersion and platformFamily, enableExecuteCommand, enableECSManagedTags,
propagateTags, healthCheckGracePeriodSeconds, the role, and anything else the
request sent, which round-trips verbatim. A client that reads back what it wrote
sees no drift.

UpdateService rolls a new deployment only for the members UpdateService
documents as starting new tasks, a changed network configuration, load balancers,
service registries or platformVersion, and applies the rest in place. An update
replaces only the members it names, so a service created with
placementConstraints and updated with placementStrategy alone keeps its
constraints; a member the update does name is replaced outright, which is how an
empty array clears one.

A service role is accepted only where AWS accepts one: with a load balancer, and
not with awsvpc networking.

Capacity provider management follows the documented rules. A name is at most 255
letters, numbers, underscores and hyphens and is never prefixed with aws, ecs or
fargate. A provider reports its ARN, its type and the autoScalingGroupProvider it
was created with. DescribeCapacityProviders gates tags behind include: ["TAGS"]
and reports an unresolvable name as a MISSING failure. DeleteCapacityProvider
refuses the reserved FARGATE and FARGATE_SPOT providers, one still attached to a
cluster and one still named in an active service's capacity provider strategy,
and reports the deleted one through updateStatus so the SDK is never handed an
unmappable CapacityProviderStatus.

Split out of the Fargate launch surface PR, which keeps the capacity provider
strategy distribution and the service task launch.
2026-09-21 11:58:55 -04:00
Vũ Thế Huy d227ef9195 feat(redshift): add ModifyClusterIamRoles, DescribeClusterVersions and DescribeOrderableClusterOptions (#3990)
ModifyClusterIamRoles adds and removes the IAM roles associated with a
cluster. The change is pushed to the running auth proxy, so COPY and
UNLOAD on new connections authorize against the updated role list.
Cluster IamRoles now report ApplyStatus in-sync.

DescribeClusterVersions and DescribeOrderableClusterOptions return static
data so IaC providers can validate node types before creating a cluster.
2026-09-21 11:32:09 -04:00
XuJian 12cad79616 feat(rds): support instance snapshot lifecycle operations (#4066) 2026-09-21 09:48:57 -04:00
Priamo Germosen 847ad256f2 fix(lambda): resolve hot-reload paths before checking the allow-list (#4053)
Normalize the hot-reload S3Key and compare it against the allow-list by directory instead of by string prefix, so dot-dot segments and sibling directories no longer pass. Store the normalized path, reject a colon in it, and warn at startup when hot-reload runs without an allow-list.
2026-09-21 07:53:07 -05:00
Matheus André db9bd692cb docs(cognito): drop ADMIN_USER_SRP_AUTH from the supported AuthFlow list (#4028)
The value does not exist in AWS: botocore's AuthFlowType enum has no
ADMIN_USER_SRP_AUTH member, so no SDK can send it. Advertising it invites
templates and client calls that real AWS rejects. The case label in
CognitoAuthFlowHandler stays as tolerance.

Closes #3996
2026-09-21 08:45:38 -04:00
vamsiakandVamsi Akavarapu 25a74be198 fix(stepfunctions): preserve Scheduler task timestamps (#4056)
Co-authored-by: Vamsi Akavarapu <16164447+vamsiak@users.noreply.github.com>
2026-09-21 08:30:44 -04:00
Abhigya bf1152e144 feat(ecs): complete the fargate launch surface (#4017)
Floci accepted a Fargate task definition and ran it, but most of the
launch surface was dropped on the way through: members that AWS echoes
back went missing from responses, launch type resolution never validated
what it resolved, and the runtime ignored the sizing the task asked for.

Task definitions. A definition round-trips whole. Members that change
behaviour are typed (ephemeralStorage, dependsOn, environmentFiles, port
mapping name / appProtocol / containerPortRange, pidMode, ipcMode and the
container-level members the parser used to drop); members Floci does not
act on go through EcsJsonPassthrough, so an unimplemented volume
configuration comes back as it was sent rather than vanishing.
compatibilities is derived from the definition rather than echoed from
requiresCompatibilities, requiresAttributes names the capabilities the
definition needs, and a revision carries its registeredAt,
deregisteredAt and deleteRequestedAt through the ACTIVE / INACTIVE /
DELETE_IN_PROGRESS lifecycle.

Validation. Fargate task sizes are validated per CPU architecture and
operating system family, ephemeral storage against its 21-200 GiB range,
container dependencies for unknown names and cycles, and the parameters
Fargate does not support are rejected at registration with the exception
type AWS documents for them, ClientException; the message text is Floci's,
since AWS does not document the wording. Enum-typed members are validated
at parse time and raise InvalidParameterException instead of being
treated as absent, and
tag cardinality and character limits are enforced across the operations
that take tags.

Launch. capacityProviderStrategy is distributed across its providers the
way ECS distributes it, base first and the remainder by weight, with the
cluster's default strategy applying when a request carries neither it nor
a launch type. The strategy is validated against the bounds the ECS model
gives it: at most 20 providers, weight 0 to 1,000, base 0 to 100,000, one
base per strategy, and at least one provider of non-zero weight when a
strategy names more than one, since a provider of weight 0 places nothing
beyond its base. A task's CPU and memory reach the container, an awsvpc
task gets an ENI per task and releases it when it stops, container
dependencies are ordered with cycle detection, and mock mode reports
per-container detail so a client running without Docker sees the same
shape. The ENI allocation reaches into EC2, whose InvalidSubnetID.NotFound
and InvalidGroup.NotFound are not in RunTask's error list, so an unknown
subnet or security group is reported as the InvalidParameterException AWS
returns.

Verified against the AWS SDK for Java v2 and the AWS ECS API reference.
Adds EcsFargateTaskIntegrationTest, EcsFargateTaskDefinitionIntegrationTest
and EcsFargateEdgeCaseIntegrationTest, plus an SDK-based EcsFargateTest in
the compatibility suite.
2026-09-20 22:38:32 -04:00
Simone Primarosa 7777a97de9 fix(ecr): serve the registry data plane over TLS (#4040)
- Update ECR host routing regex to support <account>.dkr.ecr.<region>.localhost.floci.io
- Populate regional wildcard SANs (*.dkr.ecr.<region>.localhost.floci.io) for all advertised AWS regions
- Add unit tests for hostname matching, malformed host rejection, immutable tag mutability over TLS, and certificate SAN enumeration
- Add Docker integration test verifying end-to-end TLS image push/pull with root CA verification and plain HTTP regression
- Update ECR and TLS user documentation
2026-09-20 22:11:46 -04:00
Priamo Germosen 9dab36197a fix(elbv2): block link-local and metadata targets (#4031)
Reject link-local and cloud instance-metadata addresses in RegisterTargets with InvalidTarget, and resolve target hosts once in the data plane and health checker, connecting to the checked address. Loopback and private ranges stay reachable so a load balancer can front a neighbouring container.
2026-09-20 21:11:27 -05:00
Priamo Germosen a12bf8c96c feat(cognito): enforce app client ExplicitAuthFlows in InitiateAuth and AdminInitiateAuth (#3974)
ExplicitAuthFlows was stored but never checked, so a client that only allowed SRP still accepted USER_PASSWORD_AUTH. When a client lists flows, reject any flow it does not enable with InvalidParameterException. Legacy values (USER_PASSWORD_AUTH, ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY) are honored, and clients created without a list stay ungated.

The Java compatibility test signed in with ADMIN_USER_PASSWORD_AUTH on a client that never enabled it; add ALLOW_ADMIN_USER_PASSWORD_AUTH to that client.
2026-09-20 21:04:55 -05:00
Austin W e14221fe62 feat(sagemaker): support GPU-backed training jobs (#4015)
* feat(sagemaker): support GPU-backed training jobs

ResourceConfig.InstanceType had no effect on the container Floci launched, so
a training job asking for ml.g5.xlarge ran on CPU. This maps the accelerator
half of an instance type onto a real device request, using the container GPU
primitive added in #3789.

On AWS the instance type *is* the hardware, so nothing is configurable. Floci
has one host with fixed cards, so serving a GPU instance type means
substituting a local device, and which devices may be lent out is a local
decision. The two halves are split accordingly:

- How many accelerators an ml.* type carries is a property of AWS, so it ships
  as data in sagemaker/instance-type-catalog.yaml, mirroring how
  Ec2InstanceTypeCatalog already carries vcpu and memory for EC2 types. It is
  kept separate from that catalog because ml.* is its own namespace and must
  never appear in DescribeInstanceTypes.
- Which of this machine's devices may be used is configuration, under
  floci.services.sagemaker.gpu: enabled, mode and devices.

Nothing changes unless enabled is set. It defaults to false, so existing
deployments keep launching CPU-only containers, including for GPU instance
types.

mode exists because daemons disagree on the wire form. It defaults to cdi:
Podman resolves only CDI and accepts a count request while attaching no device
(containers/podman#22645), so preferring CDI turns a misconfiguration into a
refused start rather than a job that quietly trains on CPU. That principle
drives the failure cases too: an unlisted GPU-family type, too few allowed
devices, an explicit mode with no devices, and InstanceCount above one all
fail with a FailureReason instead of falling back to CPU. A job that reports
Completed after training on the wrong hardware leaves an artifact that looks
legitimate, which is worse than an error.

Only the accelerator is substituted. An instance type also implies vCPU and
memory, which this does not emulate, consistent with the rest of the codebase:
EC2 instance types are metadata for DescribeInstanceTypes and never size a
container, RDS records DBInstanceClass without acting on it, and Lambda, ECS
and Batch apply limits only where an API supplies an explicit number.

Endpoint hosting is unchanged and still CPU-only; the resolver is a separate
bean so it can be reused there in a follow-up.

* test(sagemaker): cover the GPU refusal paths and the hardware path

The GPU feature shipped with unit coverage on the resolver only, so nothing
exercised it through CreateTrainingJob. These add both halves.

SageMakerGpuIntegrationTest runs everywhere. Every path that refuses a request
raises inside SageMakerGpuResolver, before the runner asks the daemon for
anything, and the removeIfExists above it already swallows a missing daemon, so
an unlisted GPU family, InstanceCount above one, and cdi mode with no configured
devices all reach their verdict on a plain runner. A fourth case pins the
contract that enabling the feature leaves CPU instance types alone.

SageMakerGpuDockerIntegrationTest is opt-in behind -Dgpu.integration.enabled,
matching ContainerGpuDockerIntegrationTest, because it needs hardware no CI
runner has. Verified against an RTX 5060 Ti through Podman 5.8.2: the container
saw exactly the device named in gpu.devices and not the host's other card.

The assertion is the container's exit code. nvidia-smi output is redirected
rather than piped: a pipeline exits with the status of its last command, so
'nvidia-smi -L | tee' reports success even when nvidia-smi cannot reach the
driver, which would be this test passing on a CPU container.

* fix(sagemaker): package the instance type catalog in the native image

SageMakerInstanceTypeCatalog reads sagemaker/instance-type-catalog.yaml through
a constant, which Quarkus's static resource analysis cannot follow, and no glob
under quarkus.native.resources.includes matched it. The file was therefore left
out of the native image, so enabling floci.services.sagemaker.gpu.enabled there
would have failed every training job at catalog load with 'Missing catalog
resource sagemaker/instance-type-catalog.yaml'. Ec2InstanceTypeCatalog reads its
own catalog the same way and ec2/*.yaml was already listed for exactly this
reason.

Nothing caught it: JVM tests resolve the file from src/main/resources, and the
hardware verification ran a JVM-mode image, so the gap existed only in the
artifact neither exercised.

NativeImageResourceIncludesTest closes that gap the way
NativeImageRuntimeInitializationTest closes the Random-in-the-image-heap one, by
moving a native-only failure into ordinary CI. It pairs each resource-path
constant passed to getResourceAsStream with the includes globs and fails when
none matches, skipping the IAM catalog that application.yml already documents as
build-time only.

* refactor(sagemaker): match EC2's case handling for instance types

isAcceleratorFamily folded case while gpuCount did not, so ML.G5.XLARGE was
answered as a GPU family and then reported as missing from the catalog, pointing
the caller at the wrong fix.

Ec2InstanceTypeCatalog is the precedent and normalizes in neither position:
find() looks the type up exactly and familyOf() splits on the first dot without
folding. AWS instance types are exact tokens. The repo folds case where AWS
defines a value as case-insensitive, such as ACM domain names, regions and
content types, which an instance type is not.

Dropping the fold rather than adding one to gpuCount keeps both halves agreeing
and keeps the pair behaving like EC2's.

Also drops the @DisplayName from SageMakerGpuResolverTest. The suite does not
use them anywhere else; the method name carries the intent.

* docs(sagemaker): clarify GPU training device reuse
2026-09-20 17:56:43 -04:00
Simone Primarosa 5a8ffd0272 feat(eks): implement pod identity association management (#4012)
* feat(eks): implement pod identity association management

* fix(eks): use instance SecureRandom for native image compatibility
2026-09-20 17:54:41 -04:00
David 628952ecf0 feat(glue): catalog resource policy and Data Catalog encryption settings (#4027)
* feat(glue): catalog resource policy and Data Catalog encryption settings

Add PutResourcePolicy, GetResourcePolicy, GetResourcePolicies and
DeleteResourcePolicy with the PolicyExistsCondition and
PolicyHashCondition checks Terraform relies on, and Get/Put
DataCatalogEncryptionSettings with the documented defaults.

ConnectionPasswordEncryption is applied rather than stored: while it is
on, CreateConnection and UpdateConnection encrypt PASSWORD and the four
Kafka passwords with the configured KMS key and keep them under their
documented ENCRYPTED_* names, so reads return the ciphertext and a
missing key is GlueEncryptionException.

Closes #4023

* docs(glue): cite the source for connection password encryption timing and drop an unsourced claim

The developer guide states that whether a password is encrypted was
decided when the connection was created or updated, which is the
source for connections keeping their plaintext; the missing-key error
is described as the error CreateConnection and UpdateConnection list
rather than as AWS behaviour. Also replaces a var in the compat test
with the explicit type.
2026-09-20 17:32:36 -04:00
Priamo Germosen 2d56d85e9e fix(cognito): accept USER_SRP_AUTH in AdminInitiateAuth (#3973)
AdminInitiateAuth documents USER_SRP_AUTH as a valid AuthFlow, but only the ADMIN_USER_SRP_AUTH spelling, which is not an AuthFlowType value, was mapped. Accept the SDK spelling alongside it.
2026-09-20 16:56:58 -04:00
vamsiakandVamsi Akavarapu 4c64f2e397 fix(stepfunctions): preserve object details in PutEvents (#4022)
Co-authored-by: Vamsi Akavarapu <16164447+vamsiak@users.noreply.github.com>
2026-09-20 16:39:03 -04:00
Simone Primarosa aede31c99c fix(eks): store and return encryptionConfig and logging on clusters (#4007)
* fix(eks): store and return encryptionConfig and logging on clusters

* docs(eks): retain access policies in unsupported features list
2026-09-20 12:40:42 -04:00
David a793776c1a feat(glue): Data Catalog connections (#3939)
* feat(glue): Data Catalog connections

Add CreateConnection, GetConnection, GetConnections, UpdateConnection,
DeleteConnection, BatchDeleteConnection and TestConnection. A connection
precedes every job and crawler in a Glue stack and Terraform reads it on
each plan, so without it a stack with an aws_glue_connection could not
get past its first plan.

Behaviour follows the Glue API reference: HidePassword omits PASSWORD
and ENCRYPTED_PASSWORD, UpdateConnection redefines the connection rather
than merging into it, ConnectionInput is validated against the documented
limits and enumerations, credentials are accepted and never returned,
and TestConnection accepts a well-formed request with an empty body
without opening a socket.

Closes #3938

* feat(glue): cap BatchDeleteConnection at 25 names and document HidePassword's scope

The API reference caps ConnectionNameList at 25 entries; a longer list
is now InvalidInputException. HidePassword's coverage of the Kafka
credential keys is not documented by AWS, so the docs page states that
Floci removes PASSWORD and ENCRYPTED_PASSWORD only.
2026-09-20 12:29:28 -04:00
vamsiakandVamsi Akavarapu 957542d172 feat(eventbridge): start Step Functions targets (#4006)
Co-authored-by: Vamsi Akavarapu <16164447+vamsiak@users.noreply.github.com>
2026-09-20 11:36:26 -04:00
Priamo Germosen 2697868e86 fix(codeartifact): populate resourceId/resourceType on error responses (#3977)
Every ConflictException, ResourceNotFoundException, and ServiceQuotaExceededException
the service threw carried a message only, but the wire model declares
resourceId/resourceType on all three, and the AWS SDK exposes them as typed
accessors. Populate them consistently using the resource's locally-unique name
(domain name, repository name, package version, or asset name) as resourceId.

Populating resourceId this way exposed a real crash: Map.of() rejects null
values, so any request missing a required identifier (domain, repository,
package, packageVersion, asset) turned what used to be a wrong-status
ResourceNotFoundException into a raw NullPointerException / HTTP 500. Fixed
by validating required identifiers up front (returning ValidationException,
matching AWS) and by making the extendedData-building helper itself
null-safe against a missing resourceId, so no single overlooked call site
can reintroduce a 500.
2026-09-20 09:13:46 -05:00
Priamo Germosen 8af15a71c4 fix(cloudformation): remove the login profile when deleting an IAM user (#3975)
Since login profiles became real state, DeleteUser returns DeleteConflict while one exists, so deleting a stack whose AWS::IAM::User was given a password out of band ended in DELETE_FAILED. The provisioner now deletes the login profile before the user, tolerating a user that has none. The resource-type table notes that the template LoginProfile and PermissionsBoundary properties are ignored.
2026-09-20 09:13:36 -05:00
Priamo Germosen 803d0ed0ed feat(cognito): support the USER_AUTH choice-based auth flow (#3930)
Implements InitiateAuth/AdminInitiateAuth AuthFlow=USER_AUTH (#3926):
USERNAME plus optional PREFERRED_CHALLENGE, offering PASSWORD,
PASSWORD_SRP, EMAIL_OTP and SMS_OTP depending on what the user has
(password hash, SRP verifier, verified email, verified phone). With
no PREFERRED_CHALLENGE, the response carries AvailableChallenges and
ChallengeName=SELECT_CHALLENGE; with one, it goes straight to that
challenge. RespondToAuthChallenge handles SELECT_CHALLENGE (ANSWER
names the chosen factor, and may already carry that factor's own
answer to complete in one round trip), PASSWORD, PASSWORD_SRP, and
EMAIL_OTP/SMS_OTP.

PASSWORD and PASSWORD_SRP reuse authenticateWithPassword and
handleUserSrpAuth unchanged rather than reimplementing verification:
a USER_AUTH client responding with PASSWORD/SRP_A needs exactly the
same checks those flows already perform, so PASSWORD_SRP hands off to
the existing PASSWORD_VERIFIER challenge with zero new SRP logic.
EMAIL_OTP/SMS_OTP reuse the existing VerificationCodeService/
CognitoMessageDispatcher pair already used for SignUp/ForgotPassword
codes, adding EMAIL_OTP/SMS_OTP as new VerificationCode.Purpose
values distinct from SMS_MFA so a sign-in code can't be replayed
against another purpose's consume() call.

Also gates USER_AUTH on the pool's tier: AWS requires Essentials or
higher, and UserPool.userPoolTier already models this (defaulting to
ESSENTIALS), so a LITE-tier pool is rejected. SMS_OTP uses
SmsAuthenticationMessage, the template AWS documents for "SMS OTP and
MFA authentication" (CreateUserPool docs), not the signup/
verification template.

Security and correctness fixes found in review:
- handleUserAuth now validates SECRET_HASH before looking up the user
  or issuing a challenge, closing a hole where a caller with no
  secret could trigger a real OTP send and read the masked
  destination without proving it holds the client secret.
- issueSignInOtp now maps VerificationCodeException through
  mapVerificationCodeException (so a rate-limited retry surfaces as
  LimitExceededException, not a generic CodeDeliveryFailureException
  that hid the real cause), and invalidates the just-issued code
  before reporting a real dispatch failure, so the rate limiter
  doesn't lock out a retry for a code the user never received,
  matching signUp's existing rollback pattern.

Deliberately not implemented, tracked as follow-ups:
- WEB_AUTHN (passkeys): a much bigger piece per the issue's own
  scoping note, no credential storage/ceremony exists in floci yet.
- The Session from ConfirmSignUp accepted as a first-factor shortcut:
  needs ConfirmSignUp to start minting a redeemable session, a
  separate mechanism from the challenge flow this PR adds.
- Pool-level sign-in policy (AllowedFirstAuthFactors): floci does not
  model per-pool factor restrictions at all today; availability here
  is purely per-user (does the user have this factor configured).
- Session is not looked up on RespondToAuthChallenge: each handler
  independently reverifies its own factor from the request body, the
  same shape the existing NEW_PASSWORD_REQUIRED handler already uses,
  so there is no bypass, just an opaque correlation token rather than
  server-held state.

Verified against botocore's cognito-idp service-2.json (AuthFlowType,
ChallengeNameType, AvailableChallengeListType, the AuthParameters
documentation for USER_AUTH) and the real InitiateAuth/CreateUserPool
API reference pages, including InitiateAuth's worked examples and
CreateUserPool's SmsAuthenticationMessage description.
2026-09-20 09:11:01 -05:00
vamsiakandVamsi Akavarapu 748f71c943 feat(stepfunctions): support Scheduler DeleteSchedule (#3983)
* feat(stepfunctions): support scheduler deleteSchedule

* style(stepfunctions): use explicit result types

---------

Co-authored-by: Vamsi Akavarapu <16164447+vamsiak@users.noreply.github.com>
2026-09-20 09:56:44 -04:00
XuJian d348763345 feat(glue): add crawler classifier APIs (#3985) 2026-09-20 08:59:27 -04:00
Simone Primarosa 51467dbc23 fix(eks): populate clusterSecurityGroupId on cluster responses (#3924)
* fix(eks): populate clusterSecurityGroupId on cluster responses

Real AWS EKS automatically provisions a cluster security group and
returns its identifier in resourcesVpcConfig.clusterSecurityGroupId
on CreateCluster and DescribeCluster responses.

- Create a security group in Ec2Service with the pattern
  eks-cluster-sg-<cluster-name>-<suffix> using 8 hex characters.
- Set standard AWS description and tags (Name, kubernetes.io/cluster/<cluster-name>,
  and aws:eks:cluster-name).
- Set clusterSecurityGroupId to empty string when cluster has no VPC.
- Delete the cluster security group on DeleteCluster, tolerating
  InvalidGroup.NotFound for idempotency.
- Backfill cluster security groups for pre-existing clusters on startup.

* fix(eks): address cluster security group review feedback

* fix(eks): add self-referencing egress rule and cleanup on SG setup failure
2026-09-20 08:52:40 -04:00
Vũ Thế Huy 9379fa1179 feat(redshift): support S3 COPY JSON and manifest, and DynamoDB zero-ETL backfill (#3889)
* feat(redshift): support S3 COPY FORMAT AS JSON 'auto' and MANIFEST

* fix(redshift): resolve column discovery via pg_catalog and guard against empty columns

* feat(redshift): track zero-ETL backfill progress and syncing status

* feat(redshift): backfill existing DynamoDB items into zero-ETL landing table

* test(redshift): prove zero-ETL backfill and syncing-to-active status

* fix(redshift): reject JSON 'auto' COPY without columns over Extended Query clearly

Catalog-based column discovery only runs over the Simple Query protocol, so
a column-less COPY ... FORMAT AS JSON 'auto' sent over Extended Query failed
with an obscure error. Name the cause and remedy in the error, document the
limitation, and run the discovery tests over Simple Query.

* docs(redshift): document zero-ETL DynamoDB backfill and syncing status

* fix(redshift): address review feedback on COPY JSON, manifest and zero-ETL backfill

* fix(redshift): pass user column list as written and clarify syncing status in docs

* fix(redshift): wrap long condition in identifier unquoting

* fix(redshift): keep user columns as written in runCopyFrom and verify backfill account scope

* test(redshift): use assertNotNull for last evaluated key assertion
2026-09-20 00:23:54 -04:00
XuJian 9c4cd8c9e1 feat(batch): support canceling and terminating jobs (#3922)
* feat(batch): support canceling and terminating jobs

* fix(batch): close job termination race
2026-09-19 23:50:48 -04:00
Chris Jovanovski d9a4db0290 fix(cloudformation): provision Cognito user pool groups (#3695)
* fix(cloudformation): provision Cognito user pool groups

Create and reconcile user pool groups, and namespace custom schema attributes while preserving standard attributes.

* fix(cloudformation): keep a generated Cognito group name across updates

GroupName is optional, and provision generated a fresh stand-in on every call. Because
provision is also the update path, the second UpdateStack derived a different name, took
the create branch and left the group the stack already owned orphaned behind it.

Use ProvisionContext.stablePhysicalName so the prior physical id is reused when the
template does not name the group, and reusesPriorEntity for the create-or-update choice,
which is the pairing that keeps a stable name from turning an update into a duplicate
create.
2026-09-19 20:06:58 -05:00
Priamo Germosen eef69445cc feat(iam): enforce DeleteUser prerequisites and carry access keys and group membership through a rename (#3918)
DeleteUser now returns DeleteConflict while the user still has inline policies or access keys, matching AWS. UpdateUser rename moves the user's access keys and group membership to the new name, so a renamed user keeps them and a user recreated under the old name does not inherit them.
2026-09-19 19:54:55 -05:00
Priamo Germosen 5a11e7f6fb fix(ec2): return DependencyViolation from DeleteVpc while dependents remain (#3916)
DeleteVpc now refuses while the VPC still has a subnet, a security group,
route table or network ACL other than the defaults, or an attached
internet gateway, as AWS does. Creating a subnet, group, route table or
network ACL, or attaching an internet gateway, re-checks the VPC under the
region topology lock, so a concurrent DeleteVpc can no longer leave one
pointing at a VPC that is gone. AttachInternetGateway now rejects a VPC
that does not exist.
2026-09-19 19:38:53 -05:00
Priamo Germosen 61f67cc834 fix(cognito): reject unrecognized AuthFlow instead of issuing tokens (#3923)
The default arm of InitiateAuth and AdminInitiateAuth looked the user up by name and issued signed tokens for any AuthFlow value it did not recognize, with no credential check. Reject those values with InvalidParameterException. ADMIN_NO_SRP_AUTH is a valid AdminInitiateAuth flow that previously only worked through that arm, so it now goes through password authentication.
2026-09-19 19:38:40 -05:00
Priamo Germosen 15ed62f8cb fix(codeartifact): enforce domains-per-account and repositories-per-domain quotas (#3949)
CreateDomain and CreateRepository accepted an unlimited number of domains and
repositories, but AWS caps an account at 10 domains per Region and a domain at
1,000 repositories, returning ServiceQuotaExceededException once reached.
2026-09-19 19:38:27 -05:00
David 1e8485830c fix(cognito): refuse DeleteUserPool while deletion protection is active (#3961)
DeletionProtection was stored and round-tripped but never read on the
delete path, so a protected pool was deleted like any other and a
CloudFormation DeleteStack owning one succeeded. AWS refuses with
InvalidParameterException until UpdateUserPool switches the flag to
INACTIVE, and the stack reports DELETE_FAILED with that reason.

The check reads the pool store directly: describeUserPool would turn a
delete of a missing id into ResourceNotFoundException (a separate
divergence) and generate signing keys as a side effect.

Closes #3948
2026-09-19 19:53:48 -04:00
Stuart Lang 7d9f499f2d feat(sns): add the MaximumMessageSize topic attribute for 1 MiB payloads (#3953)
* feat(sns): add the MaximumMessageSize topic attribute for 1 MiB payloads

AWS raised the SNS payload ceiling from 256 KiB to 1 MiB behind a new
per-topic MaximumMessageSize attribute. The default stays 262144, so an
unconfigured topic is unchanged.

CreateTopic and SetTopicAttributes validate the 1024-1048576 range, Publish
and PublishBatch size against the topic's value, and a topic above 262144 is
held to its subscription constraints: sqs, firehose or lambda only, and at
most 100 subscriptions. AWS::SNS::Topic forwards the property too.

Two things the same code path had wrong, both checked against the live API:
Subject was counted towards the publish limit when AWS does not count it, and
PublishBatch returned the SQS wording rather than the SNS one.

* fix(sns): ignore an out-of-range persisted MaximumMessageSize

Validation only guards new writes. A topic stored before the attribute was
known carries whatever the old generic setter accepted, so the read path
could hand back a value above 1 MiB and wave a publish past the AWS ceiling,
or one at zero and reject every publish. Out of range now falls back to the
default, exactly as a nonnumeric value already did.

Also covers the attribute end to end on both wire protocols -- create, set,
get, and the oversized Publish and PublishBatch errors on Query and JSON 1.1
-- since the existing suite drives SnsService directly and cannot catch a
regression in parameter extraction or error serialization.
2026-09-19 19:05:22 -04:00
Matheus André 5ac07733e9 chore(iam): report enforcement state at startup and cover IAM management actions (#3935)
* chore(iam): report enforcement state at startup and cover IAM management actions

Issue #3931 reported that an IAM user with an S3-only policy could call
CreateUser, CreateGroup, AttachUserPolicy and DeleteUser. The reporter had
set FLOCI_IAM_STRICT_VALIDATION, which is not a Floci flag, so enforcement
was never on; with FLOCI_SERVICES_IAM_ENFORCEMENT_ENABLED=true those calls
already return AccessDenied, including under an explicit Deny on iam:*.

Make that state visible: the startup banner now prints whether IAM policy
enforcement is enabled and names the correct variable when it is off. The
IAM docs state that management actions are enforced too and that any other
flag spelling is silently ignored. A regression test pins the issue's
scenario (group-attached S3-only policy, plus a direct explicit-deny
policy) against the four actions over HTTP with enforcement enabled.

* chore(iam): use explicit types and imports in the enforcement regression test

* chore(iam): stub the IAM config in EmulatorLifecycleTest and cover the enforcement banner line
2026-09-19 19:01:03 -04:00
vamsiakandVamsi Akavarapu bc018afad0 feat(scheduler): start Step Functions targets (#3936)
Co-authored-by: Vamsi Akavarapu <16164447+vamsiak@users.noreply.github.com>
2026-09-19 16:48:07 -04:00
Aniket Shukla 869589e932 feat(ecs): publish awsvpc ports on demand (#3766) 2026-09-19 16:27:29 -04:00
Attila Kis 5d23a70cc0 fix(dynamodb): honor MICROSECOND ApproximateCreationDateTimePrecision for Kinesis destinations and streams false enablement (#3874)
* fix(dynamodb): honor MICROSECOND ApproximateCreationDateTimePrecision for Kinesis destinations

Store the precision requested in EnableKinesisStreamingConfiguration, echo it in the
enable response, and return it from DescribeKinesisStreamingDestination, so Terraform
no longer destroys and recreates the destination on every apply.
Stamp ApproximateCreationDateTime in epoch microseconds for MICROSECOND destinations,
with a shared eventID per change across destinations.
Reject precisions other than MILLISECOND and MICROSECOND with ValidationException.
Add forwarder unit and end-to-end integration coverage, and document the behavior.

* fix(dynamodb): stop enabling DynamoDB Streams with a Kinesis destination

EnableKinesisStreamingDestination turned on DynamoDB Streams for the table.
Kinesis forwarding does not need it, and Terraform saw stream_enabled drift
on aws_dynamodb_table on every run.
Leave the table's stream setting as the caller configured it.

* test(dynamodb): add Terraform compat test for Kinesis destination precision

Apply a Kinesis streaming destination with MICROSECOND precision and check that
it reads back, that a second plan is clean, and that a precision change
replaces the destination once and then settles.
2026-09-19 15:55:44 -04:00
Matthew Ingle 037236daf8 feat(route53): implement UpdateHostedZoneComment (#3906)
* feat(route53): implement UpdateHostedZoneComment

The path carried GET and DELETE but no POST, so the action answered 405 and a
caller that renames or re-comments a zone could not proceed. Terraform's
aws_route53_zone sends it whenever the comment changes, which includes importing
an existing zone under a new configuration.

A request with no Comment clears the existing one, as AWS documents, rather than
leaving the previous value in place.

* fix(route53): reject a body that is not an UpdateHostedZoneCommentRequest

A missing Comment means "clear the comment", and XmlParser returns the default
for a body it cannot parse, so a truncated or wrong-root document cleared the
zone's comment and answered 200. Validate the root element first.

* fix(route53): resolve the zone through the caller-ownership lookup

UpdateHostedZoneComment resolved the zone with getHostedZone, which reads
pre-account-isolation data written before the store was account-scoped and
migrates it into whichever partition asked for it first. Use the same lookup
the VPC association actions use, so only the owning account can rewrite the
comment.
2026-09-19 10:20:53 -04:00
Kenshin Okinaka 8ca748355d feat(ses): add v2 import jobs for the suppression list and contact lists (#3892)
* feat(ses): add v2 import jobs for the suppression list and contact lists

Implements CreateImportJob, GetImportJob and ListImportJobs. A job reads a
CSV or newline-delimited JSON object from the local S3 emulation and applies
each record through the existing suppression-list and contact services, so
the imported rows land in their stores and only the job record is new.

The job is returned as CREATED and runs on a virtual thread under the request
account, moving to PROCESSING and then COMPLETED or FAILED, as on AWS. Records
that fail validation are counted in FailedRecordsCount while the job still
completes; a missing bucket or object, a contact-list CSV without an
emailAddress header, or a contact list deleted before the worker runs fail
the job with FailureInfo.ErrorMessage. At most 20 jobs per region may be in
progress, and jobs interrupted by a restart are marked FAILED on startup.

* fix(ses): accept the guide's unquoted contact row and match AWS's import not-found message

A quote that does not open a CSV field is data rather than an error: the SES
list-management guide writes attributesData unquoted as {"Name": "John"}, so
rejecting it refused the documented format. Garbage after a closing quote is
still a failed record, since that row cannot be read back unambiguously.

An import job for an unknown contact list answers NotFoundException with its
own wording, "ContactList <name> doesn't exist", which differs from the
contact-list APIs. Probed against real SES: the check is synchronous and the
error is NotFoundException, even though the service model lists only
BadRequestException, LimitExceededException and TooManyRequestsException for
CreateImportJob. The contact service keeps its own message.

Also drops five unused imports and a dead stripBom that held the only literal
BOM character in the reader sources.
2026-09-19 10:05:42 -04:00
Priamo GermosenandJason van Zyl a154470172 feat(ec2): validate DescribeVpnGateways and add DescribeEgressOnlyInternetGateways (#3879)
* feat(ec2): validate DescribeVpnGateways and add DescribeEgressOnlyInternetGateways

* refactor(ec2): drop unused region parameter from empty gateway discovery

* fix(ec2): return an empty set for an unknown egress-only gateway ID

---------

Co-authored-by: Jason van Zyl <jason@vanzyl.ca>
2026-09-19 08:33:08 -05:00
XuJianandxujiantop-crypto 1370dc02fa fix(appconfig): return feature flags in retrieval format (#3890)
Co-authored-by: xujiantop-crypto <265865031+xujiantop-crypto@users.noreply.github.com>
2026-09-19 07:15:28 -04:00
Priamo Germosen bbaf3568c5 feat(codeartifact): support publishing and reading generic-format package versions (#3839)
Adds PublishPackageVersion, DescribePackageVersion, and GetPackageVersionAsset
for CodeArtifact's generic package format, matching AWS's own wire restriction
that PublishPackageVersion accepts only the generic format. Includes real
asset hashing (MD5, SHA-1, SHA-256, SHA-512), SHA-256 integrity verification
against the caller's x-amz-content-sha256 header, correct Unfinished/Published
status transitions, and the documented AWS quotas for this action (350 assets
per version, 5 GB max asset size), all returning ServiceQuotaExceededException
when exceeded.

Asset bytes are kept out of the JSON/WAL-backed package-version store
(@JsonIgnore on PackageAsset.content) and instead go through a dedicated
asset store, a disk file in persistent/hybrid/wal mode or a side map in
memory mode, the same split S3Object/S3Service already uses for object
bytes. Without this, a publish rewrote every asset of every package version
on disk each time, growing quadratically under this action's own
350-asset/5GB quotas. The asset name is also validated against the wire
model's AssetName pattern (no control characters), not just its length,
since it is echoed back verbatim in the X-AssetName response header on
GetPackageVersionAsset.

Verified against the real botocore service-2.json wire model and the AWS
CodeArtifact User Guide (including its PDF for the quotas table, since the
HTML quotas page is JS-rendered). Live-verified with the real AWS CLI and
the AWS SDK for Java v2 against a running Floci instance, including an exact
byte-for-byte asset round-trip and the real ConflictException when
republishing an already-Published version.
2026-09-18 23:49:21 -05:00
Priamo Germosen e190f7d340 feat(iam): implement CreateLoginProfile, UpdateLoginProfile, DeleteLoginProfile (#3865)
* feat(iam): implement CreateLoginProfile, UpdateLoginProfile, DeleteLoginProfile

GetLoginProfile previously existed as a permanent stub always returning
NoSuchEntity, and the docs claimed the other three actions were supported
even though the query handler had no case for them at all.

Adds a LoginProfile model and the full lifecycle on IamService: a user
holds at most one login profile, Create/Get/Delete default UserName to
the caller's resolved identity (matching AWS), Update requires it
explicitly, and Update leaves an omitted field (Password or
PasswordResetRequired) unchanged rather than resetting it. The password
is validated against AWS's wire character-class/length rule and, when
the account has one, against the existing account password policy
(PasswordPolicyViolation).

Verified against the real AWS IAM API reference for all four actions'
request/response shapes and error lists.

* fix(iam): block DeleteUser on a login profile and carry it through UpdateUser rename

Login profiles now persist, so deleteUser left an orphaned profile that a
recreated user of the same name would inherit, and a rename dropped the
profile. DeleteUser now returns DeleteConflict while a login profile
exists, as AWS does, and UpdateUser moves the profile to the new name.
2026-09-18 23:49:11 -05:00
Priamo GermosenandJason van Zyl 75fee00adc fix(ec2): delete VPC default security group, route table and network ACL with the VPC (#3878)
* fix(ec2): delete VPC default security group, route table and network ACL with the VPC

* test(ec2): check deleted VPC defaults by VPC scope instead of by ID

---------

Co-authored-by: Jason van Zyl <jason@vanzyl.ca>
2026-09-18 23:48:38 -05:00
Vũ Thế Huy 29b601834b feat: add DynamoDB to Redshift zero-ETL replication (#3872)
* feat: add DynamoDB to Redshift zero-ETL replication

* fix(redshift): preserve zero-etl account polling state

* fix(redshift): preserve zero-etl target account
2026-09-18 22:35:10 -04:00