[Groups Infra] Move all API Keys to be group scoped
spolu opened this issue · comments
The system API key remains user-less and has access to the system group.
Existing API keys are bound to the global group
We add the support for creating API keys tied to a specific group. A user can create an API key for a group he has access to.
Context discussion: https://dust4ai.slack.com/archives/C050SM8NSPK/p1721985517982739
An API key is created by a user is assigned a group of their choice. The user can set a group he has access to.
Existing API keys will be scoped to the workspace group by default.
We likely don't want to invalidate API keys created by users if they are removed from a group as it could break systems. Interesting questions. Likely more a warning for the admin?