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

stacklok / toolhive / 44385857186
75%

Build:
DEFAULT BRANCH: main
Ran 18 Nov 2026 08:08PM UTC
Jobs 1
Files 1037
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

18 Nov 2026 07:57PM UTC coverage: 73.598% (-0.03%) from 73.625%
44385857186

push

github

web-flow
Log TLS client certificate presence at debug (#7179)

* Log TLS client certificate presence at debug

A failed SPIFFE X.509 token request returns a generic invalid_client,
and nothing showed whether the TLS listener received a client
certificate at all, so an unsent certificate could not be told apart
from one rejected during client authentication.

Log at debug level whether each connection presented a client
certificate and, if so, its URI SANs, issuer, chain length and expiry,
and log when the listener starts. The certificate is labelled
unverified because the listener only requests it; verification happens
later in client authentication, which already logs each rejection
stage. Only identity fields are logged, never certificates or tokens.

Part of #6204.

Co-authored-by: Mecatl <noreply@mecatl.dev>

* Scope client cert logging to requesting listeners

The client certificate log hook was installed on every listener, so a
listener that never asks for a certificate logged "no client
certificate presented" for each connection, which reads as a client
failing to send one. Even on a requesting listener the line could not
tell a client that sent nothing from one whose certificate did not
match the advertised CA hints, and it carried nothing to match it to
the later invalid_client rejection.

Install the hook per connection from GetConfigForClient, so it only
exists when client certificates are requested. It now logs the remote
address, the number of hint CAs, the server name and the TLS version
for the no-certificate case, and the remote address for a presented
certificate. Debug logs only; handshake behavior is unchanged.

Part of #6204.

Co-authored-by: Mecatl <noreply@mecatl.dev>

---------

Co-authored-by: Mecatl <noreply@mecatl.dev>

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

50 existing lines in 3 files now uncovered.

97502 of 132479 relevant lines covered (73.6%)

882.25 hits per line

Coverage Regressions

Lines Coverage ∆ File
45
59.63
-4.27% pkg/workloads/manager.go
3
0.0
-100.0% pkg/workloads/sysproc_unix.go
2
80.0
-5.71% pkg/vmcp/backendregistry/registry.go
Jobs
ID Job ID Ran Files Coverage
1 44385857186.1 18 Nov 2026 08:08PM UTC 1037
73.6
GitHub Action Run
Source Files on build 44385857186
  • Tree
  • List 1037
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44385857186
  • e8597e22 on github
  • Prev Build on main (#44318247218)
  • Next Build on main (#44420075651)
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