Repository navigation
feat(ocm): define incoming share updates - #285
Open
MahdiBaghbani wants to merge 9 commits into
Open
MahdiBaghbani wants to merge 9 commits into
MahdiBaghbani wants to merge 9 commits into
Conversation
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
MahdiBaghbani
requested review from
diocas,
glpatcern,
jessegeens and
labkode
as code owners
November 25, 2026 16:42
This was referenced Nov 25, 2026
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
glpatcern
requested changes
Nov 26, 2026
glpatcern
left a comment
Member
There was a problem hiding this comment.
Mahdi, as the CS3APIs are shared with ownCloud and OpenCloud, the overall objective should be to make the minimal possible extension. In this case, the API already has DeleteOCMIncomingShare (which is semantically equivalent to Withdraw) and UpdateOCMIncomingShare (which is semantically equivalent to Change), can you please use those?
As for the fields: I think we can remove legacy_shared_secret, and we should be able to go along without sender_ip as that would be validated at the HTTP layer, before going to the API.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is part of cs3org/OCM-STA#52 and follows the share selectors in cs3org/OCM-API#433
Summary
Define RPCs to withdraw an incoming grant or replace its permission snapshot. Match the exact sender and grant, and allow an explicit empty snapshot to clear permissions
This is the first PR in the schema stack. All three target upstream
mainbecause the intermediate branches are on my forkThe companion PRs are #286 and #287
Buf build and breaking checks passed. Buf lint adds 8
RPC_REQUEST_RESPONSE_UNIQUEdiagnostics relative to this base because Gateway and provider RPCs share request and response typesflowchart LR A["Verified share notice"] --> B["Match sender and grant"] B --> C["Withdraw matching grants"] B --> D["Replace permissions"]