--- status: accepted date: 2026-08-20 --- # Issue one revocable DWH REST key per installation The single shared `X-API-Key` protecting the data warehouse REST route is replaced by one random 256-bit key per ThothII installation, independently rotatable, optionally expiring and revocable. A separate `dwh-auth` service checks the key through Nginx `auth_request` against a protected file-based registry. It is optional server infrastructure that lives in this repository but is not started by `tht`, and the client protocol is unchanged. ## Considered Options - Extending the portable `tht` CLI would distribute server-only administration code to every workstation, although the route has its own lifecycle. - A manual Nginx key map encourages plaintext keys and makes rotation and revocation unreliable. - SQLite would add a dependency, migrations and backups without benefit at this registry size.