• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 38220785501
71%

Build:
DEFAULT BRANCH: main
Ran 12 Oct 2026 08:06AM UTC
Jobs 1
Files 948
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Oct 2026 07:58AM UTC coverage: 71.163% (+0.09%) from 71.075%
38220785501

push

github

web-flow
Add operator support for Redis session storage TLS (#6767)

* Move Redis TLS test fixture to testkit

Shared test fixtures live under test/testkit. Move the redistls
helper added for Redis session storage TLS there and update its
importers; the fixture itself is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Giuseppe Scuglia <peppescg@gmail.com>

* Warn when Redis session storage lacks TLS

Session storage now supports TLS, but omitting it keeps the previous
plaintext connection so existing deployments are unaffected. Make
that choice visible: when a Redis password is configured, the proxy
runner and vMCP session stores log one startup WARN if TLS is not
set or certificate verification is disabled. The connection is still
allowed and the password is never logged.

The message also notes that the operator-wide default Redis
(TOOLHIVE_DEFAULT_REDIS_ADDR) cannot enable TLS yet. The rate
limiter always shares these settings, so it does not warn again.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Giuseppe Scuglia <peppescg@gmail.com>

* Add session storage TLS to the operator

#6731 lets the proxy runner and vMCP connect to Redis session
storage over TLS, but only through hand-written RunConfig or vMCP
YAML. Operator-managed workloads had no way to request it.

Add spec.sessionStorage.tls to MCPServer, MCPRemoteProxy and
VirtualMCPServer. It reuses the existing RedisTLSConfig type from
the embedded auth server's Redis storage:

- An empty object verifies the server certificate against the
  system roots.
- caCertSecretRef mounts a private CA from a Secret at
  /etc/toolhive/session-redis-tls/ca.crt, read-only and via
  subPath, as for the auth server's Redis CA.
- insecureSkipVerify disables verification, for testing only.

The operator writes these settings into the RunConfig
(scaling_config.session_redis.tls) and the vMCP config
(sessionStorage.tls). On VirtualMCPSer... (continued)

182 of 198 new or added lines in 16 files covered. (91.92%)

10 existing lines in 4 files now uncovered.

85813 of 120587 relevant lines covered (71.16%)

126.53 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
82.05
test/testkit/redistls/redistls.go
2
96.23
cmd/thv-operator/pkg/controllerutil/session_redis_tls.go

Coverage Regressions

Lines Coverage ∆ File
4
63.89
4.27% pkg/workloads/manager.go
3
61.43
-4.29% pkg/state/runconfig.go
2
94.44
-1.11% pkg/authserver/storage/cimd_decorator.go
1
81.07
-0.12% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 38220785501.1 12 Oct 2026 08:06AM UTC 948
71.16
GitHub Action Run
Source Files on build 38220785501
  • Tree
  • List 948
  • Changed 27
  • Source Changed 18
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38220785501
  • 0c253225 on github
  • Prev Build on main (#37968068354)
  • Next Build on main (#38271329369)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc