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

dunglas / mercure / 29654594054
86%
master: 93%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 18 Jul 2026 05:49PM 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:47PM UTC coverage: 85.617% (+0.4%) from 85.233%
29654594054

push

github

web-flow
fix!: spec conformance and hardening from the 1.0.0-alpha.1 review (#1301)

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.

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

2 existing lines in 1 file now uncovered.

2774 of 3240 relevant lines covered (85.62%)

102.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.17
0.31% hub.go

Coverage Regressions

Lines Coverage ∆ File
2
85.96
2.04% subscribe.go
Jobs
ID Job ID Ran Files Coverage
1 0 - 29654594054.1 18 Jul 2026 05:49PM UTC 37
85.62
GitHub Action Run
Source Files on build 29654594054
  • Tree
  • List 37
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • de9cd589 on github
  • Prev Build on 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