Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce static analysis of operator RBAC #639

Open
maxgio92 opened this issue Sep 2, 2022 · 1 comment
Open

Introduce static analysis of operator RBAC #639

maxgio92 opened this issue Sep 2, 2022 · 1 comment
Labels
blocked-needs-validation Issue need triage and validation

Comments

@maxgio92
Copy link
Collaborator

maxgio92 commented Sep 2, 2022

Describe the feature

The CI pipeline could integrate static security analysis on the (Cluster)Roles that the operator would run with.

What would the new user story look like?

As a maintainer, I would like that contribution would pass a static analysis of RBAC being introduced before being integrated.

This is one of the examples of shifting left the security, statically analyzing (SAST) before the integration of software.

Expected behavior

First step: RBAC

One first approach could be adding a job in the CI Github workflow, that would audit through tools.

Tools: BadRobot.

Badrobot is a Kubernetes Operator audit tool. It statically analyses manifests for high risk configurations such as lack of security restrictions on the deployed controller and the permissions of an associated clusterole. The risk analysis is primarily focussed on the likelihood that a compromised Operator would be able to obtain full cluster permissions.

@maxgio92 maxgio92 added the blocked-needs-validation Issue need triage and validation label Sep 2, 2022
@ptx96
Copy link
Contributor

ptx96 commented Sep 3, 2022

This will be nice for our quality gate checks!
Anyway, we should check if this overlap with kubescape

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked-needs-validation Issue need triage and validation
Projects
None yet
Development

No branches or pull requests

2 participants