Coder Social home page Coder Social logo

Comments (6)

 avatar commented on April 28, 2024

If the susbcriber has an HTTPS callback, the callback's secret-ness doesn't matter. Also if there is an HTTPs callback, the secret is useless.

The secret was introduced only because it was an elegant mechanism for subscribers who didn't want to use HTTPs.

If we're ok to force everyone to use HTTPS, then, we can get rid of the secret.

from pubsubhubbub.

 avatar commented on April 28, 2024

Dammit! Wrong Github account... but the previous comment was from me!

from pubsubhubbub.

evanp avatar evanp commented on April 28, 2024

"If the susbcriber has an HTTPS callback, the callback's secret-ness doesn't matter."

I don't think that's the case. If the point of a shared secret is to prevent third parties from pushing false data to the callback at distribution time, then using HTTPS is a moot point.

However, you could require client-side certificates, in which case the subscriber can validate that the incoming HTTP POST is coming from someone at the hub organization. But that's really hard with a lot of Web servers, and it's probably setting the bar too high.

from pubsubhubbub.

 avatar commented on April 28, 2024

If you have HTTPs, then the callback url is protected all the way, so there is no way one could guess it and use it to post false data.
In this context, the callback itself is secret enough that it can be considered a shared secret between the 2 entities.

from pubsubhubbub.

evanp avatar evanp commented on April 28, 2024

"If you have HTTPs, then the callback url is protected all the way, so there is no way one could guess it and use it to post false data."

Only if you use a unique callback per hub (I think you should use a unique callback per subscription, but I need to convince myself that that's the case).

If you use the same callback for multiple hubs, then it's not a secret any more.

from pubsubhubbub.

 avatar commented on April 28, 2024

Even if you're not using a unique callback actually. It's only known by the hub and the subscriber... They would be the only ones to know that it's not unique.

from pubsubhubbub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.