Lighter Roles for watched namespaces

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, helm, kubernetes

調査の方向性

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.

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

説明

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.

主要言語
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 を短くまとめたダイジェスト。