feat(gateway): add SetImmutable/UnsetImmutable RPCs#275
Open
flash7777 wants to merge 1 commit into
Open
Conversation
flash7777
pushed a commit
to flash7777/web
that referenced
this pull request
Jun 14, 2026
1. Resource model: add `immutable` boolean field 2. Indicators (useResourceIndicators.ts): - Frozen file: snowflake icon - Protected folder: shield-check icon 3. Context menu actions (useFileActionsImmutable.ts): - "Freeze file": POST /freeze with confirmation dialog (irreversible!) - "Protect folder": POST /protect - "Remove protection": DELETE /protect 4. Actions registered in useFileActions.ts for context menu Depends on: OpenCloud Graph API freeze/protect/unprotect endpoints (blocked by cs3org/cs3apis#275 - Gateway SetImmutable RPC)
glpatcern
requested changes
Jun 15, 2026
glpatcern
left a comment
Member
There was a problem hiding this comment.
Right, the external API is always the Gateway, I missed that the endpoints had to be replicated here.
Yet, can you please move the definitions below L212, as these are StorageProvider-related endpoints and don't stand on their own?
Follow-up to cs3org#272 which added SetImmutable/UnsetImmutable to the StorageProvider. This exposes the same RPCs on the Gateway so that clients (like the Graph API in OpenCloud) can call them through the gateway without needing direct StorageProvider access. - SetImmutable: freeze files (irreversible) or protect containers (reversible) - UnsetImmutable: remove protection from containers (frozen files stay frozen)
8ed043f to
d6b7fea
Compare
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.
Summary
Follow-up to #272. Exposes
SetImmutableandUnsetImmutableon the Gateway API so that higher-level clients (like the OpenCloud Graph API) can call them through the gateway without needing direct StorageProvider access.Changes
cs3/gateway/v1beta1/gateway_api.proto: addSetImmutableandUnsetImmutableRPCs using the existing request/response types fromcs3.storage.provider.v1beta1Context
#272 added
SetImmutable/UnsetImmutableto the StorageProvider API. The Reva gateway already proxies these calls (server-side), but the gateway proto client interface doesn't expose them yet. This blocks the OpenCloud Graph API from using these RPCs through the standard gateway client.Test plan