Fix Mastodon ActivityPub key refresh in template site #249
No reviewers
Labels
No labels
activitypub
admin
api
architecture
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
content
database
deployment
design
dev-env
diagnostics
docs
documentation
email
enhancement
feature
federation
feed
health
homepage
implementation
integration
logging
mastodon
media
navigation
npm-packages
openapi
opengraph
packages
passkeys
preview
priority:high
priority:low
priority:medium
production
proof
proxy
public-routes
public-ui
release
safety
slug-api
slug-auth
slug-core
slug-federation
slug-media
slug-template
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
webauthn
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!249
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/task-1fe99cef-mastodon-key-refresh"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
publicKeyonly./activitypub/keys/{actor}/main-key.assertionMethodfrom local actor documents for Mastodon compatibility.acct:{actor}@{domain}.@evcraddock/slug-templateto0.1.2and@evcraddock/slug-clito0.6.2so future generated sites get the fixed template package.Verification
npm run typecheck --workspace @slugkit/template-sitenpm test --workspace @slugkit/template-site -- src/federation src/routes/__tests__/admin-activitypub.test.tsnpm run build --workspace @evcraddock/slug-templatenpm run build --workspace @evcraddock/slug-clinpm test --workspace @evcraddock/slug-templatenpm test --workspace @evcraddock/slug-cli -- commands.test.tsnpm run package:pack:dry-run -- --workspace @evcraddock/slug-templatenpm run package:release -- --workspace @evcraddock/slug-template --dry-runnpm pack --workspace @evcraddock/slug-cli --dry-run./scripts/pre-pr.shManual verification still required
Live Mastodon verification requires a deployed ActivityPub-enabled site. After merge/release, verify with:
Public key not found/Could not refresh public keyerrors.Task: #task-1fe99cef
Review summary
PR #249 updates the template site's ActivityPub key/signature behavior to match the Mastodon-compatible shape from the task: legacy
publicKey, standalone key route, noassertionMethod, and outboundacct:{actor}@{domain}signing. It also bumps@evcraddock/slug-templateand@evcraddock/slug-cliso future generated sites can receive the fixed template package after release.Acceptance criteria
publicKeyshape used byslugkit.com— actor document now advertisespublicKeywith/activitypub/keys/{actor}/main-key./activitypub/keys/{actor}/main-key— route and test added.assertionMethodunless/until Mastodon compatibility is safely restored — actor tests assert omission.acct:{actor}@{domain}or compatible key ID — delivery and follow-accept tests assertacct:erik@example.comand no multikey/main-key fragment signature IDs.Verification
./scripts/pre-pr.shpassed locally.@evcraddock/slug-templatepack/release dry-runs passed.@evcraddock/slug-clipack dry-run passed.Blocking issues
None for merging code. Live Mastodon verification remains a deploy-time acceptance check before task closure.
Verdict
Approved for merge; do not close task until post-deploy Mastodon verification is complete or explicitly waived.