Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • 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
We Distribute
  1. Home
  2. General Discussion
  3. Recently, there was a discussion about generic #ActivityPub servers.

Recently, there was a discussion about generic #ActivityPub servers.

Scheduled Pinned Locked Moved General Discussion
activitypubfepc2s
35 Posts 8 Posters 0 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.
  • raphael@mastodon.communick.comR raphael@mastodon.communick.com

    @silverpill

    > I think FEP-1b12 Announce is not compatible with ActivityPub. It has different side effects, doesn't update shares collection.

    Why?

    Updating the shares collection is orthorgonal to the behavior expected from a Group actor that claims to support 1b12.

    Sure, you can say that if the server does not update the shares collection, it's not fully compliant with AP APi, but there is nothing a Lemmy server to add every activity to the shares collection.

    @mariusor

    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
    #21

    @raphael Nevermind, side effects wouldn't be a problem. However, it still doesn't seem to be compatible with ActivityPub... Because Announce activity is not defined in C2S context 🙂

    Link Preview Image
    ActivityPub

    The ActivityPub protocol is a decentralized social networking protocol based upon the [ActivityStreams] 2.0 data format. It provides a client to server API for creating, updating and deleting content, as well as a federated server to server API for delivering notifications and content.

    favicon

    (www.w3.org)

    @julian @mariusor

    smallcircles@social.coopS 1 Reply Last reply
    0
    • silverpill@mitra.socialS silverpill@mitra.social

      @raphael Nevermind, side effects wouldn't be a problem. However, it still doesn't seem to be compatible with ActivityPub... Because Announce activity is not defined in C2S context 🙂

      Link Preview Image
      ActivityPub

      The ActivityPub protocol is a decentralized social networking protocol based upon the [ActivityStreams] 2.0 data format. It provides a client to server API for creating, updating and deleting content, as well as a federated server to server API for delivering notifications and content.

      favicon

      (www.w3.org)

      @julian @mariusor

      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
      #22

      @silverpill @raphael @julian @mariusor

      In my book if a side effect is part of the protocol specification, then it constitutes a protocol capability. If not, then it is part of some app's / solution's business logic.

      The definition of "ActivityPub extension" by itself is unclear. With overloaded use causing confusion. It may refer to:

      - Protocol extension
      - App / solution built on top of the protocol

      To deal with protocol capabilities they must have water-tight specs, well-defined behavior and strict consistent use across the fediverse.

      To deal with side effects that are part of solution designs for a particular application or business domain things go from simple to very complex in the amount of introspection and machine-readability that the #ActivityPub Actor abstraction offers.

      Simplest is finding the URL where the docs of the extension / solution design sit. Most complex is full introspection and handshaking. The latter is the Solid route.

      Link Preview Image
      🫧 socialcoding.. (@smallcircles@social.coop)

      Attached: 1 image I recreated an old diagram in Excalidraw that I spread about a couple years ago, and made it a bit more informative. Explanation can be found in the #AltText See also and for discussion: https://discuss.coding.social/t/diagram-interoperability-in-practice/828 Or join the Social experience design chatroom at: https://matrix.to/#/#socialcoding-foundations:matrix.org Also posted to #SocialHub at: https://socialhub.activitypub.rocks/t/activitypub-versus-fediverse-interoperability-in-practice/8498 @ben@werd.social #SX #SocialCoding #SocialWeb #ActivityPub #SolidProject #fediverse

      favicon

      social.coop (social.coop)

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

        Recently, there was a discussion about generic #ActivityPub servers. Several people claimed that they were working on one, but it turned out that their "generic" servers only support activities defined in the ActivityPub specification. Such a server shouldn't be called generic. It is not difficult to build, neither it is an interesting concept because competing protocols (e.g. Nostr) already offer much more.

        I've been writing a #FEP that describes how to build a real generic server. It is not finished yet, but I feel like now is a good time to publish it:

        FEP-fc48: Generic ActivityPub server

        This kind of server:

        - Can process any object type, and can process non-standard activities like EmojiReact.
        - Compatible with FEP-ae97 clients.
        - Does not require JSON-LD.

        I attempted to implement it when I was researching security properties of FEP-ae97 API: https://codeberg.org/silverpill/fep-ae97-server. Back then I didn't know what to do with side effects, but now I think that we can simply force clients to specify them.

        Special thanks to @mariusor and @trwnh for their input.

        #C2S

        benpate@mastodon.socialB This user is from outside of this forum
        benpate@mastodon.socialB This user is from outside of this forum
        benpate@mastodon.social
        wrote last edited by
        #23

        @silverpill @mariusor @trwnh

        I e*love* this idea- especially in principle. I say that because I’m having a hard time wrapping my head around this and how it would be used in practice.

        Do you think you could post an example workflow (or three) to demonstrate how this would work?

        I get that objects could be added to client-defined collections (very cool) but if object/collection IDs don’t have predefined semantics, how will I know where to look to get the data I need?

        trwnh@mastodon.socialT silverpill@mitra.socialS 2 Replies Last reply
        0
        • silverpill@mitra.socialS silverpill@mitra.social

          @raphael

          what Vocata did

          This project is often brought up as an example of a generic server, but it never reached production stage. The last commit was in 2023.

          It is one thing to have an idea and build a prototype, and a completely different thing to build an application that is secure and interoperates with the rest of the network.

          @mariusor

          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
          #24

          @silverpill @raphael @mariusor

          > neither is it an interesting concept

          > interoperates with the rest of the network

          look, we clearly have different goals here. your goal is to interoperate with the mastodon network. my goal is to publish activities to my website. mastodon doesn't even support all the activities defined in AS2-Vocab. a generic server supports *any* activity, even those not defined by AS2. the network i want to interoperate with isn't mastodon, it's the web.

          silverpill@mitra.socialS 1 Reply Last reply
          0
          • benpate@mastodon.socialB benpate@mastodon.social

            @silverpill @mariusor @trwnh

            I e*love* this idea- especially in principle. I say that because I’m having a hard time wrapping my head around this and how it would be used in practice.

            Do you think you could post an example workflow (or three) to demonstrate how this would work?

            I get that objects could be added to client-defined collections (very cool) but if object/collection IDs don’t have predefined semantics, how will I know where to look to get the data I need?

            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
            #25

            @benpate @silverpill @mariusor none of the IDs should have any semantics; from the outside, there is no distinction between a client managed or server managed collection. likes/shares/etc could be managed by a "client" like mastodon, or even a "default" one. it's not any more complex unless you want to vary the collection responses based on the request headers. for that you need a minimal dynamic layer with an access control policy of some sort. (WAC is the simplest, but ACP is more powerful)

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

              @benpate @silverpill @mariusor none of the IDs should have any semantics; from the outside, there is no distinction between a client managed or server managed collection. likes/shares/etc could be managed by a "client" like mastodon, or even a "default" one. it's not any more complex unless you want to vary the collection responses based on the request headers. for that you need a minimal dynamic layer with an access control policy of some sort. (WAC is the simplest, but ACP is more powerful)

              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
              #26

              @benpate @silverpill in a client managed followers collection i would Add you to my followers just like fedi instances currently do silently. "but how can you prove--" yes exactly, how can current fedi prove anyone is a follower either? you need the Follow+Accept pair to both be live without an Undo on either, right? and that's what leads to the "follow state machine" on fedi that drifts out of sync and leads to private posts being leaked to removed followers (which you can't officially do!)

              1 Reply Last reply
              0
              • benpate@mastodon.socialB benpate@mastodon.social

                @silverpill @mariusor @trwnh

                I e*love* this idea- especially in principle. I say that because I’m having a hard time wrapping my head around this and how it would be used in practice.

                Do you think you could post an example workflow (or three) to demonstrate how this would work?

                I get that objects could be added to client-defined collections (very cool) but if object/collection IDs don’t have predefined semantics, how will I know where to look to get the data I need?

                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
                #27

                @benpate Let's assume that my client is a music player. It publishes a Listen activity where object is an Audio. This activity should increase playCount on the Audio object.

                One way to support this on the server side is to teach it about Listen, Audio and how to update playCount. This is how most existing servers are built.

                But a server described in my FEP would work differently:

                - It doesn't know anything about Listen, Audio or playCount.
                - Upon receiving Listen, it will recognize it as an activity, and embedded Audio as an object.
                - Since this is not a CRUD operation, it will not check permissions.
                - If Listen activity has a result property, the server will process that activity as well.
                - If result is an Update activity, the server will recognize it as a CRUD operation and will check permissions: Update.actor and Audio.attributedTo must be the same.
                - The server will save both activities, Listen and Update.
                - Then it will deliver them to intended recipients (to and cc).

                Effects are client's responsibility now, it must provide an Update activity if it wants to update playCount. There are other requirements too, for example all objects should have an attributedTo property, which is needed for permission checks.

                But in this setup a single server can work with any kind of client.

                @mariusor @trwnh

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

                  @silverpill @raphael @mariusor

                  > neither is it an interesting concept

                  > interoperates with the rest of the network

                  look, we clearly have different goals here. your goal is to interoperate with the mastodon network. my goal is to publish activities to my website. mastodon doesn't even support all the activities defined in AS2-Vocab. a generic server supports *any* activity, even those not defined by AS2. the network i want to interoperate with isn't mastodon, it's the web.

                  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
                  #28

                  @trwnh @raphael @mariusor No, my goal is to interoperate with many Fediverse servers, not just Mastodon. I agree that a generic server is supposed to support any activity, this is exactly what I was arguing about for the last two days, and this is what my FEP is about.

                  raphael@mastodon.communick.comR 1 Reply Last reply
                  0
                  • silverpill@mitra.socialS silverpill@mitra.social

                    @trwnh @raphael @mariusor No, my goal is to interoperate with many Fediverse servers, not just Mastodon. I agree that a generic server is supposed to support any activity, this is exactly what I was arguing about for the last two days, and this is what my FEP is about.

                    raphael@mastodon.communick.comR This user is from outside of this forum
                    raphael@mastodon.communick.comR This user is from outside of this forum
                    raphael@mastodon.communick.com
                    wrote last edited by
                    #29

                    @silverpill

                    The crux of the issue is that we shouldn't need to talk about "your FEP" when we are talking about "servers focused on implementing the ActivityPub API". The spec as is *is enough*. You are moving the goal posts by pushing a definition of "generic server" when it doesn't need to,and you are creating a "No True Scottsman" by saying that implementation X, Y or Z is "incompatible" with ActivityPub API.

                    @trwnh @mariusor

                    trwnh@mastodon.socialT 1 Reply Last reply
                    0
                    • raphael@mastodon.communick.comR raphael@mastodon.communick.com

                      @silverpill

                      The crux of the issue is that we shouldn't need to talk about "your FEP" when we are talking about "servers focused on implementing the ActivityPub API". The spec as is *is enough*. You are moving the goal posts by pushing a definition of "generic server" when it doesn't need to,and you are creating a "No True Scottsman" by saying that implementation X, Y or Z is "incompatible" with ActivityPub API.

                      @trwnh @mariusor

                      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
                      #30

                      @raphael @silverpill well, it's missing a way to remove a follower, but otherwise the "POST to outbox" bits are mostly clear. except how the outbox delivery algorithm handles collections, which when they have inboxes, doesn't allow delivering only to that inbox instead of recursing over all items' inboxes.

                      otherwise i think "side effects" are a red herring. using as:result can be helpful but the "side effects" should happen in an attached client and should be called "automation".

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

                        @benpate Let's assume that my client is a music player. It publishes a Listen activity where object is an Audio. This activity should increase playCount on the Audio object.

                        One way to support this on the server side is to teach it about Listen, Audio and how to update playCount. This is how most existing servers are built.

                        But a server described in my FEP would work differently:

                        - It doesn't know anything about Listen, Audio or playCount.
                        - Upon receiving Listen, it will recognize it as an activity, and embedded Audio as an object.
                        - Since this is not a CRUD operation, it will not check permissions.
                        - If Listen activity has a result property, the server will process that activity as well.
                        - If result is an Update activity, the server will recognize it as a CRUD operation and will check permissions: Update.actor and Audio.attributedTo must be the same.
                        - The server will save both activities, Listen and Update.
                        - Then it will deliver them to intended recipients (to and cc).

                        Effects are client's responsibility now, it must provide an Update activity if it wants to update playCount. There are other requirements too, for example all objects should have an attributedTo property, which is needed for permission checks.

                        But in this setup a single server can work with any kind of client.

                        @mariusor @trwnh

                        benpate@mastodon.socialB This user is from outside of this forum
                        benpate@mastodon.socialB This user is from outside of this forum
                        benpate@mastodon.social
                        wrote last edited by
                        #31

                        Yes, I think I like the idea of clients being able to store data on the server however they like. It reminds me of this description of ATProto that I found recently: https://overreacted.io/a-social-filesystem/

                        I guess my question is: once I store my custom stuff in custom places on my server, how do I publish this so other people can find?

                        And, object IDs are usually defined by the server. So how would it work to say "create a collection named XYZ and add this object to it"?

                        @silverpill @mariusor @trwnh

                        trwnh@mastodon.socialT silverpill@mitra.socialS 2 Replies Last reply
                        0
                        • benpate@mastodon.socialB benpate@mastodon.social

                          Yes, I think I like the idea of clients being able to store data on the server however they like. It reminds me of this description of ATProto that I found recently: https://overreacted.io/a-social-filesystem/

                          I guess my question is: once I store my custom stuff in custom places on my server, how do I publish this so other people can find?

                          And, object IDs are usually defined by the server. So how would it work to say "create a collection named XYZ and add this object to it"?

                          @silverpill @mariusor @trwnh

                          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
                          #32

                          @benpate @silverpill

                          > object ids are usually defined by the server

                          the server would need to know your namespace/prefix, then mint ids in that namespace. if that is a dns name, then you get dns portability. if it's an https uri, then you ideally need to support relative references and redirects.

                          "create a collection" can happen over any CRUD method supported. if you use AP as an API then this would be a Create(object.type=Collection) then you get HTTP 201 Created with a Location header.

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

                            Recently, there was a discussion about generic #ActivityPub servers. Several people claimed that they were working on one, but it turned out that their "generic" servers only support activities defined in the ActivityPub specification. Such a server shouldn't be called generic. It is not difficult to build, neither it is an interesting concept because competing protocols (e.g. Nostr) already offer much more.

                            I've been writing a #FEP that describes how to build a real generic server. It is not finished yet, but I feel like now is a good time to publish it:

                            FEP-fc48: Generic ActivityPub server

                            This kind of server:

                            - Can process any object type, and can process non-standard activities like EmojiReact.
                            - Compatible with FEP-ae97 clients.
                            - Does not require JSON-LD.

                            I attempted to implement it when I was researching security properties of FEP-ae97 API: https://codeberg.org/silverpill/fep-ae97-server. Back then I didn't know what to do with side effects, but now I think that we can simply force clients to specify them.

                            Special thanks to @mariusor and @trwnh for their input.

                            #C2S

                            steve@social.technoetic.comS This user is from outside of this forum
                            steve@social.technoetic.comS This user is from outside of this forum
                            steve@social.technoetic.com
                            wrote last edited by
                            #33

                            @silverpill @mariusor @trwnh In principle, I like the general idea, but I think it's misleading to call this an "ActivityPub" server FEP since it doesn't conform to the ActivityPub specifications. You also recommend (require?) using the `result` property to describe server side-effects, but you don't describe *how*. I don't know how you expect to "force clients to specify them".

                            silverpill@mitra.socialS 1 Reply Last reply
                            0
                            • steve@social.technoetic.comS steve@social.technoetic.com

                              @silverpill @mariusor @trwnh In principle, I like the general idea, but I think it's misleading to call this an "ActivityPub" server FEP since it doesn't conform to the ActivityPub specifications. You also recommend (require?) using the `result` property to describe server side-effects, but you don't describe *how*. I don't know how you expect to "force clients to specify them".

                              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
                              #34

                              @steve @mariusor @trwnh

                              This FEP introduces new requirements to ActivityPub, and I will probably add more in the future. Does that make it non conformant?

                              In any case, I think calling it an ActivityPub server is appropriate.

                              Side-effects are activities, I will clarify that in the FEP. The value of result property can be an embedded activity, or an array of activities.

                              Clients either specify them, or they don't get any side effects.

                              1 Reply Last reply
                              0
                              • benpate@mastodon.socialB benpate@mastodon.social

                                Yes, I think I like the idea of clients being able to store data on the server however they like. It reminds me of this description of ATProto that I found recently: https://overreacted.io/a-social-filesystem/

                                I guess my question is: once I store my custom stuff in custom places on my server, how do I publish this so other people can find?

                                And, object IDs are usually defined by the server. So how would it work to say "create a collection named XYZ and add this object to it"?

                                @silverpill @mariusor @trwnh

                                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
                                #35

                                @benpate Publishing process doesn't change much. A generic server should deliver activities to actors specified in to and cc fields. It should keep track of collections, such as followers collection, and "expand" them before delivery. This part is not different from the regular ActivityPub.

                                I think ID assignment should also work the same. In the FEP I proposed Add activity without object as a special activity for creating collections, but now I see that it will not work if IDs are minted by a server (no FEP-ae97).

                                Perhaps it should be a Create, after all, as @trwnh described in an adjacent comment. I was hesitant to use Create because this is a problem for FEP-ae97 clients (not a big one though).

                                @mariusor @trwnh

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