- API keys: scripts and other systems call the API with
Authorization: ApiKey atk_...instead of a password login. A key is an opaque random string (not a JWT) owned by the user who created it, stored only as its sha256 in the new tableapi_key, and resolved in the middleware to the owner'srequest.state.user(cached per worker forconfig_api_key_cache_sec, 60 s), so role, permission and ownership checks work unchanged. A route accepts keys only with"is_api_key": Truein itsconfig_apientry (none by default); a key may be limited toscopes(paths) andexpire_days. New routes/my/api-key-create,/my/api-key-read,/my/api-key-delete,/admin/api-key-delete; new settingsconfig_api_key_max(20 keys per user) andconfig_api_key_cache_sec. An unknown or expired key, or a deleted or deactivated owner, is 401 (docs/auth.md).