access: include the caller's access level in SCAR responses

Đang mở
#5 0 bình luận 0 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
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

  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 kcp-dev/contrib-virtual-workspaces

Tất cả issue của kcp-dev/contrib-virtual-workspaces

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.