chadtmiller.com/group-host
atmosphere group host
Someone not signed in sees only a group's handle, and is asked to sign in
MergedThis makes public mean anyone signed in. A caller with no auth gets only a group's DID and handle from getGroup and listGroups, a 401 from space records and blobs, and only public-repo images from /img. I read the diff of group_api.rs, blobs.rs and index_api.rs, the three files the body names, and found no bugs. The change does what the body says:
get_groupreturns before any deactivation or access check, so a switched-off group looks the same as any other to someone signed out.may_seereturns false for no one before it reaches the spaces, which closes the old listed-group exception.readablegoes throughsigned_in, so apublicspace no longer opens to an anonymous caller.
I did not read the console files (web/, Welcome.svelte, CSS tokens), the tests, the lexicons or the docs. I also did not check the CI runs, so I'm not vouching for the layers, docs, lexicon or e2e checks. One thing for the author to confirm: this changes the listGroups and getGroup contract, so docs/reference/api.md should say it. I couldn't tell from what I read whether the diff updates it.
What changes
The boundary.
publicmeans anyone signed in, everywhere. A caller with no service auth and no console cookie now learns of a group only what its DID document already says:getGroupanswers{"group": {"did", "handle"}}and nothing more, whatever the group's access records say. A switched-off group is answered the same way, withoutdeactivated.listGroupslists every group by its DID and handle alone. Signed in, it answers as before. It now reads the caller, so it takes service auth forfyi.opensocial.listGroupsor the console's cookie.listSpaceRecordsandgetSpaceBlobrefuse with401 AuthMissing, including for a space whose access record ispublic./img/{did}/{cid}serves someone not signed in only what the group's public repo holds. A listed group's avatar and banner live inmeta, so they go to anyone signed in (who readsmetaby itspublicaccess) and no longer to anyone at all. The special case for a declared group is gone, because the access record already covers it.groupViewandgroupViewDetailednow require onlydidandhandle, so the signed-out answer still validates.metaandmembersare still sent to anyone signed in.getGroup's andlistGroups' descriptions say what a caller without auth gets.The console, signed out. The home page shows "Groups on <the host's hostname>", "Sign in with your Atmosphere account to see your groups, or to start one." and one Sign in button. There is no list of groups, and it makes no
listGroupscall. A group's page shows the group's handle, "Sign in to see this group." and Sign in; the dialog'sbackbrings the visitor back to that page. Both use a newtemplates/Welcome.svelte. Signed in, both pages are unchanged. On every page the footer now reads "<hostname> runs opensocial".The sign-in dialog follows knotless's: a row of Atmosphere app icons scrolling slowly (the same twenty, copied into
web/static/atmo/), faded at its edges and still underprefers-reduced-motion; "What is an Atmosphere account?"; the Handle field; Cancel and Sign in; and, under a divider, "Don't have an account? Create one". New tokens:--text-3xl,--text-hero,--measure,--app-icon,--apps-run,--opaque(a mask's opaque stop).Why
A group whose meta was
publicshowed its profile, rules and pictures to anyone on the web, signed in or not. The intent ofpublicis anyone with an Atmosphere account, so the host now holds every route to that, and the console offers a visitor who is signed out one thing to do: sign in.How it was checked
getGroupgives exactly the DID and handle (groups.rs).listGroupsgives profiles to a signed-in stranger and only DID and handle to no one (groups.rs).lifecycle.rs).publicspace is readable by a stranger signed in and refused to no one, records and files (index.rs).group_config.rs).group_handle.rs,lifecycle.rs).listGroupsas a signed-in non-member.cargo fmt --all, clippy with warnings denied,node harness/lexicons.mjs,node harness/docs.mjs,node harness/layers.mjs,npm run check. Coverage and e2e are left to the runner.Shortcomings
com.atproto.space.getSpaceCredentialwithout a delegation token still issues credentials for a moved-in space markedpublicRead. No group'smetaormembersis ever marked so.Review
Start at
crates/group-host/src/group_api.rs(get_group,list_groups), thenblobs.rsmay_seeandindex_api.rsreadable.🤖 Generated with Claude Code