Faberby FaberOps

GitOps Flate Diff Validator

Offline GitOps pull request diff rendering and manifest validation with flate, kubeconform, pluto, yq, rg and fd in the zero-egress faber-sandbox-gitops image.

Kind
Validator
Version
2.1.0
Tier
verified
Needs Faber
v2.1.0+
Digest prefix
sha256:1455fa73

Contract facts

Variant
gitops
Network
none
no egress and no Secrets
Mode
image
Profiles
1
kubeconform

Install

Inspect the contract and RBAC delta

$ faberctl catalog inspect validators/gitops-flate \ --source oci://ghcr.io/faberops/catalog:v2

Render into your GitOps repository

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

Or apply straight to the cluster

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

How it works

  • Variant: gitops
  • Image: ghcr.io/faberops/faber-sandbox-gitops:2.1.0
  • Profiles: kubeconform
  • Tools: git, flate, kubeconform, pluto, yq, rg, fd

What it validates

  • Rendered before and after Helm and Kustomize diffs: flate renders Flux HelmReleases and Kustomizations offline against the base and pull request revisions so reviewers inspect the real Kubernetes objects instead of guessing from template values.
  • Destructive manifest detection: Comparing rendered output with yq, rg and fd exposes CustomResourceDefinition edits, PersistentVolumeClaim or StatefulSet volumeClaimTemplates mutations, RBAC changes and selector or immutable field breaks before merge.
  • Offline schema and deprecated API checks: kubeconform validates manifests against bundled Kubernetes and GitOps CRD schemas with zero network access, and pluto flags deprecated or removed API versions.

Security posture

The sandbox image runs sandboxd as non-root UID and GID 65532 with HOME=/tmp, a read-only root filesystem, automountServiceAccountToken: false, zero mounted Secrets and egress: []. Any controller-fetched upstream release notes are mounted read-only at /workspace/.faber-context/release-notes.md and excluded from diff extraction.

Use it

Bind the gitops validator on a Repository or select spec.requires.validator.variant: gitops on a Playbook such as playbooks/pr-change-reviewer.

Manifest, ready to apply

repository.yamlRepository30 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-gitops:2.1.0
    profiles:
      - kubeconform
    command:
      - 'kubeconform -strict -summary .'
      - 'pluto detect-files -d .'
    timeout: 5m
  guardrails:
    maxChangedFiles: 10
    maxChangedLines: 250
    secretScan: true
    requireValidation: true
pack.yamlcatalog metadata11 lines
# Catalog metadata for validators/gitops-flate. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
  name: gitops-flate
  category: validators
  version: 2.1.0
spec:
  tier: verified
  minFaberVersion: v2.1.0
  digest: sha256:1455fa7362aa4271b8dc4468478d63af5b6498f323c3b5e1f89f5568e403256e

Copy it into kubectl apply -f -, or let faberctl catalog install render it with provenance annotations into your GitOps path.