GitOps Engines, Policy Packs, and Storm Guards
Faber natively supports both Flux v2 and Argo CD clusters, ships turnkey starter policy packs under examples/packs/, expands built-in offline validator profiles, and guards against Kubernetes watch cascade storms.
Starter Policy Packs (examples/packs/)
Section titled “Starter Policy Packs (examples/packs/)”| Pack | Policies | Purpose |
|---|---|---|
examples/packs/flux/ |
flux-failure-fixer, ops-hygiene, renovate-cochange-fixer |
Remediate failed Flux Kustomization and HelmRelease reconciliations, run scheduled cluster hygiene checks, and fix Renovate co-change drift. |
examples/packs/argocd/ |
argocd-sync-fixer, rbac-argocd-readonly |
Watch argoproj.io/v1alpha1 Application resources entering OutOfSync, Degraded, or ComparisonError states and propose validated manifest fixes. |
examples/packs/rightsizer/ |
resource-rightsizer |
Query Prometheus p95 CPU and memory working-set usage and open rightsizing PRs with requireApproval: true and GPU-pod guardrails. |
examples/packs/platform/ |
alert-triage, cert-and-secret-watch |
Read-only Tier 0 Alertmanager webhook triage and cert-manager / ExternalSecret health monitoring. |
For Argo CD clusters installed via the Helm chart, enable least-privilege read-only Argo CD RBAC (get, list, watch on argoproj.io applications and applicationsets):
helm upgrade --install faber oci://ghcr.io/faberops/charts/faber \ --version 2.0.0 \ --namespace faber \ --set rbac.argocdReadOnly=trueThree-Layer Kubernetes Watch Storm Guard
Section titled “Three-Layer Kubernetes Watch Storm Guard”When an upstream dependency fails (such as a Flux DependencyNotReady cascade or a transient Argo CD sync wave), naive watch triggers can enqueue dozens of redundant LLM runs. Faber defends against watch storms in three layers:
- CEL Match Exclusions at Watch Time: Starter Flux and Argo CD policies filter out transient progressing and cascade states (such as
DependencyNotReady,Progressing, orReconciliationInProgress) directly in the trigger’s CELmatchexpression. - Per-Policy Queue Cap (
spec.policy.maxQueuedRuns): Before creating a newRemediationRun,K8sWatchManagerand the webhook handler serialize queue checks and count all active or queued runs (including newly created runs whosestatus.phaseis still empty"", plusPending,Settling,Running, andVerifying). When the count reachesmaxQueuedRuns(default10), excess triggers are dropped and recorded infaber_triggers_dropped_total{policy,reason="queue_full"}and the audit log. - Post-Settle Live Object CEL Re-Check: After
spec.policy.settleWindowelapses,RemediationRunReconcilerre-fetches the watched Kubernetes object viaDynamicClientand re-evaluates the trigger’s CELmatchexpression. If the object has already recovered or been deleted, the run transitions immediately toSkipped(Reason=ConditionCleared) and persists aSkippedstore row with zero LLM calls and zero sandbox claims.
Pluggable Validator Profiles
Section titled “Pluggable Validator Profiles”Instead of duplicating shell commands across policies, declare validationProfiles on GitOpsRepository.spec.validation or override them on MaintenancePolicy.spec.tools.sandbox. Profiles expand deterministically before any explicit validationCommands and are deduplicated automatically:
| Profile | Expanded Offline Command |
|---|---|
kubeconform |
kubeconform -strict -ignore-missing-schemas . |
helm-template |
Renders every Chart.yaml found up to depth 4 offline via helm template |
kustomize-build |
Renders every kustomization.yaml or kustomization.yml found up to depth 4 offline via kustomize build |
kyverno |
kyverno apply policies --resource . |
conftest |
conftest test --policy policy . |
opentofu |
tofu validate -no-color |
Example configuration on GitOpsRepository:
spec: validation: sandboxTemplateRef: name: faber-validator validationProfiles: - kubeconform - kustomize-build commands: - kubeconform -strict -ignore-missing-schemas kubernetes/apps timeout: 5mWhen MaintenancePolicy.spec.tools.sandbox specifies either validationProfiles or validationCommands, those policy-level settings override the repository defaults for that policy.
Offline Eval Harness (cmd/faber-eval)
Section titled “Offline Eval Harness (cmd/faber-eval)”Test policy behavior, CEL routing, validator profiles, and hard diff gates offline without spending tokens:
make eval# Or inspect JSON output across all golden fixtures including argocd-sync-fixer:go run ./cmd/faber-eval --fixtures test/eval/fixtures --json