feat/apikey-alias-authorship #2

Merged
hzhang merged 2 commits from feat/apikey-alias-authorship into master 2026-05-16 22:06:14 +00:00
Owner
No description provided.
hzhang added 2 commits 2026-05-16 22:06:09 +00:00
- APIKey.alias (unique, required). Creating with an existing alias
  renews that key: same key string kept, validity reset to 15d,
  reactivated, name/roles updated (response has renewed=true).
- get_actor(): X-API-Key -> key alias, Bearer -> 'admin'.
- markdown & patch create/update record author / created_at /
  updated_at / last_modified_by from the actor.
- Idempotent run_migrations() (information_schema-guarded ALTERs +
  backfill) so existing tables/data gain the new columns on startup;
  create_all still covers fresh DBs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
hzhang merged commit f1584d1841 into master 2026-05-16 22:06:14 +00:00
hzhang deleted branch feat/apikey-alias-authorship 2026-05-16 22:06:14 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hzhang/HangmanLab.Backend#2