Lighter Roles for watched namespaces

Aperta
#3,329 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, helm, kubernetes

Direzione di ricerca

Start with helm/kagent/templates/rbac/getter-role.yaml and writer-role.yaml, especially the rules cited in the issue, and compare how rbac.namespaces and watchNamespaces render Roles. Review the related workerpools Role discussed in #3240 and determine which permissions agents still need in watched namespaces. Done means the chart provides a minimal namespace Role set that covers the listed resources and clarifies whether apps and batch writes remain necessary.

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

Descrizione

When rbac.namespaces (or watchNamespaces) lists a namespace, the chart gives the controller the same getter and writer Roles there that it gets cluster-wide.

In a namespace the platform doesn't own, that means every Secret is readable and every pod can be exec'd into (* includes pods/exec).

We're on AKS with agents declared in tenants' own namespaces, so the controller ends up watching a lot of namespaces it doesn't own. What it needs there looks much smaller:

  • the api.kagent.dev kinds and their status and finalizers;
  • the Secrets and ConfigMaps an Agent's ModelConfig, EgressPolicy or MCP servers reference;
  • events.

Is the write on apps and batch still needed now that agents run as actors? Tbh I couldn't tell from the chart alone.

Could the rules be split so that watched namespaces get a minimal set? Ideally Secrets would be get only, if the controller can read them without a cache. The read-only workerpools Role for a pool's namespace that we mentioned on #3240 would fit the same split.

Happy to send a PR once we agree the shape. We're keen to help kagent work well multi-tenant.

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.