The default security policies (found in /pkg/defaults/policies/files/) should be supplied as SecurityPolicy CRDs

Đang mở
#18,836 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ó
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
Đình trệ
Công nghệ
go, kubernetes
Lĩnh vực
devops, security

Hướng nghiên cứu

Start by reading /pkg/defaults/policies/policies.go and the default policy files under /pkg/defaults/policies/files/. Determine how the 87 system policies could be supplied as SecurityPolicy CRDs in the cluster and managed through GitOps rather than only through the GUI. Done means the default policies are available as CRDs that can be applied and patched reproducibly.

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

Mô tả

This is based on my experience with RHACS operator.

Policy management based purely on clicking in the GUI is antithetical to GitOps. Without policy-as-code one needs to manually click into the policy administration menu, into the system policies, and applying changes. Without policy-as-code these changes cannot be replicated automatically. Applying these changes to the 87 system policies is non-feasible. This is my argument for why policy-as-code is important.

Enabling policy-as-code today relies on manually clicking through and cloning system policies, downloading the CRD for the cloned policy, and checking the CRD into your repo for CI/CD [note: I have engineered a workaround for the clicking, but it shouldn't have to be that hard.], or applying the manifest locally (for testing or if you're that kind of engineer). This is my argument for why enabling policy-as-code should be easier, or having it be the default.

If the central instance was deployed with the system policies as CRDs in the cluster, rather than being baked into the image (as is my understanding of what happens based on /pkg/defaults/policies/policies.go), one could apply patches to manage these policies rather than being dependent on lengthy mouse clicking adventures, and avoid risks of config drift. This is my argument for a solution to this issue.

Ngôn ngữ chính
Go
Star
1.3k
Fork
194
Merge trung bình
2 ngày 20 giờ
Pull request đã merge (30 ngày)
392

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

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 stackrox/stackrox

Tất cả issue của stackrox/stackrox

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.