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

オープン
#3,440 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
4.5k
フォーク
937
平均マージ
1日 10時間
マージ済み PR(30日)
150

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

kagent-dev/kagent のほかの issue

kagent-dev/kagent の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。