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

nbari / dbpulse / 33509574644
74%
main: 74%

Build:
Build:
LAST BUILD BRANCH: sandbox
DEFAULT BRANCH: main
Ran 01 Sep 2026 12:51PM UTC
Jobs 1
Files 25
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

01 Sep 2026 12:46PM UTC coverage: 72.437% (+1.5%) from 70.974%
33509574644

push

github

nbari
tls: make the certificate probe accept what the connection accepts

The expiry probe opens its own TLS connection, so it must apply exactly
the checks the driver applies. It used a strict verifier while sqlx sets
accept_invalid_hostnames for every mode below verify-full, so under
verify-ca the connection succeeded and the probe failed:
dbpulse_tls_cert_expiry_days silently vanished for precisely the
deployments that use an internal CA whose certificates do not name the
connection address. PostgreSQL has no server-side fallback for expiry,
so the gauge disappeared outright and expiry alerts stopped firing.

CertCapturingVerifier now downgrades only NotValidForName and
NotValidForNameContext, and only when configured to; verify-full stays
strict. The probe also gets its own 3s timeout, below the 5s check
deadline, so a stalled handshake cannot consume the caller's budget.

Also fixed:

- dbpulse_tls_info retires the previous version/cipher series and
  cert expiry is cleared when a check reports none, instead of leaving
  a stale value exported forever.
- Replication lag is sampled on every check rather than only on the
  branch that also handled read-only or table recovery, and a NULL lag
  removes the series instead of freezing the last value.
- Probe errors are classified from the full anyhow context chain
  ({:#}) rather than the outermost layer, and the ladder is ordered so
  a timeout is no longer misfiled as a handshake failure.
- Removed CertCache::cleanup(): the cache holds one entry per host:port
  and expiry is enforced on read, so it had nothing to reclaim.
- Moved the init() doc block off ERROR_TYPES and corrected the
  check_timeout claim that it is never longer than the interval, which
  is untrue for intervals below 5s.

Regression coverage, each verified to fail without its fix:

- gen-certs.sh issues a CA-signed certificate naming only db.invalid,
  served by extra PostgreSQL (:5433) and MariaDB (:3307) containers in
  just test-tls an... (continued)

373 of 531 new or added lines in 9 files covered. (70.24%)

6 existing lines in 3 files now uncovered.

4473 of 6175 relevant lines covered (72.44%)

130.0 hits per line

Uncovered Changes

Lines Coverage ∆ File
70
0.0
0.0% tests/mariadb_tls_test.rs
70
0.0
0.0% tests/postgres_tls_test.rs
6
81.62
4.74% src/queries/mysql.rs
6
76.52
-0.0% src/tls/probe.rs
3
85.51
47.69% src/tls/verifier.rs
2
82.5
4.13% src/pulse.rs
1
73.39
3.8% src/queries/postgres.rs

Coverage Regressions

Lines Coverage ∆ File
2
81.62
4.74% src/queries/mysql.rs
2
73.39
3.8% src/queries/postgres.rs
2
97.46
0.36% tests/pulse_robustness_test.rs
Jobs
ID Job ID Ran Files Coverage
1 33509574644.1 01 Sep 2026 12:51PM UTC 25
72.44
GitHub Action Run
Source Files on build 33509574644
  • Tree
  • List 25
  • Changed 12
  • Source Changed 11
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33509574644
  • 453efd05 on github
  • Prev Build on sandbox (#33493158659)
  • Next Build on sandbox (#33514438095)
  • Delete
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