Ponystudio Docs

Edge topology

Three components, one rule: the origin only trusts the edge.

Components

ComponentResponsibilityExposed
Edge nodeTLS termination, cache lookup, header normalisationPublic, :443
OriginAuthoritative content store, revision controlPrivate, edge allowlist only
Control planeToken issuance, purge queue, metricsPrivate, operator network

Request path

  1. Client connects over TLS 1.3. Session resumption is enabled with a 10 minute ticket lifetime.
  2. The edge computes the cache key from the path plus the accept-encoding family.
  3. On a miss, the edge opens at most one upstream connection per key (single-flight) and streams the body back while writing to cache.
  4. Responses carry x-pony-cache with one of hit, miss, stale, bypass.

Origin shielding rules

# origin-side filter, simplified
allow 203.0.113.0/24;   # published edge range
allow 198.51.100.0/24;
deny  all;

# requests that survive the filter must also carry a valid edge signature
proxy_set_header X-Edge-Sig $http_x_edge_sig;   # HMAC-SHA256, 60s window

Because the origin is not reachable from the public internet, an unauthenticated scan of the edge never touches it. Scanners see the documentation you are reading right now, which is the intended behaviour.

Failure modes

SymptomMeaningOperator action
503 edge-no-originAll upstream connections failed the signature checkRotate the edge key, re-deploy both sides together
504 edge-timeoutOrigin exceeded the 8 s read budgetCheck origin disk pressure before touching the edge
Slow convergencePurge queue backed upInspect x-pony-propagated; expected to reach the node count within 12 s