Threat Model
Faber treats LLM outputs, repository contents, pod logs, alert payloads, and PR review comments as untrusted or prompt-injected data. Safety is enforced by deterministic code and isolation boundaries outside the model loop, never by prompt instructions alone.
Trust Boundaries
Section titled “Trust Boundaries”| Plane | Components | Trust Level and Capabilities |
|---|---|---|
| Trusted Control Plane | faber-controller, reconcilers, hard diff gates, forge drivers, persistence, audit logger |
Holds scoped credentials (LLM API key, forge credentials, optional PostgreSQL DSN). Never executes arbitrary repository code. |
| Untrusted Execution Plane | Ephemeral agent-sandbox pods (sandboxd, gVisor recommended in production) |
Executes model-driven file edits and offline validation tools. Holds zero credentials, zero Kubernetes ServiceAccount tokens, and zero network egress. |
| External Interfaces | Web GUI, REST/SSE API, /v1/invoke, /mcp, /webhooks/* |
Protected by optional --auth-mode=oidc or --auth-mode=k8s (TokenReview + SubjectAccessReview) or upstream proxy auth, plus per-policy webhook HMAC/Bearer auth. |
Key Mitigations
Section titled “Key Mitigations”1. Zero-Secret, Zero-Egress Sandboxes
Section titled “1. Zero-Secret, Zero-Egress Sandboxes”- Tier 1 sandbox pods run non-root (
uid 1000),allowPrivilegeEscalation: false, andcapabilities.drop: ["ALL"]. The Helm chart leavessandbox.runtimeClassNameempty by default for compatibility on managed clusters (EKS, GKE, AKS, kind) and recommendssandbox.runtimeClassName=gvisor(runsc) for production kernel hardening. automountServiceAccountToken: falseandenvVarsInjectionPolicy: Disallowedprevent credential injection.SandboxTemplate.spec.networkPolicysets an explicit emptyegress: []list (avoiding defaultManagedrules that could expose private or tailnet100.64.0.0/10CIDRs) and restricts ingress strictly to thefaber-controllerpod on TCP8080and9090.faber-sandboxships offline Kubernetes and GitOps CRD schemas under/usr/local/share/kubeconform-schemasso validation succeeds with zero network access.
2. Least-Privilege Kubernetes RBAC and Secret Isolation
Section titled “2. Least-Privilege Kubernetes RBAC and Secret Isolation”controller-runtimedisables cluster-wide caching forSecretandConfigMapviaDisableFor, issuing direct namespaced reads only in the operator’s watched namespaces.- Multi-tenant deployments can set
rbac.namespaced=truein Helm to eliminate allClusterRoleandClusterRoleBindingresources and restrict controller watches, API endpoints, andSelfSubjectAccessReviewpre-flight checks strictly to the release namespace. K8sWatchManagerrefusesSecretwatches, CRD CEL validation (x-kubernetes-validations) rejectsMaintenancePolicytriggers targeting corev1Secretobjects at admission time, and read-only Kubernetes LLM tools (internal/engine/k8stool) unconditionally rejectSecretaccess.- Cross-namespace references (
repositoryRef,secretRef, andsandbox.templateRef) are blocked by default unless explicitly opted in via--allow-cross-namespace-refs.
3. Hard Operator-Side Diff Policy Gates
Section titled “3. Hard Operator-Side Diff Policy Gates”Before any commit, PR, or WaitingApproval checkpoint is accepted, internal/operator/policy extracts the diff operator-side against the clean baseline and evaluates hard gates inside the trusted controller:
- Hard denylist:
talos/**,.github/workflows/**, andflux/**are unconditionally blocked in operator code alongside any repository or policydenyPaths. - Path allowlist: Policy
diffPolicy.allowPathsconstrains edits strictly to approved directories (for examplekubernetes/apps/**). - Change bounds and symlink rejection:
maxChangedFiles(CEL max1000),maxChangedLines(CEL max50000), and fail-closed rejection of symlinks inside the modified file set. - Secret scanner: High-entropy and known credential patterns in added lines block PR creation when
secretScanis enabled (defaulttrue). - Protected workload guard:
protectedPodSelectorsblocks automated memory request or limit reductions on sensitive workloads such as GPU pods. - Mandatory sandbox validation: At least one validation command must run and every configured validation profile and command must exit
0whenrequireValidationis enabled.
4. Cost, Loop, and Storm Containment
Section titled “4. Cost, Loop, and Storm Containment”- External Governor: Enforces
maxSteps,maxInputTokens,maxOutputTokens,maxCostUsd, wall-clocktimeout, and consecutive identical tool-call loop detection outside the LLM. - Rolling 24h Spend Caps and Circuit Breakers:
--global-max-cost-usd-24h,--namespace-max-cost-usd-24h, and per-policymaxConsecutiveFailureswithcircuitOpenCooldownhalt runaway loops automatically. - Three-Layer Watch Storm Guard: Post-settle live object CEL re-checks, per-policy
maxQueuedRunsqueue caps, and starter CEL exclusions stop cascade storms before LLM or sandbox resources are allocated.
5. Supply Chain, UI Hardening, and Auditability
Section titled “5. Supply Chain, UI Hardening, and Auditability”GET /api/v1/artifacts/{id}downgrades HTML, SVG, and JavaScript MIME types totext/plainwithX-Content-Type-Options: nosniffandContent-Security-Policy: default-src 'none'.- All container images (
ghcr.io/faberops/faber-controller,ghcr.io/faberops/faber-sandbox) and the OCI Helm chart (oci://ghcr.io/faberops/charts/faber) are built from SHA-pinned workflows and signed with keyless Cosign plus SBOM/SLSA provenance. - Governance actions emit structured JSONL records to the immutable audit log (
--audit-log-path) andGET /api/v1/audit.
See SECURITY.md for Cosign verification commands and vulnerability reporting.