dust-tt / dust

Amplify your team's potential with customizable and secure AI assistants.

Home Page:https://dust.tt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Groups Infra] Move all API Keys to be group scoped

spolu opened this issue · comments

https://www.notion.so/dust-tt/Engineering-e0f834b5be5a43569baaf76e9c41adf2?p=5d15a65989da4b11aa99ed1c213f9fb3&pm=s

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?