Skip to content

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.

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.
  • Tier 1 sandbox pods run non-root (uid 1000), allowPrivilegeEscalation: false, and capabilities.drop: ["ALL"]. The Helm chart leaves sandbox.runtimeClassName empty by default for compatibility on managed clusters (EKS, GKE, AKS, kind) and recommends sandbox.runtimeClassName=gvisor (runsc) for production kernel hardening.
  • automountServiceAccountToken: false and envVarsInjectionPolicy: Disallowed prevent credential injection.
  • SandboxTemplate.spec.networkPolicy sets an explicit empty egress: [] list (avoiding default Managed rules that could expose private or tailnet 100.64.0.0/10 CIDRs) and restricts ingress strictly to the faber-controller pod on TCP 8080 and 9090.
  • faber-sandbox ships offline Kubernetes and GitOps CRD schemas under /usr/local/share/kubeconform-schemas so 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-runtime disables cluster-wide caching for Secret and ConfigMap via DisableFor, issuing direct namespaced reads only in the operator’s watched namespaces.
  • Multi-tenant deployments can set rbac.namespaced=true in Helm to eliminate all ClusterRole and ClusterRoleBinding resources and restrict controller watches, API endpoints, and SelfSubjectAccessReview pre-flight checks strictly to the release namespace.
  • K8sWatchManager refuses Secret watches, CRD CEL validation (x-kubernetes-validations) rejects MaintenancePolicy triggers targeting core v1 Secret objects at admission time, and read-only Kubernetes LLM tools (internal/engine/k8stool) unconditionally reject Secret access.
  • Cross-namespace references (repositoryRef, secretRef, and sandbox.templateRef) are blocked by default unless explicitly opted in via --allow-cross-namespace-refs.

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/**, and flux/** are unconditionally blocked in operator code alongside any repository or policy denyPaths.
  • Path allowlist: Policy diffPolicy.allowPaths constrains edits strictly to approved directories (for example kubernetes/apps/**).
  • Change bounds and symlink rejection: maxChangedFiles (CEL max 1000), maxChangedLines (CEL max 50000), 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 secretScan is enabled (default true).
  • Protected workload guard: protectedPodSelectors blocks 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 0 when requireValidation is enabled.
  • External Governor: Enforces maxSteps, maxInputTokens, maxOutputTokens, maxCostUsd, wall-clock timeout, 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-policy maxConsecutiveFailures with circuitOpenCooldown halt runaway loops automatically.
  • Three-Layer Watch Storm Guard: Post-settle live object CEL re-checks, per-policy maxQueuedRuns queue 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 to text/plain with X-Content-Type-Options: nosniff and Content-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) and GET /api/v1/audit.

See SECURITY.md for Cosign verification commands and vulnerability reporting.