Security : run helm installs / upgrades / uninstalls as a service account local to the target namespace

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

@olevitt đang làm issue này rồi.

Từ ngày 23/10/2026.

  • #693 của @olevitt — đang mở

Đá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
35/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ệ
helm, java, kubernetes
Lĩnh vực
infrastructure, security

Hướng nghiên cứu

Start with the authenticationMode definition in Region.java and trace how Helm install, upgrade, and uninstall operations select credentials. Then inspect the onboarding flow that creates namespaces and their service accounts and role bindings. Done means a namespace-local service account mode is supported for sensitive Helm operations and onboarding provisions the required access; the issue leaves the mode name open for discussion.

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

Mô tả

Currently, using the default mode (authenticationMode: serviceAccount, see https://github.com/InseeFrLab/onyxia-api/blob/2019ff5941a35989215e74216927a35fd69b2126/onyxia-model/src/main/java/fr/insee/onyxia/model/region/Region.java#L354), Onyxia executes helm installs / upgrades / uninstalls using it's own powerful service account.
This can be a security issue if the helm chart is compromised (or there is a flaw allowing injection).
We could add another mode, namespaceLocalServiceAccount (name to be discussed) that would execute sensitive helm operations (those that use user provided values) using a serviceaccount present in the target namespace.
Note that this would require the onboarding to create local serviceaccount (with corresponding rolebinding) in the namespace at the time of creation

Ngôn ngữ chính
Java
Star
34
Fork
34
Merge trung bình
9 phút
Pull request đã merge (30 ngày)
4

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 InseeFrLab/onyxia-api

Tất cả issue của InseeFrLab/onyxia-api

Issue tương tự

Thêm issue về Java

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.