Repository navigation
Conversation
rakdutta
force-pushed
the
fix/6799-gate-vault-user-credentials
branch
2 times, most recently
from
October 9, 2026 05:34
5d8d0ec to
6910cf4
Compare
rakdutta
marked this pull request as ready for review
October 9, 2026 08:32
rakdutta
requested review from
Lang-Akshay,
brian-hussey,
crivetimihai,
ja8zyjits and
msureshkumar88
as code owners
October 9, 2026 08:32
rakdutta
force-pushed
the
fix/6799-gate-vault-user-credentials
branch
from
October 13, 2026 05:08
7757cfa to
9e888fe
Compare
brian-hussey
force-pushed
the
fix/6799-gate-vault-user-credentials
branch
from
October 22, 2026 14:22
6a30305 to
7d57c74
Compare
Signed-off-by: Rakhi Dutta <rakhibiswas@yahoo.com>
Signed-off-by: Rakhi Dutta <rakhibiswas@yahoo.com>
Signed-off-by: Rakhi Dutta <rakhibiswas@yahoo.com>
Signed-off-by: Rakhi Dutta <rakhibiswas@yahoo.com>
Signed-off-by: Rakhi Dutta <rakhibiswas@yahoo.com>
Signed-off-by: Rakhi Dutta <rakhibiswas@yahoo.com>
rakdutta
force-pushed
the
fix/6799-gate-vault-user-credentials
branch
from
November 2, 2026 05:19
50e38e1 to
10127e7
Compare
Signed-off-by: Rakhi Dutta <rakhibiswas@yahoo.com>
This branch has not been deployed
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.
Closes #6799
When
OAUTH_TOKEN_BACKEND=vault, the per-user Vault credential lookup was unconditional for every non-OAuth gateway invocation. A Vault outage or expiredVAULT_TOKENtherefore blocked all non-OAuth tool calls — including gateways that carry no per-user credentials at all. The fix introduces an explicit opt-in flag onGatewayand routes the Vault lookup only through gateways that declare it.Changes
Schema / DB
requires_user_credentials: bool(defaultFalse) to theGatewayORM model (db.py), Pydantic schemas (GatewayCreate,GatewayUpdate,GatewayRead), and common model (common/models.py).8f6b2c4d9a10that idempotently adds the column to existing databases.Service layer
tool_service.py— guard_resolve_vault_auth_headersbehindgateway_requires_user_credentials. Gateways with the flagFalsebypass the Vault round-trip entirely and proceed directly to gateway-wide static auth (or no auth). Fail-closed behavior is preserved for gateways with the flagTrue.gateway_service.py— propagate the flag throughGatewayRegistrationPreparation, gateway create, and gateway update paths.export_service.py/import_service.py— round-trip the field through export/import payloads.Admin UI
admin.html— add a checkbox to the gateway create/edit form.admin.py— readrequires_user_credentialsfrom the submitted form.gateways.js— wire the field into the JS gateway form handler.Tests
test_tool_service.pycovering:False(bothinvoke_toolandprepare_rust_mcp_tool_execution).VaultConnectionErrorandVaultAuthErrorwhen flag isTrue.False(safe default, no regression).test_schemas.pyandtest_vault_coverage_boost.py.Behavior before / after
requires_user_credentials=true)Notes
requires_user_credentials=False. Operators who rely on per-user Vault credentials must set the flag explicitly on those gateways after upgrading.GatewayCreate/GatewayUpdate), and export/import payloads.Testing
All tests pass:
requires_user_credentials=False.requires_user_credentials=Trueand Vault errors.Deployment Notes
requires_user_credentials=False— no per-user Vault lookup. Operators relying on per-user credentials must update those gateways to set the flag.GatewayCreateandGatewayUpdate; present inGatewayReadresponses.