Skip to content

Commit

Permalink
added cluster role permissions required for openshift container platf…
Browse files Browse the repository at this point in the history
…orm kube-bench cis benchmark scans

SLK-77648
  • Loading branch information
KiranBodipi committed Jan 23, 2024
1 parent c76f90a commit c2293c9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This repository includes the following charts; they can be deployed separately:
| [Server](server/) | Deploys the Console, Database, and Gateway components; optionally deploys Envoy component | 2022.4.23 |
| [Enforcer](enforcer/) | Deploys the Aqua Enforcer daemonset | 2022.4.20 |
| [Scanner](scanner/) | Deploys the Aqua Scanner deployment | 2022.4.6 |
| [KubeEnforcer](kube-enforcer/) | Deploys Aqua KubeEnforcer | 2022.4.38 |
| [KubeEnforcer](kube-enforcer/) | Deploys Aqua KubeEnforcer | 2022.4.39 |
| [Gateway](gateway) | Deploys the Aqua Standalone Gateway | 2022.4.12 |
| [Tenant-Manager](tenant-manager/) | Deploys the Aqua Tenant Manager | 2022.4.0 |
| [Cyber Center](cyber-center/) | Deploys Aqua CyberCenter offline for air-gap environment | 2022.4.3 |
Expand Down Expand Up @@ -81,7 +81,7 @@ aqua-helm/codesec-agent 1.2.3 2022.4 A Helm chart for
aqua-helm/cloud-connector 2022.4.4 2022.4 A Helm chart for Aqua Cloud-Connector
aqua-helm/cyber-center 2022.4.3 2022.4 A Helm chart for Aqua CyberCenter
aqua-helm/enforcer 2022.4.20 2022.4 A Helm chart for the Aqua Enforcer
aqua-helm/kube-enforcer 2022.4.38 2022.4 A Helm chart for the Aqua KubeEnforcer Starboard
aqua-helm/kube-enforcer 2022.4.39 2022.4 A Helm chart for the Aqua KubeEnforcer Starboard
aqua-helm/gateway 2022.4.12 2022.4 A Helm chart for the Aqua Gateway
aqua-helm/scanner 2022.4.6 2022.4 A Helm chart for the Aqua Scanner CLI component
aqua-helm/server 2022.4.23 2022.4 A Helm chart for the Aqua Console components
Expand Down
3 changes: 3 additions & 0 deletions kube-enforcer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All notable changes to this project will be documented in this file.

## 2022.4.39 ( Jan 19th, 2024 )
* Updated cluster-role.yaml to include additional permissions required for running kube-bench cis benchmarks in openshift container platform

## 2022.4.38 ( Jan 8th, 2024 )
* Updated trivy-operator.yaml to include sbom env variable
* New enforcer version 2022.4.20
Expand Down
2 changes: 1 addition & 1 deletion kube-enforcer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "2022.4"
description: A Helm chart for the Aqua KubeEnforcer
name: kube-enforcer
version: "2022.4.38"
version: "2022.4.39"
dependencies:
- name: enforcer
version: "2022.4.20"
Expand Down
20 changes: 19 additions & 1 deletion kube-enforcer/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,29 @@ rules:
verbs: ["get", "list", "watch"]
{{- if eq .Values.global.platform "openshift"}}
- apiGroups: ["operator.openshift.io"]
resources: ["imagecontentsourcepolicies"]
resources: ["imagecontentsourcepolicies", "openshiftapiservers", "kubeapiservers"]
verbs: ["get", "list", "watch"]
- apiGroups: [ "apps.openshift.io" ]
resources: [ "deploymentconfigs" ]
verbs: [ "get", "list", "watch" ]
- apiGroups: ["*"]
resources: ["pods","namespaces"]
verbs: ["create", "delete"]
- apiGroups: [""]
resources: ["pods/exec"]
verbs: ["create"]
- apiGroups: [ "" ]
resources: [ "serviceaccounts", "endpoints" ]
verbs: [ "list" ]
- apiGroups: [ "config.openshift.io" ]
resources: [ "clusteroperators" ]
verbs: [ "get", "list" ]
- apiGroups: ["security.openshift.io"]
resources: ["securitycontextconstraints"]
verbs: ["get", "list"]
- apiGroups: ["machineconfiguration.openshift.io"]
resources: ["machineconfigs", "machineconfigpools"]
verbs: ["get", "list"]
{{- end }}
- apiGroups:
- "*"
Expand Down

0 comments on commit c2293c9

Please sign in to comment.