-
-
Notifications
You must be signed in to change notification settings - Fork 79.2k
Auto-generated VAPID keys use @localhost subject, breaking Apple Web Push (iOS PWA) #83134
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Version
OpenClaw 2026.5.12 (f066dd2)
Problem
The Gateway auto-generates VAPID keys in
push/vapid-keys.jsonwith the subjectmailto:openclaw@localhost. Apple's Web Push service (used by Safari/iOS PWAs) rejects JWTs signed with this subject, returning403 BadJwtToken.This means iOS PWA push notifications silently fail for all OpenClaw users.
Root Cause
Apple requires the VAPID JWT
subclaim to be a valid email domain (likemailto:user@gmail.com) or a valid URL (likehttps://host.example.com).@localhostis not considered valid by Apple's validation. Mozilla/Firefox push service has the same requirement.Verification
Tested with web-push 3.6.7 against
web.push.apple.com:mailto:openclaw@localhost→ 403 BadJwtToken ❌mailto:axis823@gmail.com→ 201 ✅https://sd6-server.tail5ffe17.ts.net→ 201 ✅Workaround
Manually edit
~/.openclaw/push/vapid-keys.jsonand change"subject"to a real email address, then re-subscribe from the PWA.Suggested Fix
push.vapid.subjectfield toopenclaw.jsonso users can set a real email/URLhttps://<host>.ts.net) or hostname@localhost, alerting that iOS push will not work