github ministackorg/ministack v1.5.42

latest releases: v1.5.44, v1.5.43
5 days ago

What's Changed

[1.5.42] — 2026-11-18

Added

  • CloudFormation — AWS::ECR::PullThroughCacheRule, AWS::ECR::RepositoryCreationTemplate and AWS::ECR::RegistryPolicy — stacks create and delete pull-through cache rules, creation templates and the registry policy through the ECR API, with its errors. A template's Prefix requires replacement and its other properties update in place; Ref returns the prefix and Fn::GetAtt gives CreatedAt and UpdatedAt. Ref on a rule returns its EcrRepositoryPrefix. Every rule property requires replacement, so an update that keeps the prefix fails with "CloudFormation cannot update a stack when a custom-named resource requires replacing". PolicyText updates in place and Fn::GetAtt RegistryId returns the account ID. Reported by @kharabasz.
  • ECR — pull-through cache rules and the registry policy — CreatePullThroughCacheRule, UpdatePullThroughCacheRule, DeletePullThroughCacheRule, DescribePullThroughCacheRules, ValidatePullThroughCacheRule, PutRegistryPolicy, GetRegistryPolicy and DeleteRegistryPolicy, with AWS's error codes and messages. Creating a rule creates the AWSServiceRoleForECRPullThroughCache service-linked role. ValidatePullThroughCacheRule reports UNABLE_TO_ACCESS_SECRET, UNABLE_TO_PARSE_SECRET or UNABLE_TO_ASSUME_ROLE from the rule's own secret or role; it contacts no upstream registry. With AUTH=true, the secret must be readable by the caller and by the service-linked role, whose kms:Decrypt a customer managed key's policy must grant by name. Reported by @kharabasz.
  • ECR — the pull-through cache fills on first pull — a registry GET/HEAD of a manifest by tag, or an ECS task asking for <prefix>/<path>:<tag> that a rule covers and the cache does not hold fills the cache first: the image is taken the way EC2 takes one (the host daemon's local copy, else a daemon pull with the host's own registry login), stored in MiniStack's ECR under <prefix>/<path> (created MUTABLE, scanOnPush off, AES256) and served from there. Nothing is pushed anywhere and the rule's secret is never sent. When the daemon's export keeps the upstream's image index (Docker's containerd image store), the index, its child manifests and their compressed layers are stored byte for byte, so the digests are the upstream's; another platform of that index is fetched through the daemon by digest when a registry GET/HEAD by digest or an ECS task asks for it. A classic export holds only the host's platform: its layers are recompressed and the stored digest is this host's. When the image cannot be had, no repository is created and the registry answers 404 MANIFEST_UNKNOWN. The BatchGetImage API call does not fill the cache, as on AWS: an uncached path answers RepositoryNotFoundException. An ECR upstream is copied from MiniStack's own ECR in that account and region, after the rule's role trust and, with AUTH=true, the upstream repository policy. With AUTH=true, another account fills the cache only when the registry or repository policy allows it ecr:BatchImportUpstreamImage, plus ecr:CreateRepository from the registry policy while the repository does not exist. Reported by @kharabasz.
  • ECR — repository creation templates — CreateRepositoryCreationTemplate, UpdateRepositoryCreationTemplate, DeleteRepositoryCreationTemplate and DescribeRepositoryCreationTemplates. The first pull through a cache rule creates its repository from the PULL_THROUGH_CACHE template with the longest matching prefix, else ROOT: tag mutability and exclusion filters, encryption, resource tags, repository policy and lifecycle policy. With no matching template it takes the defaults. CREATE_ON_PUSH and REPLICATION templates are stored but not applied. Reported by @kharabasz.
  • Lambda — nodejs26.x — the Docker executor runs nodejs26.x functions on public.ecr.aws/lambda/nodejs:26. Reported by @whittin3.

Fixed

  • CloudFormation — bucket tags, stack event properties, stream labels — a bucket a stack created had no tag set, so GetBucketTagging answered 404 NoSuchTagSet (the CDK auto-delete-objects handler fails on that during stack delete); the template Tags, the stack tags and the aws:cloudformation: tags are now its tag set, and an update applies tag changes. DescribeStackEvents now reports ResourceProperties on the create and update events of a resource and on the deletes of a rollback, as a JSON string with every primitive a string; a NoEcho parameter's value shows as ****. A table a stack creates now has a stream label with no trailing Z, as CreateTable already gives. Contributed by @antonie-popovic.
  • CloudFront — KeyValueStore ARNs — a key value store ARN ended in the store's Name; it now ends in its Id, as on AWS (arn:aws:cloudfront::<account>:key-value-store/<Id>), for CreateKeyValueStore, AWS::CloudFront::KeyValueStore, tagging and the cloudfront-keyvaluestore data plane. Contributed by @antonie-popovic.
  • CloudFront — its own error pages — the "The request could not be satisfied" page had only the explanation line. It now has the body a real distribution sends, byte for byte: the explanation, the two help paragraphs and the <ADDRESS> block (915 bytes for "Bad request.", 1053 for a refused method). A request path with a % that two hex digits do not follow now gets CloudFront's 400 "Bad request." page before any function runs, as on AWS. Contributed by @antonie-popovic.
  • CodeBuild — StartBuild status — in the default metadata-only mode StartBuild answered a build that was already SUCCEEDED. It now answers the build as AWS does: IN_PROGRESS, currentPhase QUEUED, buildComplete false, phase SUBMITTED done (durationInSeconds 0) and QUEUED open; later reads show it SUCCEEDED. Contributed by @antonie-popovic.
  • DynamoDB — item calls on another account's table by ARN — with AUTH=true, GetItem, PutItem, UpdateItem, DeleteItem, Query, Scan, the batch and the transaction calls given another account's table ARN now run against the owner's table, and need both the table's resource policy and the caller's identity policy. A refusal is 400 AccessDeniedException naming the table ARN, "because no resource-based policy allows" when the table's policy (or the table) is missing. A bare table name stays a lookup in the caller's account. Reported by @TheKerbycz.
  • DynamoDB — tag and resource-policy actions — TagResource, UntagResource, ListTagsOfResource and Put/Get/DeleteResourcePolicy are authorized against the table in ResourceArn instead of *, and DynamoDB denials are HTTP 400 naming the resource. Reported by @TheKerbycz.
  • DynamoDB — PartiQL key reads — a SELECT with an OR or IN on the sort key, or on an index key, reads each key in turn: each is charged on the page that reaches it, Limit pages through them, and a page ending on a closed bound ends the read. Overlapping branches, a negated sort key inside an OR, a wrong-typed partition key and a Limit below 1 answer AWS's errors. Reported by @hicksy and the paritysuite.org project.
  • DynamoDB — validation messages — deep writes list every bad member in AWS's order; table names are measured as AWS does (characters on item operations, UTF-16 units on table operations); a name starting with _ in an expression is a syntax error; Scan and Query use AWS's current wording. Reported by @hicksy and the paritysuite.org project.
  • ECS — large images held in MiniStack's ECR start — pulling, exporting and loading a whole image no longer uses the MINISTACK_DOCKER_TIMEOUT read timeout (10 s by default), so an image that takes the daemon longer than that to unpack (here 766 MB) starts instead of stopping with ResourceInitializationError. Reported by @kharabasz.
  • ECS — pull failure on a pinned platform — a failed image pull for a task with a runtimePlatform was logged as the host being unable to run the architecture; it is now logged as a failed pull. Reported by @kharabasz.
  • ElastiCache — a replication group whose container fails to respawn — after a restart from persisted state, a node group whose container cannot be started reports the fallback endpoint, as a cache cluster does, instead of its old address, and the log says the respawn failed instead of that it succeeded. Reported by @shawngustaw.
  • IAM — role and user paths in permission checks — an action on a role, user or group is authorized against its ARN with its path, and CreateRole/CreateUser against the ARN their Path gives. Reported by @TheKerbycz.
  • IAM — denials name the role or user — a refused action on an existing role or user names it as on resource: role <name> / user <name>, and a refused CreateRole names the ARN it would create.
  • Lambda — iam:PassRole and the CreateFunction resource — with AUTH=true, CreateFunction and UpdateFunctionConfiguration evaluate iam:PassRole on the execution role with iam:PassedToService lambda.amazonaws.com, refused with 403 AccessDeniedException naming iam:PassRole and the role ARN. CreateFunction is authorized against the ARN of the function it creates, and its denial names that ARN. Reported by @TheKerbycz.
  • Lambda — SDK v3 host prefixes in in-process Node functions — the AWS SDK for JavaScript v3 puts a label in front of the endpoint host (ServiceDiscovery DiscoverInstances "data-", Step Functions StartSyncExecution "sync-", the CloudFront KeyValueStore account id), so in-process calls failed with getaddrinfo ENOTFOUND data-127.0.0.1 or TypeError: Invalid URL. When MiniStack sets AWS_ENDPOINT_URL for a Node worker, it is now localhost, and the worker sends localhost, <label>.localhost and <label>-localhost to 127.0.0.1 and checks the USE_SSL certificate against localhost. Contributed by @antonie-popovic.
  • RDS — invalid cluster and tag input — CreateDBCluster accepted a BackupRetentionPeriod outside 1–35 and read the maintenance window back as sent; it now answers 400 InvalidParameterValue "Invalid backup retention period: <n>. Retention period must be between 1 and 35." and reads the day names back in lower case (mon:00:00-mon:03:00). ModifyDBCluster applied a Serverless v2 minimum above the maximum; it now answers 400 InvalidParameterValue "Serverless v2 minimum capacity must be less than or equal to maximum capacity" and keeps the old range. AddTagsToResource refuses a key that starts with aws: ("Tag keys cannot start with the reserved prefix "aws:"."); CloudFormation still sets its aws:cloudformation:* tags. Contributed by @Areson.
  • RDS — invalid instance input — CreateDBInstance and ModifyDBInstance accepted values that AWS refuses and stored them. CreateDBInstance now refuses an unknown, missing or blank engine ("Invalid DB engine"), a security group that does not exist, an unknown storage type (StorageTypeNotSupported), magnetic (standard) storage, gp3 storage under 20 GiB, a MaxAllocatedStorage less than 10 percent above AllocatedStorage, a PostgreSQL master user name over 63 characters, the reserved name rdsadmin, a password under 8 characters and a Performance Insights retention period that AWS does not offer. ModifyDBInstance refuses a storage decrease, an engine change other than an Oracle non-CDB to CDB conversion and a password under 8 characters. Nothing is created or changed. Contributed by @Areson. Reported by @kharabasz.
  • RDS — a missing cluster in EnableHttpEndpoint and a bare-name member in RemoveFromGlobalCluster — EnableHttpEndpoint on a cluster ARN that names no cluster answers 404 ResourceNotFoundFault "The DB cluster <arn> wasn't found.", not DBClusterNotFoundFault. RemoveFromGlobalCluster with a DbClusterIdentifier that is not an ARN answers 400 InvalidParameterValue "Malformed db cluster arn <name>" before it looks up the global cluster, as AWS does; pass the member's DBClusterArn. Contributed by @Areson.
  • RDS — concurrent creates and withdrawn class changes — several concurrent CreateDBInstance calls with one identifier all succeeded. Now exactly one does and the others answer 400 DBInstanceAlreadyExists "DB instance already exists", which is also the message for a sequential duplicate. ModifyDBInstance with the current DBInstanceClass and ApplyImmediately=false withdraws a deferred class change instead of queuing a no-op in PendingModifiedValues. Contributed by @Areson.
  • RDS — the engine-version catalog — DescribeDBEngineVersions listed invented PostgreSQL, MySQL and MariaDB versions with families such as 16 instead of postgres16, left out MajorEngineVersion, SupportedEngineModes, SupportedCACertificateIdentifiers, ServerlessV2FeaturesSupport and the log types, and answered an unknown engine name with a made-up version. It now lists the versions AWS offers in us-east-1 with AWS's attributes, adds six missing Aurora MySQL versions, answers --default-only with AWS's defaults (PostgreSQL 18.3, MySQL 8.4.11, MariaDB 11.8.9) and refuses an unknown engine with 400 InvalidParameterValue "Unrecognized engine name: <name>". The MaxRecords range message for RDS describe calls no longer ends with a period, as on AWS. Contributed by @Areson.
  • S3 — a bucket policy naming a role or user of another account — the policy of another account's bucket is now evaluated for the caller's own user or role session, not only for its account, so a statement naming a role or user grants that principal alone. A refused user or role session is named: "User: <arn> is not authorized to perform: s3:PutObject on resource: "arn:aws:s3:::<bucket>/<key>" because no resource-based policy allows the s3:PutObject action". Reported by @TheKerbycz.
  • S3 — an expired presigned URL's error — the AccessDenied "Request has expired" body carries X-Amz-Expires, Expires and ServerTime, and no Resource, as on AWS.
  • Secrets Manager — another account's secret by ARN — with AUTH=true, GetSecretValue, PutSecretValue and DescribeSecret given another account's secret ARN now reach it when the secret's resource policy and the caller's identity policy allow. A value read or write also needs a customer managed key whose policy allows the caller ("Access to KMS is not allowed" otherwise); a secret under aws/secretsmanager answers InvalidRequestException "You can't access a secret from a different AWS account if you encrypt the secret with the default KMS service key." Reported by @TheKerbycz.
  • SNS — tag and subscription actions — the tag actions are authorized against ResourceArn, and GetSubscriptionAttributes, SetSubscriptionAttributes and Unsubscribe against the subscription's topic. Their denials name the topic and spell the action SNS:<name>. Reported by @TheKerbycz.
  • SQS — GetQueueUrl of another account's queue — with AUTH=true, GetQueueUrl with QueueOwnerAWSAccountId was checked against a queue ARN in the caller's account, so an identity policy on the owner's queue never matched. It is now checked on the owner's queue ARN, and a refused or unknown cross-account lookup answers AWS.SimpleQueueService.NonExistentQueue "The specified queue does not exist or you do not have access to it." Reported by @TheKerbycz.
  • SQS — SenderId — a message sent by an IAM user carries the user ID, and one sent by a role session the role ID and session name, instead of the account ID. Reported by @TheKerbycz.
  • Step Functions — a broken state graph — ValidateStateMachineDefinition always answered OK, and CreateStateMachine and UpdateStateMachine stored any graph. A state with both or neither of Next and End (SCHEMA_VALIDATION_FAILED), a StartAt or Next naming no state and a state StartAt never reaches (MISSING_TRANSITION_TARGET), and a workflow with no terminal state (MISSING_END_STATE) now fail validation with AWS's diagnostics, and create and update answer InvalidDefinition "Invalid State Machine Definition: '<code>: <message> at <location>, ...'" without storing the definition. Reported by @kharabasz.

Don't miss a new ministack release

NewReleases is sending notifications on new releases.