CloudFront
Parity grade: A · SDK aws-sdk-go-v2/service/cloudfront@v1.74.2 · last audited 2026-10-07 (70d96e12d)
Category: Networking & Content Delivery · View PARITY.md on GitHub · All Services
Parity & Coverage
| Metric | Value |
|---|---|
| PARITY entries audited | 60 (60 ok) |
| Feature families | 18 (18 ok) |
| Known gaps | none |
| Structural gaps (can't be emulated) | 4 |
| Deferred items | 4 |
| Resource leaks | clean |
Structural Gaps
These do not block an A grade — no implementation could produce real data here because the underlying data source cannot exist in an emulator.
- Field-level encryption is not executed on the data plane. CloudFront Functions (dataplane_function.go) and Lambda@Edge (dataplane_edge.go) do run.
- Viewer TLS is not terminated here: https is inferred from X-Forwarded-Proto/CloudFront-Forwarded-Proto or a TLS listener, so viewer certificates and SNI are not modelled.
- Real edge-location behaviour (multi-POP caches, origin shield, regional edge caches, Range-request caching, ErrorCachingMinTTL, origin failover groups, WAF, real-time logs) is not emulated.
- ManagedCertificateRequest: ValidationTokenHost is stored and reflected by GetManagedCertificateDetails, but the certificate itself needs real ACM DNS/HTTP validation, which no emulator performs.
Deferred Items
- Distribution status InProgress->Deployed transition timer: FIXED this pass (gopherstack-k3fi) for Distribution specifically -- see UpdateDistribution's op row above. The other 5 resource kinds with their own InProgress/Deployed-shaped status semantics (DistributionTenant, StreamingDistribution, ConnectionGroup/ConnectionFunction, AnycastIPList, TrustStore) still persist InProgress indefinitely; still deferred, now for a narrower, more honest reason -- extending the same worker.Group timer to each is straightforward but out of this pass's scope, not blocked on anything.
- Full per-op audit of DistributionConfig nested shape correctness (Origins/OriginGroups/CacheBehaviors/ViewerCertificate/Restrictions field-by-field) beyond the Quantity/Items validation and the pre-existing minimal-parse (RawConfig) model. This pass verified the specific sub-fields needed for the InUse-guard fixes (S3OriginConfig.OriginAccessIdentity path format, Origin.OriginAccessControlId, TrustedKeyGroups.Items) are correct, but a full field-by-field audit of the rest of DistributionConfig's ~60 nested types was not attempted -- RawConfig storage design predates this pass and was not restructured.
- ResponseHeadersPolicySecurityHeadersConfig is a flattened simplification of the real 5-sub-struct shape: XSSProtection is stored/emitted as a single string (matches only the real ReportUri sub-field) instead of the real ResponseHeadersPolicyXSSProtection{Override, Protection, ModeBlock, ReportUri} struct, and only ContentTypeOptions has a per-header Override flag modeled (STS/FrameOptions/ReferrerPolicy/ContentSecurityPolicy hardcode Override=false in every response, which happens to match every seeded managed policy's real Override:No default but is not read from request input for those four). Restructuring RHPSecurityHeaders to the full real shape is a breaking model change (cascades to persistence JSON tags and every existing test that constructs one) out of proportion to fix alongside this pass's other work; the CORS list fields and ContentTypeOptions/ContentSecurityPolicy value (the parts client code actually round-trips today) were fixed.
- 2026-08-29 filter/pagination audit: ~20 List ops (see the header note above for the full list) hardcode MaxItems/Quantity and never apply Marker/MaxItems truncation or emit a NextMarker, unlike the ops fixed this pass and the handful already using paginateByMarkerID (ListDistributions, ListFunctions, ListInvalidations*, ListAnycastIPLists, ListDistributionTenantsByCustomization). Left unfixed: the fix is mechanical (route each through paginateByMarkerID/paginateByMarkerValue) but the volume (~20 handlers, each needing its own before/after real-SDK pagination test) was out of this pass's budget after the higher-value never-honoured-filter bugs. The ListDistributionsBy* family (11 ops) additionally has per-op output shape questions (DistributionIdList vs DistributionList vs DistributionIdOwnerList -- confirmed heterogeneous by reading 3 of the 11 Output structs) that a mechanical pagination patch alone would not resolve; that family needs a dedicated wire-shape read of each op's own Output/deserializer before touching its pagination, not a copy of the fix used elsewhere in this pass.
Audited Operations
60 audited operations
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
CreateDistribution | fixed | fixed | ok | ok |
CreateDistributionWithTags | ok | ok | fixed | ok |
GetDistribution | ok | ok | ok | ok |
GetDistributionConfig | ok | ok | ok | ok |
UpdateDistribution | fixed | ok | fixed | ok |
DeleteDistribution | ok | ok | ok | ok |
ListDistributions | fixed | ok | ok | ok |
CopyDistribution | ok | fixed | fixed | ok |
CreateInvalidation | ok | ok | ok | ok |
GetInvalidation | ok | ok | ok | ok |
ListInvalidations | ok | ok | ok | ok |
CreateCachePolicy | fixed | ok | ok | ok |
UpdateCachePolicy | fixed | ok | fixed | ok |
DeleteCachePolicy | ok | ok | fixed | ok |
GetCachePolicy / GetCachePolicyConfig / ListCachePolicies | fixed | ok | fixed | ok |
CreateOriginRequestPolicy | ok | ok | ok | ok |
UpdateOriginRequestPolicy | fixed | ok | fixed | ok |
DeleteOriginRequestPolicy | ok | ok | fixed | ok |
GetOriginRequestPolicy / GetOriginRequestPolicyConfig / ListOriginRequestPolicies | fixed | ok | ok | ok |
CreateResponseHeadersPolicy | ok | ok | ok | ok |
UpdateResponseHeadersPolicy | ok | ok | fixed | ok |
DeleteResponseHeadersPolicy | ok | ok | fixed | ok |
GetResponseHeadersPolicy / GetResponseHeadersPolicyConfig / ListResponseHeadersPolicies | fixed | ok | ok | ok |
CreateOriginAccessControl | ok | ok | ok | ok |
UpdateOriginAccessControl | ok | ok | ok | ok |
DeleteOriginAccessControl | ok | ok | fixed | ok |
GetOriginAccessControl / GetOriginAccessControlConfig / ListOriginAccessControls | ok | ok | ok | ok |
CreateCloudFrontOriginAccessIdentity | ok | fixed | ok | ok |
UpdateCloudFrontOriginAccessIdentity | ok | ok | ok | ok |
DeleteCloudFrontOriginAccessIdentity | ok | ok | fixed | ok |
GetCloudFrontOriginAccessIdentity / Config / List | ok | ok | ok | ok |
CreateFunction | fixed | ok | ok | ok |
UpdateFunction | fixed | ok | ok | ok |
PublishFunction | fixed | ok | ok | ok |
DeleteFunction | ok | ok | ok | ok |
GetFunction / DescribeFunction / ListFunctions | fixed | ok | ok | ok |
TestFunction | ok | ok | n/a | n/a |
TagResource / UntagResource / ListTagsForResource | ok | ok | fixed | ok |
AssociateAlias | ok | ok | ok | ok |
AssociateDistributionTenantWebACL | fixed | ok | ok | ok |
AssociateDistributionWebACL | fixed | ok | ok | ok |
DisassociateDistributionWebACL | fixed | ok | ok | ok |
UpdateDomainAssociation | fixed | ok | ok | ok |
ListDistributionTenantsByCustomization | fixed | ok | fixed | n/a |
PutResourcePolicy | fixed | fixed | fixed | n/a |
GetResourcePolicy | fixed | ok | ok | n/a |
DeleteResourcePolicy | fixed | ok | ok | n/a |
CreateVpcOrigin | fixed | ok | ok | ok |
UpdateVpcOrigin | fixed | fixed | ok | ok |
DeleteVpcOrigin | fixed | ok | ok | ok |
CreateRealtimeLogConfig | fixed | ok | fixed | ok |
GetRealtimeLogConfig | fixed | ok | ok | ok |
UpdateRealtimeLogConfig | fixed | ok | ok | ok |
DeleteRealtimeLogConfig | fixed | ok | ok | ok |
UpdateTrustStore | fixed | fixed | fixed | ok |
UpdateDistributionWithStagingConfig | fixed | fixed | ok | n/a |
ListDomainConflicts | fixed | fixed | ok | n/a |
UpdatePublicKey | ok | ok | fixed | ok |
UpdateFieldLevelEncryptionConfig | ok | ok | fixed | ok |
UpdateFieldLevelEncryptionProfile | ok | ok | fixed | ok |
Audited Feature Families
| Feature Family | Status |
|---|---|
list_distributions_by | fixed |
monitoring_subscription | fixed |
managed_certificate_details | fixed |
connection_group_function_swaps | fixed |
ListConnectionGroups | — |
ListConnectionFunctions | — |
disassociate_distribution_tenant_web_acl | fixed |
distribution_tenants_connection_groups | ok |
field_level_encryption | ok |
public_keys_key_groups | ok |
realtime_log_configs | ok |
key_value_stores | ok |
vpc_origins | ok |
continuous_deployment_policy | ok |
invalidations_realtime_status | ok |
monitoring_subscriptions_public_resource_policy_connection_groups | fixed |
managed_policies | ok |
streaming_distributions | ok |
