Skip to content

feat(spaces): allow managing spaces through the server - #994

Merged
dragonchaser merged 1 commit into
opencloud-eu:workpackagesfrom
butonic:port-269
Nov 12, 2026
Merged

dragonchaser merged 1 commit into
opencloud-eu:workpackagesfrom
butonic:port-269

Conversation

@butonic

@butonic butonic commented Nov 12, 2026

Copy link
Copy Markdown
Member

We now advertise spaces.server_managed in the capabilities and let service accounts update and list grants on spaces. With AddGrant, UpdateGrant and RemoveGrant the service account holds the full set of grant management permissions, so the server can manage space membership automatically.

The flag defaults to false. It only has an effect once the server sets it, which needs a follow-up bump PR in opencloud. Clients can read it to hide the space membership management UI.

Review focus:

  • ServiceAccountPermissions in pkg/storage/pkg/decomposedfs/node/permissions.go: every service account can now update grants on any node, including space roots. Is that acceptable, or should this be limited to a dedicated service account?

Assisted by Claude Code (claude-opus-5-5): it cherry-picked the change, resolved the conflicts and wrote this description.

Advertise spaces.server_managed in the capabilities and let service
accounts update and list grants, so the server can manage space
membership automatically.

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic
butonic changed the base branch from main to workpackages November 12, 2026 10:02
butonic added a commit to opencloud-eu/opencloud that referenced this pull request Nov 12, 2026
Point reva at the head of
opencloud-eu/reva#994 (reva workpackages plus
the managed spaces change) to run the full CI against it. The replace
uses the fork because the commit only exists in the PR.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic butonic self-assigned this Nov 12, 2026
@dragonchaser
dragonchaser merged commit a440f28 into opencloud-eu:workpackages Nov 12, 2026
19 checks passed
@openclouders openclouders mentioned this pull request Nov 13, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants