Axismundi S2S Bridge for ActivityPub

Description

This is the seam, and the only one. Axismundi Actors, Object Projections and Activities each
work without it and none of them talks to another server; this package is what puts them on
the network, by composing with the official ActivityPub plugin rather than by
reimplementing what that plugin already does well.

The division is worth stating precisely, because “which plugin sends it” and “which plugin
signs it” have different answers.

Receiving

Each local Actor advertises its own UUID-addressed Inbox route. POST uses the installed
official plugin’s request schema and HTTP Signature verifier on the original request;
it does not redirect a signed request. The verifier’s configured deferral policy still applies.
Existing official per-user and shared routes remain compatibility receivers and hand their
verified deliveries to the same Axismundi ledger. Official domain handlers remain dormant.

Actor Inbox GET requires the authenticated local user’s Account access relationship.
It returns private, non-cacheable receipt pages and removes blind recipient metadata.
Remote-principal authorization and mailbox read-state are not implemented.

An Activity that arrives twice is acknowledged twice and recorded once. The ledger is keyed by
the Activity’s own URI. Per-Actor receipt membership is stored separately and atomically.
Historical backfill is explicit and bounded, and cannot reconstruct recipients that were
never recorded in addressing or route metadata.

Sending

Here it is the other way round. This plugin opens the connection. When Axismundi
Activities commits an outbound Activity, one row is written to a transport queue owned by this
plugin, and a background worker POSTs the JSON-LD to each recipient inbox. The official
plugin signs it
: the signing key reference and the key itself go out with the request, and
that plugin’s request-signing filter turns them into an HTTP Signature header.

The keys are the official plugin’s too. Nothing here generates, stores or copies private key
material; it is read from that plugin’s key store into memory for the length of one request,
and the queue holds the payload and the recipients and never a key.

Recipients come from the Activity itself: the actors it is addressed to, the actor a Follow or
Block is about, and — only when it addresses the public collection or the sender’s own
followers — that sender’s accepted followers. Each address is resolved to the inbox of an
Actor this site has already cached, and duplicates collapse, so one Activity reaches one inbox
once.

What is not guaranteed

Sending a Delete or an Undo tells other servers what happened. It cannot make them act on
it. A server holding your post may keep it, may have passed it on already, and may be
unreachable when the Delete goes out. Delivery is attempted on a bounded retry schedule and
then given up on. Federation is a request made to other people’s computers, not control over
them.

What this is not

Not a client, not an inbox implementation, and not a signature implementation — those belong
to the official plugin. Not the ledger either: Axismundi Activities stays authoritative, and a
delivery succeeding or failing changes the queue row rather than the record of what happened.

External services

This plugin sends your site’s public content to other servers on the Fediverse. That is what it
is for, so it is worth being exact about what leaves and when.

  • What is sent. The ActivityStreams JSON-LD of an Activity your site produced — publishing,
    editing, deleting, following, liking, announcing, replying — as an HTTP POST to each
    recipient’s inbox, signed with your Actor’s key so the receiving server can tell it really
    came from you. As with any HTTP request, the receiving server also learns your site’s IP
    address.
  • Who receives it. The servers of the actors the Activity is addressed to, and, for a public
    post, the servers of your accepted followers. Nobody else is contacted. A non-public Activity
    is kept out of delivery by the ledger’s own public projection rules.
  • When. On a background task shortly after the Activity is recorded, never while somebody is
    waiting for a page. Failures are retried on a bounded, widening schedule and then left in a
    dead-letter state an administrator can inspect and retry once.
  • What is stored here. The queue row keeps the payload that was sent, the inboxes still to
    try, the attempt count, and a short sanitized description of the last failure. It never keeps
    key material.

There is no Axismundi service. Nothing is sent to this plugin’s author and no central server
is involved. Every server your site talks to is somebody else’s, reached because somebody there
follows you or because you addressed them, and each is run under its own terms of service and
privacy policy. What they do with what you send — how long they keep it, who they show it to,
whether they honour a later Delete — is theirs to decide, not yours and not this plugin’s.

Receiving is described above: the official ActivityPub plugin owns the inbox and the signature
check, and this plugin only handles what that plugin has already verified.

Installation

  1. Install and activate the ActivityPub plugin, then Axismundi Actors, Axismundi
    Object Projections
    and Axismundi Activities.
  2. Upload this plugin folder to /wp-content/plugins/, or install it through
    Plugins > Add New, then activate it.
  3. Give your Actor a public status in Users > Actor Profile. An Actor whose signing key
    cannot yet be published advertises no inbox and sends nothing, deliberately: a remote server
    that fetched it during that window would cache a keyless document and reject every signature
    afterwards.
  4. The transport queue is readable, read-only, from this plugin’s administration screen.

Activation creates this plugin’s own delivery table. Nothing is contacted on the internet
during installation.

If you installed a prerelease under the previous folder name, deactivate that copy before
activating this one. The new folder is a separate plugin entry in WordPress; it uses the
same settings and delivery table. Do not activate both copies together.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Axismundi S2S Bridge for ActivityPub” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.1.6

  • Use the plugin prefix for every option, setting, custom table and nonce name.
  • Remove a migration that only read data from unreleased development builds.

0.1.5

  • Rename the plugin and distribution slug to clarify that this is a third-party server-to-server integration.

0.1.4

  • First public release.
  • Own the advertised Actor and shared Inbox POST endpoints under axismundi/activitypub, retaining previous POST receivers without redirects.
  • Delegate Inbox collection GET representations to Object Projections.
  • Inspect paginated per-Inbox outcomes and cancel unclaimed deliveries when no recipient could have accepted them. Cancellation leaves the Activity ledger unchanged.
  • Add a shared Inbox collection disclosure setting, enabled by default, without backfilling historical receipt provenance.

  • Delegate HTTP Signature verification to the official ActivityPub plugin and record verified Activities in the Axismundi ledger.

  • A transport queue of its own for outbound delivery, with an atomic single-worker claim, a
    bounded widening retry schedule, a dead-letter state, and a one-shot administrator retry.
  • Outbound requests are signed by the official plugin’s filter using keys read from its key
    store in memory; the queue stores payloads and recipients and never key material.
  • Recipients are resolved from the Activity’s own audience, expanding the public and followers
    collections to accepted follower inboxes only at the transport boundary, deduplicated so one
    Activity reaches one inbox once.
  • An Actor whose public key cannot yet be projected advertises no inbox, endpoints, publicKey or
    WebFinger self link, and sends nothing, so that no remote server caches a keyless document.
  • Migration of provisional and legacy outbox jobs into the transport queue without deleting
    their source rows.