UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Verified Commit 16f8a711 authored by Ryan Garcia's avatar Ryan Garcia :dizzy:
Browse files

Finalizing PolicyException template for istio-init group

parent 141215c7
No related branches found
No related tags found
1 merge request!104SKIP UPGRADE Testin things
Pipeline #2430169 passed
......@@ -3,6 +3,11 @@
Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
---
## [3.0.4-bb.8] - 2023-11-07
### Added
- istio.enabled toggle for below PolicyException template
- require-non-root-group-exception template for istio-init containers
## [3.0.4-bb.7] - 2023-11-01
### Changed
- Fixed test for ClusterPolicy automountserviceaccounttoken
......
# kyverno-policies
![Version: 3.0.4-bb.7](https://img.shields.io/badge/Version-3.0.4--bb.7-informational?style=flat-square) ![AppVersion: v1.10.3](https://img.shields.io/badge/AppVersion-v1.10.3-informational?style=flat-square)
![Version: 3.0.4-bb.8](https://img.shields.io/badge/Version-3.0.4--bb.8-informational?style=flat-square) ![AppVersion: v1.10.3](https://img.shields.io/badge/AppVersion-v1.10.3-informational?style=flat-square)
Collection of Kyverno security and best-practice policies for Kyverno
......@@ -46,7 +46,7 @@ helm install kyverno-policies chart/
| autogenControllers | string | `""` | Customize the target Pod controllers for the auto-generated rules. (Eg. `none`, `Deployment`, `DaemonSet,Deployment,StatefulSet`) For more info https://kyverno.io/docs/writing-policies/autogen/. |
| customLabels | object | `{}` | Additional labels to apply to all policies. |
| policyPreconditions | object | `{}` | Add preconditions to individual policies. Policies with multiple rules can have individual rules excluded by using the name of the rule as the key in the `policyPreconditions` map. |
| waitforready.enabled | bool | `true` | Controls wait for ready deployment |
| waitforready.enabled | bool | `false` | Controls wait for ready deployment |
| waitforready.image | object | `{"repository":"registry1.dso.mil/ironbank/opensource/kubernetes/kubectl","tag":"v1.28.3"}` | Image to use in wait for ready job. This must contain kubectl. |
| waitforready.imagePullSecrets | list | `[]` | Pull secret for wait for ready job |
| policies.sample | object | `{"enabled":false,"exclude":{},"match":{},"parameters":{"excludeContainers":[]},"validationFailureAction":"Audit","webhookTimeoutSeconds":""}` | Sample policy showing values that can be added to any policy |
......@@ -149,6 +149,7 @@ helm install kyverno-policies chart/
| additionalPolicies.samplePolicy.annotations."policies.kyverno.io/description" | string | `"This sample policy blocks pods from deploying into the 'default' namespace."` | Description of what the policy does, why it is important, and what items are allowed or unallowed. |
| additionalPolicies.samplePolicy.spec | object | `{"rules":[{"match":{"any":[{"resources":{"kinds":["Pods"]}}]},"name":"sample-rule","validate":{"message":"Using 'default' namespace is not allowed.","pattern":{"metadata":{"namespace":"!default"}}}}]}` | Policy specification. See `kubectl explain clusterpolicies.spec` |
| additionalPolicies.samplePolicy.spec.rules | list | `[{"match":{"any":[{"resources":{"kinds":["Pods"]}}]},"name":"sample-rule","validate":{"message":"Using 'default' namespace is not allowed.","pattern":{"metadata":{"namespace":"!default"}}}}]` | Policy rules. At least one is required |
| istio | object | `{"enabled":false}` | BigBang Istio Toggle and Configuration |
| bbtests | object | `{"enabled":false,"imagePullSecret":"private-registry","scripts":{"additionalVolumeMounts":[{"mountPath":"/yaml","name":"kyverno-policies-bbtest-manifests"},{"mountPath":"/.kube/cache","name":"kyverno-policies-bbtest-kube-cache"}],"additionalVolumes":[{"configMap":{"name":"kyverno-policies-bbtest-manifests"},"name":"kyverno-policies-bbtest-manifests"},{"emptyDir":{},"name":"kyverno-policies-bbtest-kube-cache"}],"envs":{"ENABLED_POLICIES":"{{ $p := list }}{{ range $k, $v := .Values.policies }}{{ if $v.enabled }}{{ $p = append $p $k }}{{ end }}{{ end }}{{ join \" \" $p }}","IMAGE_PULL_SECRET":"{{ .Values.bbtests.imagePullSecret }}"},"image":"registry1.dso.mil/ironbank/opensource/kubernetes/kubectl:v1.28.3"}}` | Reserved values for Big Bang test automation |
## Contributing
......
{{- $name := "require-non-root-group" }}
{{- if and .Values.enabled (dig $name "enabled" false .Values.policies) }}
{{- if and .Values.enabled (dig $name "enabled" false .Values.policies) .Values.istio.enabled }}
apiVersion: kyverno.io/v2alpha1
kind: PolicyException
metadata:
......
......@@ -564,6 +564,10 @@ additionalPolicies:
metadata:
namespace: "!default"
# -- BigBang Istio Toggle and Configuration
istio:
enabled: false
# -- Reserved values for Big Bang test automation
bbtests:
enabled: false
......@@ -584,5 +588,3 @@ bbtests:
- name: "kyverno-policies-bbtest-kube-cache"
emptyDir: {}
imagePullSecret: private-registry
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment