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

dunglas / mercure / 29654396286
86%
master: 93%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 18 Jul 2026 05:43PM UTC
Jobs 1
Files 37
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 Jul 2026 05:40PM UTC coverage: 85.679% (+0.4%) from 85.233%
29654396286

Pull #1301

github

dunglas
fix!: spec conformance and hardening from the 1.0.0-alpha.1 review

Conformance fixes against draft-dunglas-mercure-08:

- Ignore unrecognized authorization_details actions instead of rejecting
  the token: an unknown action grants nothing, per the registry design.
- Refuse to start with more than one trusted issuer in modern mode: keys
  are configured per role, not per issuer, so several issuers would share
  key material and allow cross-issuer token replay. A per-issuer key map
  can lift this restriction later.
- Bound publish and QUERY subscribe request bodies in-hub and reject
  larger requests with 413 (WithMaxRequestBodySize, max_request_body_size
  Caddy directive, 1 MiB default). Also fixes the unbounded QUERY body
  read for library users.
- Default the authorization cookie to __Secure-mercure_access_token; the
  dev Caddyfile keeps a prefix-less name for plain-HTTP development.
- Emit Mercure-Last-Event-ID whenever the request carried a Last-Event-ID
  header or last_event_id parameter, including with an empty value.
- Encode the subscriber id in subscription URLs with the same encoder as
  the matcher segments.

Spec: recommend random per-connection subscriber identifiers; an
issuer+sub derivation collides when one token is used on several
connections and would emit misleading termination events.
Pull Request #1301: fix!: spec conformance and hardening from the 1.0.0-alpha.1 review

59 of 61 new or added lines in 7 files covered. (96.72%)

2776 of 3240 relevant lines covered (85.68%)

103.4 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.17
0.31% hub.go
Jobs
ID Job ID Ran Files Coverage
1 0 - 29654396286.1 18 Jul 2026 05:43PM UTC 37
85.68
GitHub Action Run
Source Files on build 29654396286
  • Tree
  • List 37
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1301
  • PR Base - main (#29647000703)
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