Skip to content

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 ​

MetricValue
PARITY entries audited60 (60 ok)
Feature families18 (18 ok)
Known gapsnone
Structural gaps (can't be emulated)4
Deferred items4
Resource leaksclean

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
OperationWireErrorsStatePersist
CreateDistributionfixedfixedokok
CreateDistributionWithTagsokokfixedok
GetDistributionokokokok
GetDistributionConfigokokokok
UpdateDistributionfixedokfixedok
DeleteDistributionokokokok
ListDistributionsfixedokokok
CopyDistributionokfixedfixedok
CreateInvalidationokokokok
GetInvalidationokokokok
ListInvalidationsokokokok
CreateCachePolicyfixedokokok
UpdateCachePolicyfixedokfixedok
DeleteCachePolicyokokfixedok
GetCachePolicy / GetCachePolicyConfig / ListCachePoliciesfixedokfixedok
CreateOriginRequestPolicyokokokok
UpdateOriginRequestPolicyfixedokfixedok
DeleteOriginRequestPolicyokokfixedok
GetOriginRequestPolicy / GetOriginRequestPolicyConfig / ListOriginRequestPoliciesfixedokokok
CreateResponseHeadersPolicyokokokok
UpdateResponseHeadersPolicyokokfixedok
DeleteResponseHeadersPolicyokokfixedok
GetResponseHeadersPolicy / GetResponseHeadersPolicyConfig / ListResponseHeadersPoliciesfixedokokok
CreateOriginAccessControlokokokok
UpdateOriginAccessControlokokokok
DeleteOriginAccessControlokokfixedok
GetOriginAccessControl / GetOriginAccessControlConfig / ListOriginAccessControlsokokokok
CreateCloudFrontOriginAccessIdentityokfixedokok
UpdateCloudFrontOriginAccessIdentityokokokok
DeleteCloudFrontOriginAccessIdentityokokfixedok
GetCloudFrontOriginAccessIdentity / Config / Listokokokok
CreateFunctionfixedokokok
UpdateFunctionfixedokokok
PublishFunctionfixedokokok
DeleteFunctionokokokok
GetFunction / DescribeFunction / ListFunctionsfixedokokok
TestFunctionokokn/an/a
TagResource / UntagResource / ListTagsForResourceokokfixedok
AssociateAliasokokokok
AssociateDistributionTenantWebACLfixedokokok
AssociateDistributionWebACLfixedokokok
DisassociateDistributionWebACLfixedokokok
UpdateDomainAssociationfixedokokok
ListDistributionTenantsByCustomizationfixedokfixedn/a
PutResourcePolicyfixedfixedfixedn/a
GetResourcePolicyfixedokokn/a
DeleteResourcePolicyfixedokokn/a
CreateVpcOriginfixedokokok
UpdateVpcOriginfixedfixedokok
DeleteVpcOriginfixedokokok
CreateRealtimeLogConfigfixedokfixedok
GetRealtimeLogConfigfixedokokok
UpdateRealtimeLogConfigfixedokokok
DeleteRealtimeLogConfigfixedokokok
UpdateTrustStorefixedfixedfixedok
UpdateDistributionWithStagingConfigfixedfixedokn/a
ListDomainConflictsfixedfixedokn/a
UpdatePublicKeyokokfixedok
UpdateFieldLevelEncryptionConfigokokfixedok
UpdateFieldLevelEncryptionProfileokokfixedok

Audited Feature Families ​

Feature FamilyStatus
list_distributions_byfixed
monitoring_subscriptionfixed
managed_certificate_detailsfixed
connection_group_function_swapsfixed
ListConnectionGroups—
ListConnectionFunctions—
disassociate_distribution_tenant_web_aclfixed
distribution_tenants_connection_groupsok
field_level_encryptionok
public_keys_key_groupsok
realtime_log_configsok
key_value_storesok
vpc_originsok
continuous_deployment_policyok
invalidations_realtime_statusok
monitoring_subscriptions_public_resource_policy_connection_groupsfixed
managed_policiesok
streaming_distributionsok

Released under the MIT License.