Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
ef827b2c69
commit
e507515766
43 changed files with 895 additions and 128 deletions
|
|
@ -11,6 +11,12 @@ spec:
|
|||
any:
|
||||
- resources:
|
||||
kinds: ["Pod"]
|
||||
exclude:
|
||||
any:
|
||||
- resources:
|
||||
namespaceSelector:
|
||||
matchLabels:
|
||||
policy.home.arpa/allow-hostpath: "true"
|
||||
|
||||
validate:
|
||||
message: "hostPath volumes are not allowed (escape risk)."
|
||||
|
|
|
|||
|
|
@ -23,6 +23,10 @@ spec:
|
|||
- tekton-pipelines
|
||||
- key: tekton.dev/task
|
||||
operator: Exists
|
||||
- resources:
|
||||
namespaceSelector:
|
||||
matchLabels:
|
||||
policy.home.arpa/allow-latest-tag: "true"
|
||||
validate:
|
||||
message: "Using the 'latest' tag or omitting image tags is forbidden. Use a specific version semantic tag."
|
||||
foreach:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue