Skip to content

Commit ab9e1e3

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

18 files changed

Lines changed: 3006 additions & 331 deletions

File tree

go/api/v1alpha2/modelconfig_types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,13 @@ type TLSConfig struct {
237237
// +optional
238238
CACertSecretKey string `json:"caCertSecretKey,omitempty"`
239239

240+
// ClientSecretRef is a reference to a Kubernetes Secret containing
241+
// the client certificate (tls.crt), key (tls.key), and optionally
242+
// the CA certificate (ca.crt) for mTLS authentication.
243+
// The Secret must be in the same namespace as the MCPServer/RemoteMCPServer.
244+
// +optional
245+
ClientSecretRef string `json:"clientSecretRef,omitempty"`
246+
240247
// DisableSystemCAs disables the use of system CA certificates.
241248
// When false (default), system CA certificates are used for verification (safe behavior).
242249
// When true, only the custom CA from CACertSecretRef is trusted.

go/api/v1alpha2/remotemcpserver_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ type RemoteMCPServerSpec struct {
5252
// +optional
5353
// +kubebuilder:default=true
5454
TerminateOnClose *bool `json:"terminateOnClose,omitempty"`
55+
// +optional
56+
TLS *TLSConfig `json:"tls,omitempty"`
5557
}
5658

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

0 commit comments

Comments
 (0)