Ministack: Free, open-source local AWS emulator - 60+ services, Terraform compatible, real databases. Free forever. MIT licensed.
Python awsaws-emulatoraws-localaws-sdkdevtoolsdockerdynamodbec2emulatorlambdalocalstacklocalstack-alternativeministackmock-awsopen-sourcepythons3sqsterraform
fix(CHANGELOG): small fixes (#1495)
Nahuel Nucerac59e38698bb7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex bdb6c646..392aa378 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -32,7 +32,7 @@ Versioning follows [Semantic Versioning](https://semver.org/).- **IAM — a CloudFormation-provisioned policy no longer breaks the read APIs** — stack-created policies and attachments wrote shapes the IAM API never produced (`AttachedPolicies` as `{PolicyName, PolicyArn}` dicts, `Versions` as a list), so `GetAccountAuthorizationDetails`, `ListAttachedRolePolicies` and `ListPolicyVersions` errored or never matched. They now go through the IAM module, so one shape reaches every reader, `AWS::IAM::ManagedPolicy` honours its `Roles` / `Users` / `Groups`, and both resource types return the `Fn::GetAtt` attributes CloudFormation documents. Reported by @iot-rocket.- **Lambda — Node.js ESM handlers using top-level `await` load correctly** — a handler whose module graph contains a top-level `await` throws Node's `ERR_REQUIRE_ASYNC_MODULE`, which fell through to an uncaught `RuntimeError`; both Node bootstraps now treat it like `ERR_REQUIRE_ESM` and fall back to dynamic `import()`. Contributed by @ryan-bennett.- **Cognito — `ListUsers` `Filter` matches values case-insensitively** — every comparison was an exact string match, so `email = "[email protected]"` missed a profile stored as `[email protected]`. Values are now matched case-insensitively for `email`, `phone_number`, `name`, `sub` and the other profile attributes, while `username` and `status` stay case-sensitive per the API reference. Contributed by @ppettitau.-- **DynamoDB — an `UpdateExpression` alias is resolved before the key-attribute check** — `set #pk = :pk` with `#pk` mapped to a non-key attribute was wrongly refused with `Cannot update attribute pk. This attribute is part of the key`; the check now reads the alias-resolved roots, so only a path that resolves to the partition or sort key is rejected. Reported by @ppettitau.+- **DynamoDB — an `UpdateExpression` alias is resolved before the key-attribute check** — `set #pk = :pk` with `#pk` mapped to a non-key attribute was wrongly refused with `Cannot update attribute pk. This attribute is part of the key`; the check now reads the alias-resolved roots, so only a path that resolves to the partition or sort key is rejected. Contributed by @ppettitau.- **RDS — `DescribeDBInstances` honors SDK `Filters`** — clients serialize filters as `Filters.Filter.N` with `Values.Value.N`, but only the internal `Filters.member.N` form was parsed, so filters such as `db-cluster-id` were ignored. Both wire forms are now parsed. Contributed by @jayjanssen.- **S3 — a conditional delete of a key with no current object answers 404** — `DeleteObject` with `If-Match` returned 204 for a key that was absent or hidden by a delete marker, so a compare-and-swap delete reported success it never did. The condition is now evaluated against the current version only: no current object answers `NoSuchKey`, a differing ETag `PreconditionFailed`, and a matching ETag or `If-Match: *` deletes. Reverted and fixed from 1.4.21.- **S3 — one canonical owner ID across every S3 API** — `ListBuckets`, `GetBucketAcl`, `GetObjectAcl` and object listings returned the account id (or a placeholder) and disagreed with one another; they now return a single stable opaque 64-character hex canonical ID, as real S3 does. Reported by @jin-gizmo.@@ -82,7 +82,6 @@ Versioning follows [Semantic Versioning](https://semver.org/).- **IAM — role `Description` charset is validated** — `CreateRole`, `UpdateRole` and `UpdateRoleDescription` now reject a description outside IAM's allowed character set or longer than 1000 characters with `400 ValidationError`. Reported by @iot-rocket.- **CloudFormation — `AWS::SSM::Parameter` goes through the SSM API** — instead of writing the store directly, so a create over an existing name fails (`ParameterAlreadyExists`), updates increment `Version`, a `Name` change replaces, `SecureString` is rejected, and `Fn::GetAtt` exposes `Arn`/`Type`/`Value`. Reported by @iot-rocket.- **CloudFormation — `AWS::SSM::Parameter::Value<...>` is re-resolved on `UpdateStack`** — the parameter name is kept and re-resolved on every operation, so an update with `UsePreviousValue=true` picks up a value changed in Parameter Store since the last deploy. Reported by @iot-rocket.-||||||| Stash base- **RDS — Aurora engine versions are validated on non-create writes and global inheritance** — `ModifyDBCluster`, `CreateGlobalCluster`, and `ModifyGlobalCluster` stored arbitrary Aurora engine versions that the shared engine catalog did not advertise, and `CreateDBCluster` could inherit such a version from legacy global-cluster state even though supplying it explicitly was rejected. All four paths now use the create-time shared catalog validator and reject unknown versions with `InvalidParameterCombination` / `Cannot find version {version} for {engine}` before mutating state. Contributed by @kiran01bm.- **EC2 — instance public IP and DNS reach the SDKs, and generated addresses are addresses** — `DescribeInstances` and `RunInstances` emitted the public address under `publicIpAddress` / `publicDnsName`, which are not the tags the EC2 wire schema defines (`ipAddress` / `dnsName`, per botocore's `ec2-2016-11-15` model), so every SDK dropped both fields silently and `PublicIpAddress` came back absent on instances that had one. They now ride the real tags. Fixing that exposed a second one: `_random_ip` appended two octets whatever it was given, so a one-octet prefix produced `52.55.218` — `AllocateAddress` has been handing back that shape as `PublicIp` all along, and no address parser accepts it. The generator now completes any prefix to four octets. Contributed by @iot-rocket.- **S3 — `CRC64NVME` checksums are computed instead of refused** — CRC-64/NVME is the algorithm current AWS SDKs and the CLI checksum uploads with by default, and MiniStack answered it with `InvalidRequest` ("requires optional native dependencies"), so a stock `aws s3 cp` or `aws s3api put-object` failed before it began unless the caller knew to set `AWS_REQUEST_CHECKSUM_CALCULATION=when_required`. The algorithm is plain arithmetic — the reflected form of polynomial `0xAD93D23594C93659` with all-ones init and xorout — so it is now computed from a byte-at-a-time table in the stdlib, adding no dependency: `PutObject` and `CopyObject` validate a client-supplied `x-amz-checksum-crc64nvme` (`BadDigest` on mismatch) and `GetObject` / `HeadObject` return it under `x-amz-checksum-mode: ENABLED`, typed `FULL_OBJECT`. The tests pin the implementation to the algorithm's published check value (`b"123456789"` → `0xAE8B14860A799888`) and to a bit-at-a-time reference rather than to itself. `CRC32C` still requires the native `google-crc32c` and is still refused.