Conversation
Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>
Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>
FenjuFu
force-pushed
the
feat/mcp-bearer-auth
branch
from
September 2, 2026 08:52
8a9b8cd to
cd1ae6a
Compare
15 tasks
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.
Summary
Adds two backend pieces toward authenticated remote MCP servers:
Refs #1661. The stored console credential is not yet consumed by the plugin-link resolver, so this PR does not complete tenant-scoped managed MCP authentication.
Runtime environment-reference path
Tool discovery and calls use the existing initialized_mcp_session path. The resolver reads MCP_SERVER_BEARER_TOKEN_REFS, resolves the named token only in plugin-link, and passes Authorization through the official HTTP/MCP client.
Example non-secret configuration:
Inject GITNEXUS_MCP_TOKEN separately through deployment secret storage.
The map is bounded to 100 entries / 64 KiB; tokens are bounded to visible ASCII / 8 KiB. Invalid configuration fails closed. Configured authenticated endpoints require HTTPS Streamable HTTP, with redirects and SSE fallback disabled. URL user-info is rejected.
Console persistence path
V1.49 adds auth_type and credential_ciphertext to mcp_data. Publication validates the supported auth type and requires a non-empty credential field for bearer before release side effects. The DTO describes the submitted value as RSA-encrypted; this change does not itself encrypt or validate that value. Read DTOs expose hasCredential instead of the ciphertext.
Remaining #1661 requirements
Do not close #1661 on the basis of this backend slice.
Validation
Previously recorded on this PR: Python unit suite 220 passed; focused HTTPS suite 35 passed; repository Python formatting/type/lint checks passed; JDK 21 Maven reactor compile passed; McpServiceImplBusinessExceptionTest 2 passed. Deployed GitNexus/Astron E2E has not been established.
The 2026-09-10 maintenance update changes only the title/description after inspecting head cd1ae6a. No source change or fresh local test run is claimed. Current CI details remain in the Checks tab.