Faberby FaberOps

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

Render into your GitOps repository

$ faberctl catalog install validators/security \ --source oci://ghcr.io/faberops/catalog:v2 \ --out-dir ./kubernetes/apps/faber/config

Or apply straight to the cluster

$ faberctl catalog install validators/security \ --source oci://ghcr.io/faberops/catalog:v2 \ --apply

How 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

repository.yamlRepository31 lines
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
pack.yamlcatalog metadata11 lines
# 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.