mirror of
https://github.com/hanzoai/gateway.git
synced 2026-10-30 15:04:44 +00:00
cmd/gateway is now a ZAP->ZAP relay: forward.Relay(node, gate, pickPeer) authenticates each inbound Forward on the envelope (JWT validate, clear-then-reassert identity, never reads body), forwards to cloud/base over ZAP. Billing deferred to cloud-api's balance gate. Replaces the 503 stub + deletes the old inconsistent zap_wire.go. //go:build !legacy separates the edge relay from main_legacy (krakend). luxfi/[email protected].