-
Notifications
You must be signed in to change notification settings - Fork 29
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
add grant methods to the gateway #165
Conversation
The idea of Grants is that they are internal representations of permissions on storage providers. If and how they are created is an implementetion detail of the Share manager: it persist the share intent, independently of the storage providers / drivers. The gatewaycan be configured to forward sharing requests as @labkode correct me if the above is a misrepresentation from my side. In cs3org/reva#2250 @C0rby had to bypass the gateway to add members to spaces. I remember having a discussion with him about how to proceed, but I don't remember the reasons. Maybe he can chime in. I am saying that because I don't like to expose two sets of apis (Shares & Grants) that seemingly are intended for the same thing: managing access to resoucres. This would be confusing. |
You're right! The Sharing API should be the one exposed to clients to define share behaviour. |
IMO that does't make any sense. Bypassing the gateway makes it even worse. |
We need a solution for this. And a pragmatic one. Because currently we expose the grants as Permissions to the clients. |
Ok, i thought you were talking about the OCS Shares HTTP API. I was not aware of the CS3 Shares Api. This fits better. |
@micbar @C0rby I think it makes more sense to add a list of managers to the StorageSpace message: https://cs3org.github.io/cs3apis/#cs3.storage.provider.v1beta1.StorageSpace That would allow using UpdateSpace to change the managers. |
What about a list of Grants to represent space members. Then the roles of the members are not defined by the list and we could define more roles in the future based on the permissions. |
Description
The methods to work with Grants are currently only available directly on the storageprovider.
This PR adds them to the Gateway too.
Background
We are using a stat cache in the gateway which also caches the grants. Currently it it completely unaware when something regarding the grants changes because these methods are currently called directly on the storage providers bypassing the gateway.
Implementation
I aim to implement this on
master
andedge
branch because the change is relatively contained.