Faberby FaberOps

Base GitOps Validator

Offline Kubernetes manifest validation with kubeconform, kustomize, helm and flate in the zero-egress faber-sandbox image.

Kind
Validator
Version
2.0.0
Tier
verified
Needs Faber
v2.0.0+
Digest prefix
sha256:9d6b87b9

Contract facts

Variant
base
Network
none
no egress and no Secrets
Mode
image
Profiles
3
helm-template, kubeconform, kustomize-build

Install

Inspect the contract and RBAC delta

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

Render into your GitOps repository

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

Or apply straight to the cluster

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

How it works

  • Variant: base
  • Image: ghcr.io/faberops/faber-sandbox:2.0.0
  • Profiles: helm-template, kubeconform, kustomize-build
  • Tools: git, flate, helm, kustomize, 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

The image bundles the Kubernetes JSON schemas and the faberops.dev CRD schemas, so kubeconform runs without network access. Every validator runs in an ephemeral gVisor sandbox with no Secrets, no service account token and no egress.

Manifest, ready to apply

repository.yamlRepository29 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:2.0.0
    profiles:
      - helm-template
      - kubeconform
      - kustomize-build
    timeout: 5m
  guardrails:
    maxChangedFiles: 10
    maxChangedLines: 250
    secretScan: true
    requireValidation: true
pack.yamlcatalog metadata11 lines
# Catalog metadata for validators/base. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
  name: base
  category: validators
  version: 2.0.0
spec:
  tier: verified
  minFaberVersion: v2.0.0
  digest: sha256:9d6b87b9dcd291dbb11299fd93280e1e872a771c25dac083e774a7f06eebbedb

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