access: include the caller's access level in SCAR responses
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
- 30/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- api, backend-api-design
Hướng nghiên cứu
Start by locating the SelfClusterAccessReview response and the MCP server's list_kcp_workspaces handling. Compare the proposed verb-based and role-based access shapes, then trace denial errors. Done means the team has chosen an access representation and the response, MCP output, and denial messages consistently expose it.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Motivation
A SelfClusterAccessReview response lists the workspaces the caller can access as (clusterName, endpoint) pairs. Agents need one more piece of context: what the caller can do there. Without it an agent cannot present "team-a: admin, team-c: viewer" style listings, and a denied action surfaces as a raw error with no way to explain which permission was missing.
Proposal
Extend the SCAR response item with the caller's effective access level per workspace, for example derived from SubjectAccessReview probes for a small fixed verb set (get, list, create, update, delete) or from the bound ClusterRoles where resolvable.
{
"clusterName": "2bbep6402zsg12x3",
"endpoint": "https://kcp.example.com/clusters/2bbep6402zsg12x3",
"access": ["get", "list"]
}
The MCP server's list_kcp_workspaces then carries the same field through, and denial errors can reference it.
Open question
Exact shape: verb set vs role names. Verbs are portable across deployments, role names are deployment-specific.
- Ngôn ngữ chính
- Go
- Star
- 1
- Fork
- 2
- Merge trung bình
- 8 giờ 16 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- 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
- Đọ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 kcp-dev/contrib-virtual-workspaces
-
Add UIĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Add producer/marketplace VWĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Tất cả issue của kcp-dev/contrib-virtual-workspaces
Issue tương tự
-
ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
jordansmall/spindrift#7895 ·
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 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation priority: medium skill: intermediate status: ready for dev
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
hyperledger-labs/fabric-smart-client#2830 ·
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 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày