# FEP-2677: Identifying the Application Actor

**URL:** <https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646>\
**Category:** Fediverse Enhancement Proposals\
**Tags:** draft, fep, fep-2677\
**Created:** [October 15, 2023, 5:03pm UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646 "2023-10-15T17:03:29Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![naturzukunft](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/naturzukunft/32/983_2.png) [@naturzukunft](https://socialhub.activitypub.rocks/u/naturzukunft)\
**Post date:** [October 19, 2023, 3:57pm UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/22 "2023-10-19T15:57:40Z")

</div>

An instance is what is accessible via a domain. e.g. [https://mastodon.social](https://mastodon.social). regardless of scaling, operating system process, etc.

Introducing an “instance actor” for properties of an instance feels good to me. A bit like “eat your own dog food”.

> [@stevebate](#):
>
> Some instance implementations are limited to a single actor. To support an “instance actor”, do they need to implement a special instance actor (different technical requirements) or can the original actor serve the purpose?

if it has been specified what an “instance actor” is and what it can do, then the “single actor” of an instance can be the “instance actor” as soon as it fulfills the requirements of an "instance actor

> [@stevebate](#):
>
> Also, until there’s more discussion about nodeinfo, I’m -1 for the reasons I stated previously.

I Agree!

---

<div class="post-metadata">

**Author:** ![stevebate](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/stevebate/32/2763_2.png) [@stevebate](https://socialhub.activitypub.rocks/u/stevebate)\
**Post date:** [October 19, 2023, 6:41pm UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/23 "2023-10-19T18:41:37Z")

</div>

> [@naturzukunft](#):
>
> An instance is what is accessible via a domain. e.g. [https://mastodon.social](https://mastodon.social). regardless of scaling, operating system process, etc.

I mostly agree, if you add the protocol and port to that definition. The definition of “origin” used for “same origin policies” could be a good guideline, but there are probably other possibilities.

> [@naturzukunft](#):
>
> Introducing an “instance actor” for properties of an instance feels good to me. A bit like “eat your own dog food”.

I don’t know how that idiom applies here, but I prefer the principle of [low coupling](https://en.wikipedia.org/wiki/Coupling_(computer_programming)). One shouldn’t need to implement an “instance actor” to provide instance metadata. That said, I don’t think that was the primary purpose of this FEP, but it was mentioned as a potential use of instance actors so I suppose it’s relevant to discuss it in that context.

> [@naturzukunft](#):
>
> > [@stevebate](#):
> >
> > Some instance implementations are limited to a single actor. To support an “instance actor”, do they need to implement a special instance actor (different technical requirements) or can the original actor serve the purpose?
> 
> if it has been specified what an “instance actor” is and what it can do, then the “single actor” of an instance can be the “instance actor” as soon as it fulfills the requirements of an "instance actor

There are two requirements listed in the FEP for an “instance actor” (AKA application actor). The actor resource can be retrieved without authentication. Many servers implement that behavior for all actors so that’s not a problem (although it’s also doesn’t help much to define how an “instance actor” is different from other actors). The other requirement is that it has an `Application` type. I think many single actor instances are going to be `Person` actor types, so changing that to `Application` to also qualify as an instance actor is not going to be desirable. AP does technically allow both `Person` and `Application` to be specified as an actor `type`, but I suspect there would be interop problems with that approach.

---

<div class="post-metadata">

**Author:** ![naturzukunft](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/naturzukunft/32/983_2.png) [@naturzukunft](https://socialhub.activitypub.rocks/u/naturzukunft)\
**Post date:** [October 20, 2023, 6:59am UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/24 "2023-10-20T06:59:12Z")

</div>

> [@stevebate](#):
>
> The other requirement is that it has an `Application` type.

The type of instance actor should not play a role. I see no reason to restrict this in the FEP.

---

<div class="post-metadata">

**Author:** ![helge](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/helge/32/1938_2.png) [@helge](https://socialhub.activitypub.rocks/u/helge)\
**Post date:** [October 20, 2023, 11:26am UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/25 "2023-10-20T11:26:46Z")

</div>

> [@naturzukunft](#):
>
> The type of instance actor should not play a role. I see no reason to restrict this in the FEP.

I want to. It’s a simple as that. FEP is not a consensus driven process, what the author wants rules supreme.

* * *

Anyway, I added a fediverse feature for this fep:

[https://codeberg.org/helge/fediverse-features/src/branch/main/feps/fep-2677.feature](https://codeberg.org/helge/fediverse-features/src/branch/main/feps/fep-2677.feature)

---

<div class="post-metadata">

**Author:** ![naturzukunft](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/naturzukunft/32/983_2.png) [@naturzukunft](https://socialhub.activitypub.rocks/u/naturzukunft)\
**Post date:** [October 20, 2023, 2:45pm UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/26 "2023-10-20T14:45:43Z")

</div>

> [@helge](#):
>
> FEP is not a consensus driven process, what the author wants rules supreme.

A Fediverse Enhancement Proposal (FEP) is a document that provides information to the Fediverse community. _The goal of a FEP is to improve interoperability and well-being of diverse services, applications and communities that form the Fediverse._

[^source](https://socialhub.activitypub.rocks/t/about-the-fediverse-enhancement-proposals/1168)

This sounds a bit contradictory to me.

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [December 19, 2023, 10:47pm UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/27 "2023-12-19T22:47:01Z")

</div>

ActivityStreams: [Clarify the definitions of Application and Service types](https://github.com/w3c/activitystreams/issues/563)

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [December 20, 2023, 8:54pm UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/28 "2023-12-20T20:54:26Z")

</div>

FEP-2677 was implemented in Mobilizon: [feat(activitypub): implement FEP-2677 to identify the application actor used for federation (!1507) · Merge requests · Framasoft / Mobilizon · GitLab](https://framagit.org/framasoft/mobilizon/-/merge_requests/1507)

Perhaps it’s time to add “Implementations” section?

---

<div class="post-metadata">

**Author:** ![stevebate](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/stevebate/32/2763_2.png) [@stevebate](https://socialhub.activitypub.rocks/u/stevebate)\
**Post date:** [December 21, 2023, 7:19am UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/29 "2023-12-21T07:19:52Z")

</div>

In a way, that’s unfortunate. On one hand, I have concerns about nodeinfo becoming required for federation when webfinger is already required. On the other, since “Application Actor” is not a well-defined concept, they and the extended nodeinfo support probably won’t become a general federation requirement and instead be an implementation-specific consideration.

I still believe we should have defined Application Actor better (requirements, behaviors, recommended practices) before, or in addition to, defining a discovery mechanism for a poorly-defined concept.

---

<div class="post-metadata">

**Author:** ![stevebate](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/stevebate/32/2763_2.png) [@stevebate](https://socialhub.activitypub.rocks/u/stevebate)\
**Post date:** [December 28, 2023, 7:50am UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/30 "2023-12-28T07:50:03Z")

</div>

There has been some discussion about the definitions of `Application` and `Service` types in the SocialCG and guidance has been added to the AS2 primers. Of note is the guidance to `Service` instead of `Application` for server-level (or instance-level) actors and primarily use `Application` to represent client software (although the bot examples don’t seem consistent with this guidance).

[Clarify the definitions of Application and Service types · Issue #563 · w3c/activitystreams (github.com)](https://github.com/w3c/activitystreams/issues/563#issuecomment-1870504999)

[Activity Streams/Primer/Application type - W3C Wiki](https://www.w3.org/wiki/Activity_Streams/Primer/Application_type)

---

<div class="post-metadata">

**Author:** ![helge](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/helge/32/1938_2.png) [@helge](https://socialhub.activitypub.rocks/u/helge)\
**Post date:** [December 28, 2023, 7:57am UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/31 "2023-12-28T07:57:22Z")

</div>

If the SocialCG wants to hasten people forking the ActivityPub specification, this is exactly the type of move that leads to it. I’ll be refraining on further comments on their actions again for some time.

---

<div class="post-metadata">

**Author:** ![stevebate](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/stevebate/32/2763_2.png) [@stevebate](https://socialhub.activitypub.rocks/u/stevebate)\
**Post date:** [December 28, 2023, 8:17am UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/32 "2023-12-28T08:17:23Z")

</div>

> [@helge](#):
>
> If the SocialCG wants to hasten people forking the ActivityPub specification, this is exactly the type of move that leads to it.

To clarify, the ActivityPub specification doesn’t refer to either `Application` or `Service`. This is an Activity Streams 2.0 topic although the primer discusses the implementation-specific use of those actor types in a server context (which may or may not be an AP server).

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [December 28, 2023, 7:55pm UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/33 "2023-12-28T19:55:32Z")

</div>

I agree that proposed definitions are not ideal. My suggestion: [Clarify the definitions of Application and Service types · Issue #563 · w3c/activitystreams · GitHub](https://github.com/w3c/activitystreams/issues/563#issuecomment-1871444953)

Application = any software application, server or client  
Service = bot account (something that behaves like a Person, but automated)

---

<div class="post-metadata">

**Author:** ![stevebate](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/stevebate/32/2763_2.png) [@stevebate](https://socialhub.activitypub.rocks/u/stevebate)\
**Post date:** [December 28, 2023, 8:17pm UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/34 "2023-12-28T20:17:11Z")

</div>

The FEP could side-step the issue by removing the requirement for the “Application Actor” to have an AS2 `Application` type. Instead, whatever actor is identified by the NodeInfo `https://www.w3.org/ns/activitystreams#Application` relation _is_ the application actor, regardless of type (subject to AP inbox/outbox and other requirements, of course).

---

<div class="post-metadata">

**Author:** ![helge](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/helge/32/1938_2.png) [@helge](https://socialhub.activitypub.rocks/u/helge)\
**Post date:** [December 29, 2023, 11:30am UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/35 "2023-12-29T11:30:57Z")

</div>

Until the W3C releases the next Candidate Recommendation, I will not make any changes to the FEP due to their discussions.

---

<div class="post-metadata">

**Author:** ![thisismissem](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/thisismissem/32/1918_2.png) [@thisismissem](https://socialhub.activitypub.rocks/u/thisismissem)\
**Post date:** [January 3, 2024, 9:33pm UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/36 "2024-01-03T21:33:58Z")

</div>

I’ve opened a PR for Mastodon to implement this FEP here, but the decision will be with the Mastodon core team: [Implement FEP-2677 allowing discovery of the instance application actor by ThisIsMissEm · Pull Request #28584 · mastodon/mastodon · GitHub](https://github.com/mastodon/mastodon/pull/28584)

---

<div class="post-metadata">

**Author:** ![thisismissem](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/thisismissem/32/1918_2.png) [@thisismissem](https://socialhub.activitypub.rocks/u/thisismissem)\
**Post date:** [January 3, 2024, 9:37pm UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/37 "2024-01-03T21:37:25Z")

</div>

As an aside, I would like to see the webfinger of the instance’s own URL result in the appropriate response linking to the instance actor be standardised. e.g.,

```auto
https://mastodon.social/.well-known/webfinger?resource=https://mastodon.social/

```

On Mastodon, it seems to give the Instance Actor as I’d expect. However, I don’t believe this is currently standardised.

---

<div class="post-metadata">

**Author:** ![stevebate](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/stevebate/32/2763_2.png) [@stevebate](https://socialhub.activitypub.rocks/u/stevebate)\
**Post date:** [January 4, 2024, 6:49am UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/38 "2024-01-04T06:49:29Z")

</div>

> [@thisismissem](#):
>
> I would like to see the webfinger of the instance’s own URL result in the appropriate response linking to the instance actor be standardised

Interesting! I strongly prefer this approach since a Webfinger endpoint is already required for Mastodon federation and nodeinfo is not.

---

<div class="post-metadata">

**Author:** ![helge](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/helge/32/1938_2.png) [@helge](https://socialhub.activitypub.rocks/u/helge)\
**Post date:** [January 6, 2024, 7:46am UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/39 "2024-01-06T07:46:37Z")

</div>

The problem with this is: What if I want to use `https://mastodon.social` as the URI of the main actor for my single user instance? So me. I will want requests to this actor to require using signed requests.

Using your proposed webfinger approach makes this impossible.

---

<div class="post-metadata">

**Author:** ![stevebate](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/stevebate/32/2763_2.png) [@stevebate](https://socialhub.activitypub.rocks/u/stevebate)\
**Post date:** [January 6, 2024, 10:22am UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/40 "2024-01-06T10:22:17Z")

</div>

I’m assuming you don’t mean Mastodon literally here since the Webfinger resolution in that context would require an “acct:” URI for the user actor. However, for another server implementation, would the following work (ignoring Mastodon interop for the moment)?

```auto
https://server.example/.well-known/webfinger?resource=https://server.example/

```

returning…

```json
{
  "subject": "https://server.example/",
  "links": [
    {
      "rel": "https://www.w3.org/ns/activitystreams#Application",
      "type": "application/activity+json",
      "href": "https://server.example/ApplicationActor"
    },
    {
      "rel": "self",
      "type": "application/activity+json",
      "href": "https://server.example/"
    }
  ]
}

```

That’s not compatible with Mastodon, so for interop one might also want to support:

```auto
https://server.example/.well-known/webfinger?resource=acct:user@server.example

```

returning…

```json
{
  "subject": "acct:user@server.example",
  "links": [
    {
      "rel": "self",
      "type": "application/activity+json",
      "href": "https://server.example/"
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![thisismissem](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/thisismissem/32/1918_2.png) [@thisismissem](https://socialhub.activitypub.rocks/u/thisismissem)\
**Post date:** [January 6, 2024, 9:53pm UTC](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646/41 "2024-01-06T21:53:31Z")

</div>

> [@helge](#):
>
> The problem with this is: What if I want to use `https://mastodon.social` as the URI of the main actor for my single user instance? So me. I will want requests to this actor to require using signed requests.
> 
> Using your proposed webfinger approach makes this impossible.

There’s a different here though, between you as a Person, @helge, and the server operating as your server. This is something that comes up time and again in RDF contexts, like whilst both represent you, both are not “you”. Even `Person` is not “you” strictly speaking, it’s just a representation of you. (this gets into the whole weird world of representing data about something vs representing something in the physical world.

[Previous page](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646.md?page=1)

[Next page](https://socialhub.activitypub.rocks/t/fep-2677-identifying-the-application-actor/3646.md?page=3)
