Skip to content

Commit 69a8510

Browse files
committed
feat: support customized TLS configuration to mcpserver
Signed-off-by: dahu.kdh <dahu.kdh@alibaba-inc.com>
1 parent 02f2956 commit 69a8510

6 files changed

Lines changed: 776 additions & 221 deletions

File tree

go/api/v1alpha2/remotemcpserver_types.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,26 @@ type RemoteMCPServerSpec struct {
5252
// +optional
5353
// +kubebuilder:default=true
5454
TerminateOnClose *bool `json:"terminateOnClose,omitempty"`
55+
// +optional
56+
TLS *MCPServerTLS `json:"tls,omitempty"`
57+
}
58+
59+
// MCPServerTLS defines the TLS configuration for RemoteMCPServer.
60+
// This is used when converting from MCPServer's HTTPTransportTLS which uses Secret references.
61+
type MCPServerTLS struct {
62+
// SecretRef is a reference to a Kubernetes Secret containing
63+
// the client certificate (tls.crt), key (tls.key), and optionally
64+
// the CA certificate (ca.crt) for mTLS authentication.
65+
// The Secret must be in the same namespace as the RemoteMCPServer.
66+
// +optional
67+
SecretRef string `json:"secretRef,omitempty"`
68+
69+
// InsecureSkipVerify disables SSL certificate verification.
70+
// WARNING: This should ONLY be used in development/testing environments.
71+
// Production deployments MUST use proper certificates.
72+
// +optional
73+
// +kubebuilder:default=false
74+
InsecureSkipVerify bool `json:"insecureSkipVerify,omitempty"`
5575
}
5676

5777
var _ sql.Scanner = (*RemoteMCPServerSpec)(nil)

0 commit comments

Comments
 (0)