Skip to content

Require that hubs respond with a hub.lease_seconds.#17

Merged
julien51 merged 1 commit into
pubsubhubbub:masterfrom
alkis:patch-2
Jun 8, 2012
Merged

Require that hubs respond with a hub.lease_seconds.#17
julien51 merged 1 commit into
pubsubhubbub:masterfrom
alkis:patch-2

Conversation

@alkis
Copy link
Copy Markdown
Contributor

@alkis alkis commented Jun 4, 2012

Because now all subscriptions are ephemeral the hub should respond with a hub.lease_seconds on every subscription.

At some point we should add an appendix with best practices to suggest that hubs should have both a min_lease_seconds and max_lease_seconds. I noticed that pubsubhubbub.appspot.com does not have a min_lease_seconds which is bad. A malicious user can subscribe lots of endpoints (which are on another site) with lease_seconds = 1 which might end up with a hub performing a DOS attach on the target site. That's not cool :-)

julien51 added a commit that referenced this pull request Jun 8, 2012
Require that hubs respond with a hub.lease_seconds.
@julien51 julien51 merged commit 17601f3 into pubsubhubbub:master Jun 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants