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

Eyevinn / moqlivemock / 30900932881
48%

Build:
DEFAULT BRANCH: main
Ran 04 Aug 2026 10:31AM UTC
Jobs 1
Files 24
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

04 Aug 2026 10:30AM UTC coverage: 48.41% (+2.4%) from 46.039%
30900932881

push

github

tobbee
fix(mlmpub): serve the configured content key from /clearkey

The ClearKey license endpoint echoed each requested KID back as the
content key, ignoring -cenckey. A run with -cenckey set therefore
encrypted with the real key while handing players the KID, so EME
decrypted with the wrong key and the decoder failed on the first packet.
It only looked correct because -cenckey defaults to the KID.

Track the KID alongside the key in CENCInfo and add
DRMInfo.ContentKeyForKID, so the endpoint can look up the key for a
requested KID instead of reflecting it. An unrecognised KID is now a 404
rather than a bogus key: serving a key for content this publisher did not
encrypt is the failure being fixed. Request KIDs are base64url-decoded
(tolerating the padding the EME spec forbids but clients send) and the
response's k/kid are re-encoded unpadded per the spec.

Extract the handler as server.serveClearKey to make it testable, and
cover the -cenckey, KID-as-key, padded-KID, unknown-KID, no-ECCP and
malformed-request cases. Verified end to end with the reproduce from the
issue: k is now the configured key, not the KID.

Fixes #122

54 of 65 new or added lines in 3 files covered. (83.08%)

8 existing lines in 3 files now uncovered.

2406 of 4970 relevant lines covered (48.41%)

1933.88 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
23.59
23.59% cmd/mlmpub/handler.go
1
0.0
0.0% cmd/mlmpub/main.go

Coverage Regressions

Lines Coverage ∆ File
4
46.58
2.61% internal/sub/sub.go
3
36.83
12.35% internal/pub/pub.go
1
23.59
23.59% cmd/mlmpub/handler.go
Jobs
ID Job ID Ran Files Coverage
1 30900932881.1 04 Aug 2026 10:31AM UTC 24
48.41
GitHub Action Run
Source Files on build 30900932881
  • Tree
  • List 24
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • dc8ad0bf on github
  • Prev Build on main (#30899620684)
  • Next Build on main (#31078087988)
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