Files
floci/docs/services
Brian Taylor 44629631ca fix(lambda): honour ListLayers and ListLayerVersions query parameters (#2817)
* fix(lambda): honour ListLayers and ListLayerVersions query parameters

CompatibleRuntime, CompatibleArchitecture, MaxItems and Marker were
accepted and ignored, and NextMarker was never emitted, so a client
paginating with MaxItems saw a single page and silently got the whole
list, while a runtime or architecture filter returned layers that do
not match it.

Both actions now filter, paginate and emit NextMarker. Validation
follows the live service rather than the API reference: range and enum
failures accumulate into one ValidationException in a fixed member
order, a non-integer MaxItems is a SerializationException that
short-circuits validation, and a Marker the service did not issue is
InvalidParameterValueException "Invalid pagination key.".

Under a filter, LatestMatchingVersion is the newest version that
matches rather than the newest overall, so ListLayers needs every
version of each layer rather than the latest of each.

Closes #2808

* fix(lambda): sign layer pagination markers

The tag identifying a Marker as Floci's was a fixed string, so a caller
could base64 a cursor of their own with the same prefix and have it
accepted. That cursor was then applied to the page, silently skipping
results or emptying the list where AWS rejects an unissued token.

Markers now carry an HMAC over the cursor, keyed per process, so a
fabricated or edited token fails the check. A marker from an earlier run
is stale for the same reason, which is what AWS does with an expired one.

* test(lambda): cover layer listing parameters through the AWS SDK

AGENTS.md prefers SDK clients over raw HTTP for management-plane
validation. The integration test covers the parameters through the wire
protocol; this adds the same filtering, pagination and enum rejection
through @aws-sdk/client-lambda, so a marshalling regression that only
the SDK would notice does not pass unseen.
2026-08-31 19:38:30 -04:00
..
2026-05-10 11:53:31 -05:00
2026-05-10 11:53:31 -05:00
2026-08-21 00:09:04 -04:00
2026-08-31 09:03:26 -04:00
2026-05-10 11:53:31 -05:00
2026-05-10 11:53:31 -05:00