Faberby FaberOps

Kyverno Admission Policy Blocked Workload

Matches Kyverno validating webhook denials blocking pods or deployments that violate Pod Security Standards, image verification, or disallow-privileged policies.

Kind
Signature
Version
2.0.0
Tier
verified
Needs Faber
v2.0.0+
Digest prefix
sha256:44e33163

Contract facts

Sources
2
kubernetes, loki
Log patterns
3
RE2, replayed in CI
Kubernetes matchers
1
CEL on live objects
Samples
3 and 2
must match and must not

Inspect it

Inspect the contract and RBAC delta

$ faberctl catalog inspect signatures/kyverno-admission-blocked \ --source oci://ghcr.io/faberops/catalog:v2

How it works

Sources

kubernetes, loki

What it matches

Must match

  • Error from server: admission webhook "validate.kyverno.svc-fail" denied the request: pod violates require-non-root
  • kyverno policy disallow-privileged-containers fail: validation error on Deployment checkout
  • Request blocked due to policy check-image in namespace payments

Must not match

  • Kyverno ClusterPolicy require-non-root Ready=True
  • PolicyReport payments/polr-ns-payments passed 14 of 14 checks

Signature source

signature.yamlFailureSignature28 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
  name: kyverno-admission-blocked
spec:
  description: Matches Kyverno validating webhook denials blocking pods or deployments that violate Pod Security Standards,
    image verification, or disallow-privileged policies.
  sources:
  - kubernetes
  - loki
  logPatterns:
  - admission webhook \"validate\.kyverno\.svc-fail\" denied the request
  - 'kyverno.*policy .* fail: validation error'
  - blocked due to policy.*(require-non-root|disallow-privileged|check-image)
  samples:
    match:
    - 'Error from server: admission webhook "validate.kyverno.svc-fail" denied the request: pod violates require-non-root'
    - 'kyverno policy disallow-privileged-containers fail: validation error on Deployment checkout'
    - Request blocked due to policy check-image in namespace payments
    noMatch:
    - Kyverno ClusterPolicy require-non-root Ready=True
    - PolicyReport payments/polr-ns-payments passed 14 of 14 checks
  kubernetes:
  - apiVersion: wgpolicyk8s.io/v1alpha2
    kind: PolicyReport
    match: has(object.summary) && has(object.summary.fail) && object.summary.fail > 0
  queries:
    loki: '{namespace="kyverno"} |= "denied the request" or |= "validation error"'
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/kyverno-admission-blocked. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
  name: kyverno-admission-blocked
  category: signatures
  version: 2.0.0
spec:
  tier: verified
  minFaberVersion: v2.0.0
  digest: sha256:44e3316352f289a2e4ee79b024b7ad2e364a7e30a37c147b410c87beb0d412a3

Signatures are catalog data. A Playbook references one by name in a connector trigger. It is never applied on its own.