Lighter Roles for watched namespaces

Đang mở
#3,329 1 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/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, helm, kubernetes
Lĩnh vực
authorization, security

Hướng nghiên cứu

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.

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

Mô tả

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.

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.