Skip to content

feat: API Keys#271

Draft
oxypomme wants to merge 28 commits into
developfrom
feature/api-keys
Draft

feat: API Keys#271
oxypomme wants to merge 28 commits into
developfrom
feature/api-keys

Conversation

@oxypomme

Copy link
Copy Markdown
Member

API

  • Added API Key management
    • Allows for keys scoped to a user (cli, scripts, etc.)
      • Permissions of user are passed to the key
    • Allows for keys scoped to an institution (crons, etc.)
      • Keys are fine grained and user defined
  • Added auth flow for API Keys
    • Renamed middlewares (requireJWT -> requireAuth)
    • requireJWT still exists but only checks for JWT / JWE and reject API keys
  • Added user permissions api-keys:read and api-keys:write for managing API keys scoped to institution
    • Keys scoped to an institution can't have those permissions
  • API Keys can't manage other API Keys

Front

  • Added API key management for users
    • Added in the /profile page
    • Merged the /token page with the /profile
    • Added banner to explicit that app tokens (old JWTs) are deprecated
image
  • Added API key management for admins
image
  • Added API key form (admins are asked to specify user OR institution)
image image
  • Added API key managements for institution members
image image

oxypomme and others added 28 commits August 27, 2025 15:33
might change that to the ones with permission on repositories and/or
aliases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant