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

Separate folder/file permission check as new lib

Đang mở
#1,760 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 2 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
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
security

Hướng nghiên cứu

Review pull request #1690 to understand the existing folder permission check, then inspect the crate layout for where reusable permission validation belongs. The proposed work must cover machine and user scopes and file as well as folder checks; done means those cases are validated according to the stated write permission rules.

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

Mô tả

Issue-Enhancement Needs Triage
Summary of the new feature / enhancement

The code in https://github.com/PowerShell/DSC/pull/1690 implements a folder permission check to see if it's considered secure. We should pull that out as a separate crate lib as I imagine it'll likely be reused in future resources for similar purpose.

Proposed technical implementation details (optional)
  • Extend the API to validate both machine scope and user scope permissions
    • machine only allows administrators/root to have write permissions
    • user scope allows administrators/root to have write permissions in addition to the current security context
  • Allow the API to validate files in addition to folders (or ideally a file check also implicitly checks the containing folder)
Ngôn ngữ chính
Rust
Star
541
Fork
78
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
17

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.

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 PowerShell/DSC

Tất cả issue của PowerShell/DSC

Issue tương tự

Thêm issue về Rust

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.