Repository navigation
v1.2.0
Sparrow v1.2.0
Added
SPARROW_PORTAL_RETRY(defaulttrue) controls whether consumers can retry their own deliveries from the portal. Withfalsethe portal API refuses retries (403),GET /v1/capabilitiesreportsportal.retry: false, and the portal shows its Retry buttons disabled; consumers still see every delivery.deploy/portal/: a Docker Compose stack with Sparrow on a private network and a Caddy proxy that exposes only the portal, plus a seed script. A starting point for hosting the portal, and a way to test it locally.
Changed
- Portal tokens are refused for event re-push (
events:rePush, re-push jobs and theprepare_repushsnapshot), like pushing events. Re-push stays available with the master key and tenant-wide tokens.
Fixed
- A webhook with health state but no delivery attempts in the last 24 hours had its health summary dropped and logged an ERROR on every health request (the summary query scanned NULL error counts). Quiet webhooks now report a summary with zero counts.
- Portal: adding or editing a subscription no longer leaves the portal for console pages. Behind a proxy that forwards only
/portal, those pages failed to load deliveries, health and access (Unexpected token '<'). Subscription pages now live under/portal/webhooks/...and saving returns to the portal. - Web UI: stale async replies no longer overwrite newer state — template
preview renders, portal webhook switches, and delivery-list live refresh
each ignore out-of-date responses; background pollers no longer overlap,
pause while the tab is hidden, and surface poll failures instead of
freezing the progress bar. - Web UI: the bundled
fast-uri(used by the JSON editor's schema validation) is updated to 3.1.9 for GHSA-w74x-v6f9-j3xg, GHSA-xhq7-xmqj-769h, GHSA-wjr9-j795-jxcr and GHSA-333x-w4r6-6crp (URI scheme, host and path spoofing). - Docs: the portal guide's Caddy example answered 404 to every request (Caddy runs
respondbeforereverse_proxy); it now useshandleblocks and forwardsPOST /invite/redeemso consumer invite links work through the proxy. The untested nginx and Express examples were removed; the Caddy example is the onedeploy/portal/runs.
Upgrading
- Portal tokens can no longer re-push events:
POST /portal/api/events:rePush,/portal/api/repush-jobs/*andGET /portal/api/events?prepare_repushnow answer 403. The portal UI never offered re-push; re-push from the admin side (/v1) instead. - If a proxy exposes the portal, forward everything under
/portal/(not only/portaland/portal/api/), so a reload on a portal subscription page works. The Caddy example in the portal guide shows the new rule.
Full commit list: v1.1.0...v1.2.0