github ministackorg/ministack v1.5.44

one hour ago

What's Changed

[1.5.44] — 2026-11-23

Added

  • EC2 — secondary VPC CIDR blocks — AssociateVpcCidrBlock and DisassociateVpcCidrBlock for IPv4 blocks. An associated block shows in CidrBlockAssociationSet and gets a local route in the VPC's route tables. A disassociated one stays in the set as disassociated. The cidr-block-association.* filters of DescribeVpcs match every block. Errors match AWS: CidrConflict, InvalidVpc.Range (size, or a private range other than the VPC's), InvalidCidrBlock.Malformed, InvalidCidrBlock.InUse (a subnet uses the block), OperationNotPermitted (the primary block), and the association ID NotFound and Malformed. Reported by @mkjung.
  • EC2 — Transit Gateway — transit gateways with their default route table, route tables, VPC attachments, route table associations and propagations, and static and blackhole routes, with the operations the Terraform AWS provider calls for them (21 in all). A VPC attachment is associated with and propagates to the default route table when the transit gateway enables them, and a propagating attachment's VPC CIDR shows in SearchTransitGatewayRoutes as a propagated route. Reported by @mkjung.
  • SQS — dead-letter queue redrive — StartMessageMoveTask, ListMessageMoveTasks and CancelMessageMoveTask, over JSON and Query. A task moves the messages visible in the dead-letter queue when it starts, to DestinationArn or each back to its DeadLetterQueueSourceArn, at MaxNumberOfMessagesPerSecond or all at once. A moved message is a new message that keeps its body, message attributes and FIFO group and deduplication ids. A message with no source fails the task with CouldNotDetermineMessageSource and stays put. One task runs per queue at a time, and ListMessageMoveTasks shows the 10 most recent. A cancelled task goes on moving as CANCELLING for about 20 seconds before it is CANCELLED. Reported by @kharabasz.
  • CloudFront — origin modification helpers — a viewer-request function can pick the origin of a request with cf.updateRequestOrigin(), cf.selectRequestOriginById() and cf.createRequestOriginGroup(), which fails over to the second origin on its status codes, a timeout or a connection failure (GET, HEAD and OPTIONS only). An origin at an AWS host that MiniStack serves, such as <apiId>.execute-api.<region>.amazonaws.com, an S3 REST endpoint or a regional service endpoint, goes to MiniStack's own gateway, which also accepts AWS execute-api hosts now; other AWS hosts keep the 502. Contributed by @antonie-popovic.
  • WAFv2 — web ACLs on CloudFront viewer requests — a distribution's web ACL now decides each viewer request: rule priority, Allow, Block with a custom response, Count, CAPTCHA and Challenge (405 and 202, no tokens), labels, rule groups with overrides, inserted headers, rate-based rules, and the byte, regex, size and IP set statements. Of the AWS managed rules, the Core rule set SizeRestrictions_* and NoUserAgent_HEADER and PROPFIND_METHOD are evaluated. A rule MiniStack cannot decide never matches and is logged once. Contributed by @antonie-popovic.

Fixed

  • SQS — disabled, missing or pending deletion KMS key — SendMessage, SendMessageBatch and ReceiveMessage on a queue with a customer managed key ignored the key's state. They now answer KMS.DisabledException, KMS.NotFoundException, KMS.InvalidStateException or KMS.AccessDeniedException (the aws/s3 key, another account's key) with KMS's message, after the request checks and before a FIFO deduplication hit. SendMessageBatch fails every valid entry with the same error, after the entries that failed validation. A receive with messages to hand out is refused and leaves them visible. Sends and receives each keep their data key for KmsDataKeyReusePeriodSeconds, and a refusal repeats for 7 seconds before KMS is asked again. Reported by @kharabasz.
  • SQS — error envelopes — JSON errors carry __type com.amazonaws.sqs#<Code>, and query-protocol errors open with <?xml version="1.0"?> and carry <Detail/>.
  • EC2 — DescribeVpcs CIDR block association filters — cidr-block-association.association-id and cidr-block-association.state were ignored, so they returned every VPC in the region. They now match the VPC's CidrBlockAssociationSet. Reported by @mkjung.
  • S3 — Object Lock on copies and multipart uploads — CopyObject gave the copy the source's retention and legal hold, and ignored the destination bucket's default retention and the request's x-amz-object-lock-* headers. The copy now gets the lock the request names, or the destination's default retention, and never the source's. A multipart upload created with a retention or a legal hold now completes into an object under it, and one created with neither takes the bucket's default retention; before, the completed object was unlocked and could be deleted. PutBucketVersioning Suspended on a bucket with Object Lock answers 409 InvalidBucketState ("An Object Lock configuration is present on this bucket, so the versioning state cannot be changed.") and versioning stays Enabled. Reported by @gaul.
  • S3 — governance bypass on a bucket without Object Lock — DeleteObject with x-amz-bypass-governance-retention on a bucket without Object Lock deleted the version. It now answers 400 InvalidArgument ("x-amz-bypass-governance-retention is only applicable to Object Lock enabled buckets.") and deletes nothing.
  • S3 — CopyObject conditions on the destination — If-Match and If-None-Match were ignored. As on PutObject, If-Match on a missing destination (or a delete marker) answers 404 NoSuchKey, a condition that does not hold answers 412 PreconditionFailed, and the destination keeps its content. If-Match: * and an If-None-Match naming an ETag answer 501 NotImplemented, naming the header, before any other check on the destination. Reported by @gaul.
  • S3 — UploadPartCopy with another key's upload ID — it added the part to that other key's upload. It now answers 404 NoSuchUpload, as UploadPart does. Reported by @gaul.
  • RDS Data API — a literal % next to named parameters — ExecuteStatement (and BatchExecuteStatement, which shares the substitution) now passes a % already in the SQL (LIKE 'step.%', '100%', DATE_FORMAT(d, '%Y')) to the engine as written when named parameters are supplied; before, the driver's % formatting read it as a placeholder, failing with not enough arguments for format string, turning '%%' into '%', or filling a '%(name)s' literal with the parameter's value. Matches real AWS for ExecuteStatement (us-east-1, Aurora MySQL 3). Contributed by @skialpine.
  • Step Functions — UpdateStateMachine returns revisionId without publish — the response now carries the state machine's new revisionId on every update, which PublishStateMachineVersion takes as its precondition; before, it was returned only with publish: true. A stale revisionId now fails with AWS's message, Failed to publish the State Machine version for revision <stale>. The current State Machine revision is <current>. Matches real AWS (us-east-1). Contributed by @skialpine.
  • Step Functions — executions started on a version or alias — StartExecution on a state machine version ARN, or on an alias, now runs that version's definition and records the version (and alias) ARN, which DescribeExecution and the ExecutionStarted event report, and DescribeStateMachineForExecution returns the version's definition; before, it ran the state machine's latest definition and reported neither ARN. Matches real AWS (us-east-1), where an execution started on version 1 after version 2 is published runs version 1. Contributed by @skialpine.
  • Lambda — S3 from a Docker container — a function's S3 client was pointed at host.docker.internal, so an SDK that addresses buckets virtual-host style (.NET, JavaScript) called <bucket>.host.docker.internal, which didn't resolve, and an older .NET SDK signed for us-east-1. The container now gets AWS_ENDPOINT_URL_S3 at s3.<function region>.host.docker.internal, and the names of the function account's buckets resolve under it, including buckets created after the container started. A function that sets AWS_ENDPOINT_URL_S3 keeps its own. Reported by @kharabasz.
  • Lambda — end of a Docker invocation's log — the log of a RIE invocation was read as soon as RIE answered, so it could miss END and REPORT, which RIE writes after the reply; the LogResult tail missed them. The log is now read until RIE's REPORT line, for at most 250 ms, the hard cap of the warm worker's log drain. Contributed by @antonie-popovic.
  • Cognito — expires_in of a refreshed token — the refresh_token grant of /oauth2/token answered expires_in: 3600 whatever the app client's AccessTokenValidity, while the token itself lived as long as the client allows. It now answers the token's lifetime. Contributed by @antonie-popovic.
  • Lambda — output of child processes — the in-process workers and the one-shot executor read their replies from the function's stdout, which child processes inherit, so a child that printed more than 200 lines at init or in the handler (aws s3 sync in the CDK BucketDeployment handler) failed the invocation. Replies now use their own descriptor, and stdout and stderr are only the log. A provided bootstrap in the one-shot executor that logged more than a pipe holds before it answered timed out; its log now goes to a file. Contributed by @antonie-popovic.
  • RDS — MySQL and Aurora MySQL TLS certificates — MySQL and Aurora MySQL databases now present a server certificate signed by the RDS CA served at GET /_ministack/rds/ca.pem, naming their DNS endpoints, as PostgreSQL databases already did; before, they presented a certificate from the mysql image's own auto-generated CA, which no client verifying the server could trust. Matches real AWS (us-east-1, RDS MySQL 8.4 and Aurora MySQL 3), where the certificate chains to the regional RDS root and names the endpoint. Contributed by @skialpine.
  • AppSync Events — a channel namespace without auth modes — it took the API's defaultPublishAuthModes for both publish and subscribe, so a subscriber the API's subscribe default allows was refused. It now keeps no modes of its own: CreateChannelNamespace leaves them out of its answer, reads report [], and each call takes the API's current publish or subscribe default, also after UpdateApi. Reported by @Tanato.
  • Cognito — PostAuthentication on Hosted UI sign-in — a sign-in through POST /login never invoked the trigger. It now runs before the authorization code is issued. A trigger that fails gives no code, and the sign-in page answers 401 with "PostAuthentication failed with error .". POST /login also runs off the event loop, so a trigger that calls MiniStack does not stall it. Reported by @Tanato.
  • Cognito — identity_provider=COGNITO on /oauth2/authorize — it was looked up as a federated provider and answered "Identity provider COGNITO not found.". It now shows the pool's own sign-in page, as Amplify's signInWithRedirect expects. Reported by @Tanato.
  • API Gateway — requestContext.domainPrefix in HTTP API events — payload 2.0 proxy events and 2.0 REQUEST authorizer events now carry it, the first label of domainName. Reported by @Tanato.
  • API Gateway — JWT and Cognito authorizers under USE_SSL — the keys of a MiniStack user pool were fetched over plain HTTP, which a TLS-only gateway refuses, so every token was rejected. They are now read in-process. Reported by @Tanato.
  • CloudFront — alternate domain names under the MiniStack host — an alias such as docs.stage.localhost was taken for an S3 virtual-hosted request and answered NoSuchBucket. The distribution now serves it unless a bucket by that name exists. Reported by @Tanato.
  • CloudFront — aws:SourceAccount on origin access control fetches — the request context carried only aws:SourceArn, so a bucket policy conditioned on AWS:SourceAccount denied every fetch. It now also carries the distribution's account. Reported by @Tanato.
  • EventBridge — ListEventSources — it always answered an empty list. It now lists the partner event sources offered to the account, with Arn, CreatedBy, CreationTime, Name and State, PENDING until the account creates the matching partner event bus and ACTIVE after. Reported by @Tanato.
  • EventBridge — tags on a rule of a partner event bus — TagResource and ListTagsForResource answered ResourceNotFoundException for an ARN like rule/aws.partner/<partner>/<source>/<rule>. They now resolve it. Reported by @Tanato.
  • Lambda — Node.js handlers and *.localhost hosts — under the local executor only one label below localhost resolved, so a host such as an Event API's <api>.appsync-api.<region>.localhost failed with ENOTFOUND. Any name under localhost now reaches MiniStack. Reported by @Tanato.
  • Persistence — state files after a host stop — the state saved at shutdown was renamed into place without being synced, so a host that stopped right after could bring it back as an empty file. Each file is now synced before the rename. Reported by @Tanato.
  • ALB — HTTPS target groups — the load balancer forwarded to them over plain HTTP, so a TLS-only target answered 502. It now connects over TLS and, as AWS does, does not validate the target's certificate. Reported by @rszabo50.
  • DynamoDB Streams — TTL deletes — an item removed by TTL wrote no stream record. It now writes a REMOVE with userIdentity {"PrincipalId": "dynamodb.amazonaws.com", "Type": "Service"} in GetRecords, and {"principalId": "dynamodb.amazonaws.com", "type": "Service"} in the Lambda event, so the TTL filter pattern matches. On a global table only the region that expired the item marks the record. Reported by @fdrvrtm.

Don't miss a new ministack release

NewReleases is sending notifications on new releases.