Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tighten number of policies required #6

Open
inian opened this issue Mar 30, 2021 · 1 comment
Open

Tighten number of policies required #6

inian opened this issue Mar 30, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@inian
Copy link
Member

inian commented Mar 30, 2021

Policies for the following API calls can be reduced either by using Postgrest minimal representation or by using serviceKey in postgrest requests accordingly.

This will align more closely to user's mental model of what the policies should be. For example, createBucket should only require insert policy on the buckets table and not the select policy as well.

- createBucket requires insert(bucket), select(bucket) 
- deleteBucket requires select(bucket), delete(bucket)
- emptyBucket requires select(bucket), select(object), delete(object)
- copyObject requires select(object), insert(object)
- createObject requires insert(object), update(object)
@egor-romanov
Copy link

closing this for now as it is more than 2.5 years old and didn't get any traction. lets reopen if it will be more relevant

@egor-romanov egor-romanov closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2023
@inian inian reopened this Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants