Files
ARTEX/server
Grady May a383e5bcb2 feat(db): store proxy pool entries behind a masked API
Part 1 of 4 of the proxy pool design in #545: storage and a CRUD API.
Nothing activates an entry yet, so the global proxy is unchanged.

- Migration 0028 adds proxy_pool: a unique keyed address hash, at most
  one active entry (partial unique index), a CHECK that the active entry
  is enabled, and nullable egress_ip, last_check_at and last_check_ok for
  the health check.
- Addresses are normalized, sealed at rest (AAD proxy_pool.address) and
  covered by the startup key check and key rotation. Uniqueness uses an
  HMAC under a sub-key kept on secretBox; RotateSecretKey locks the table
  and rehashes in its transaction, and pool writes seal under that lock.
- GET/POST /api/proxy-pool and PATCH/DELETE /api/proxy-pool/{id} never
  return an address; a masked address on update keeps the stored one.
2026-12-02 22:05:05 -05:00
..
2026-07-26 04:27:45 -04:00
2026-11-26 23:40:10 +01:00
2026-07-26 04:27:45 -04:00
2026-08-24 14:14:15 +08:00