Write a custom pack
A pack is plain faberops.dev/v1beta1 YAML held to the same schema and safety contract as the official Catalog. There is no code to compile and no review queue.
In your cluster
A Connector for what Faber may read, a Repository for where it may write, and a Playbook with an Automation for what it should do.
An endpoint Faber may call
Name the endpoint Faber may call
A Connector is one typed URL plus a Secret reference. Here it is an internal MCP server, read-only, limited to two tools. Anything you do not list does not exist as far as Faber is concerned.
Every outbound integration is one of these, so kubectl get fconn is your complete egress inventory.
$ kubectl -n faber create secret generic \ faber-runbooks-mcp \ --from-literal=token=REPLACE_MEapiVersion: faberops.dev/v1beta1
kind: Connector
metadata:
name: runbooks
namespace: faber
spec:
type: mcp
url: http://runbooks-mcp.platform.svc.cluster.local:8080/mcp
capabilities:
- read
allowedTools:
- search_runbooks
- get_service_owner
secretRef:
name: faber-runbooks-mcp
key: tokenYour repository and your validator image
Bind your repository to a validator image
validator.image is any image with your compilers and test tools already inside. Faber runs the commands in an isolated sandbox with no network, no Secrets and no service account token, and refuses to open a pull request unless they pass.
Guardrails are enforced in operator code after the model is done. A diff that touches a denied path or exceeds the caps never leaves the cluster.
$ kubectl apply -f repository.yamlapiVersion: faberops.dev/v1beta1
kind: Repository
metadata:
name: payments-api
namespace: faber
spec:
kind: app
url: https://github.com/acme/payments-api
forge:
provider: github
owner: acme
repo: payments-api
githubApp:
secretRef:
name: faber-github-app
key: privateKey
validator:
mode: image
# Your toolchain, baked in. The sandbox has no network.
image: registry.acme.internal/ci/payments-validator:1.4.0
command:
- 'go vet ./...'
- 'go test ./... -count=1'
timeout: 8m
guardrails:
maxChangedFiles: 6
maxChangedLines: 120
denyPaths:
- '.github/workflows/**'
- 'migrations/**'
secretScan: true
requireValidation: trueWhat to do and how far it may go
Write the runbook and its contract
The Playbook holds the trigger, the $0 pre-check, the prompt, a strict output schema and every action with its ceiling. The Automation binds it to your connectors and sets the trust level you start at.
Start at Observe. Faber writes briefs in shadow mode until the scorecard shows it has earned more.
$ kubectl apply -f payments-queue-brief.yamlapiVersion: faberops.dev/v1beta1
kind: Playbook
metadata:
name: payments-queue-brief
namespace: faber
spec:
version: 0.1.0
description: Explains a payments queue backlog alert to the on-call engineer.
triggers:
- name: backlog-firing
webhook:
path: /hooks/alertmanager
connectorRef:
name: alertmanager
match: has(event.status) && event.status == "firing" && event.commonLabels.alertname == "PaymentsQueueBacklog"
preChecks:
# Workers healthy again: drop the run at $0, no model call.
- name: workers-ready
kubernetes:
apiVersion: apps/v1
kind: Deployment
namespace: payments
labelSelector:
matchLabels:
app: payments-worker
passWhen: 'count > 0 && items.all(d, has(d.status.availableReplicas) && d.status.availableReplicas == d.spec.replicas)'
prompt: |
Explain why the payments queue is backing up. Check worker pods, recent
rollouts and the runbooks connector. Return notify with the likely cause
and one next step, or noop if the backlog is already draining.
outputSchema:
type: object
required: [action, summary]
properties:
action:
type: string
enum: [noop, notify]
summary:
type: string
actions:
- name: post-brief
kind: notify
ceiling: Auto
routes:
- name: post-brief
when: output.action == "notify"
action: post-brief
requires:
connectors: [llm, alertmanager, runbooks]
k8sReadScopes:
- apiGroups: ['', apps]
resources: [pods, events, deployments]
verbs: [get, list]
limits:
maxSteps: 20
maxCostUsd: '0.10'
timeout: 4m
---
apiVersion: faberops.dev/v1beta1
kind: Automation
metadata:
name: payments-queue-brief
namespace: faber
spec:
playbookRef:
name: payments-queue-brief
connectorRefs:
- name: llm
- name: runbooks
notify:
- name: slack
# Shadow mode first: briefs only, nothing posts until you promote it.
trust: ObserveFor a reference, compare with connectors/prometheus, validators/app-container-byo and playbooks/alert-triage. Every field is described in the CRD API reference.
Your own catalog
Keep packs in Git, gate them in CI, ship them as one signed artifact and let every cluster pull the same digest.
faberctl catalog init
Scaffold a working catalog
init writes a catalog repository with a sample playbook, its five offline eval fixtures and a CI workflow. The layout matches faberops/catalog, so any official pack is a template you can copy.
Keep packs versioned in Git beside your infrastructure code so every change goes through normal review.
$ faberctl catalog init ./acme-catalog \ --name acme-catalogacme-catalog/
index.json # written by faberctl catalog build
playbooks/
payments-queue-brief/
pack.yaml # CatalogPack: tier, dependsOn, safety contract
playbook.yaml # Playbook plus Automation template
README.md
evals/ # all five kinds, or validate fails
positive.yaml
negative-noop.yaml
safety-refusal.yaml
degraded-upstream.yaml
regression-bad-diff.yaml
connectors/
signatures/
validators/Gate every pull request
Run the gate the official Catalog uses
validate checks every pack against the embedded v1beta1 CRD schemas, CEL rules, safety contract, RBAC bounds and secret hygiene.
test replays all five offline evals with scripted model turns. Run both in CI so a broken pack never merges.
$ faberctl catalog validate ./acme-catalog$ faberctl catalog test ./acme-catalog$ faberctl catalog validate ./acme-catalog
$ faberctl catalog test ./acme-catalogA signed OCI artifact
Publish one artifact pinned by digest
build writes a deterministic index.json with content digests for every pack. publish pushes the catalog to any OCI v2 registry using FABER_CATALOG_TOKEN.
That token stays separate from the credential Faber uses for its own API, and you can sign the digest with Cosign.
$ faberctl catalog build ./acme-catalog \ --version 2.0.0$ FABER_CATALOG_TOKEN="$OCI_TOKEN" \ faberctl catalog publish ./acme-catalog \ oci://registry.internal/acme-catalog:2.0.0$ faberctl catalog build ./acme-catalog --version 2.0.0
$ FABER_CATALOG_TOKEN="$OCI_TOKEN" faberctl catalog publish ./acme-catalog oci://registry.internal/acme-catalog:2.0.0catalog.sources in Helm values
Add the source to your Helm values
Add the OCI artifact to catalog.sources in Helm values. Proba and GET /api/v1/catalog merge it with the official Catalog.
Until you declare a source, Faber makes zero registry calls. Private registries authenticate via an existing Kubernetes Secret.
$ faberctl catalog search \ --source oci://registry.internal/acme-catalog:2.0.0# values.yaml for oci://ghcr.io/faberops/charts/faber
catalog:
sources:
- oci://ghcr.io/faberops/catalog:v2
- oci://registry.internal/acme-catalog:2.0.0
refreshInterval: 15m
# Secret in the release namespace, key "token". Never a plaintext token here.
registryAuthExistingSecret: faber-catalog-authFlags and Flux OCIRepository pinning with Cosign are in the Catalogs guide and the faberctl catalog reference.