How Canyon works
Canyon has two halves that never swap jobs. The server decides: it holds your org’s rules, the review, sign-in, secrets and the audit trail, and runs no app code. The executor does: it scans, builds and runs apps, and keeps no org settings and no secrets. Apps can’t reach the server, its database or each other directly; from outside, they are like any other visitor.
The same parts run in two shapes: as containers on one Docker host, the laptop demo’s, or as pods on your Kubernetes cluster. Choices at a glance says which to pick.
Every app sits behind your company’s sign-in. On Kubernetes a Canyon sidecar,
canyon-identity, runs in front of each app; on one Docker host the server checks sign-in itself.
Either way, the app learns who is calling from a token Canyon signs. The laptop demo is the
exception: it runs with sign-in off, so anyone who reaches it opens every app, and apps get no
token.
What runs where, on one Docker host
Section titled “What runs where, on one Docker host”- The server answers every app’s address itself. With sign-in on, it checks the person’s Canyon session and the app’s access list, then forwards the request with Canyon’s identity token. In the laptop demo, with sign-in off, it forwards every request with no check and no token. There is no router and no sidecar.
- Each app gets a Docker network of its own, shared with the server,
app-postgresand, while its calls go through Canyon, the egress gateway, so an app can’t reach another app or Canyon’s Postgres. The server’s API refuses connections from the app networks; an app reaches only the key set that signs its identity tokens. - The executor holds the Docker socket and has no route to Canyon’s Postgres, which sits on a network only the server joins.
- Builds use
pack, with the same Paketo buildpacks as on Kubernetes.
What runs where, on Kubernetes
Section titled “What runs where, on Kubernetes”| Part | Its job | What it may reach |
|---|---|---|
canyon CLI |
Packs the app’s source and uploads it, prints the review, signs in with a device code. | Your Canyon’s address. |
canyon-server |
The dashboard and the API. Signs people in through your identity provider. Runs the review: gitleaks and the AI review itself, the other scanners through the executor. Keeps approvals, the audit trail and app secrets, sealed under its own key. Receives GitHub’s webhooks. | Its Postgres, the executor, the apps’ Postgres to create each app’s database and role, and public HTTPS: your identity provider, GitHub, the model, your org’s rules repository, and your pipeline’s webhook when handing off. The Kubernetes API on 443 or 6443, to read the cluster’s service-account key set for the egress check’s policy. Never an app. |
| Canyon’s Postgres | Apps, runs, findings, approvals, the audit trail and sealed secrets. | Reached by the server alone. |
canyon-executor |
Runs each scan as a Job, each build through kpack, and each app as a Deployment with its own NetworkPolicy, all through the Kubernetes API. Writes an app’s settings into a Secret it can create and delete, but never read. | The Kubernetes API, your registry, app pods on port 4183, and Canyon’s egress gateway on 3128 for its check. Accepts connections from the server only. |
| Scan jobs | One per scanner, in canyon-scans, under a policy that lets nothing in or out. |
Nothing, except that a Trivy scan asks Canyon’s Trivy server, the one part here that downloads vulnerability databases from the internet. |
| kpack builds | Turn the reviewed source into an image with Paketo buildpacks, in canyon-builds. |
DNS and public HTTP(S), to fetch dependencies. |
canyon-router |
Sends <app>.preview.<domain> and <app>.prod.<domain> (or <app>-preview.<domain> and <app>-prod.<domain>) to the right app. Your ingress and TLS certificate sit in front of it. |
App pods on port 4180. |
| An app | Your code on port 3000, behind canyon-identity, a sidecar that checks who is signing in. When your own gateway doesn’t sign people in, oauth2-proxy in the pod does, in front of the sidecar. |
DNS, the apps’ Postgres, and public addresses on 80 and 443. While outbound goes through Canyon, Canyon’s egress gateway in their place, and the sign-in hosts in CANYON_KUBE_SIGNIN_DIRECT. Never the server, Canyon’s Postgres or another app. |
| The apps’ Postgres | One database and role per app that asks for one in canyon.toml. A separate server, on port 5433. |
Nothing: the server and the apps reach it. |
canyon-egress |
Canyon’s egress gateway, beta: Envoy with the egress check beside it. While an admin sends apps’ calls through Canyon, it is an app’s way out to the internet, records each call to the server, and under allowlist refuses what isn’t allowed. DNS lookups and the sign-in hosts in CANYON_KUBE_SIGNIN_DIRECT still go out directly, unrecorded. |
Public addresses on 80 and 443, and the server’s receiver and policy. |
Who signs people in to an app on Kubernetes, your gateway or an oauth2-proxy beside each app, is the front door an admin chooses: How people reach apps draws the request path for each.
If your own platform already runs apps, Canyon can hand off instead: it still reviews and builds, then sends a signed release to your pipeline rather than running the app. Choices at a glance lists this and every other choice, with its default.
How a review decides
Section titled “How a review decides”- Every way in is the same review. An upload from the CLI and a push or pull request through the GitHub App become the same kind of snapshot and go through the same checks.
- It fails closed. A scanner that can’t run, times out or has no database blocks the review as unchecked. It never passes in silence. With no model set, the AI review says it was skipped.
- Your rules decide what blocks. Every finding names a rule, and the org sets each rule to Off, Advisory or Blocking. A Blocking rule stops a deploy for its high and critical findings; Advisory findings are shown and don’t stop anything.
- A blocking finding can be approved with a reason and an expiry date, on the app’s page (who can, and how). The next deploy then builds.
How a version gets to production
Section titled “How a version gets to production”- Production runs the image preview ran, with production’s own secrets. Nothing is rebuilt.
- The version must be running in preview, and two rules stand in front of it, both blocking by default: its review passed, and a person promotes it, or an agent they ask with their own CLI sign-in.
- An org can require a person’s approval in the dashboard for every promotion. Then
canyon deploy --env prodendsWAITING FOR APPROVALwith a link, and a person on the app’s team approves or denies it there. - A pull request’s version can run in preview, when a person deploys it from the app’s page. It is never promoted: merge it, and deploy the default branch.