Display name only: UI, docs, API title, dashboards, hashtag and User-Agent.
Identifiers (package, metrics, env vars, SCROBBLER_CONFIG) are unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
scripts/interop/run.sh brings up Scrobbler (API, worker, UI behind a
throwaway-TLS Caddy) and GoToSocial 0.22.1 on a private .test network,
creates a GoToSocial user, drives its sign-in/OAuth screens for a token,
and checks: lookup by handle, follow accepted, unfollow, manual approval
and approve, remove, block and unblock, and decline.
Found and fixed along the way:
- Keys whose id is a path serving the actor (GoToSocial's
<actor>/main-key) weren't resolved; now all three publishing styles
are handled
- An Undo of an older Follow arriving after a newer Follow removed the
new follower; an Undo now only removes the Follow it names (and Undo
referencing a Follow by id is understood)
- Rejects embedded the Follow, which some servers (GoToSocial) match by
account pair, so a late Reject could cancel a newer request; Rejects
now reference the Follow by id
- Unblocking didn't tell the other server; it now sends Undo(Block)
- Actors publish an (empty) featured collection, which Mastodon and
GoToSocial fetch
GoToSocial 0.22.1 ignores Reject for already-accepted follows (a TODO
in its code, fixed on its main branch); the removal check on its side
is skipped until a release has it (GTS_REJECT_ENDS_FOLLOWS=1 enables).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
- net.py: the only client federation uses, on httpcore (BSD-3-Clause)
with a guarded network backend: https only, every resolved address
must be public (private, loopback, link-local, CGNAT, multicast and
IPv4-mapped forms refused), and the connection goes to the checked
address; 3 redirects max (GET only), 1 MB cap, 10s/20s timeouts
- outbound.py: signed GETs (instance actor, so authorized-fetch servers
answer) and signed POSTs (as the user), trying the configured
signature schemes in order and the next only on a 401
- remote.py + federation_remote_actors: fetch, validate (id matches
URL and host, actor type, inbox on its host, key owned by the actor),
cache for 24h, refresh on demand, 410 marks an actor gone; resolve a
key id to its actor, including standalone key documents
- Config: FEDERATION_SIGNATURE_SCHEMES, FEDERATION_BLOCKED_DOMAINS,
FEDERATION_DELIVERY_CONCURRENCY, and FEDERATION_INSECURE_TESTING
(http and private addresses; only allowed for .test domains)
- Tests against a real local HTTP server, including verifying that our
fetches carry a valid signature
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW