chadtmiller.com/group-host
atmosphere group host
0
0
Narrowing withholds `repo?collection=…` and `blob?accept=…` scopes
Closedchadtmiller.com mentioned this in Scopes are read in every form atproto writes them
atmosphere group host
What happened
narrowkeeps a repo scope only when it starts withrepo:, and a blob scope only when it starts withblob:. Bothrepo?collection=app.bsky.feed.post&collection=app.bsky.feed.likeandblob?accept=image/*are valid permission-spec forms, andscopes.rs(namedwith an empty resource) honours them at use. An app that asks in that form gets them withheld, even from a member whose roles holdrepo:*.How to see it
Read against
docs/freshat 4636e6d, the code at: crates/group-host/src/oauth_scope.rs:220 and :245. Paths are undercrates/group-host/srcunless they say otherwise. Severity: medium.What you expected
Read the repo and blob scopes in
narrowthe wayscopes.rsdoes. Take the collections from eitherrepo:Cor?collection=, keep the scope when every one is allowed, and treatblob?the same asblob:.Where
The host, as built from 4636e6d. Found while checking the docs against the code.