Egress policy compilers: a per-turn phase for credentials that should exist only while a turn runs

Abierto
#3,440 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

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

Línea de trabajo

Start by reading the referenced EgressPolicyCompilers issue #3263 and tracing the A2A gateway's turn opening and ending paths. The payload names no files or tests, so locate those entry points and the existing policy version fence first. Done means turn scoped credentials are applied at opening and closed on every listed end path, with the reference fence and lifecycle cases covered.

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

Descripción

Problem. A compiler registered through EgressPolicyCompilers (#3263) runs once per revision, so whatever it binds holds for the actor's whole life. Some credentials should not: the person's own credentials, or an actor JWT a destination maps to the person. Between turns, while a runtime waits for input or until quiescence suspends it, a process left in the sandbox can still call such a destination as the person.

Proposal. The A2A gateway also runs compilers in a turn phase:

  • when it opens a turn, after it reserves the dispatch and before it dials the runtime;
  • when the turn ends: settled, swept as stalled, crashed, or with an input the runtime never took.

Each run gets the Session and the turn, and calls UpdateActorEgressPolicy fenced on the policy version it read, so a later turn's opening wins over a late close. Compilers that add nothing in the turn phase cost nothing.

Reference. We run this today, with tests for closing behind the fence, closing before the runtime stops, the stalled-turn sweep, and an input the runtime never accepted. We are happy to reshape it onto whatever turn-boundary call we agree on, in or out of the compiler.

Lenguaje dominante
Go
Estrellas
4.5k
Forks
937
Merge medio
1 d 10 h
PR fusionados (30 d)
150

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

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 kagent-dev/kagent

Todos los issues de kagent-dev/kagent

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.