Sandbox: a sandboxed command can replace a submodule's .git, which host Git recurses into
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- git, typescript
Hướng nghiên cứu
Start with src/main/tools/sandbox_git.ts and trace how validateSandboxGit protects the top-level Git metadata; inspect #262 for how protected top-level names handle renames. The issue lists several possible approaches, so first compare them against submodule gitlinks and sandbox command handling. Done means host Git cannot run planted submodule filters after a sandboxed command, with the chosen behavior covered by tests.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-up to #273. Patch's own Git calls (Git panel, chat Git context) no longer look inside submodules: status and diffs run with --ignore-submodules=dirty, and checkout/restore with submodule.recurse=false.
What remains is the sandbox side: a submodule's .git is a working-tree entry (a gitfile, or an in-tree folder), so a sandboxed command can replace it with planted metadata, for example a folder whose config defines filter.x.clean plus a .gitattributes in the submodule. validateSandboxGit (src/main/tools/sandbox_git.ts) protects only the top-level .git, HEAD and the Git directories. The next git status the user runs in their own terminal or editor recurses into the submodule and runs that filter outside the sandbox.
Protecting <submodule>/.git by path is not enough on its own: the submodule folder itself stays writable, so a command can rename it away and create a new one with planted metadata. Options:
- Protect each submodule
.gitnamed by the index's gitlinks and also refuse (or undo) a rename of the submodule folder, as #262 does for protected top-level names. - After each sandboxed command, compare every submodule's
.gitwith a snapshot and report or restore a changed one. - Document that host Git in a project with submodules can run code a sandboxed command left behind, as USAGE.md already says for hooks and filters of existing integrations.
- Ngôn ngữ chính
- TypeScript
- Star
- 2
- Fork
- 2
- Merge trung bình
- 6 giờ 27 phút
- Pull request đã merge (30 ngày)
- 37
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PierrunoYT/patch
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 52/100
PierrunoYT/patch#329 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
performance priority: low severity: low
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
PierrunoYT/patch#324 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
performance priority: low severity: low
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
PierrunoYT/patch#306 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 36/100
PierrunoYT/patch#272 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement priority: low security severity: low
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
PierrunoYT/patch#271 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PierrunoYT/patch
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
cline/cline#15327 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
LogicLabs-OU/OpenArchiver#509 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
bigcapitalhq/bigcapital#1545 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày