Cognito Identity
Parity grade: A · SDK aws-sdk-go-v2/service/cognitoidentity@v1.42.3 · last audited 2026-10-12 (81a1aabf0)
Category: Identity & Access · View PARITY.md on GitHub · All Services
Parity & Coverage
| Metric | Value |
|---|---|
| PARITY entries audited | 23 (23 ok) |
| Feature families | 1 (1 ok) |
| Known gaps | none |
| Deferred items | 4 |
| Resource leaks | clean |
Deferred Items
- HTTP status code choice for NotAuthorizedException (403 here) vs AWS's actual per-exception status (SDK error-type resolution is body-driven, not status-code-driven, so this doesn't break aws-sdk-go-v2 clients; only relevant to tooling that inspects raw HTTP status).
- ALREADY COVERED BY CHAOS (verified gopherstack-tqdj): ConcurrentModificationException (SetIdentityPoolRoles, UpdateIdentityPool per deserializers.go) is not emulated: there is no optimistic-concurrency/version token in this backend's resource model to make a genuine concurrent-write collision detectable, and fabricating one that never fires (or fires on arbitrary heuristics) would be worse than omitting it. Would need a real revision-counter field added to IdentityPool/IdentityRoles to do properly -- out of scope for an error-taxonomy pass. Concretely verified this pass: cognitoidentity.Handler implements ChaosServiceName() -> "cognito-identity" and ChaosOperations() -> h.GetSupportedOperations() (handler.go), and pkgs/chaos.Middleware is wired globally via registry.Use(chaos.Middleware(faultStore)) in internal/app/cli.go, matching purely on the request's SigV4 service name + X-Amz-Target operation + region and injecting an arbitrary caller-specified FaultError{Code, StatusCode} without touching backend state -- a fault rule such as {"service":"cognito-identity","operation":"UpdateIdentityPool","error":{"code":"ConcurrentModificationException","statusCode":400}} deterministically returns that exact typed error to a real client with zero backend code changes.
- ALREADY COVERED BY CHAOS (verified gopherstack-tqdj): TooManyRequestsException (every op) and LimitExceededException (CreateIdentityPool/GetId/UpdateIdentityPool per deserializers.go) are throttling/account-quota conditions; this in-memory emulator has no request-rate tracking and AWS's actual per-account pool/identity quotas are account-specific soft limits, not fixed constants -- inventing an arbitrary hard-coded threshold would be a fabricated business rule, not a verified one. Left unimplemented, consistent with how other gopherstack services treat throttling. Same chaos mechanism as ConcurrentModificationException above makes both reachable on demand with zero backend code changes.
- ALREADY COVERED BY CHAOS (verified gopherstack-tqdj): ExternalServiceException (GetCredentialsForIdentity, GetId, GetOpenIdToken, UnlinkIdentity per deserializers.go) is AWS's wrapper for a real external identity provider (Facebook/Google/a linked Cognito user pool) rejecting a token. This backend validates login tokens against its own stored state, not a real external IdP, so there is no authentic backend-state trigger condition for this exception here. Same chaos mechanism as above makes it reachable on demand with zero backend code changes.
Audited Operations
23 audited operations
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
CreateIdentityPool | ok | ok | ok | ok |
DeleteIdentityPool | ok | ok | ok | ok |
DescribeIdentityPool | ok | ok | ok | ok |
ListIdentityPools | ok | ok | ok | ok |
UpdateIdentityPool | ok | ok | ok | ok |
GetId | ok | ok | ok | ok |
GetCredentialsForIdentity | ok | ok | ok | n/a |
GetOpenIdToken | ok | ok | ok | n/a |
SetIdentityPoolRoles | ok | ok | ok | ok |
GetIdentityPoolRoles | ok | ok | ok | ok |
DeleteIdentities | ok | ok | ok | ok |
DescribeIdentity | ok | ok | ok | ok |
GetOpenIdTokenForDeveloperIdentity | ok | ok | ok | ok |
GetPrincipalTagAttributeMap | ok | ok | ok | ok |
ListIdentities | ok | ok | ok | ok |
ListTagsForResource | ok | ok | ok | n/a |
LookupDeveloperIdentity | ok | ok | ok | n/a |
MergeDeveloperIdentities | ok | ok | ok | ok |
SetPrincipalTagAttributeMap | ok | ok | ok | ok |
TagResource | ok | ok | ok | ok |
UnlinkDeveloperIdentity | ok | ok | ok | ok |
UnlinkIdentity | ok | ok | ok | ok |
UntagResource | ok | ok | ok | ok |
Audited Feature Families
| Feature Family | Status |
|---|---|
open_id_token_jwt | ok |
