sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.12k stars 1.29k forks source link

Implement API to interact with permissions tables #36999

Open pjlast opened 2 years ago

pjlast commented 2 years ago

We need a standard API to interact with the permissions table. We could maybe copy a bit from the Zanzibar paper: https://storage.googleapis.com/pub-tools-public-publication-data/pdf/10683a8987dbf0c6d4edcafb9b4f05cc9de5974a.pdf

Or we can just wing it. But basically we need to be able to:

  1. Add new relations
  2. Check if a relation is valid
  3. Delete relations (hopefully in a way that so that nodes can't become orphans)
  4. Fetch all resources / specific resources

Perhaps we have to work closely with a feature team on this one, if this is the API they will be using.

sourcegraph-bot-2 commented 2 years ago

Heads up @sourcegraph/iam-and-admin-experience - the "team/iam-admin-experience" label was applied to this issue.

sourcegraph-bot-2 commented 2 years ago

Heads up @sourcegraph/iam - the "team/iam" label was applied to this issue.