1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/samples/DisallowHelmTiller.md

30 lines
825 B
Markdown
Raw Normal View History

2019-11-03 18:19:06 -08:00
# Disallow Helm Tiller
2020-11-17 12:01:01 -08:00
Tiller, in the [now-deprecated Helm v2](https://helm.sh/blog/helm-v2-deprecation-timeline/), has known security challenges. It requires administrative privileges and acts as a shared resource accessible to any authenticated user. Tiller can lead to privilge escalation as restricted users can impact other users.
2019-11-03 18:19:06 -08:00
2020-11-11 15:55:02 -05:00
## Policy YAML
2019-11-03 18:19:06 -08:00
2020-11-11 15:55:02 -05:00
[disallow_helm_tiller.yaml](best_practices/disallow_helm_tiller.yaml)
2019-11-11 18:21:16 -08:00
2019-11-03 18:19:06 -08:00
````yaml
2019-11-13 13:56:20 -08:00
apiVersion : kyverno.io/v1
2019-11-03 18:19:06 -08:00
kind: ClusterPolicy
metadata:
name: disallow-helm-tiller
spec:
validationFailureAction: audit
2019-11-03 18:19:06 -08:00
rules:
- name: validate-helm-tiller
match:
resources:
kinds:
- Pod
validate:
message: "Helm Tiller is not allowed"
pattern:
spec:
containers:
- name: "*"
image: "!*tiller*"
2020-11-11 15:55:02 -05:00
````