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. General Discussion
  3. I have deeply mixed feelings about #ActivityPub's adoption of JSON-LD, as someone who's spent way too long dealing with it while building #Fedify.

I have deeply mixed feelings about #ActivityPub's adoption of JSON-LD, as someone who's spent way too long dealing with it while building #Fedify.

Scheduled Pinned Locked Moved General Discussion
fedifyjsonldfedidevactivitypub
65 Posts 19 Posters 1 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.
  • evan@cosocial.caE evan@cosocial.ca

    @patmikemid I call it trust, then verify. Usually caching the data with a ttl of a short number of minutes is enough.

    @cwebber @kopper @hongminhee

    cwebber@social.coopC This user is from outside of this forum
    cwebber@social.coopC This user is from outside of this forum
    cwebber@social.coop
    wrote last edited by
    #39

    @evan @patmikemid @kopper @hongminhee Trust *then* verify?! That means accepting windows of impersonation attacks necessarily then, right...?!

    evan@cosocial.caE 1 Reply Last reply
    0
    • evan@cosocial.caE evan@cosocial.ca

      @gugurumbe @cwebber @kopper @hongminhee AS2 requires compacted JSON-LD.

      trwnh@mastodon.socialT This user is from outside of this forum
      trwnh@mastodon.socialT This user is from outside of this forum
      trwnh@mastodon.social
      wrote last edited by
      #40

      @evan @gugurumbe @cwebber @kopper @hongminhee only for terms defined in AS2, though?

      if the activitystreams context is missing in an application/activity+json document, then you MUST assume/inject it. this means you can't redefine "actor" to mean "actor in a movie".

      otherwise, you don't have to augment the context with anything else. "https://w3id.org/security#publicKey" is a valid property name. the proposal is to not augment the normative context where possible. no parsing context if there is no context

      evan@cosocial.caE 1 Reply Last reply
      0
      • julia@eepy.moeJ julia@eepy.moe

        @evan@cosocial.ca @cwebber@social.coop @hongminhee@hollo.social @kopper@not-brain.d.on-t.work I feel like deferring activity resolution and publishing based on online status would only serve to create more reasons for your average person to feel that the fediverse is unstable- explaining the logistics of the herd problem to someone who doesn't know what a distributed system is is kinda difficult.

        evan@cosocial.caE This user is from outside of this forum
        evan@cosocial.caE This user is from outside of this forum
        evan@cosocial.ca
        wrote last edited by
        #41

        @julia you don't have to publish as soon as you receive it; you just have to publish before the user loads it.

        If the pattern doesn't work for you right now, no problem. As Sharkey scales, I hope you remember it!

        1 Reply Last reply
        0
        • trwnh@mastodon.socialT trwnh@mastodon.social

          @evan @gugurumbe @cwebber @kopper @hongminhee only for terms defined in AS2, though?

          if the activitystreams context is missing in an application/activity+json document, then you MUST assume/inject it. this means you can't redefine "actor" to mean "actor in a movie".

          otherwise, you don't have to augment the context with anything else. "https://w3id.org/security#publicKey" is a valid property name. the proposal is to not augment the normative context where possible. no parsing context if there is no context

          evan@cosocial.caE This user is from outside of this forum
          evan@cosocial.caE This user is from outside of this forum
          evan@cosocial.ca
          wrote last edited by
          #42

          @trwnh i was replying to a post that wanted all expanded terms.

          @gugurumbe @cwebber @kopper @hongminhee

          gugurumbe@mastouille.frG 1 Reply Last reply
          0
          • trwnh@mastodon.socialT This user is from outside of this forum
            trwnh@mastodon.socialT This user is from outside of this forum
            trwnh@mastodon.social
            wrote last edited by
            #43

            @kopper @evan @gugurumbe i think you can treat context identifiers as aliases. if you are already in a situation where you generally have to inject corrected contexts, then this should be doable.

            1 Reply Last reply
            0
            • cwebber@social.coopC cwebber@social.coop

              @evan @patmikemid @kopper @hongminhee Trust *then* verify?! That means accepting windows of impersonation attacks necessarily then, right...?!

              evan@cosocial.caE This user is from outside of this forum
              evan@cosocial.caE This user is from outside of this forum
              evan@cosocial.ca
              wrote last edited by
              #44

              @cwebber yes. Like I said, very low risk. If you want to be absolutely safe, wait until your first user reads the content before verifying it. It's usually not immediate. Most users aren't online. (TM)

              @patmikemid @kopper @hongminhee

              cwebber@social.coopC 2 Replies Last reply
              0
              • evan@cosocial.caE evan@cosocial.ca

                @cwebber yes. Like I said, very low risk. If you want to be absolutely safe, wait until your first user reads the content before verifying it. It's usually not immediate. Most users aren't online. (TM)

                @patmikemid @kopper @hongminhee

                cwebber@social.coopC This user is from outside of this forum
                cwebber@social.coopC This user is from outside of this forum
                cwebber@social.coop
                wrote last edited by
                #45

                @evan @patmikemid @kopper @hongminhee I would consider myself a user which, when at her computer, is in a state we might call "terminally online"

                evan@cosocial.caE 1 Reply Last reply
                0
                • cwebber@social.coopC cwebber@social.coop

                  @evan @patmikemid @kopper @hongminhee I would consider myself a user which, when at her computer, is in a state we might call "terminally online"

                  evan@cosocial.caE This user is from outside of this forum
                  evan@cosocial.caE This user is from outside of this forum
                  evan@cosocial.ca
                  wrote last edited by
                  #46

                  @cwebber lucky you, you get all the first deliveries!

                  @patmikemid @kopper @hongminhee

                  aeva@mastodon.gamedev.placeA evan@cosocial.caE 2 Replies Last reply
                  0
                  • evan@cosocial.caE evan@cosocial.ca

                    @cwebber lucky you, you get all the first deliveries!

                    @patmikemid @kopper @hongminhee

                    aeva@mastodon.gamedev.placeA This user is from outside of this forum
                    aeva@mastodon.gamedev.placeA This user is from outside of this forum
                    aeva@mastodon.gamedev.place
                    wrote last edited by
                    #47

                    @evan @cwebber @patmikemid @kopper @hongminhee *sheepishly raises hand* why not standardize what everyone ended up doing instead since that seems to be faster *ducks*

                    evan@cosocial.caE 1 Reply Last reply
                    0
                    • aeva@mastodon.gamedev.placeA aeva@mastodon.gamedev.place

                      @evan @cwebber @patmikemid @kopper @hongminhee *sheepishly raises hand* why not standardize what everyone ended up doing instead since that seems to be faster *ducks*

                      evan@cosocial.caE This user is from outside of this forum
                      evan@cosocial.caE This user is from outside of this forum
                      evan@cosocial.ca
                      wrote last edited by
                      #48

                      @aeva the thundering herd?

                      @cwebber @patmikemid @kopper @hongminhee

                      aeva@mastodon.gamedev.placeA 1 Reply Last reply
                      0
                      • cwebber@social.coopC cwebber@social.coop

                        @evan @kopper @hongminhee The problem is that signing json-ld is extremely hard, because effectively you have to turn to the RDF graph normalization algorithm, which has extremely expensive compute times. The lack of signatures means that when I boost peoples' posts, it takes down their instance, since effectively *every* distributed post on the network doesn't actually get accepted as-is, users dial-back to check its contents.

                        Which, at that point, we might as well not distribute the contents at all when we post to inboxes! We could just publish with the object of the activity being the object's id uri

                        smallcircles@social.coopS This user is from outside of this forum
                        smallcircles@social.coopS This user is from outside of this forum
                        smallcircles@social.coop
                        wrote last edited by
                        #49

                        @cwebber @evan @kopper @hongminhee

                        I may be naive and am not an expert here, but in my musings on a protosocial AP extension I imagined a clean separation of "message bus" where you'd want closed-world predictable msg formats defined by some schema (perhaps JSON Schema or LinkML). These msgs would JSON-LD formatted but validated as plain JSON.

                        And then there would be the linked data side of the equation, where a semantic web is shaping up that is parsed with the whole set of open standards that exists here, but separate of the message bus. This is then a hypermedia, HTTP web-as-intended side. Open world and follow your nose, for those who want that, or minimum profile for the JSON-only folks.

                        It occurs to me these require separate/different extension mechanisms, guidelines and best-practices. The linked data part lends itself well for content and knowledge presentation, media publishing. While the msg bus gives me event driven architecture and modeling business logic / msg exchange.

                        smallcircles@social.coopS 1 Reply Last reply
                        0
                        • smallcircles@social.coopS smallcircles@social.coop

                          @cwebber @evan @kopper @hongminhee

                          I may be naive and am not an expert here, but in my musings on a protosocial AP extension I imagined a clean separation of "message bus" where you'd want closed-world predictable msg formats defined by some schema (perhaps JSON Schema or LinkML). These msgs would JSON-LD formatted but validated as plain JSON.

                          And then there would be the linked data side of the equation, where a semantic web is shaping up that is parsed with the whole set of open standards that exists here, but separate of the message bus. This is then a hypermedia, HTTP web-as-intended side. Open world and follow your nose, for those who want that, or minimum profile for the JSON-only folks.

                          It occurs to me these require separate/different extension mechanisms, guidelines and best-practices. The linked data part lends itself well for content and knowledge presentation, media publishing. While the msg bus gives me event driven architecture and modeling business logic / msg exchange.

                          smallcircles@social.coopS This user is from outside of this forum
                          smallcircles@social.coopS This user is from outside of this forum
                          smallcircles@social.coop
                          wrote last edited by
                          #50

                          @cwebber @evan @kopper @hongminhee

                          See the diagram sketch in my other toot posted today:

                          https://social.coop/@smallcircles/116099511464629495

                          Protosocial would further prescribe how an AsyncAPI definition can be obtained from an actor, which defines the service it provides i.e. msg formats and msg exchanges. AsyncAPI might need to be extended to adequately model things.

                          1 Reply Last reply
                          0
                          • evan@cosocial.caE evan@cosocial.ca

                            @cwebber yes. Like I said, very low risk. If you want to be absolutely safe, wait until your first user reads the content before verifying it. It's usually not immediate. Most users aren't online. (TM)

                            @patmikemid @kopper @hongminhee

                            cwebber@social.coopC This user is from outside of this forum
                            cwebber@social.coopC This user is from outside of this forum
                            cwebber@social.coop
                            wrote last edited by
                            #51

                            @evan @patmikemid @kopper @hongminhee I'm sorry hold on Evan I'm sorry but it's NOT very low risk. That's a COMPLETE misunderstanding of the information landscape we are currently in.

                            Trust THEN verify?!?! Trust AND THEN verify?!?!!?!?!?!?

                            "A random several minutes" until we know whether or not the content delivered authentically is from said actor...

                            Even ONE minute is enough for someone to read, and believe, something false, and to reply, or to *take action*. Or to boost a post, which is then distributed across the fediverse, and then seen by a bunch of other nodes which also have not yet verified?

                            Trust AND THEN verify doesn't make sense!!!

                            AAAAAA I am losing my marbles over this one

                            evan@cosocial.caE cwebber@social.coopC 2 Replies Last reply
                            0
                            • evan@cosocial.caE evan@cosocial.ca

                              @cwebber lucky you, you get all the first deliveries!

                              @patmikemid @kopper @hongminhee

                              evan@cosocial.caE This user is from outside of this forum
                              evan@cosocial.caE This user is from outside of this forum
                              evan@cosocial.ca
                              wrote last edited by
                              #52

                              @cwebber some last thoughts on digital signatures for solving the thundering herd problem:

                              Unless the author's signing key is saturated in the network, you're going to have a thundering herd for the key, anyways. It's just pushing the problem down the line.

                              cwebber@social.coopC evan@cosocial.caE 2 Replies Last reply
                              0
                              • evan@cosocial.caE evan@cosocial.ca

                                @cwebber some last thoughts on digital signatures for solving the thundering herd problem:

                                Unless the author's signing key is saturated in the network, you're going to have a thundering herd for the key, anyways. It's just pushing the problem down the line.

                                cwebber@social.coopC This user is from outside of this forum
                                cwebber@social.coopC This user is from outside of this forum
                                cwebber@social.coop
                                wrote last edited by
                                #53

                                @evan If it's a popular author, which most commonly is the type who causes the thundering herd, then the chances the key is cached is very high!

                                evan@cosocial.caE 1 Reply Last reply
                                0
                                • evan@cosocial.caE evan@cosocial.ca

                                  @cwebber some last thoughts on digital signatures for solving the thundering herd problem:

                                  Unless the author's signing key is saturated in the network, you're going to have a thundering herd for the key, anyways. It's just pushing the problem down the line.

                                  evan@cosocial.caE This user is from outside of this forum
                                  evan@cosocial.caE This user is from outside of this forum
                                  evan@cosocial.ca
                                  wrote last edited by
                                  #54

                                  @cwebber

                                  If you don't think waiting until the first user loads the content to verify the content is an acceptable risk, there are still other solutions. One I like is using a content-addressed shared cache for public data, like IPFS. We have `alsoKnownAs` as a nice way to include this URI.

                                  cwebber@social.coopC 1 Reply Last reply
                                  0
                                  • cwebber@social.coopC cwebber@social.coop

                                    @evan If it's a popular author, which most commonly is the type who causes the thundering herd, then the chances the key is cached is very high!

                                    evan@cosocial.caE This user is from outside of this forum
                                    evan@cosocial.caE This user is from outside of this forum
                                    evan@cosocial.ca
                                    wrote last edited by
                                    #55

                                    @cwebber I think the use case you mentioned was an author with a small following getting boosted by one with a large following.

                                    Regardless, even if the caching level is 90%, you're still doing a big percentage of the original herd.

                                    1 Reply Last reply
                                    0
                                    • evan@cosocial.caE evan@cosocial.ca

                                      @cwebber

                                      If you don't think waiting until the first user loads the content to verify the content is an acceptable risk, there are still other solutions. One I like is using a content-addressed shared cache for public data, like IPFS. We have `alsoKnownAs` as a nice way to include this URI.

                                      cwebber@social.coopC This user is from outside of this forum
                                      cwebber@social.coopC This user is from outside of this forum
                                      cwebber@social.coop
                                      wrote last edited by
                                      #56

                                      @evan ESPECIALLY if it's on something like IPFS, you need signatures, because there's no "see if it's on this instance" to speak of as a trust step!!!!

                                      Am I am losing my mind over here

                                      evan@cosocial.caE 1 Reply Last reply
                                      0
                                      • cwebber@social.coopC cwebber@social.coop

                                        @evan @patmikemid @kopper @hongminhee I'm sorry hold on Evan I'm sorry but it's NOT very low risk. That's a COMPLETE misunderstanding of the information landscape we are currently in.

                                        Trust THEN verify?!?! Trust AND THEN verify?!?!!?!?!?!?

                                        "A random several minutes" until we know whether or not the content delivered authentically is from said actor...

                                        Even ONE minute is enough for someone to read, and believe, something false, and to reply, or to *take action*. Or to boost a post, which is then distributed across the fediverse, and then seen by a bunch of other nodes which also have not yet verified?

                                        Trust AND THEN verify doesn't make sense!!!

                                        AAAAAA I am losing my marbles over this one

                                        evan@cosocial.caE This user is from outside of this forum
                                        evan@cosocial.caE This user is from outside of this forum
                                        evan@cosocial.ca
                                        wrote last edited by
                                        #57

                                        @cwebber it's ok if you don't get it. You don't have to use it. There are other ways to handle the thundering herd, like shared caches.

                                        julian@activitypub.spaceJ 1 Reply Last reply
                                        0
                                        • cwebber@social.coopC cwebber@social.coop

                                          @evan ESPECIALLY if it's on something like IPFS, you need signatures, because there's no "see if it's on this instance" to speak of as a trust step!!!!

                                          Am I am losing my mind over here

                                          evan@cosocial.caE This user is from outside of this forum
                                          evan@cosocial.caE This user is from outside of this forum
                                          evan@cosocial.ca
                                          wrote last edited by
                                          #58

                                          @cwebber yes.

                                          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