Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Technical Discussion
  3. Dismissing HTTP Signature on presence of Object Integrity Proof

Dismissing HTTP Signature on presence of Object Integrity Proof

Scheduled Pinned Locked Moved Technical Discussion
activitypubfep8b32proofssignatures
5 Posts 3 Posters 2 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • julianJ This user is from outside of this forum
    julianJ This user is from outside of this forum
    julian
    wrote on last edited by
    #1

    I have a question for implementors pursuing object integrity proofs.

    I am implementing the ability to serve these proofs in NodeBB with the assistance of an LLM. It is adhering to @silverpill@mitra.social's FEP-8b32: Object Integrity Proofs.

    As part of its work, it implemented a quirk I thought was curious. If the proof was present in an embedded object, the activity's HTTP signature was ignored/not-checked.

    I challenged the model and it pointed to this line from the FEP...

    > If both HTTP signature and integrity proof are used, the integrity proof MUST be given precedence over HTTP signature. The HTTP signature MAY be dismissed.

    ... and cited potential interop if someone were to send an activity with integrity proof but explicitly no HTTP signature. That is, if NodeBB were to implement a hard requirement for HTTP signatures, then that specific case would fail inbound checks.

    My rationale is:

    • The HTTP signature guarantees that the payload has not been modified in-transit, and
    • The proof guarantees the authenticity of the payload, and
    • This is doubly so for payloads belonging to separate origins

    Am I incorrect? It would seem like we need to exercise both checks to ensure authenticity of the entire payload chain: activity and object.

    Pinging other interested parties: @hongminhee@hollo.social @mike@macgirvin.com @pfefferle@mastodon.social @evan@cosocial.ca

    1 Reply Last reply
    1
    0
    • R AodeRelay shared this topic on
    • julianJ This user is from outside of this forum
      julianJ This user is from outside of this forum
      julian
      wrote on last edited by
      #2

      Additional points:

      1. I know of no situation where an AP-compliant server POSTs another server without an HTTP Signature. Pretty sure any attempt to do so would just mean the activity is dropped.

      So why does 8b32 allow for dropping the HTTP signature? My best guess is that the wording is vague and the intention is that an object integrity proof at top level means an HTTP signature can be discarded.

      1. Cross-origin activity-object combos are common. FEP 1b12 is built upon this, as are standard Mastodon Announce/boosts. To give up HTTP signature checks because an embedded object contains a proof means the wrapping activity is spoofable.

      So I think the local LLM took that line very literally.

      1 Reply Last reply
      1
      0
      • silverpillS This user is from outside of this forum
        silverpillS This user is from outside of this forum
        silverpill
        wrote on last edited by
        #3

        @julian

        So why does 8b32 allow for dropping the HTTP signature? My best guess is that the wording is vague and the intention is that an object integrity proof at top level means an HTTP signature can be discarded.

        You're right, the sentence was poorly written. It was meant to apply to top-level proofs only.

        I'll update the FEP.

        I know of no situation where an AP-compliant server POSTs another server without an HTTP Signature. Pretty sure any attempt to do so would just mean the activity is dropped.

        Mitra would accept an activity with integrity proof if HTTP signature is not present.

        Mario VavtiM 1 Reply Last reply
        1
        0
        • silverpillS silverpill

          @julian

          So why does 8b32 allow for dropping the HTTP signature? My best guess is that the wording is vague and the intention is that an object integrity proof at top level means an HTTP signature can be discarded.

          You're right, the sentence was poorly written. It was meant to apply to top-level proofs only.

          I'll update the FEP.

          I know of no situation where an AP-compliant server POSTs another server without an HTTP Signature. Pretty sure any attempt to do so would just mean the activity is dropped.

          Mitra would accept an activity with integrity proof if HTTP signature is not present.

          Mario VavtiM This user is from outside of this forum
          Mario VavtiM This user is from outside of this forum
          Mario Vavti
          wrote on last edited by
          #4
          @silverpill
          Mitra would accept an activity with integrity proof if HTTP signature is not present.

          IIRC this also applies to Hubzilla to some extent...
          1 Reply Last reply
          1
          0
          • Mario VavtiM Mario Vavti
            @silverpill
            Mitra would accept an activity with integrity proof if HTTP signature is not present.

            IIRC this also applies to Hubzilla to some extent...
            julianJ This user is from outside of this forum
            julianJ This user is from outside of this forum
            julian
            wrote on last edited by
            #5

            @mario@hub.somaton.com @silverpill@mitra.social yeah, I get that if a top level proof is present, then the signature can be avoided.

            I just meant in the absence of a proof and signature, it's just noise.

            1 Reply Last reply
            1
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            Powered by NodeBB Contributors
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups