feat(gateway): add per-user personal credential store#4024
Open
ecthelion77 wants to merge 1 commit intoIBM:mainfrom
Open
feat(gateway): add per-user personal credential store#4024ecthelion77 wants to merge 1 commit intoIBM:mainfrom
ecthelion77 wants to merge 1 commit intoIBM:mainfrom
Conversation
22aee4a to
0fb03ad
Compare
Contributor
Author
|
Suggested labels: |
0fb03ad to
1e47984
Compare
7c2bfb1 to
1f94891
Compare
…tion Signed-off-by: Olivier Gintrand <olivier.gintrand@forterro.com>
1f94891 to
8065bf7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ Feature / Enhancement PR
🔗 Epic / Issue
Closes #4006
🚀 Summary (1-2 sentences)
Add a personal credential storage system enabling individual users to store their own API keys/tokens for specific gateways, with automatic per-user auth on non-OAuth tool invocations.
🧪 Checks
make lintpasses (ruff + black)make testpasses📓 Notes
Use case
Some MCP backends require per-user authentication via API keys rather than OAuth. This feature lets each user store their own credentials for a gateway, which are automatically used during tool invocations.
Authentication flow (non-OAuth gateways)
Supported credential types
api_key:Authorization: Basic base64(key:X)bearer_token:Authorization: Bearer <token>basic_auth:Authorization: Basic base64(value)Changes
db.pyuser_gateway_credentialstablecredential_storage_service.pycredential_router.pyGET/PUT/DELETEper gateway)tool_service.pymain.pyadmin.js,gateways.js,admin.html,gateways_partial.html)Security
EncryptionService(gateway_id, user_email)prevents duplicates