mirror of
https://github.com/hanzoai/agency.git
synced 2026-11-02 19:13:28 +00:00
- Delete the agency price map: pricing lived in TWO places (browser + BFF) and commerce silently IGNORED the raw amount, so a $9,999 plan minted at the $50 empty-hat fallback. BFF now sends a catalog REFERENCE (productSlug) and commerce prices from the org's own stored listing — one authority. - offeredPlans is membership only (no prices) so an unknown plan still 400s without duplicating or contradicting the catalog. - clientIP: trust only ingress-set hops. Prefer X-Real-IP; fall back to the RIGHTMOST X-Forwarded-For entry (appended by our proxy), never the client-spoofable leftmost — a forged leftmost could evade the mint limiter. - Tests updated to assert the catalog-reference contract + clientIP trust.