Proposal: Collection-scoped API keys for AI agent vault access #19671
tamirdresher
started this conversation in
Password Manager
Replies: 1 comment
|
✨ Thank you for your code contribution proposal! While the Bitwarden team reviews your submission, we encourage you to check out our contribution guidelines. Please ensure that your code contribution includes a detailed description of what you would like to contribute, along with any relevant screenshots and links to existing feature requests. This information helps us gather feedback from the community and Bitwarden team members before you start writing code. To keep discussions focused, posts that do not include a proposal for a code contribution will be removed.
Thank you for contributing to Bitwarden! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
PR Proposal
PR: bitwarden/server#7261
Feature Request: bitwarden/server#7252
Jira: PM-33910
Problem
AI agent teams need credential storage with server-enforced isolation. Today, Bitwarden Organizations have Collections, but there's no way to issue an API key scoped to a single Collection. This means agents either get full org access (too broad) or need a separate account per agent (unmanageable).
Proposed Solution
Add collection-scoped API keys — a new API key type that grants access only to items within a specific collection. This reuses the existing SecretsManager
ApiKeypattern and adds:OrganizationId+CollectionIdcolumns on theApiKeyentityvault_api_keygrant type withVaultApiKeyGrantValidator— authenticates viaclient_id/client_secret, emitscollection_idJWT claimCollectionApiKeysControllerwith Create/List/Revoke endpoints at/organizations/{orgId}/collections/{collectionId}/api-keysCiphersControllerandSyncControllerenforce collection scope from JWT claimsUse Case
Teams running multiple AI agents (CI bots, deployment scripts, monitoring tools) can:
Implementation Status
PR is complete with all tests passing. CLA signed. Ready for review.
All reactions