Triggers, Connectors, and Zero-Cost Pre-Checks
In faberops.dev/v1beta1, every external signal source is declared once as a typed Connector (fconn) and referenced from Playbook.spec.triggers[] and Playbook.spec.preChecks[]. This gives security teams a single egress inventory (kubectl get fconn) and keeps credentials out of playbooks.
To keep LLM spend at $0.00 when systems are healthy, attach deterministic spec.preChecks to a Playbook. Faber evaluates pre-checks first and short-circuits healthy triggers before calling the model, tracking the exact skip rate in Shadow Scorecard v2.
Trigger Types Overview
Section titled “Trigger Types Overview”| Trigger | Spec Field | Use Case |
|---|---|---|
| Normalized alert webhooks | spec.triggers[].connector (alertmanager, grafana, pagerduty) |
Normalize Alertmanager, Grafana Alerting, and PagerDuty v3 / Events v2 webhooks into a uniform AlertEnvelope |
| Cilium eBPF Connectors | spec.triggers[].connector (hubble, tetragon) |
Read kernel-level DROPPED flows, DNS errors, TCP RSTs, L7 5xx, and runtime security events over gRPC with no privileged Faber DaemonSet |
| Log backend query | spec.triggers[].connector (victorialogs, loki) |
Poll VictoriaLogs or Loki with LogsQL/LogQL and curated signaturePack rules |
| Metric threshold | spec.triggers[].connector (prometheus) |
Poll Prometheus or VictoriaMetrics with PromQL, CEL condition, and forDuration |
| Kubernetes watch | spec.triggers[].kubernetes |
Watch any CRD or core resource with CEL match and 3-layer storm guards |
| Cron schedule | spec.triggers[].cron |
Scheduled audits and hygiene runs with timezone and concurrencyPolicy |
| HTTP feed poll | spec.triggers[].httpPoll |
Watch JSON feeds or release APIs with ETag 304 and persistent cursors |
| Webhook and CloudEvents | spec.triggers[].webhook (cloudEvent: true) |
Push signed dev.faberops.app.incident CloudEvents via pkg/trigger |
See the CRD API Reference for full schema and CEL validation details.
Normalized Alert Connectors (Alertmanager, Grafana, PagerDuty)
Section titled “Normalized Alert Connectors (Alertmanager, Grafana, PagerDuty)”Declare a Connector with type: alertmanager, type: grafana, or type: pagerduty and capabilities: [read, trigger]. Faber normalizes incoming alerts into a single AlertEnvelope (source, fingerprint, severity, status, summary, namespace, workload, labels, annotations, startsAt) so one Playbook works across alerting backends without rewriting prompts or routes.
Cilium Hubble and Tetragon eBPF Connectors
Section titled “Cilium Hubble and Tetragon eBPF Connectors”Faber integrates with kernel-level eBPF telemetry through native zero-dependency protowire + gRPC clients rather than deploying its own privileged DaemonSet:
type: hubble: Connects tohubble-relayover gRPC (grpc://hubble-relay.kube-system.svc.cluster.local:80) to ingestDROPPEDflow verdicts, policy denials, DNS failures, TCP resets, and L7 5xx spikes, and to verify flow recovery insidepostCheck.type: tetragon: Connects to Tetragon over gRPC to ingest runtime process execution and kprobe security events (such as unexpected container shells or sensitive file reads) for read-only security triage briefs.
apiVersion: faberops.dev/v1beta1kind: Connectormetadata: name: cilium-hubble namespace: faberspec: type: hubble default: true url: grpc://hubble-relay.kube-system.svc.cluster.local:80 capabilities: - read - triggerCurated Failure-Signature Packs
Section titled “Curated Failure-Signature Packs”Log and connector triggers support signaturePack, expanding into safe Go RE2 patterns and backend query fragments aligned with Catalog v2 signatures/ packs:
| Pack Name | Failure Mode Detected |
|---|---|
k8s-oom-crashloop |
Kernel OOMKilled, memory cgroup kills, CrashLoopBackOff, and runtime heap OOM lines |
flux-argocd-sync |
Flux Kustomization/HelmRelease reconciliation failures and Argo CD ComparisonError or Degraded states |
tls-cert-expiry |
Expired or untrusted x509 certificates and unready cert-manager Certificates |
cilium-hubble-drops |
Hubble DROPPED flow verdicts, POLICY_DENIED, and conntrack insertion failures |
tetragon-runtime |
Tetragon container shell execs, /etc/shadow reads, and privilege escalation kprobes |
db-pool-exhausted |
SQLSTATE 08006 or 53300, connection pool exhaustion, HikariPool or pgxpool timeouts |
tls-cert-expired-in-memory |
In-memory expired TLS certificate handshake errors |
redis-readonly-failover |
Redis READONLY replica write errors, CLUSTERDOWN, MASTERDOWN |
soft-oom-heap |
Node.js, Java, and Python heap exhaustion prior to kernel OOMKill |
dns-wedged |
no such host, port 53 i/o timeout, EAI_AGAIN |
Zero-Cost Deterministic Pre-Checks (spec.preChecks)
Section titled “Zero-Cost Deterministic Pre-Checks (spec.preChecks)”Attach spec.preChecks to evaluate Kubernetes state, Prometheus queries, Connector checks, or HTTP endpoints (statusCode CEL variable) at $0.00 before waking an LLM:
preChecks: - name: deployment-ready kubernetes: apiVersion: apps/v1 kind: Deployment namespace: production labelSelector: matchLabels: app: checkout passWhen: 'count > 0 && items.all(d, has(d.status.availableReplicas) && d.status.availableReplicas == d.spec.replicas)'When every pre-check passes, the run completes immediately with 0 LLM steps and $0.00 spend, and is recorded in Shadow Scorecard v2’s pre-check skip rate.
Application CloudEvents with pkg/trigger
Section titled “Application CloudEvents with pkg/trigger”Applications can push structured incidents directly into a Faber webhook trigger (cloudEvent: true) using the Apache-2.0, stdlib-only Go SDK at github.com/faberops/faber/pkg/trigger.
It emits CloudEvents v1.0 payloads with default type dev.faberops.app.incident, signs requests with HMAC-SHA256 in X-Faber-Signature-256 (or Bearer auth), sets X-Faber-Policy when configured, and retries on HTTP 429, 5xx, or transient network errors.
client, err := trigger.NewClient(trigger.ClientConfig{ Endpoint: "http://faber.faber.svc.cluster.local:8080/webhooks/app-incidents", HMACSecret: os.Getenv("FABER_WEBHOOK_HMAC"),})if err != nil { return err}
_, err = client.Emit(ctx, trigger.IncidentEvent{ Source: "checkout-service", Severity: "critical", Summary: "Database connection pool saturated for 3m", Workload: "production/checkout-api",})