Removing an org member leaves them as owner of resources they created
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- authorization, backend
Hướng nghiên cứu
Start with cascadeRemovePrincipal in core/membership/org.go, which already deletes the removed member's policies and group relations but not their owner relations on resources. Reproduce with CreateProjectResource, RemoveOrganizationMember, then CheckFederatedResourcePermission for update. Done when a removed member's owner relations are revoked and the update check returns false.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When a member is removed from an organization, Frontier deletes their policies in the org. It does not delete the owner relation on resources they created. A resource's permissions include owner, so the removed member can still update and delete those resources.
This applies to project resources, and to organization resources once #1987 lands.
Steps
- Give an org member a role on a project that lets them create resources, such as
app_project_owner. - The member creates a resource with
CreateProjectResource. - Remove the member with
RemoveOrganizationMember. - Check
updateon the resource for that user withCheckFederatedResourcePermission. It returns true.
Code
cascadeRemovePrincipal in core/membership/org.go deletes the member's policies and group relations, but not their owner relations on resources.
Expected
A removed member has no access to the org's resources.
- Ngôn ngữ chính
- Go
- Star
- 344
- Fork
- 48
- Merge trung bình
- 2 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 48
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không 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 raystack/frontier
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của raystack/frontier
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
SAP/crossplane-provider-btp#1118 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
benchmark: `make setup` fails because audit-exporter builds with Go 1.25.0 while go.mod requires 1.26.0Có thể đã có người làm @xsvm đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
volcano-sh/volcano#6097 · 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 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
os: RawConn methods of a closed File return internal/poll.ErrFileClosing instead of ErrClosedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Bedrock invoke-with-response-stream reports `stop_reason: "end_turn"` for tool-use turnsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày