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:v2Render into your GitOps repository
$ faberctl catalog install validators/gitops-flate \ --source oci://ghcr.io/faberops/catalog:v2 \ --out-dir ./kubernetes/apps/faber/configOr apply straight to the cluster
$ faberctl catalog install validators/gitops-flate \ --source oci://ghcr.io/faberops/catalog:v2 \ --applyHow 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:
flaterenders 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,rgandfdexposes CustomResourceDefinition edits, PersistentVolumeClaim or StatefulSet volumeClaimTemplates mutations, RBAC changes and selector or immutable field breaks before merge. - Offline schema and deprecated API checks:
kubeconformvalidates manifests against bundled Kubernetes and GitOps CRD schemas with zero network access, andplutoflags 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
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
# 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.
Related packs
All 176 packsBase GitOps Validator
validators/baseOffline Kubernetes manifest validation with kubeconform, kustomize, helm and flate in the zero-egress faber-sandbox image.Variant baseSecurity Validator
validators/securityOffline policy and misconfiguration checks with Trivy, Kyverno and Pluto for hardening and deprecated API pull requests.Variant securityHelm Index Datasource
connectors/datasource-helm-indexRead-only Helm chart repository index.yaml datasource with conditional ETag caching for Flux HelmRelease and Chart.yaml version discovery.Can read