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

Allow command allowlists in company restricted mode

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

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
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
git, shell

Hướng nghiên cứu

Issue không nêu tên tệp, kiểm thử hay entry point cụ thể nào. Hãy bắt đầu bằng cách xác định đường dẫn ủy quyền hiện có cho restricted-mode và allow-all, luồng phê duyệt, cách xử lý việc thực thi lệnh, cách hiển thị quyết định trong UI và cách xử lý audit log; công việc được xem là hoàn tất khi một allowlist được quản lý tập trung và chống injection hoạt động trên phạm vi công ty mà không thay đổi hành vi khi nó không tồn tại.

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

Mô tả

Summary

Add support for administrators to define a whitelist of shell commands that the agent may run when company restricted mode is enabled and allow-all is disabled.

Problem

Restricted mode blocks commands by default, but teams may still need a small set of safe, routine commands for development workflows. Currently, enabling these workflows may require relaxing the broader allow-all restriction, weakening the intended security boundary.

Proposed solution

Provide an administrator-managed command allowlist for company restricted mode:

  • Commands matching the allowlist are permitted without an additional approval prompt.
  • Non-matching commands remain blocked or follow the existing approval flow.
  • The allowlist can be managed centrally at the company, organization, repository, or user scope.
  • Matching supports exact commands and explicitly constrained arguments, rather than unrestricted substring matching.
  • The UI indicates when a command was allowed by an administrator-defined rule.
  • Audit logs record the command, matched rule, user, repository, and timestamp.

Example allowed commands could include:

git status
git diff --check
swiftlint
npm test

Security considerations

The implementation must prevent bypasses through shell operators, command substitution, pipelines, redirects, aliases, path traversal, and argument injection. Rules should be validated before activation, and administrators should be able to review, update, and disable them.

Acceptance criteria

  • Administrators can configure and manage a company-level command allowlist.
  • The allowlist works while restricted mode is enabled and allow-all is disabled.
  • Non-matching commands retain the existing restriction behavior.
  • Matching is deterministic, documented, and resistant to shell-injection bypasses.
  • Allowed-command decisions are visible to users and captured in audit logs.
  • Existing behavior is unchanged when no allowlist is configured.
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.1k
Fork
157
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở 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 github/app

Tất cả issue của github/app

Issue tương tự

Thêm issue về Security

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.