Security Validator
Offline policy and misconfiguration checks with Trivy, Kyverno and Pluto for hardening and deprecated API pull requests.
- Kind
- Validator
- Version
- 2.0.0
- Tier
- verified
- Needs Faber
- v2.0.0+
- Digest prefix
- sha256:6e53c2b6
Contract facts
- Variant
- security
- Network
- none
- no egress and no Secrets
- Mode
- image
- Profiles
- 2
- kubeconform, kyverno
Install
Inspect the contract and RBAC delta
$ faberctl catalog inspect validators/security \ --source oci://ghcr.io/faberops/catalog:v2Render into your GitOps repository
$ faberctl catalog install validators/security \ --source oci://ghcr.io/faberops/catalog:v2 \ --out-dir ./kubernetes/apps/faber/configOr apply straight to the cluster
$ faberctl catalog install validators/security \ --source oci://ghcr.io/faberops/catalog:v2 \ --applyHow it works
- Variant:
security - Image:
ghcr.io/faberops/faber-sandbox-security:2.0.0 - Profiles:
kubeconform,kyverno - Tools:
trivy,kyverno,pluto,kubeconform,yq
Use it
Bind the validator on a Repository. Playbooks that open pull requests declare the variant they need under spec.requires.validator, and Faber refuses to open a pull request until the sandbox verdict passes.
Notes
Trivy runs with TRIVY_SKIP_CHECK_UPDATE=true and a bundled check database, so the sandbox keeps zero egress. Every validator runs in an ephemeral gVisor sandbox with no Secrets, no service account token and no egress.
Manifest, ready to apply
apiVersion: faberops.dev/v1beta1
kind: Repository
metadata:
name: example-gitops
namespace: faber
spec:
kind: gitops
url: https://github.com/example-org/example-gitops
forge:
provider: github
owner: example-org
repo: example-gitops
githubApp:
secretRef:
name: faber-github-app
key: privateKey
validator:
mode: image
image: ghcr.io/faberops/faber-sandbox-security:2.0.0
profiles:
- kubeconform
- kyverno
command:
- 'trivy config --skip-check-update --exit-code 1 --severity HIGH,CRITICAL .'
- 'pluto detect-files -d .'
timeout: 5m
guardrails:
maxChangedFiles: 10
maxChangedLines: 250
secretScan: true
requireValidation: true
# Catalog metadata for validators/security. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
name: security
category: validators
version: 2.0.0
spec:
tier: verified
minFaberVersion: v2.0.0
digest: sha256:6e53c2b61f568bd2f7d11de477749c5d3a40ed16d0a6a6255e54bc06fda07f96
Copy it into kubectl apply -f -, or let faberctl catalog install render it with provenance annotations into your GitOps path.
Related packs
All 176 packsKyverno 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 2GitOps Flate Diff Validator
validators/gitops-flateOffline GitOps pull request diff rendering and manifest validation with flate, kubeconform, pluto, yq, rg and fd in the zero-egress faber-sandbox-gitops image.Variant gitopsAWS Terraform and OpenTofu IAM, S3 and IMDSv2 Hardener
playbooks/aws-terraform-iam-s3-hardeningAudits OpenTofu and Terraform AWS infrastructure modules for S3 buckets missing public access blocks or KMS encryption, EC2 launch templates allowing IMDSv1, and wildcard IAM statements, opening small HITL pull requests validated in the zero-egress IaC sandbox.Default HITLCeiling HITL