Skip to content

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 ​

MetricValue
PARITY entries audited23 (23 ok)
Feature families1 (1 ok)
Known gapsnone
Deferred items4
Resource leaksclean

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
OperationWireErrorsStatePersist
CreateIdentityPoolokokokok
DeleteIdentityPoolokokokok
DescribeIdentityPoolokokokok
ListIdentityPoolsokokokok
UpdateIdentityPoolokokokok
GetIdokokokok
GetCredentialsForIdentityokokokn/a
GetOpenIdTokenokokokn/a
SetIdentityPoolRolesokokokok
GetIdentityPoolRolesokokokok
DeleteIdentitiesokokokok
DescribeIdentityokokokok
GetOpenIdTokenForDeveloperIdentityokokokok
GetPrincipalTagAttributeMapokokokok
ListIdentitiesokokokok
ListTagsForResourceokokokn/a
LookupDeveloperIdentityokokokn/a
MergeDeveloperIdentitiesokokokok
SetPrincipalTagAttributeMapokokokok
TagResourceokokokok
UnlinkDeveloperIdentityokokokok
UnlinkIdentityokokokok
UntagResourceokokokok

Audited Feature Families ​

Feature FamilyStatus
open_id_token_jwtok

Released under the MIT License.