mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
29 lines
No EOL
713 B
Markdown
29 lines
No EOL
713 B
Markdown
# Disallow Helm Tiller
|
|
|
|
Tiller has known security challenges. It requires adminstrative 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.
|
|
|
|
## Policy YAML
|
|
|
|
[disallow_helm_tiller.yaml](best_practices/disallow_helm_tiller.yaml)
|
|
|
|
````yaml
|
|
apiVersion : kyverno.io/v1alpha1
|
|
kind: ClusterPolicy
|
|
metadata:
|
|
name: disallow-helm-tiller
|
|
spec:
|
|
rules:
|
|
- name: validate-helm-tiller
|
|
match:
|
|
resources:
|
|
kinds:
|
|
- Pod
|
|
validate:
|
|
message: "Helm Tiller is not allowed"
|
|
pattern:
|
|
spec:
|
|
containers:
|
|
- name: "*"
|
|
image: "!*tiller*"
|
|
|
|
```` |