Getting started¶
Patchy turns security findings into reviewed pull requests. Alerts arrive by webhook from GitHub code scanning,
Google Cloud Security Command Center, Wiz, or your own scanner through the
generic integration. They accumulate into Finding custom resources (CRs) for an
hour, and each Finding is projected to a GitHub tracking issue. Patchy adds ownership context, and then a sandboxed
coding agent investigates each finding:
- False positives are dismissed.
- Work that only a human can do is handed to the repository owner.
- High-confidence fixes are queued in priority order, attempted automatically, and opened as pull requests for human review.
The CRs carry all of the state. The Kubernetes API is the only state store.
Deploying the stack takes three steps, each with its own page:
- Create the GitHub App: register the App, grant five repository permissions, subscribe to four webhook events, and collect the App ID, private key and webhook secret.
- Install with Helm: create the two Kubernetes Secrets, install the chart from the OCI registry, and
switch the pipeline on with an
Integrationand aForge. (A kustomize tree renders the same stack if you prefer.) - Verify the pipeline: follow one finding from alert to pull request.
What you need¶
| Prerequisite | Why |
|---|---|
| Kubernetes ≥ 1.34 | The chart's kubeVersion floor (the oldest line not yet end-of-life); both namespaces enforce the restricted Pod Security Standard. |
| Helm ≥ 3.8 | OCI registry support for helm install oci://…. |
| GitHub org admin | To register the GitHub App and install it on the repositories patchy should watch. |
| A finding source | GitHub code scanning (GHAS / CodeQL) on the watched repositories is the path this guide follows; other sources plug in the same way. |
| A model credential | An Anthropic API key or claude setup-token OAuth token by default; Amazon Bedrock, Google Vertex AI, Microsoft Foundry, or OpenAI and Azure OpenAI for the codex runner also work. See Models and credentials. |
| Inbound HTTPS | GitHub must reach the integration-controller's /github/webhooks. Enable the chart's webhook.ingress or webhook.httpRoute. |
Hostname-level egress needs Cilium, GKE Dataplane V2 or Istio
The chart always renders baseline NetworkPolicy objects, but plain L3/L4 policies cannot match hostnames. The
claude and codex runners need no hostname layer at all. Their model traffic goes through the in-cluster egress
credential broker, so all their outbound traffic stays inside the cluster. If you want a hostname layer (it removes
the base policy's broad 443 rule), agent.networkPolicy.mode selects the dialect your infrastructure enforces:
cilium, gke or istio. It defaults to auto, which detects the dialect from the cluster itself. The allowlist
has no GitHub hosts on purpose, because the agent pod never talks to a forge. See the
isolation model for what each layer requires.
The moving parts you will deploy¶
| Component | Runs as | Concern |
|---|---|---|
integration-controller |
Deployment (1 replica) | The one internet-facing entry point: webhooks in, Findings ingested, tracking issues projected |
source-controller |
Deployment (1 replica) | Forge/Repository reconcilers; SHA-pinned repository tarballs served to the agents |
context-controller |
Deployment (1 replica) | Enhance freshly opened findings with ownership and infrastructure context |
investigation-controller |
Deployment (1 replica) | Gate eligible findings, run analysis agent Jobs, route the verdicts |
remediation-controller |
Deployment (1 replica) | Priority-ordered remediation Jobs, branch push and pull requests, rollup stats and the TTL |
egress-broker |
Deployment (1 replica) | Holds the model credential; every agent model request goes through it |
status-server |
Deployment (1 replica) | The status page: findings, metrics and human actions in a browser |
agent-runner |
Ephemeral Job per attempt | In-pod coding-agent runtime: investigate or remediate with claude -p or codex exec |
The optional evaluation-controller is off by default. Every Deployment runs a single
replica. The controllers use strategy: Recreate, and their leader-election Lease protects against a broken rollout. It
does not let you scale. The status server and the egress broker use RollingUpdate, so they stay up during an upgrade.
Do not scale the Deployments.