Book 5 · Lesson 5.1

Rust API gateway scaffold

  • Locate services/gateway Axum app
  • List public vs JWT-protected routes
  • Run gateway on :8443 with MILLIPEDE_MTLS=1

Prerequisites: 3.10 · 4.10

Book 5 ships Stage 2 + 3 — gateway security first, then Python enrichment.

/healthpublicgateway health JSON
/api/metrics/*JWT managerproxy → analyzer
/api/webhooks/*JWT managerproxy → ingestion
MILLIPEDE_MTLS=1 cargo run -p millipede-gateway
curl -sk https://localhost:8443/health

See docs/stage2-gateway.md.

Teach-back prompt

Why is /health public but /api/* protected?

Gateway scaffold run

Lesson 5.1 check

1. Gateway listens on…