bluesky / tiled

API to structured data
https://blueskyproject.io/tiled
BSD 3-Clause "New" or "Revised" License
56 stars 48 forks source link

Add scopes `delete:metadata` and `delete:data` #742

Open danielballan opened 3 months ago

danielballan commented 3 months ago

Summarizing a discussion with @dylanmcreynolds


Currently, the deletion routes require write:metadata and write:data Scopes:

https://github.com/bluesky/tiled/blob/addcda65680c9a93557244301f8b286b843321e7/tiled/server/router.py#L1216

Let's separate out Scopes for deletion so that Roles and Access Control Policies can enable writing but block deleting if desired. (This issue is not taking a policy on what default/common Scopes should be, only that these should be separated out now so that it is possible to distinguish them.)

Specifically:

We may need to add and/or rename routes:

padraic-shafer commented 3 months ago

This sounds reasonable.