Skip to content

WebSub: Implement support for hub.secret - #9430

Merged
Alkarex merged 5 commits into
FreshRSS:edgefrom
Alkarex:websub-secret
Oct 30, 2026
Merged

Alkarex merged 5 commits into
FreshRSS:edgefrom
Alkarex:websub-secret

Conversation

@Alkarex

@Alkarex Alkarex commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

@Alkarex Alkarex added this to the 1.31.0 milestone Oct 10, 2026
@Inverle Inverle added the API 🤝 API for other clients label Oct 10, 2026
@Atharros

Copy link
Copy Markdown

There might be a possible transition issue when renewing an existing subscription that does not yet have a hub.secret.
pubSubHubbubSubscribe() persists the new secret before the hub has verified the replacement subscription, while pshb.php requires a signature as soon as that secret is present.
Under WebSub, the previous subscription remains active until the replacement is verified, and remains active if verification fails. An in-flight push from the previous subscription would therefore still be unsigned and receive a 422 response... If the hub returns 202 but verification is delayed or fails afterward, legitimate pushes may continue to be rejected while FreshRSS still considers WebSub active and postpones its regular pull.
Could the transition between the old unsigned subscription and the new signed one be handled explicitly? A test covering delayed or failed verification and an in-flight push might be useful :)

@Alkarex

Alkarex commented Oct 10, 2026

Copy link
Copy Markdown
Member Author

Ok, code added for transition from legacy state. Checks welcome

@Alkarex
Alkarex merged commit d4964dc into FreshRSS:edge Oct 30, 2026
3 checks passed
@Alkarex
Alkarex deleted the websub-secret branch October 30, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API 🤝 API for other clients Security 🛡️

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants