Files
zeekay bad274ffc0 otp: the client a text is charged to cannot be chosen, and 2FA has its own budget
- 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.
2026-10-31 22:37:47 -07:00
..