OpenShift SecurityContextConstraints Admission Denied
Matches OpenShift SCC admission denials where pods specify hardcoded root UIDs, disallowed capabilities, or hostPath mounts rejected by restricted-v2.
- Kind
- Signature
- Version
- 2.0.0
- Tier
- verified
- Needs Faber
- v2.0.0+
- Digest prefix
- sha256:3912c293
Contract facts
- Sources
- 2
- kubernetes, loki
- Log patterns
- 3
- RE2, replayed in CI
- Kubernetes matchers
- 0
- 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/openshift-scc-admission-denied \ --source oci://ghcr.io/faberops/catalog:v2How it works
Sources
kubernetes, loki
What it matches
Must match
- Error creating: pods is forbidden: unable to validate against any security context constraint
- provider "restricted-v2": Forbidden: not usable by user or serviceaccount, invalid runAsUser 0
- openshift SCC admission webhook denied pod creation in project billing
Must not match
- Pod billing/api-1 admitted under restricted-v2 SCC cleanly
- Route billing/api-route Admitted=True host=api.apps.example.com
Signature source
signature.yamlFailureSignature24 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
name: openshift-scc-admission-denied
spec:
description: Matches OpenShift SCC admission denials where pods specify hardcoded root UIDs, disallowed capabilities, or
hostPath mounts rejected by restricted-v2.
sources:
- kubernetes
- loki
logPatterns:
- unable to validate against any security context constraint
- 'provider \"restricted-v2\": Forbidden:.*(runAsUser|seccompProfile|capabilities)'
- openshift.*SCC.*denied pod creation
samples:
match:
- 'Error creating: pods is forbidden: unable to validate against any security context constraint'
- 'provider "restricted-v2": Forbidden: not usable by user or serviceaccount, invalid runAsUser 0'
- openshift SCC admission webhook denied pod creation in project billing
noMatch:
- Pod billing/api-1 admitted under restricted-v2 SCC cleanly
- Route billing/api-route Admitted=True host=api.apps.example.com
queries:
loki: '{namespace=~"openshift-.*|billing"} |= "security context constraint" or |= "restricted-v2"'
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/openshift-scc-admission-denied. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
name: openshift-scc-admission-denied
category: signatures
version: 2.0.0
spec:
tier: verified
minFaberVersion: v2.0.0
digest: sha256:3912c293de18f3b716fda005c86611b19e4de65c643b69f76694287d5b5c6c59
Signatures are catalog data. A Playbook references one by name in a connector trigger. It is never applied on its own.
Related packs
All 176 packsOpenShift Route TLS and restricted-v2 SCC Hygiene
playbooks/openshift-ocp-route-scc-hygieneAudits OpenShift route.openshift.io/v1 Routes for plaintext HTTP exposure without TLS Redirect and Deployments incompatible with restricted-v2 SCC, opening small HITL pull requests.Default HITLCeiling HITLContainer Image Cosign Signature Verification Rejected
signatures/image-pull-signature-rejectedMatches admission controller and registry verification errors where an unsigned or untrusted container image fails Cosign, Sigstore, or Binary Authorization checks.Log patterns 3Sources 3Kyverno Admission Policy Blocked Workload
signatures/kyverno-admission-blockedMatches Kyverno validating webhook denials blocking pods or deployments that violate Pod Security Standards, image verification, or disallow-privileged policies.Log patterns 3Sources 2