GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    PuercoPop (puercopop@mastodon.social)'s status on Thursday, 18-Jun-2026 23:40:53 JST PuercoPop PuercoPop

    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

    In conversation about 2 months ago from mastodon.social permalink
    • Embed this notice
      silverpill (silverpill@mitra.social)'s status on Thursday, 18-Jun-2026 23:40:52 JST silverpill silverpill
      in reply to

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

      In conversation about 2 months ago permalink
    • Embed this notice
      PuercoPop (puercopop@mastodon.social)'s status on Friday, 19-Jun-2026 05:06:04 JST PuercoPop PuercoPop
      in reply to
      • silverpill

      @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.

      In conversation about 2 months ago permalink
    • Embed this notice
      silverpill (silverpill@mitra.social)'s status on Friday, 19-Jun-2026 05:06:04 JST silverpill silverpill
      in reply to

      @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.

      In conversation about 2 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.