ce7cb702218693d08ea6d83464d2457c9250027c
This commit is contained in:
commit
34c5f8963c
1 changed files with 145336 additions and 0 deletions
29
vendor/platform/kyverno/policies/require-public-runtime-gvisor.yaml
vendored
Normal file
29
vendor/platform/kyverno/policies/require-public-runtime-gvisor.yaml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
apiVersion: kyverno.io/v1
|
||||
kind: ClusterPolicy
|
||||
metadata:
|
||||
name: require-public-runtime-gvisor
|
||||
annotations:
|
||||
policies.kyverno.io/title: Require gVisor in public-runtime namespaces
|
||||
policies.kyverno.io/category: Runtime Isolation
|
||||
policies.kyverno.io/severity: high
|
||||
policies.kyverno.io/description: >-
|
||||
Tier O and Tier R application namespaces are labeled as public-runtime
|
||||
namespaces. Every admitted pod in those namespaces must use gVisor.
|
||||
spec:
|
||||
validationFailureAction: Enforce
|
||||
background: true
|
||||
rules:
|
||||
- name: public-pods-use-gvisor
|
||||
match:
|
||||
any:
|
||||
- resources:
|
||||
kinds:
|
||||
- Pod
|
||||
namespaceSelector:
|
||||
matchLabels:
|
||||
security.quorate.internal/public-runtime: gvisor
|
||||
validate:
|
||||
message: Public-runtime pods must set spec.runtimeClassName to gvisor.
|
||||
pattern:
|
||||
spec:
|
||||
runtimeClassName: gvisor
|
||||
Loading…
Reference in a new issue