with no delegation token, may looks only at the public_read flag. Every space a group makes here has that flag false: by default its meta is readableBy: [{role: "public"}] (group.rs:113), but the flag stays false. So a syncer that asks for a credential to a listed group's meta with no token gets SpaceNotFound. Yet listSpaceRecords serves that meta space to anyone through the access record (index_api.rs:57). A signed-in non-member with a token is let in, because can_read honours public. The function's own doc says "or to anyone, without one, for a space anyone may read". The public_read = true path is reached only by spaces brought in by import or a move. The note's claim that /img serves the same space to anyone holds only for a listed group's meta (blobs.rs:191-194), not for every public space. No test asks for a credential without a token for a space whose access record names public.
How to see it
Read against docs/fresh at 4636e6d, the code at: authority.rs:149-151 (may, no user); authority_api.rs:48-51, 66-72; spaces made with public_read = false at group.rs:180-181 and group_spaces.rs:121. Paths are under crates/group-host/src unless they say otherwise. Severity: low.
What you expected
In may's no-user branch, also read the access record and allow Access::Read when its readableBy names public (can_read(&[], "")). Or keep public_read in step with the access record wherever it is written.
Where
The host, as built from 4636e6d. Found while checking the docs against the code.
What happened
with no delegation token,
maylooks only at thepublic_readflag. Every space a group makes here has that flag false: by default its meta isreadableBy: [{role: "public"}](group.rs:113), but the flag stays false. So a syncer that asks for a credential to a listed group's meta with no token getsSpaceNotFound. YetlistSpaceRecordsserves that meta space to anyone through the access record (index_api.rs:57). A signed-in non-member with a token is let in, becausecan_readhonourspublic. The function's own doc says "or to anyone, without one, for a space anyone may read". Thepublic_read = truepath is reached only by spaces brought in by import or a move. The note's claim that/imgserves the same space to anyone holds only for a listed group's meta (blobs.rs:191-194), not for every public space. No test asks for a credential without a token for a space whose access record namespublic.How to see it
Read against
docs/freshat 4636e6d, the code at: authority.rs:149-151 (may, no user); authority_api.rs:48-51, 66-72; spaces made withpublic_read = falseat group.rs:180-181 and group_spaces.rs:121. Paths are undercrates/group-host/srcunless they say otherwise. Severity: low.What you expected
In
may's no-user branch, also read the access record and allowAccess::Readwhen itsreadableBynamespublic(can_read(&[], "")). Or keeppublic_readin step with the access record wherever it is written.Where
The host, as built from 4636e6d. Found while checking the docs against the code.