You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TLS configuration for VirtualMCPServer Redis session storage #6730
VirtualMCPServer Redis session storage always seems to connect in plaintext based on configs and current code layout.
redisconn in toolhive-core already supports TLS, but nothing on the Virtual MCP path sets redisconn.Config.TLS as spec.sessionStorage has no TLS settings (as in here), and therefore it'll behave as nil in the toolhive-core's Redis config side.
A non-nil TLSConfig would enable TLS. A nil one stays plaintext. An empty redisconn.TLSConfig{} would be enough for TLS 1.2+ with system root CAs and certificate verification. Session storage has no field that can produce that value.
Expected behavior
Would it be possible to have sessionStorage to be able to request TLS? Empty TLSConfig would use system CA bundles, and that value could be passed through to redisconn.Config.TLS. go-redis seemigly produces and enabled TLS this way.
Existing use of TLS:
The embedded auth server already has this for its own Redis client, having the config wired.
Plain self-hosted / saas session storage could follow that shape?
The same config resource is also used by MCPServer and MCPRemoteProxy, so a CRD field would show up on those resources as well?
@kraashen Thanks for reporting this. I confirmed that sessionStorage currently cannot request TLS, although the underlying Redis client supports it. I’ll take ownership of the implementation.
I propose the following acceptance criteria:
An optionalsessionStorage.tls setting: omission preserves current plaintext behavior; tls: {} enables certificate-verified TLS using system roots.
The setting works across VirtualMCPServer, MCPServer, and MCPRemoteProxy, which share the session-storage API.
Both session storage and its separate Redis-backed rate-limiting connection use the requested TLS settings. A failed TLS connection must not fall back to plaintext.
The vMCP YAML configuration used by thv vmcp supports the same behavior. This does not appear to require a new CLI flag.
Tests cover a TLS-only Redis endpoint, the existing plaintext behavior, and invalid certificate configuration.
I also plan to support a CA Secret for Redis deployments using a private CA, following the existing embedded auth-server pattern. TLS for the Helm operator-wide defaultRedis fallback is a separate configuration path; I’ll track it in a linked follow-up rather than include it here.
@kraashen Thanks for reporting this. I confirmed that sessionStorage currently cannot request TLS, although the underlying Redis client supports it. I’ll take ownership of the implementation.
I propose the following acceptance criteria:
An optionalsessionStorage.tls setting: omission preserves current plaintext behavior; tls: {} enables certificate-verified TLS using system roots.
The setting works across VirtualMCPServer, MCPServer, and MCPRemoteProxy, which share the session-storage API.
Both session storage and its separate Redis-backed rate-limiting connection use the requested TLS settings. A failed TLS connection must not fall back to plaintext.
The vMCP YAML configuration used by thv vmcp supports the same behavior. This does not appear to require a new CLI flag.
Tests cover a TLS-only Redis endpoint, the existing plaintext behavior, and invalid certificate configuration.
I also plan to support a CA Secret for Redis deployments using a private CA, following the existing embedded auth-server pattern. TLS for the Helm operator-wide defaultRedis fallback is a separate configuration path; I’ll track it in a linked follow-up rather than include it here.
Activity
Sanskarzz commentedon Sep 30, 2026
@kraashen Thanks for reporting this. I confirmed that
sessionStoragecurrently cannot request TLS, although the underlying Redis client supports it. I’ll take ownership of the implementation.I propose the following acceptance criteria:
sessionStorage.tlssetting: omission preserves current plaintext behavior;tls: {}enables certificate-verified TLS using system roots.VirtualMCPServer,MCPServer, andMCPRemoteProxy, which share the session-storage API.thv vmcpsupports the same behavior. This does not appear to require a new CLI flag.I also plan to support a CA Secret for Redis deployments using a private CA, following the existing embedded auth-server pattern. TLS for the Helm operator-wide
defaultRedisfallback is a separate configuration path; I’ll track it in a linked follow-up rather than include it here.Sanskarzz commentedon Oct 1, 2026
@JAORMX @ChrisJBurns PTAL
I have already raised a PR accordingly.
peppescg commentedon Oct 9, 2026
closed #6731
Add operator support for Redis session storage TLS (#6767)