[FEATURE] RemoteMCPServer: trust a custom CA for the upstream MCP server
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 18/100
Hướng nghiên cứu
Start from spec.tls on RemoteMCPServer and the commented-out caCertSecretRef in TLSConfig, then check how controller tool discovery builds its trusted roots. The issue leaves open which part belongs in kagent and which in the Substrate gateway, so settle that split with maintainers (see #3258) before writing code. Done means a CA referenced from a ConfigMap or Secret is trusted during discovery and tool calls, with verification still on.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
📋 Prerequisites
- I have searched the existing issues to avoid creating a duplicate
- By submitting this issue, you agree to follow our Code of Conduct
📝 Feature Summary
Let a RemoteMCPServer name a CA bundle (Secret or ConfigMap) that the components connecting to it trust, so MCP servers with a private or cluster CA can be used with verification on.
❓ Problem Statement / Motivation
Some MCP servers sit behind a certificate from a private CA. One case: Kubescape's storage serves a read-only MCP endpoint through the Kubernetes API (https://kubernetes.default.svc/apis/spdx.softwarecomposition.kubescape.io/v1beta1/namespaces/<ns>/mcpservers/default/mcp), so kube-apiserver does authentication and RBAC for the agent. Its certificate is signed by the cluster CA (the kube-root-ca.crt ConfigMap in every namespace).
As #3258 describes, Kagent v1.0.1 has no way to reach such a server: tool discovery ignores spec.tls, and Substrate's gateway verifies the upstream certificate against its own trust store, so even disableVerify does not help. The commented-out caCertSecretRef in TLSConfig is deferred for the same reason.
💡 Proposed Solution
An optional CA reference on the RemoteMCPServer, used by every component that connects to the upstream:
spec:
tls:
caCertRef:
kind: ConfigMap # or Secret
name: kube-root-ca.crt
key: ca.crt
- Controller tool discovery adds it to the trusted roots.
- Substrate's gateway trusts it for that destination (passed with the egress policy).
Which part belongs in kagent and which in substrate is your call; happy to follow the split you prefer.
🔄 Alternatives Considered
disableVerify: does not reach the gateway (#3258), and turns verification off anyway.- A proxy with a public certificate in front of the server: an extra component only to work around trust.
- Earlier attempts: #1110, #1215, #1424 (all closed before the v1alpha3 / Substrate design).
🎯 Affected Service(s)
Controller (MCP discovery), Substrate gateway (tool calls).
📚 Additional Context
Related: #3258. Kubescape design: https://github.com/kubescape/designs-and-proposals/blob/main/proposals/storage-mcp-endpoint.md
🙋 Are you willing to contribute?
- I am willing to submit a PR for this feature
- Ngôn ngữ chính
- Go
- Star
- 4.5k
- Fork
- 937
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 150
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kagent-dev/kagent
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kagent-dev/kagent#3792 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
kagent-dev/kagent#3790 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
kagent-dev/kagent#3789 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] A2A lookups by task or context ID reveal whether another user's resource existsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
kagent-dev/kagent#3787 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Python memory summarization fails for Gemini models: the request has no model nameCó thể đã có người làm @BahaaMattar đã nhận 6 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kagent-dev/kagent#3710 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của kagent-dev/kagent
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
limitlessprojects/Go-Hybrid#4764 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[bug]: lint fails on main, generated CLI docs out of dateCó thể đã có người làm @bupd đã nhận hôm nay. Đang mởbug documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
goharbor/harbor-cli#1180 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
crane: mutate --env adds duplicate PATH on Windows images when key case differsCó thể đã có người làm @aad1tyaaaaa đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
google/go-containerregistry#2523 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bosh_io_stemcell_type: regular does not work for noble and resolute as it adds -go_agent as suffixĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
cloudfoundry/bosh-deployment-resource#138 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100