Skip to content

Add role-based API key auth#8

Draft
yashturkar wants to merge 5 commits into
feat/actor-aware-git-identitiesfrom
feat/hashed-api-key-auth
Draft

Add role-based API key auth#8
yashturkar wants to merge 5 commits into
feat/actor-aware-git-identitiesfrom
feat/hashed-api-key-auth

Conversation

@yashturkar

Copy link
Copy Markdown
Owner

Summary

  • add DB-backed hashed API keys, caller identity resolution, legacy fallback auth, and a key-management CLI
  • route note and publish writes through caller roles instead of a caller-declared source parameter
  • refresh kb-server tests and auth docs for role-based behavior

Verification

  • ./kb-server/.venv/bin/pytest kb-server/tests -q
  • kb-server/.venv/bin/python scripts/docs_lint.py
  • env DATABASE_URL=sqlite:////tmp/flight-deck-auth-smoke.db kb-server/.venv/bin/alembic upgrade head
  • env DATABASE_URL=sqlite:////tmp/flight-deck-auth-smoke.db kb-server/.venv/bin/python -m app.cli.keys create --name test-user --role user
  • env DATABASE_URL=sqlite:////tmp/flight-deck-auth-smoke.db kb-server/.venv/bin/python -m app.cli.keys list
  • env DATABASE_URL=sqlite:////tmp/flight-deck-auth-smoke.db kb-server/.venv/bin/python -m app.cli.keys revoke --prefix kbk_e0f6

@yashturkar

Copy link
Copy Markdown
Owner Author

@yashomdighe this one is relative to #6

@yashturkar yashturkar requested a review from yashomdighe March 12, 2026 06:24
@yashturkar yashturkar linked an issue Mar 12, 2026 that may be closed by this pull request
@yashturkar yashturkar marked this pull request as draft March 12, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add hashed API key auth with identity and permissions

1 participant