Edge topology
Three components, one rule: the origin only trusts the edge.
Components
| Component | Responsibility | Exposed |
|---|---|---|
| Edge node | TLS termination, cache lookup, header normalisation | Public, :443 |
| Origin | Authoritative content store, revision control | Private, edge allowlist only |
| Control plane | Token issuance, purge queue, metrics | Private, operator network |
Request path
- Client connects over TLS 1.3. Session resumption is enabled with a 10 minute ticket lifetime.
- The edge computes the cache key from the path plus the
accept-encodingfamily. - On a miss, the edge opens at most one upstream connection per key (single-flight) and streams the body back while writing to cache.
- Responses carry
x-pony-cachewith one ofhit,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
| Symptom | Meaning | Operator action |
|---|---|---|
503 edge-no-origin | All upstream connections failed the signature check | Rotate the edge key, re-deploy both sides together |
504 edge-timeout | Origin exceeded the 8 s read budget | Check origin disk pressure before touching the edge |
| Slow convergence | Purge queue backed up | Inspect x-pony-propagated; expected to reach the node count within 12 s |