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

stacklok / toolhive / 21506200086
61%

Build:
DEFAULT BRANCH: main
Ran 30 Jan 2026 06:11AM UTC
Jobs 1
Files 487
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

30 Jan 2026 06:03AM UTC coverage: 60.492% (+0.007%) from 60.485%
21506200086

push

github

web-flow
Limit RBAC permissions for inline mode VirtualMCPServers (#3504)

In inline mode, VirtualMCPServer pods receive all backend configuration
through the VirtualMCPServer spec and don't need to discover backends
from Kubernetes resources. However, they were still granted full RBAC
permissions including access to secrets and configmaps.

Since vMCP is exposed to the outside world via HTTP, granting unnecessary
Kubernetes API permissions increases the security risk. This change
implements conditional RBAC based on the outgoing auth source mode:

  - Inline mode: Minimal permissions (read own spec + update status)
  - Discovered mode: Full permissions (read secrets, configmaps, MCP resources)

The implementation creates two separate RBAC rule sets and selects the
appropriate one based on spec.outgoingAuth.source. Existing resources
default to discovered mode for backward compatibility.

Added comprehensive tests to verify correct permissions are granted for
each mode, including validation that inline mode has no secret or
configmap access while still maintaining status update capabilities.

Also removed orphaned comment and nolint directive for deleted
discoverBackends function.

Related-to: #3149

Co-authored-by: taskbot <taskbot@users.noreply.github.com>

10 of 10 new or added lines in 1 file covered. (100.0%)

7 existing lines in 2 files now uncovered.

39377 of 65095 relevant lines covered (60.49%)

76.1 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
67.28
0.22% cmd/thv-operator/controllers/virtualmcpserver_controller.go
6
75.47
-5.66% pkg/secrets/keyring/keyctl_linux.go
Jobs
ID Job ID Ran Files Coverage
1 21506200086.1 30 Jan 2026 06:11AM UTC 487
60.49
GitHub Action Run
Source Files on build 21506200086
  • Tree
  • List 487
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21506200086
  • e0fbffa0 on github
  • Prev Build on main (#21494693263)
  • Next Build on main (#21510086018)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc