Skip to content
CanyonDocsDocs for Canyon v0.10.0

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.

Canyon, on your Docker host or Kubernetes cluster canyon deploy signs people in reads the code, when set every deploy passed builds and starts outbound through Canyon Coding agentwith the canyon CLI Your teamin the dashboard People using the apps Your identity provider Your AI model canyon-serverAPI and dashboard · secrets vaultaudit trail Canyon's Postgres The reviewgitleaks · Trivy · Opengrep · ESLint · CheckovAI review · 21 rules you set Executorscans · builds · runs apps Sign-in in front of every appwhen sign-in is on Your app Apps' Postgres Egress gateway, betarecords each call out
Canyon's parts: the server decides, the executor builds and runs, every app sits behind sign-in

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.

upload, deploy the dashboard an app's address :7778 scans, builds, starts the request, with the identitytoken when sign-in is on each app's database outbound through Canyon a record of each call Coding agent and CLI People using Canyon People using the apps canyon-serverdashboard, API, review,secrets, audit, and everyapp's front door Canyon's Postgres canyon-executorholds the Docker socket An app's containeron a Docker network of its own app-postgresthe apps' databases canyon-egressEnvoy and the egress check
Canyon on one Docker host: the server is also every app's front door
  • 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-postgres and, 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.
upload, deploy the dashboard webhooks an app's address :7778 creates :4180 each app's database outbound through Canyon Coding agent and CLI People using Canyon GitHub People using the apps Your gateway or ingressTLS canyon-serverdashboard, API, review,secrets, audit canyon-router Your identity provider, GitHub,the AI model if you set one Canyon's Postgres canyon-executorscans, builds, runs apps Scan jobsno network but Trivy's database kpack builds App podcanyon-identity and the app Apps' Postgres :5433 canyon-egressEnvoy and the egress check
Canyon on a Kubernetes cluster: who talks to whom
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.

nothing blocking a blocking finding a person approves it, with a reasonand an expiry; then deploy again Your codecanyon deploy, canyon check,a GitHub push or pull request One snapshot.env, node_modules and .git left out Scanners, in parallelgitleaks, Trivy, Opengrep,ESLint, Checkov AI reviewskipped without a model Your SARIF reports--sarif, or GitHub code scanning Findingseach names a rule Built and runin preview Blockednothing is built
The review: every way in goes through the same checks
  • 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.
a person deploys it canyon deploy --env prod they pass where the org has a personapprove in the dashboard a person approves A passing review A pull request that passed Buildbuildpacks Previewapp.preview.your-domain Production checksrunning in preview, a passing review,a person promotes Waiting for approval Productionthe same image
From a passing review 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 prod ends WAITING FOR APPROVAL with 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.