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 (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Technical Discussion
  3. Question about HTTP Signatures in #ActivityPub, IIUC the header is a digest of the HTTP body.

Question about HTTP Signatures in #ActivityPub, IIUC the header is a digest of the HTTP body.

Scheduled Pinned Locked Moved Technical Discussion
activitypubactivitypubdev
1 Cross-posts 4 Posts 2 Posters 4 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.
  • puercopop@mastodon.socialP This user is from outside of this forum
    puercopop@mastodon.socialP This user is from outside of this forum
    puercopop@mastodon.social
    wrote last edited by
    #1

    Question about HTTP Signatures in #ActivityPub, IIUC the header is a digest of the HTTP body. Given that JSON is not white-space sensitive, does that mean that storing the response must preserve the indentation used by the server?

    #ActivityPubDev

    silverpill@mitra.socialS 1 Reply Last reply
    0
    • puercopop@mastodon.socialP puercopop@mastodon.social

      Question about HTTP Signatures in #ActivityPub, IIUC the header is a digest of the HTTP body. Given that JSON is not white-space sensitive, does that mean that storing the response must preserve the indentation used by the server?

      #ActivityPubDev

      silverpill@mitra.socialS This user is from outside of this forum
      silverpill@mitra.socialS This user is from outside of this forum
      silverpill@mitra.social
      wrote last edited by
      #2

      @PuercoPop Yes, but why do you want to store the response? HTTP signatures are not supposed to be re-used.

      puercopop@mastodon.socialP 1 Reply Last reply
      0
      • ? Guest crossposted this topic to General Discussion
      • silverpill@mitra.socialS silverpill@mitra.social

        @PuercoPop Yes, but why do you want to store the response? HTTP signatures are not supposed to be re-used.

        puercopop@mastodon.socialP This user is from outside of this forum
        puercopop@mastodon.socialP This user is from outside of this forum
        puercopop@mastodon.social
        wrote last edited by
        #3

        @silverpill Sorry for being imprecise, I meant the response as the response body, not the entire HTTP response. I'm wondering if having white-space sensitive JSON means one can't use JSONB to store the response.

        What I'm trying to understand is if the HTTP signature is useful to provide a way for users/clients to verify the integrity of the activity, similar to how sha256.sum is used in software distribution.

        silverpill@mitra.socialS 1 Reply Last reply
        0
        • puercopop@mastodon.socialP puercopop@mastodon.social

          @silverpill Sorry for being imprecise, I meant the response as the response body, not the entire HTTP response. I'm wondering if having white-space sensitive JSON means one can't use JSONB to store the response.

          What I'm trying to understand is if the HTTP signature is useful to provide a way for users/clients to verify the integrity of the activity, similar to how sha256.sum is used in software distribution.

          silverpill@mitra.socialS This user is from outside of this forum
          silverpill@mitra.socialS This user is from outside of this forum
          silverpill@mitra.social
          wrote last edited by
          #4

          @PuercoPop I think HTTP signatures are not good for that, but you can put a signature inside an activity:

          https://fediverse.codeberg.page/fep/fep/8b32/

          "integrity proofs" proposed in this document use JSON Canonicalization Scheme, which is not whitespace-sensitive.

          1 Reply Last reply
          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