Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Install root-only tools owned by root

Đang mở
#7,845 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, typescript
Lĩnh vực
infrastructure, security

Hướng nghiên cứu

Start by locating the needsRoot tool installation logic and the container tests that install tools such as git. Check how versioned tool folders are created, how uninstall and reinstall work as root, and which current tools require root. Done means those folders and files are root-owned and not writable by the container user, links still work, and container tests verify ownership.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What would you like containerbase to do?

Install the tools that need root (needsRoot, e.g. git) owned by root, so the files only root may install can't be changed by the container user afterwards.

Background

  • Tool versions live under the tools folder, which the container user owns, so they can be installed at runtime without root.
  • needsRoot tools are installed by root, but their files end up writable for the container user too, like every other tool.
  • That's not a security boundary (the user can install and run tools anyway), but root-only tools are the ones root runs, e.g. git with the system config in /etc/gitconfig, so they should be owned by root like any other system binary.

Proposal

  • For needsRoot tools, create the versioned tool folder and its files owned by root and not writable for the container user; the links stay as they are.
  • Keep uninstall and re-install working as root.
  • Check which current tools are needsRoot and test the ownership in the container tests (e.g. git).

Drafted by Claude Opus 5.5 (Claude Code) for @viceice.

Ngôn ngữ chính
TypeScript
Star
58
Fork
65
Merge trung bình
10 giờ 37 phút
Pull request đã merge (30 ngày)
462

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của containerbase/base

Tất cả issue của containerbase/base

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.