Egress policy compilers: give them the Session, and let a Session add destinations
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
- 35/100
Direzione di ricerca
Start with go/core/pkg/egresspolicy/egresspolicy.go and proto/kagent/api/v1/sessions.proto, then trace how Session actors receive compiled egress policies on create, repoint, and rollback. The core open question is who may authorize per-Session destinations; review the two comments and discuss the admission model with maintainers before implementation. Done means an agreed design covering compiler input, validation, authentication handling, and policy updates across those lifecycle events.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem. An egress policy compiler (#3263) reads Input{Atespace, GatewayTargets} (go/core/pkg/egresspolicy/egresspolicy.go:19-22) and runs once per revision, so every Session of an Agent gets the same actor policy. Some destinations are known only when a Session is created: the repository host a person's working copy lives on, the forge API that host serves, a per-Session service. Today such a Session is refused at the gateway for a host its Agent did not list. Session has no egress field (proto/kagent/api/v1/sessions.proto:34-55), and a compiler cannot see the Session, so neither path can add a per-Session destination.
Proposal.
- The compiler
Inputgains the Session (id, creator, agent) when the policy is compiled for a Session actor. That is enough for an out-of-tree compiler to bind per-Session destinations. - Optionally,
Session.egress: destinations in the vocabulary ofEgressPolicy.spec.destinations, given onCreateSession, validated like an EgressPolicy, and compiled into the Session actor's own policy on create, on repoint and on rollback. A destination'sauthenticationtakes the same sources as EgressPolicy, so a credential never enters the sandbox.
Who may add which destination is the open design question: a signed grant, an allow-list on the Agent, or an EgressPolicy the Session references. We have a reference implementation of both steps and can adapt it to whichever admission you prefer.
- Lingua principale
- Go
- Stelle
- 4.5k
- Fork
- 937
- Merge medio
- 1g 10h
- PR unite (30g)
- 150
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di kagent-dev/kagent
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
kagent-dev/kagent#3792 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
kagent-dev/kagent#3790 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
kagent-dev/kagent#3789 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] A2A lookups by task or context ID reveal whether another user's resource existsForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
kagent-dev/kagent#3787 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Python memory summarization fails for Gemini models: the request has no model nameForse già presa @BahaaMattar l’ha presa 6 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
kagent-dev/kagent#3710 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di kagent-dev/kagent
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
limitlessprojects/Go-Hybrid#4764 ·
I maintainer di solito rispondono entro 1 giorno
-
[bug]: lint fails on main, generated CLI docs out of dateForse già presa @bupd l’ha presa oggi. Apertabug documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
goharbor/harbor-cli#1180 ·
I maintainer di solito rispondono entro 1 giorno
-
crane: mutate --env adds duplicate PATH on Windows images when key case differsForse già presa @aad1tyaaaaa l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
google/go-containerregistry#2523 ·
I maintainer di solito rispondono entro 4 giorni
-
bosh_io_stemcell_type: regular does not work for noble and resolute as it adds -go_agent as suffixAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
cloudfoundry/bosh-deployment-resource#138 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100