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

lunarmodules / copas / 30305613508
85%

Build:
DEFAULT BRANCH: master
Ran 27 Jul 2026 09:11PM UTC
Jobs 6
Files 7
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

27 Jul 2026 09:08PM UTC coverage: 85.087% (+0.06%) from 85.029%
30305613508

push

github

Tieske
fix(tls): reject sslparams tables that silently disable TLS

normalize_sslt() detected the current {wrap=, sni=} table format by
checking for the legacy 'mode'/'protocol' keys, so any table lacking
those (an empty table, or one with unrelated/misspelled keys) fell
into the "current format" branch and both wrap and sni silently
defaulted to false, identical to passing nil. Since a doc-comment
claimed an empty table meant "TLS with defaults" (no such defaults
exist -- a certificate is mandatory), following that comment produced
a plaintext socket with no error.

Detection is now based on the presence of the 'wrap'/'sni' keys
themselves. Anything without them (empty table, garbage keys, or a
genuine legacy flat luasec-context table) is passed straight through
as 'wrap' parameters, which LuaSec validates and errors on when a
handshake is actually attempted -- so this can no longer fail open
into silent plaintext.

Adds tests/tls-params.lua covering all normalization shapes: no
params, empty/garbage tables, the legacy flat table, and the current
{wrap=, sni=} table.

Fixes #210

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

48 existing lines in 1 file now uncovered.

1472 of 1730 relevant lines covered (85.09%)

57213.92 hits per line

Coverage Regressions

Lines Coverage ∆ File
48
79.79
0.08% src/copas.lua
Jobs
ID Job ID Ran Files Coverage
1 30305613508.1 27 Jul 2026 09:11PM UTC 7
84.61
GitHub Action Run
2 30305613508.2 27 Jul 2026 09:11PM UTC 7
84.66
GitHub Action Run
3 30305613508.3 27 Jul 2026 09:11PM UTC 7
84.62
GitHub Action Run
4 30305613508.4 27 Jul 2026 09:11PM UTC 7
84.08
GitHub Action Run
5 30305613508.5 27 Jul 2026 09:11PM UTC 7
84.54
GitHub Action Run
6 30305613508.6 27 Jul 2026 09:11PM UTC 7
84.28
GitHub Action Run
Source Files on build 30305613508
  • Tree
  • List 7
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4060fda8 on github
  • Prev Build on master (#30297691869)
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