daybook/templates/artifacts
peter 19c1798f90 Release v0.2.0: multiple named API keys per user
Replaces the single per-user DRF token with named, individually-revocable
API keys, so you can run one key per agent and cut off a leaked one without
disrupting the others.

- New ApiKey model (user, name, dbk_-prefixed key, created_at, last_used_at).
  Data migration copies every existing authtoken 1:1 into a "default" named
  key with the same value, so no client (incl. the sibling test project's
  hardcoded test-user key) needs reconfiguring.
- Auth (resolve_token_user) resolves against ApiKey and stamps last_used_at,
  throttled to one write/minute.
- Settings -> API Keys: table with name/key/created/last-used + per-row
  revoke and a create form; keys viewable on demand. Settings -> Account now
  links here; Settings -> Users issues a named initial key.
- Gated provisioning API for test installations: GET/POST /api/keys and
  DELETE /api/keys/{id}, controlled by DAYBOOK_KEY_PROVISIONING_API (unset ->
  follows DEBUG, so off in deployment). Advertised via key_provisioning_api
  in /api/capabilities; 403 when disabled.
- Docs (api/deployment/quickstart/posting-helper), SKILL.md, and env.example
  updated from "token / Settings -> Account" to "key / Settings -> API Keys".
- Tests: new API + UI suites for keys; existing token-based tests moved to
  ApiKey. Full suite 129 passing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-04 10:52:43 +01:00
..
_day_groups.html Add per-artifact public sharing 2026-09-02 16:00:39 +01:00
_feed_toolbar.html Initial public commit 2026-09-01 21:55:02 +01:00
_topbar.html Add version (0.1.0) and a Settings -> About page 2026-09-03 14:41:02 +01:00
feed.html Auto-adjust artifact sidebar width when the source column drops 2026-09-03 13:45:02 +01:00
login.html Add app icon: favicon, apple-touch icon, and top-bar logo 2026-09-03 13:13:17 +01:00
settings_about.html Add version (0.1.0) and a Settings -> About page 2026-09-03 14:41:02 +01:00
settings_account.html Release v0.2.0: multiple named API keys per user 2026-09-04 10:52:43 +01:00
settings_api_keys.html Release v0.2.0: multiple named API keys per user 2026-09-04 10:52:43 +01:00
settings_base.html Release v0.2.0: multiple named API keys per user 2026-09-04 10:52:43 +01:00
settings_demo_data.html Initial public commit 2026-09-01 21:55:02 +01:00
settings_storage.html Initial public commit 2026-09-01 21:55:02 +01:00
settings_users.html Release v0.2.0: multiple named API keys per user 2026-09-04 10:52:43 +01:00