Sign-in, the AI model and keys
These are settings on the Canyon server, set in its environment. On Kubernetes they go in the
canyon-server Secret; the install guide
lists every other one.
Sign-in
Section titled “Sign-in”Canyon signs people in through your own identity provider, from your issuer’s own discovery document. It never sees a password and keeps none of your provider’s tokens: it makes a session of its own.
The CLI signs in with a code a person approves in the browser (Deploy on your company’s Canyon). The three variables Canyon always needs:
CANYON_OIDC_ISSUER=https://login.microsoftonline.com/<tenant>/v2.0CANYON_OIDC_CLIENT_ID=<the app registration's client id>CANYON_ADMINS=you@yourcompany.example- Register
<CANYON_PUBLIC_URL>/auth/callbackas the client’s redirect URI, and setCANYON_PUBLIC_URLto thehttpsaddress people open Canyon at. Without it, or with anhttpaddress on any host but this machine’s own, Canyon refuses to start. Canyon asks for the scopesopenid profile email. If the client has a secret, setCANYON_OIDC_CLIENT_SECRET; without one, Canyon signs in as a public client with PKCE. CANYON_ADMINSare the first admins, the only people who can sign in until an admin finishes setup. Who can do what lists what admins, members and each level on an app may do.- On the setup screen, the first admin says who else may sign in: a domain, a list of addresses, or
both. To fix them in the environment instead, set
CANYON_OIDC_ALLOWED_DOMAINS,CANYON_OIDC_ALLOWED_EMAILS, or both. The screen then shows them read-only, and with both set, everyCANYON_ADMINSaddress must be on one of them or Canyon refuses to start. - Entra, Okta, Google Workspace and any other OIDC provider take the same values. Canyon checks the issuer when it starts and refuses to start on a bad one, rather than starting and letting nobody in.
CANYON_AUTHisoidcwhen unset. To run Canyon for yourself on one machine without sign-in, setCANYON_AUTH=off: everyone who reaches it is an admin, so Canyon refuses to start unlessCANYON_ADDRandCANYON_PUBLIC_URLare both loopback. The laptop demo comes with sign-in off (how).
The AI model
Section titled “The AI model”Without a model, the scanners still run and the AI review reports itself as skipped on every run. It never passes silently. On the Claude API, a model is one variable:
ANTHROPIC_API_KEY=<your key>CANYON_MODEL=claude-opus-5 # the default; the id as your provider names it- A gateway that speaks the Claude API, including one in front of Bedrock or Vertex: set
CANYON_MODEL_URL, withANTHROPIC_API_KEYorCANYON_MODEL_TOKEN. Canyon doesn’t call Bedrock or Vertex directly:CANYON_MODEL_PROVIDER=bedrockorvertexrefuses to start. - OpenAI:
CANYON_MODEL_PROVIDER=openai,OPENAI_API_KEYandCANYON_MODEL, which has no default there. The dashboard’s setup chat stays off on OpenAI. - One model serves the setup chat and the review. Canyon calls the provider’s own address, or the
one
CANYON_MODEL_URLnames, never a base URL it finds elsewhere in the environment. OtherOPENAI_*variables in the host’s environment, such as an organization or project id or custom headers, still apply to the OpenAI client. - A provider named without its key refuses to start.
The model is sent the rules it may report on and the app’s source files only, never .env*, .git/
or node_modules/, with every secret masked as ••••.
Rotate the encryption key
Section titled “Rotate the encryption key”Canyon encrypts stored secrets with a key kept on the server’s volume. To move them to a new key:
docker compose exec server /canyon-server rotate-kek # the demokubectl -n canyon exec deploy/canyon-server -- /canyon-server rotate-kek # Kubernetes- Each run writes a fresh key version beside the old ones (
kek.2,kek.3), moves every row that isn’t on it, and prints how many moved and how many remain. - It refuses while the database is behind the binary.
- A value set before the server restarts is still sealed under its boot version and counted as remaining: run it again.
- Canyon never deletes a key file. Remove one once no row names it.
- A backup taken before the rotation still opens with the old key. If a key was compromised, replace
each value at its source and set it again with
canyon secret set NAME.