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

Abierto
#5 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
go

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
1
Forks
2
Merge medio
8 h 16 min
PR fusionados (30 d)
3

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de kcp-dev/contrib-virtual-workspaces

Todos los issues de kcp-dev/contrib-virtual-workspaces

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.