Repository navigation
Releases
Releases · Contraculto/sufi
SUFI 1.0.0 — first release
SUFI is a minimal, dependency-free PHP ActivityPub server for one person. Drop it on a shared PHP host alongside an existing site: no Composer, no build step, no database server.
This is the first tagged release. Setup and upgrade instructions: README.
First release: a single-user ActivityPub server with no dependencies beyond PHP.
Added
- ActivityPub actor, WebFinger, host-meta, NodeInfo, outbox, followers,
following and likes collections. - Signing and verification for both draft-cavage HTTP Signatures and RFC 9421
message signatures. - Composer with visibility (
public,unlisted,private), content warnings,
up to four image attachments, alt text, EXIF orientation and thumbnails. - Home timeline and directed inbox with reply folding, read state and
thread promotion for out-of-order delivery. - Follow, unfollow, block and unblock; remote follow via
authorize_interaction; Mastodon-compatibleMovehandling. - Delivery queue with exponential backoff, a cron worker and dead-inbox cleanup.
- Panel with login, CSRF protection, rate limiting, profile editing and avatar
upload. - Self-hosted fonts and a flat fanzine theme with light/dark color schemes.
- Content warnings are collapsed behind a “reveal entry” control on the profile,
tag pages, panel entries, and remote timeline/inbox cards. - Accessible page landmarks, a single top-level heading per page, visible focus
styles, and pending-follow labels in the people tab. - Ops scripts: health check, backups, verified restore, inbox pruning, orphaned
upload cleanup, handle backfill and inbox/timeline reclassification. - Test suite and CI across PHP 8.1–8.5, plus deployment manifest and smoke
checks.
Security
- Private posts are no longer fetchable anonymously, and the public outbox
lists only public posts. - Outbound deliveries use the same HTTPS/public-IP guard as remote fetches,
closing an SSRF path through remote-controlled inbox URLs. - Signature checks require coverage of the request target, date and body
digest, and restrict digest algorithms to SHA-256/SHA-512 instead of passing
unknown names tohash()(which raised a 500). - Panel links only render
http(s)hrefs, so a remote actor cannot smuggle a
javascript:URL into the inbox, timeline or people list. - Accept/Reject must come from the actor the Follow was sent to;
Movemust
move the signing actor itself, andUndocan only touch the signer's own
records. - Session strict mode, CSRF token rotation on login, and per-IP throttling for
password-authenticated API calls as well as the login form. - Inbox requests and payload sizes are bounded per IP.
- Security headers now include a CSP and Permissions-Policy on public pages.
- Remote-follow redirects validate the target host; WebFinger resources are
URL-encoded. - Database failures log details server-side and return a generic error.
- Restore keeps a consistent pre-restore snapshot via
VACUUM INTO.
Changed
- Profile edits are federated to followers as an
Updateof the actor. - Fonts are served through
/ap/fonts/, independent of the deployment layout. - Unicode hashtags are decoded correctly, so
/tags/caf%C3%A9works. sys/,scripts/,tests/,docs/,deploy/,templates/and.git/
are denied by the bundled Apache/Nginx rules and the dev static server.