chadtmiller.com/group-host
atmosphere group host
0
0
A former member's files are still fetched for `getSpaceBlob`
Closedchadtmiller.com mentioned this in A former member's files are fetched no more
atmosphere group host
What happened
put_outunindexes the member from each space but leaves theirspace_writerrow.space_blobchecks only thatrepois in the writer set, not that the space still lets them write. The index makes that check (index.rs:156);space_blobdoes not. So after Bob is ejected, Alice, still a member, callsgetSpaceBlob?repo=<bob>&cid=<his picture>. The host signs a credential as the group, fetches the file from Bob's PDS (or from the store, if Bob's repo is here) and serves it, though the group has "forgotten what he wrote". The same holds for a writer dropped by awritableBychange. No test covers a blob afterejectMember.How to see it
Read against
docs/freshat 4636e6d, the code at: index_api.rs:195-199 (space_blob), group_members.rs:448-452 (put_out). Paths are undercrates/group-host/srcunless they say otherwise. Severity: medium.What you expected
In
space_blob, also requireself.may(space, &hosted, Some(repo), Access::Write), assync_spacedoes. Alternatively, haveput_outdrop the member's writer row.Where
The host, as built from 4636e6d. Found while checking the docs against the code.