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

Đang mở
#3,440 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
4.5k
Fork
937
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
150

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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

Tất cả issue của kagent-dev/kagent

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.