Remove cluster-wide Endpoints write from the CCM ClusterRole

Đang mở Phù hợp với người mới
#328 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, kubernetes
Lĩnh vực
cloud, security

Hướng nghiên cứu

Bắt đầu với charts/oxide-cloud-controller-manager/templates/clusterrole.yaml và manifests/oxide-cloud-controller-manager.yaml đã render; kiểm tra quy tắc Leases hiện có và xem quyền tạo serviceaccounts trên toàn cụm có được sử dụng hay không. Xóa quy tắc Endpoints không cần thiết, tạo lại manifest và xác minh CCM vẫn có thể bầu chọn leader cũng như reconcile các node và service.

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

Mô tả

Kubernetes Cloud Controller Manager (CCM)

Context

The ClusterRole in charts/oxide-cloud-controller-manager/templates/clusterrole.yaml (and the rendered manifests/oxide-cloud-controller-manager.yaml) grants create, get, list, watch, and update on endpoints in all namespaces. The CCM doesn't manage Endpoints, and leader election already uses the coordination.k8s.io Leases rule, so nothing needs this permission. A compromised CCM pod or a stolen service account token could use it to repoint a Service's Endpoints and hijack in-cluster traffic.

Scope

Remove the endpoints rule from the chart and regenerate the manifest. While there, check whether the cluster-wide serviceaccounts create rule is needed and drop it if not.

Done when

The ClusterRole grants no write access to Endpoints, and the CCM still elects a leader and reconciles nodes and services.

Ngôn ngữ chính
Go
Star
6
Fork
2
Merge trung bình
2 giờ 47 phút
Pull request đã merge (30 ngày)
6

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 oxidecomputer/oxide-cloud-controller-manager

Tất cả issue của oxidecomputer/oxide-cloud-controller-manager

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.