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.
/health
public → gateway health JSON/api/metrics/*
JWT manager → proxy → analyzer/api/webhooks/*
JWT manager → proxy → ingestionMILLIPEDE_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
Lab complete — nice work.