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

Removing an org member leaves them as owner of resources they created

Đang mở
#1,992 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ó
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

  1. Give an org member a role on a project that lets them create resources, such as app_project_owner.
  2. The member creates a resource with CreateProjectResource.
  3. Remove the member with RemoveOrganizationMember.
  4. Check update on the resource for that user with CheckFederatedResourcePermission. 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

  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 raystack/frontier

Tất cả issue của raystack/frontier

Issue tương tự

Thêm issue về Go

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.