Repository navigation
Early Permission Sets #4437
Replies: 5 comments 17 replies
Early morning first coffee driven thoughtsHaving a separate "Manage" which is a combination of read, update, create and could be a potential pit of failure, because now your authz checks will be I'd split DMs/Conversations (sod your convo name, I'm not Australian 😈) down to view/update/delete/manage as well. I do prefer scope permissions down approach. app.bsky.posts.Read, app.bsky.posts.Delete, etc. (no Manage until you implement edits 😁, oh wait, you already mentioned update, so editing must be coming 🧌) As you say "This would marginally increase security (not possible to grant permissions to other NSID groups), but reduces flexibility (might want to grant such permissions in the future), and is less consistent/discoverable.", however upgrading permissions by re-authorizing is a pretty standard flow these days. |
What implications does the naming actually have outside of teachability? It's not something that is really surfaced to the end user right? The naming of permission sets will have less and less bearing on teachability over time as developers understand to inspect them on the protocol, tooling will help here too. My point being that I don't think the name should matter that much, but maybe I'm missing something. |
|
Some changes from internal review and discussion. Mostly trimming things down if we don't know of a specific app or use-case from the start:
There are a couple different "threat models" around abuse of permissions. Some that really stand out are social interactions: likes, follows, re-posts, and posts (which could be replies or include mentions). Those are major spam/abuse mechanisms, where a client app might be motivated to promote or boost specific accounts. We need to think carefully about how those permissions get granted. |
|
Late to this, but some feedback:
On the first point, for Sill, I'd love to scope down to |
|
Do permission sets support Our app has been successfully using
Note: endpoints for proxy are derived dynamically from the PDS (version We're attempting to upgrade to permission sets but are experiencing Permission sets:
Errors:
Notice the errors return an Using another permission set, such as |
Uh oh!
There was an error while loading. Please reload this page.
Progress is coming along on "Permission Sets", as part of the atproto OAuth and permission system. As with other parts of the protocol, seeing how this functionality gets implemented for the Bluesky Social app is an important demonstration, and can set soft norms and best practices for other app designers. This discussion thread is get feedback on our plans for these initial permission sets.
The initial Bluesky-published permission sets will cover the
app.bsky.*,chat.bsky.*, andtools.ozone.*namespaces. They will focus on end-user permissions, not administrative or moderation roles.Note that this does not include any permission sets in the
com.atproto.*namespace. Many of the XRPC endpoints in that namespace give direct control over protocol resources, and it doesn't make sense to authorize them via permissions (eg,com.atproto.repo.createRecordis controlled via therepopermission type, notrpcon the endpoint). There are some exceptions, like thecom.atproto.lexicon.schemarecord type. There may or may not end up being published permission sets for special cases like this. See the Ozone section below about moderation reporting in particular.One of the design considerations here is how many permission sets to publish for a namspace like
app.bsky.*. We hope most applications will only need to chose one permission set per namespace, not need to combine multiple sub-feature-specific sets: having many distinct sets requested during the auth consent flow is a bad security UX. There is a tension between a smaller number of broader sets (easier to maintain, broader sets cover more use-cases), and the desire to minimize the scope of permissions requested. We are planning to bias towards a smaller number of permission sets to start, and consider adding new ones in a few months when there has been more experience with the system. At the same time we have gotten early feedback from some developers that they dislike the perception of requesting more permissions than absolutely needed. We are asking for patience while we get all this dialed in.Another design consideration is what word to use as a prefix to permission scope names. The word "auth" was used early in the design process and is what has been proposed here, though "allow" has also been proposed. "auth" is a bit ambiguous between "authorization (authz, which is what permission sets represent) and "authentication" (authn).
app.bsky.*NamespaceRPC permissions would usually be granted for a specific appview service (
inheritAud: true), though client apps could useaud=*and make this configurable.Note that all proposed permission sets are declared at the
app.bsky.*level. In theory, things likeauthManageLabelerServicecould be declared underapp.bsky.labeler.*. This would marginally increase security (not possible to grant permissions to other NSID groups), but reduces flexibility (might want to grant such permissions in the future), and is less consistent/discoverable.There could be additional permission sets, or we might remove some of these proposed ones. We could be more or less granular: eg, manage starterpacks separately from lists, or a combined "manage lists and packs" if we think they will usually be requested together. Feedback is welcome, though there are trade-offs to be balanced.
chat.bsky.*NamespaceChat
rpcpermissions would usually be granted for a specific chat service (aud).A potential more limited scope would be to access notification status (eg, count of unread conversations, but not conversation content).
tools.ozone.*NamespaceThe current endpoint for sending moderation reports is
com.atproto.moderation.createReport. This is under thecom.atproto.*, but is really an Ozone-specific API, and other moderation systems might define their own schemas and APIs. We should probably re-declare that endpoint attools.ozone.moderation.createReport, which would put it under thetools.ozone.*namespace. Until that happens, client apps need to request therpc:com.atproto.moderation.createReport?aud=*granular permission.Once the new endpoint is defined, a basic permission set would be:
This would usually be granted with
aud=*, meaning a client can send reports to any moderation service.When Moderation History ships, a new permission set would be added which allows read access to that information.
Combined Bluesky Client App Scopes
A full-featured Bluesky client app with all the functionality in the current app would probably request something like:
All reactions