mirror of
https://github.com/hanzoai/iam.git
synced 2026-11-19 18:37:16 +00:00
- httpx.Caller reads the caller from facts the caller cannot write: the host's stamped X-Client-Ip over its socket, or the nearest proxy's appended hop behind it. CF-Connecting-IP is no longer read, since api.hanzo.ai is not behind a proxy that rewrites it, so a limit keyed on it was a limit the caller set. IPv6 is bucketed by /48 (a site's allocation), not /64, so a caller cannot rotate addresses inside one allocation. - The open-request budgets (number, day, ceiling) are charged only by open requests: a second factor is admitted against its own reserved budget, so a stranger filling the open budgets cannot lock a holder out of their own code. Budgets are scoped by tenant where they are money (day), and counted by counter rows instead of COUNT scans, so a refusal costs O(1) however many rows the ledger holds. - Signup refuses a phone number already registered in the org, closing the squatting that needed no proof to take one.