Skip to content

[Feature] Restrict "Empty Bin" (Permanent Delete) to Space Managers and Time-Based Policies #4077

Open

Description

@suse-coder

Is your feature request related to a problem? Please describe.

Currently, when a normal user deletes a folder or file in an OpenCloud Space, it is moved to the recycle bin, which is great for recovery. However, normal users also have the ability to permanently delete items or empty the bin entirely. I am frustrated that standard users have the power to perform irreversible data destruction. Especially now in an MCP (Model Context Protocol) and AI-integrated world, if an AI agent is acting on behalf of a normal user, a hallucination or error could lead to the permanent deletion of critical folders with no way to recover them from the bin.

Describe the solution you'd like

I would like to forbid normal users (standard Space members/editors) from permanently deleting files or emptying the recycle bin.

  • Normal users should still be able to delete files/folders (which moves them to the bin).
  • Only Space Managers should have the manual permission to permanently delete items or click "Empty Bin".
  • Otherwise, the bin should only be emptied automatically via system-configured, time-based retention policies (e.g., auto-purge after 30 days).

Describe alternatives you've considered

  • Removing delete permissions entirely for normal users: This is not ideal because users (and AI assistants) still need to be able to clean up workspaces and delete outdated files by moving them to the bin.
  • Relying on server-level backups: Restoring individual folders from bare-metal or snapshot backups is too slow and creates high administrative overhead compared to simply having a Space Manager restore a file from the bin.

Additional context

As more users connect AI tools (via MCP) to their OpenCloud accounts, we need strict safety guardrails. Dangerous, irreversible actions like emptying the trash bin must be restricted to higher privilege tiers (Space Managers) to protect against accidental mass-deletion by humans or AI agents.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions