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

Aperta
#3,440 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
4.5k
Fork
937
Merge medio
1g 10h
PR unite (30g)
150

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di kagent-dev/kagent

Tutte le issue di kagent-dev/kagent

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.