mirror of
https://github.com/open-webui/openapi-servers.git
synced 2026-08-24 12:02:55 -04:00
[PR #34] [MERGED] feat: Implement delete confirmation system, general filesystem operation improvements #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/openapi-servers/pull/34
Author: @taylorwilsdon
Created: 4/17/2025
Status: ✅ Merged
Merged: 4/17/2025
Merged by: @tjbck
Base:
main← Head:filesystem_enh📝 Commits (10+)
07be65fRefactor allowed directories to config.py; implement two-step delete_path with token-based confirmation and pending state; update related models, validation, and error handling2110943absolute import for configb0b1e6eImplement more reliable mechanism for file delete confirmation8bd8f1dfix relative import569d890re-implement pending_confirmation5478ae0migrate pending confirmation store to local filestore for persistence between sessions2b08d17Update main.py4de55a5Update main.py90ab5c0improve deletion flow with shorter confirmations51887d2merge📊 Changes
2 files changed (+172 additions, -52 deletions)
View changed files
➕
servers/filesystem/config.py(+7 -0)📝
servers/filesystem/main.py(+165 -52)📄 Description
Enhance delete_path endpoint with two-step confirmation
Summary
This PR improves the security of the /delete_path endpoint by introducing a two-step delete confirmation process using ephemeral confirmation tokens. My main goal here @tjbck was to ensure that hallucinations or runaway LLMs don't inadvertently go blowing away parts of a user's filesystem.
Major Changes
Additional Improvements
Version
Bumped API version from 0.1.0 → 0.1.1.
✅ Safe for review and merge.
Screenshot:

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.