Files
floci/compatibility-tests/sdk-test-go/tests
Joel Klint e3e06a1122 feat(iot): add RegisterCertificateWithoutCA and the V2 principal lists (#5772)
* feat(iot): add RegisterCertificateWithoutCA and the V2 principal lists

RegisterCertificateWithoutCA registers a certificate from any issuer in
SNI_ONLY mode. ListThingPrincipalsV2 and ListPrincipalThingsV2 page the
thing principal attachments and report each one as NON_EXCLUSIVE_THING,
because Floci does not model exclusive attachment.

* fix(iot): validate the principal and page size of the V2 principal lists

ListPrincipalThingsV2 requires a principal, and both V2 lists accept 1 to
250 results per page, as on AWS. Tests cover these checks and the
RegisterCertificateWithoutCA rejection of a missing PEM and an unknown
status.

* fix(iot): refuse a device certificate registered in more than one account

AWS selects the account from the server name, which Floci does not do
yet. The MQTT TLS listener therefore refuses a certificate that more
than one account registers, instead of admitting it under the lowest
account ID. RegisterCertificateWithoutCA drops the cached location, and
the lookup runs under compute, so a connect cannot cache a stale account.

* fix(iot): make the RegisterCertificateWithoutCA duplicate check atomic

A lock holds the duplicate check and the store write together, as
CreateAuthorizer does, so two identical registrations at the same moment
store one certificate and the other caller gets the 409. The 409 carries
resourceId and resourceArn, as AWS lists for this call.
2026-10-18 14:50:15 -04:00
..
2026-04-11 09:59:05 -05:00