add pac
Some checks are pending
Pipelines as Code CI / homelab-ci CI has Started

Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
gwg313 2026-06-28 17:56:19 -04:00
parent ef827b2c69
commit e507515766
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
43 changed files with 895 additions and 128 deletions

View file

@ -17,6 +17,12 @@ spec:
- resources:
kinds:
- Pod
exclude:
any:
- resources:
namespaceSelector:
matchLabels:
policy.home.arpa/allow-any-capabilities: "true"
validate:
message: "All containers must drop ALL Linux capabilities."

View file

@ -23,6 +23,10 @@ spec:
selector:
matchLabels:
security.policy/allow-root: "true"
- resources:
namespaceSelector:
matchLabels:
policy.home.arpa/allow-root: "true"
validate:
message: "Pods must set runAsNonRoot=true."
@ -43,6 +47,10 @@ spec:
selector:
matchLabels:
security.policy/allow-root: "true"
- resources:
namespaceSelector:
matchLabels:
policy.home.arpa/allow-root: "true"
validate:
message: "All containers must set runAsNonRoot=true."

View file

@ -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)."

View file

@ -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:

View file

@ -9,7 +9,7 @@ metadata:
policies.kyverno.io/description: >-
Automatically provisions a baseline CiliumNetworkPolicy
with default deny ingress and controlled DNS egress.
argocd.argoproj.io/sync-options: Force=true,Replace=true
argocd.argoproj.io/sync-options: Replace=true
spec:
background: true
@ -55,6 +55,8 @@ spec:
metadata:
labels:
security-tier: baseline
annotations:
argocd.argoproj.io/sync-options: Prune=false
spec:
endpointSelector: {}