patchy

module
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: MIT

README

patchy

An end-to-end workflow for triaging and remediating security findings from multiple sources, using Kubernetes custom resources as the state machine and GitHub issues as a human-facing projection.

Findings (GitHub Advanced Security / CodeQL first) arrive via webhook and accumulate into Finding resources for an hour, each projected to a GitHub tracking issue. Findings are enhanced with ownership context, then a sandboxed coding agent investigates each one — false positives are dismissed, low-confidence or human-only work is handed to the repository owner, and high-confidence remediations are queued in priority order, attempted automatically, and opened as pull requests for human review. Completed findings expire on a TTL while FindingRollup resources keep the all-time statistics.

Components

Binary Concern
integration-controller The one internet-facing entry point: validate provider webhooks, ingest alerts into Findings, project tracking issues, apply human signals
source-controller Forge/Repository reconcilers: resolve credentials, pin the head SHA, serve the repository tarball agents fetch credential-lessly
context-controller Enhance freshly opened Findings with CMDB ownership / infrastructure context
investigation-controller Gate eligible findings, run analysis agent Jobs, route the verdicts
remediation-controller Queue admission, priority-ordered remediation Jobs, changeset push + pull requests, rollup statistics and the finding TTL
agent-runner In-pod coding-agent runtime: investigate or remediate via claude -p
status-server The human-facing status page: findings/rollup projection, OIDC sign-in, the RBAC-gated actions
patchy The workstation CLI: list, review and act on findings over your own kubeconfig — never through a controller

See DESIGN.md for the full requirements and the state machine, and AGENTS.md for a map of the repository. Full documentation — getting started, configuration and deployment references — lives at oss.bitwisemedia.uk/patchy (source under docs/; build locally with mise run serve).

Building

The toolchain comes from the .mise/ submodule (mise provisions the pinned tools):

git submodule update --init
make build   # every binary into bin/
make test    # unit tests with race + coverage
make lint    # golangci-lint, govulncheck, license headers, prose linters
make pr      # the full local gate before a pull request

Testing

make test    # unit tests (race + coverage)
make e2e     # envtest + the real binaries, driven by recorded webhooks against an in-memory GitHub

Deploying

Container images and kustomize manifests live in deploy/; deploy/README.md covers the GitHub App setup, the secrets and custom resources to create, and how the agent's isolation actually works.

kubectl apply -k deploy/kustomize/overlays/dev

Helm charts rendering the same stack are published to OCI on every release — charts/patchy is the stack; charts/patchy-config carries the Integration/Forge custom resources, installed as a second release once the CRDs exist:

helm install patchy oci://ghcr.io/bitwise-media-group/patchy/charts/patchy --namespace patchy --create-namespace

The CLI

The workstation CLI ships separately from the cluster components — as a Homebrew cask, or as the patchy-cli release archive for anything brew does not cover:

brew install bitwise-media-group/tap/patchy

It talks to the Kubernetes API with your own kubeconfig, so what you can do is exactly what your RBAC allows. The cask also installs kubectl-patchy, so every command works as kubectl patchy …, with shell completion for both spellings. See docs/cli.md for the tour and docs/cli/patchy.md for the generated command reference.

Status

All components are implemented and tested end to end. The context enhancer is a deliberate placeholder — the plugin seam (pkg/enhance) and a YAML-backed static enhancer ship, and a real CMDB integration implements the same interface.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 defines the patchy.bitwisemedia.uk/v1alpha1 API: the custom resources that carry finding state through the pipeline.
Package v1alpha1 defines the patchy.bitwisemedia.uk/v1alpha1 API: the custom resources that carry finding state through the pipeline.
cmd
agent-runner command
Command agent-runner is the coding-agent runtime that executes inside the ephemeral Job pod: it drives the classification and remediation harness stages against a pre-cloned repository and reports results as an event stream on stdout.
Command agent-runner is the coding-agent runtime that executes inside the ephemeral Job pod: it drives the classification and remediation harness stages against a pre-cloned repository and reports results as an event stream on stdout.
context-controller command
Command context-controller reacts to newly opened security-finding issues and enhances their context from first/third parties (CMDB ownership, associated infrastructure) before remediation picks them up.
Command context-controller reacts to newly opened security-finding issues and enhances their context from first/third parties (CMDB ownership, associated infrastructure) before remediation picks them up.
egress-broker command
Command egress-broker serves the egress credential broker: the reverse proxy agent pods send all model-API traffic through.
Command egress-broker serves the egress credential broker: the reverse proxy agent pods send all model-API traffic through.
evaluation-controller command
Command evaluation-controller executes remote skill evaluations submitted by evolve: it hosts the bearer-authenticated HTTP API (workspace upload, submission, SSE monitoring, cancellation), expands each submission into EvaluationUnit children, schedules them through the sandboxed agent-Job machinery with bounded concurrency, collects each pod's result stream onto CR statuses and per-unit results ConfigMaps, and expires finished evaluations on a TTL.
Command evaluation-controller executes remote skill evaluations submitted by evolve: it hosts the bearer-authenticated HTTP API (workspace upload, submission, SSE monitoring, cancellation), expands each submission into EvaluationUnit children, schedules them through the sandboxed agent-Job machinery with bounded concurrency, collects each pod's result stream onto CR statuses and per-unit results ConfigMaps, and expires finished evaluations on a TTL.
integration-controller command
Command integration-controller is the edge between patchy and its external systems: it terminates the provider webhook paths (the cluster's single internet-facing entry point), turns scanner deliveries into Finding resources, projects Findings as tracking issues, and applies human signals (approvals, closures, merges) back onto Findings.
Command integration-controller is the edge between patchy and its external systems: it terminates the provider webhook paths (the cluster's single internet-facing entry point), turns scanner deliveries into Finding resources, projects Findings as tracking issues, and applies human signals (approvals, closures, merges) back onto Findings.
investigation-controller command
Command investigation-controller turns enhanced Findings into analysis agent runs: it gates on the accumulation window and minimum age, resolves forge coverage, materializes the SHA-pinned repository artifact, runs the investigation agent Job (bounded concurrency, severity-priority order), and routes each verdict — queue for remediation, hold for approval, dismiss, or hand to humans.
Command investigation-controller turns enhanced Findings into analysis agent runs: it gates on the accumulation window and minimum age, resolves forge coverage, materializes the SHA-pinned repository artifact, runs the investigation agent Job (bounded concurrency, severity-priority order), and routes each verdict — queue for remediation, hold for approval, dismiss, or hand to humans.
kubectl-patchy command
Command kubectl-patchy is the kubectl plugin shim: it resolves the real patchy binary — first beside this executable, then on PATH — and execs it with the same arguments.
Command kubectl-patchy is the kubectl plugin shim: it resolves the real patchy binary — first beside this executable, then on PATH — and execs it with the same arguments.
patchy command
Command patchy is the workstation client for the patchy pipeline: it lists, inspects, reviews and acts on the custom resources that carry the state machine.
Command patchy is the workstation client for the patchy pipeline: it lists, inspects, reviews and acts on the custom resources that carry the state machine.
patchy/internal/browser
Package browser opens a URL in the user's default browser.
Package browser opens a URL in the user's default browser.
patchy/internal/cli
Package cli builds the patchy command tree.
Package cli builds the patchy command tree.
patchy/internal/config
Package config loads the layered patchy configuration the cluster-free command groups (dev, mirror, build) share: one file shape, merged from up to seven locations, least to most preferred —
Package config loads the layered patchy configuration the cluster-free command groups (dev, mirror, build) share: one file shape, merged from up to seven locations, least to most preferred —
patchy/internal/devharness
Package devharness is the engine behind `patchy dev`: a local, in-memory stand-in for the pipeline that generic-integration authors test against.
Package devharness is the engine behind `patchy dev`: a local, in-memory stand-in for the pipeline that generic-integration authors test against.
patchy/internal/kubecfg
Package kubecfg connects the CLI to a cluster.
Package kubecfg connects the CLI to a cluster.
patchy/internal/printer
Package printer turns results into output.
Package printer turns results into output.
patchy/internal/render
Package render turns one patchy resource into a printer document.
Package render turns one patchy resource into a printer document.
patchy/internal/resource
Package resource is the noun half of the patchy grammar: it maps what a user types (finding, findings, fnd) onto the kind, list type and API resource name the command then works with.
Package resource is the noun half of the patchy grammar: it maps what a user types (finding, findings, fnd) onto the kind, list type and API resource name the command then works with.
patchy/internal/tools/docgen command
Command docgen renders the patchy CLI reference from the cobra command tree, one page per command, for humans, search engines and LLMs.
Command docgen renders the patchy CLI reference from the cobra command tree, one page per command, for humans, search engines and LLMs.
remediation-controller command
Command remediation-controller picks up context-enhanced security-finding issues, runs the classification/remediation coding agent in an ephemeral Kubernetes Job, and performs every GitHub side effect on its behalf — issue updates, alert dismissal, branch pushes, and pull requests.
Command remediation-controller picks up context-enhanced security-finding issues, runs the classification/remediation coding agent in an ephemeral Kubernetes Job, and performs every GitHub side effect on its behalf — issue updates, alert dismissal, branch pushes, and pull requests.
source-controller command
Command source-controller receives security findings from external sources (GitHub Advanced Security first) via GitHub webhooks and accumulates them into GitHub issues — the pipeline's state machine.
Command source-controller receives security findings from external sources (GitHub Advanced Security first) via GitHub webhooks and accumulates them into GitHub issues — the pipeline's state machine.
status-server command
Command status-server serves the patchy status page: a web dashboard over the Finding state machine and the FindingRollup statistics, with SSO sign-in and RBAC-gated approve/suspend/resume actions.
Command status-server serves the patchy status page: a web dashboard over the Finding state machine and the FindingRollup statistics, with SSO sign-in and RBAC-gated approve/suspend/resume actions.
internal
action
Package action owns the human-action vocabulary and the state-machine gating behind it: which verbs exist, and what each one is allowed to do to a Finding's spec in a given phase.
Package action owns the human-action vocabulary and the state-machine gating behind it: which verbs exist, and what each one is allowed to do to a Finding's spec in a given phase.
agentresult
Package agentresult converts agent envelope payloads into the CRD status shapes — the one place the float-bearing wire format meets the no-float structural schemas.
Package agentresult converts agent envelope payloads into the CRD status shapes — the one place the float-bearing wire format meets the no-float structural schemas.
agentrun
Package agentrun orchestrates the coding-agent stage inside the Job pod: render the prompt, drive the harness under a token-budget kill switch, and report the stage as an envelope event on stdout.
Package agentrun orchestrates the coding-agent stage inside the Job pod: render the prompt, drive the harness under a token-budget kill switch, and report the stage as an envelope event on stdout.
ansi
Package ansi strips terminal escape sequences from captured agent output.
Package ansi strips terminal escape sequences from captured agent output.
artifact
Package artifact stores and serves the SHA-pinned repository tarballs that source-controller produces and agent jobs fetch.
Package artifact stores and serves the SHA-pinned repository tarballs that source-controller produces and agent jobs fetch.
awsinv
Package awsinv reads an AWS resource's tags from an organization-level inventory.
Package awsinv reads an AWS resource's tags from an organization-level inventory.
azureinv
Package azureinv reads an Azure resource's tags from Azure Resource Graph.
Package azureinv reads an Azure resource's tags from Azure Resource Graph.
broker
Package broker is the egress credential broker's engine: a reconciler-less reverse proxy that agent pods address directly (base-URL env overrides in the pod point the claude CLI at it) and that injects or signs the model credential outbound.
Package broker is the egress credential broker's engine: a reconciler-less reverse proxy that agent pods address directly (base-URL env overrides in the pod point the claude CLI at it) and that injects or signs the model credential outbound.
build
Package build is the engine behind `patchy build`: it builds the first-party artifacts the patchy config's build: block lists — Dockerfile images and Flux manifest directories — scans them before anything is pushed, publishes them to every configured registry, and signs them with that registry's signing block.
Package build is the engine behind `patchy build`: it builds the first-party artifacts the patchy config's build: block lists — Dockerfile images and Flux manifest directories — scans them before anything is pushed, publishes them to every configured registry, and signs them with that registry's signing block.
build/buildx
Package buildx drives `docker buildx build` for patchy build: it builds the argv for one image entry and runs it through the same tool-runner seam the scanners use, exporting an OCI layout directory instead of loading into a daemon or pushing — nothing reaches a registry until the scan has passed.
Package buildx drives `docker buildx build` for patchy build: it builds the argv for one image entry and runs it through the same tool-runner seam the scanners use, exporting an OCI layout directory instead of loading into a daemon or pushing — nothing reaches a registry until the scan has passed.
build/expand
Package expand substitutes environment references into build tag, arg and annotation templates.
Package expand substitutes environment references into build tag, arg and annotation templates.
build/fluxartifact
Package fluxartifact packages a directory of Flux manifests as a Flux OCI artifact — the shape `flux push artifact` produces and an OCIRepository source consumes: an OCI image manifest whose config is application/vnd.cncf.flux.config.v1+json ({}) and whose single layer is the tree as application/vnd.cncf.flux.content.v1.tar+gzip, annotated with the source URL and revision.
Package fluxartifact packages a directory of Flux manifests as a Flux OCI artifact — the shape `flux push artifact` produces and an OCIRepository source consumes: an OCI image manifest whose config is application/vnd.cncf.flux.config.v1+json ({}) and whose single layer is the tree as application/vnd.cncf.flux.content.v1.tar+gzip, annotated with the source URL and revision.
cli
Package cli holds the command plumbing shared by every patchy binary: the conventional cobra root command and the signal-aware execution wrapper.
Package cli holds the command plumbing shared by every patchy binary: the conventional cobra root command and the signal-aware execution wrapper.
controller/context
Package context is the context-controller's engine: it reacts to freshly opened Findings, runs the enhancer chain (CMDB ownership, infrastructure context — pkg/enhance plugins), records each contribution as an enrichment on the Finding's status, and advances Opened → Enhanced.
Package context is the context-controller's engine: it reacts to freshly opened Findings, runs the enhancer chain (CMDB ownership, infrastructure context — pkg/enhance plugins), records each contribution as an enrichment on the Finding's status, and advances Opened → Enhanced.
controller/evaluation
Package evaluation runs the remote-evaluation engine: the gate reconciler expands each immutable Evaluation into its EvaluationUnit children, the unit reconciler schedules them through the sandboxed agent-Job machinery with bounded concurrency and collects each pod's EVOLVE-EVENT stream onto unit statuses (full-fidelity entries into per-unit ConfigMaps), and the TTL loop deletes finished evaluations after their retention.
Package evaluation runs the remote-evaluation engine: the gate reconciler expands each immutable Evaluation into its EvaluationUnit children, the unit reconciler schedules them through the sandboxed agent-Job machinery with bounded concurrency and collects each pod's EVOLVE-EVENT stream onto unit statuses (full-fidelity entries into per-unit ConfigMaps), and the TTL loop deletes finished evaluations after their retention.
controller/integration
Package integration is the integration-controller's engine: the edge between patchy and its external systems, driven by Integration resources.
Package integration is the integration-controller's engine: the edge between patchy and its external systems, driven by Integration resources.
controller/investigation
Package investigation is the investigation-controller's engine: it turns Enhanced findings into analysis agent runs and routes their verdicts.
Package investigation is the investigation-controller's engine: it turns Enhanced findings into analysis agent runs and routes their verdicts.
controller/remediation
Package remediation is the remediation-controller's engine — three reconcilers over the Finding/Remediation kinds:
Package remediation is the remediation-controller's engine — three reconcilers over the Finding/Remediation kinds:
controller/rollup
Package rollup maintains the all-time FindingRollup statistics and the TTL deletion of completed findings — causally ordered: nothing is deleted before its spend is aggregated into every scope.
Package rollup maintains the all-time FindingRollup statistics and the TTL deletion of completed findings — causally ordered: nothing is deleted before its spend is aggregated into every scope.
controller/source
Package source is the source-controller's engine: the reconcilers for the Forge and Repository kinds.
Package source is the source-controller's engine: the reconcilers for the Forge and Repository kinds.
enhancers
Package enhancers holds the built-in pkg/enhance implementations: googlecloud (repository resolution from a Google Cloud resource's ownership labels, with dynamicgooglecloud reading its configuration off the google-cloud Integration per enhancement) and staticfile (a YAML-backed repo→ownership map that doubles as the fake CMDB for development and e2e).
Package enhancers holds the built-in pkg/enhance implementations: googlecloud (repository resolution from a Google Cloud resource's ownership labels, with dynamicgooglecloud reading its configuration off the google-cloud Integration per enhancement) and staticfile (a YAML-backed repo→ownership map that doubles as the fake CMDB for development and e2e).
envelope
Package envelope is the versioned event contract between agent-runner and the job controllers: one JSON event per line on the runner's stdout, prefixed so it survives interleaving with any other output.
Package envelope is the versioned event contract between agent-runner and the job controllers: one JSON event per line on the runner's stdout, prefixed so it survives interleaving with any other output.
evalapi
Package evalapi is the evolve-facing HTTP surface of the evaluation controller: bearer-authenticated workspace upload (streamed through to source-controller's blob cache), submission, snapshot, SSE monitoring, and cancellation, speaking the pkg/evaluation wire contract.
Package evalapi is the evolve-facing HTTP surface of the evaluation controller: bearer-authenticated workspace upload (streamed through to source-controller's blob cache), submission, snapshot, SSE monitoring, and cancellation, speaking the pkg/evaluation wire contract.
evalresults
Package evalresults persists an evaluation unit's full-fidelity result entry — the opaque JSON document the in-pod client emitted — in a per-unit ConfigMap, gzip-compressed under the 1 MiB object cap.
Package evalresults persists an evaluation unit's full-fidelity result entry — the opaque JSON document the in-pod client emitted — in a per-unit ConfigMap, gzip-compressed under the 1 MiB object cap.
forge
Package forge resolves a finding's repository URL to the Forge custom resource whose credentials may act on it, and mints per-operation scoped tokens from that Forge's secret.
Package forge resolves a finding's repository URL to the Forge custom resource whose credentials may act on it, and mints per-operation scoped tokens from that Forge's secret.
gcpasset
Package gcpasset reads a Google Cloud resource's labels through Cloud Asset Inventory.
Package gcpasset reads a Google Cloud resource's labels through Cloud Asset Inventory.
generic
Package generic implements the generic integration's behavior over the wire contract published in pkg/generic: the validating source handler that turns an inbound findings delivery into pkg/source Findings, and the signed outbound HTTP client behind both the verdict resolver and the context-enhancer call.
Package generic implements the generic integration's behavior over the wire contract published in pkg/generic: the validating source handler that turns an inbound findings delivery into pkg/source Findings, and the signed outbound HTTP client behind both the verdict resolver and the context-enhancer call.
ghas
Package ghas implements the pkg/source plugin for GitHub Advanced Security code-scanning alerts (CodeQL first): it consumes code_scanning_alert webhook deliveries, fetches the full alert for rule help and location detail, and normalizes it into a source.Finding — extracting CWE identifiers from CodeQL rule tags as the advisory categorization.
Package ghas implements the pkg/source plugin for GitHub Advanced Security code-scanning alerts (CodeQL first): it consumes code_scanning_alert webhook deliveries, fetches the full alert for rule help and location detail, and normalizes it into a source.Finding — extracting CWE identifiers from CodeQL rule tags as the advisory categorization.
ghclient
Package ghclient is patchy's GitHub REST client: GitHub App and personal-access-token authentication, installation-scoped clients and short-lived scoped tokens, and a narrow, fake-able surface (IssueStore, AlertStore, RepoStore) over the handful of endpoints the controllers use.
Package ghclient is patchy's GitHub REST client: GitHub App and personal-access-token authentication, installation-scoped clients and short-lived scoped tokens, and a narrow, fake-able surface (IssueStore, AlertStore, RepoStore) over the handful of endpoints the controllers use.
ghpush
Package ghpush applies an agent's changeset to GitHub through the Git Data API.
Package ghpush applies an agent's changeset to GitHub through the Git Data API.
ghsecret
Package ghsecret turns credential Secrets referenced by Forge and Integration resources into GitHub clients.
Package ghsecret turns credential Secrets referenced by Forge and Integration resources into GitHub clients.
harness
Package harness abstracts the coding-agent CLIs patchy drives.
Package harness abstracts the coding-agent CLIs patchy drives.
integrationcap
Package integrationcap selects Integrations by the capability they provide.
Package integrationcap selects Integrations by the capability they provide.
jobs
Package jobs creates and observes the ephemeral Kubernetes Jobs that run agent-runner: one Job per Investigation/Remediation attempt, deterministically named, labelled by kind/owner/finding (the two job controllers share the agents namespace and filter on the kind label), and garbage collected via TTL plus an owner-referenced per-Job Secret.
Package jobs creates and observes the ephemeral Kubernetes Jobs that run agent-runner: one Job per Investigation/Remediation attempt, deterministically named, labelled by kind/owner/finding (the two job controllers share the agents namespace and filter on the kind label), and garbage collected via TTL plus an owner-referenced per-Job Secret.
kube
Package kube is the shared controller-runtime scaffolding: the scheme with every API group the controllers touch, manager construction honoring the --kubeconfig flag, leader election, and the logr→slog bridge.
Package kube is the shared controller-runtime scaffolding: the scheme with every API group the controllers touch, manager construction honoring the --kubeconfig flag, leader election, and the logr→slog bridge.
labels
Package labels renders the human-facing security-* label vocabulary the issue projection stamps on tracking issues: source, advisories, the finding's phase, severity, priority, and the investigation's verdict.
Package labels renders the human-facing security-* label vocabulary the issue projection stamps on tracking issues: source, advisories, the finding's phase, severity, priority, and the investigation's verdict.
loadgen
Package loadgen generates deterministic synthetic Finding, FindingRollup, and Investigation resources for benchmarks and load tests.
Package loadgen generates deterministic synthetic Finding, FindingRollup, and Investigation resources for benchmarks and load tests.
mirror
Package mirror is the engine behind `patchy mirror`: vendored mirroring of upstream helm charts and OCI artifacts into a platform registry, with review-gated updates, upstream provenance verification, vulnerability scanning and signing of everything published.
Package mirror is the engine behind `patchy mirror`: vendored mirroring of upstream helm charts and OCI artifacts into a platform registry, with review-gated updates, upstream provenance verification, vulnerability scanning and signing of everything published.
mirror/allowlist
Package allowlist derives an entry's allowlist (a mirror entry's security/allowlist.yaml, a build entry's security/allowlists/<name>.yaml) from the blocking findings of a fresh scan, and lints any allowlist against the accepted-risk policy — mirror and build share both halves, so the two apply identical rules.
Package allowlist derives an entry's allowlist (a mirror entry's security/allowlist.yaml, a build entry's security/allowlists/<name>.yaml) from the blocking findings of a fresh scan, and lints any allowlist against the accepted-risk policy — mirror and build share both halves, so the two apply identical rules.
mirror/discover
Package discover finds every container image a rendered chart references, in four passes: pod-spec container lists (containers, initContainers, ephemeralContainers — as sequences at any depth, which skips the CRD schemas where those keys hold maps), operator-style top-level spec.image scalars, a conservative regex sweep over ConfigMap data for image-shaped strings (embedded pod templates), and the manifest-declared extras ({appVersion} expanded from the vendored chart).
Package discover finds every container image a rendered chart references, in four passes: pod-spec container lists (containers, initContainers, ephemeralContainers — as sequences at any depth, which skips the CRD schemas where those keys hold maps), operator-style top-level spec.image scalars, a conservative regex sweep over ConfigMap data for image-shaped strings (embedded pod templates), and the manifest-declared extras ({appVersion} expanded from the vendored chart).
mirror/distro
Package distro derives extra mirrored images from a distribution manifests artifact, for charts whose workload images are deployed by an operator from manifests helm never renders — so image discovery cannot see them, and hand-pinned extras drift the moment upstream cuts a release.
Package distro derives extra mirrored images from a distribution manifests artifact, for charts whose workload images are deployed by an operator from manifests helm never renders — so image discovery cannot see them, and hand-pinned extras drift the moment upstream cuts a release.
mirror/helmchart
Package helmchart moves chart archives between upstreams, the vendored tree and the mirror registry.
Package helmchart moves chart archives between upstreams, the vendored tree and the mirror registry.
mirror/imageref
Package imageref manipulates container image references as strings: it expands docker shorthand the way container runtimes do, splits a reference into repository, tag and digest (tolerating registry ports and pinned digests), applies source-registry rewrites, and matches shell-style glob patterns against references.
Package imageref manipulates container image references as strings: it expands docker shorthand the way container runtimes do, splits a reference into repository, tag and digest (tolerating registry ports and pinned digests), applies source-registry rewrites, and matches shell-style glob patterns against references.
mirror/ocireg
Package ocireg is the one registry seam mirror and build share: thin wrappers over go-containerregistry for the operations the engines need — digest resolution, tag listing, config inspection, byte-preserving copies, existence probes, raw pulls, and pushes of locally built images and indexes.
Package ocireg is the one registry seam mirror and build share: thin wrappers over go-containerregistry for the operations the engines need — digest resolution, tag listing, config inspection, byte-preserving copies, existence probes, raw pulls, and pushes of locally built images and indexes.
mirror/render
Package render produces an entry's rendered/manifests.yaml: the vendored chart rendered with its discovery values, exactly as `helm template <name> <vendor dir> --namespace ...
Package render produces an entry's rendered/manifests.yaml: the vendored chart rendered with its discovery values, exactly as `helm template <name> <vendor dir> --namespace ...
mirror/scan
Package scan finds vulnerabilities in images through pluggable scanners — osv-scanner and grype, both shell-outs — either by registry reference (ImageScanner: the mirror's locked images) or over a local docker archive (ArchiveScanner: a fresh build, scanned before anything is pushed).
Package scan finds vulnerabilities in images through pluggable scanners — osv-scanner and grype, both shell-outs — either by registry reference (ImageScanner: the mirror's locked images) or over a local docker archive (ArchiveScanner: a fresh build, scanned before anything is pushed).
mirror/semverpick
Package semverpick selects versions from candidate lists: the newest stable release satisfying a constraint (chart and artifact update checks), and the newest tag that has soaked past a cooldown window (tracked-image picks, where a just-published tag can still be yanked or hot-fixed).
Package semverpick selects versions from candidate lists: the newest stable release satisfying a constraint (chart and artifact update checks), and the newest tag that has soaked past a cooldown window (tracked-image picks, where a just-published tag can still be yanked or hot-fixed).
mirror/sign
Package sign signs published OCI artifacts: keylessly (ambient OIDC — the CI workflow's identity — through Fulcio, with a public transparency log entry) or with a cloud KMS key (gcpkms://, awskms://, azurekms://).
Package sign signs published OCI artifacts: keylessly (ambient OIDC — the CI workflow's identity — through Fulcio, with a public transparency log entry) or with a cloud KMS key (gcpkms://, awskms://, azurekms://).
mirror/spec
Package spec defines the mirror store's on-disk contract: the per-entry manifest.yaml files (intent), the lock files (facts), the generated images.extra.yaml sidecar, and the CVE allowlists — plus the typed blocks the layered patchy config shares between mirror and build (registries, signing, and the one scan block every entry overrides field by field).
Package spec defines the mirror store's on-disk contract: the per-entry manifest.yaml files (intent), the lock files (facts), the generated images.extra.yaml sidecar, and the CVE allowlists — plus the typed blocks the layered patchy config shares between mirror and build (registries, signing, and the one scan block every entry overrides field by field).
mirror/verify
Package verify checks OCI artifact signatures for the mirror: upstream provenance per a manifest's verifyUpstream rules (keyless with an identity regexp, or a published public key), and the mirror's own signatures (the exact certificate identity or KMS key it signs with — the publish-idempotency self-check).
Package verify checks OCI artifact signatures for the mirror: upstream provenance per a manifest's verifyUpstream rules (keyless with an identity regexp, or a published public key), and the mirror's own signatures (the exact certificate identity or KMS key it signs with — the publish-idempotency self-check).
mirror/yamledit
Package yamledit performs surgical edits on YAML files that humans and other tools also write: it uses the YAML AST only to LOCATE a scalar, then byte-splices exactly that token, never re-encoding the document.
Package yamledit performs surgical edits on YAML files that humans and other tools also write: it uses the YAML AST only to LOCATE a scalar, then byte-splices exactly that token, never re-encoding the document.
model
Package model defines the model vendors (Anthropic, OpenAI) and their canonical models: provider-qualified ids, the harnesses each model can be driven by, and per-token pricing.
Package model defines the model vendors (Anthropic, OpenAI) and their canonical models: provider-qualified ids, the harnesses each model can be driven by, and per-token pricing.
priority
Package priority maps investigation results onto the 0–100 scheduling priority remediation runs compete with.
Package priority maps investigation results onto the 0–100 scheduling priority remediation runs compete with.
provider
Package provider is the pure logic behind brokered claude runners: which gateway environment a model provider (anthropic, bedrock, vertex, foundry) needs in the agent pod, and how canonical model ids translate to the provider-specific ids the claude CLI's --model flag expects there.
Package provider is the pure logic behind brokered claude runners: which gateway environment a model provider (anthropic, bedrock, vertex, foundry) needs in the agent pod, and how canonical model ids translate to the provider-specific ids the claude CLI's --model flag expects there.
report
Package report defines the two agent-written report contracts — the investigation report and the remediation report — as YAML frontmatter schemas with strict, validated parsing.
Package report defines the two agent-written report contracts — the investigation report and the remediation report — as YAML frontmatter schemas with strict, validated parsing.
runner
Package runner executes CommandSpecs.
Package runner executes CommandSpecs.
runnercfg
Package runnercfg wires the per-harness agent-runner fleet from controller flags: the image and credential Secret for each harness, which harnesses a deployment enables, and the startup validation that every allowlisted model can actually be run.
Package runnercfg wires the per-harness agent-runner fleet from controller flags: the image and credential Secret for each harness, which harnesses a deployment enables, and the startup validation that every allowlisted model can actually be run.
scc
Package scc is the Google Cloud Security Command Center source: it turns a Pub/Sub push delivery into patchy Findings.
Package scc is the Google Cloud Security Command Center source: it turns a Pub/Sub push delivery into patchy Findings.
schedule
Package schedule ranks pending agent runs for bounded-concurrency slot grants.
Package schedule ranks pending agent runs for bounded-concurrency slot grants.
stats
Package stats is the pure arithmetic behind the all-time FindingRollup objects: micro-USD cost parsing, per-scope delta computation, and exactly-once ledger application.
Package stats is the pure arithmetic behind the all-time FindingRollup objects: micro-USD cost parsing, per-scope delta computation, and exactly-once ledger application.
telemetry
Package telemetry wires OpenTelemetry tracing, metrics, and structured logging into the patchy binaries and owns their lifecycle.
Package telemetry wires OpenTelemetry tracing, metrics, and structured logging into the patchy binaries and owns their lifecycle.
templates
Package templates renders every piece of markdown patchy writes — issue bodies, comments, pull-request bodies, and the agent-facing handoff files — from embedded text/templates, so the artifacts stay consistent across the estate.
Package templates renders every piece of markdown patchy writes — issue bodies, comments, pull-request bodies, and the agent-facing handoff files — from embedded text/templates, so the artifacts stay consistent across the estate.
transcript
Package transcript is the agent conversation contract: the harness-neutral turn vocabulary every agent CLI's stream is projected onto, the prefixed JSONL line format that carries turns out of the agent pod on stdout, and the gzipped ConfigMap the owning controller persists them into.
Package transcript is the agent conversation contract: the harness-neutral turn vocabulary every agent CLI's stream is projected onto, the prefixed JSONL line format that carries turns out of the agent pod on stdout, and the gzipped ConfigMap the owning controller persists them into.
transcriptstore
Package transcriptstore persists an agent run's conversation and reads it back: one gzipped-JSONL ConfigMap per run, owned by the run that produced it.
Package transcriptstore persists an agent run's conversation and reads it back: one gzipped-JSONL ConfigMap per run, owned by the run that produced it.
version
Package version exposes build metadata stamped in via -ldflags.
Package version exposes build metadata stamped in via -ldflags.
web
Package web is the status-server backend: the embedded status page SPA, a JSON projection of Findings and FindingRollups, the three human actions (approve, suspend, resume), and an SSE change signal that tells open browsers to refetch.
Package web is the status-server backend: the embedded status page SPA, a JSON projection of Findings and FindingRollups, the three human actions (approve, suspend, resume), and an SSE change signal that tells open browsers to refetch.
web/auth
Package auth resolves who is making a status-server request.
Package auth resolves who is making a status-server request.
web/authz
Package authz resolves what an identity may do to findings.
Package authz resolves what an identity may do to findings.
webhook
Package webhook is the provider-webhook HTTP server the integration-controller embeds: one listener, one bounded worker pool, and one delivery-ID dedup window shared by every provider route, plus health/readiness endpoints with graceful drain.
Package webhook is the provider-webhook HTTP server the integration-controller embeds: one listener, one bounded worker pool, and one delivery-ID dedup window shared by every provider route, plus health/readiness endpoints with graceful drain.
wiz
Package wiz is the Wiz source: it turns Wiz automation-rule webhook deliveries into patchy Findings.
Package wiz is the Wiz source: it turns Wiz automation-rule webhook deliveries into patchy Findings.
wizapi
Package wizapi is a minimal Wiz GraphQL API client, holding exactly what the write-back seam needs: an OAuth2 client-credentials token source and the updateIssue mutation that rejects an issue with a note.
Package wizapi is a minimal Wiz GraphQL API client, holding exactly what the write-back seam needs: an OAuth2 client-credentials token source and the updateIssue mutation that rejects an issue with a note.
pkg
enhance
Package enhance is patchy's public plugin seam for context enhancement.
Package enhance is patchy's public plugin seam for context enhancement.
evaluation
Package evaluation is the wire contract between patchy's evaluation execution service and the evolve client: the HTTP submission types, the in-pod event stream the runner emits on stdout, and the SSE monitor stream the API relays to the submitting client.
Package evaluation is the wire contract between patchy's evaluation execution service and the evolve client: the HTTP submission types, the in-pod event stream the runner emits on stdout, and the SSE monitor stream the API relays to the submitting client.
generic
Package generic is the wire contract of patchy's generic integration: the JSON shapes and headers an external process exchanges with patchy when it acts as a finding source, a verdict resolver, or a context enhancer.
Package generic is the wire contract of patchy's generic integration: the JSON shapes and headers an external process exchanges with patchy when it acts as a finding source, a verdict resolver, or a context enhancer.
source
Package source is patchy's public plugin seam for security-finding sources.
Package source is patchy's public plugin seam for security-finding sources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL