Run Kuriko
Security model
What Kuriko guarantees, and how each guarantee is enforced. Written for whoever has to sign off on it.
Everything stays in your cloud
- Kuriko runs entirely in a project you own. Tools, their data, Kuriko's records and every credential stay there.
- The CLI uses your own credentials. The one Kuriko server involved is Kuriko's image registry: when you install or upgrade, your own Artifact Registry pulls Kuriko's images from it with your access key, kept in your Secret Manager. We see which key pulled which version, and when; nothing else.
- There is no Kuriko-hosted control plane, telemetry or support access. We can't see your install.
Guarantees
| Guarantee | How it's enforced |
|---|---|
| Who someone is comes only from | Every request carries a token verified against 's keys, or Kuriko's own for the short-lived passes it issues after sign-in. No tool or API takes a user, group or role as an argument. |
| Access is denied unless granted | A tool gets data only if it declared that resource and the person using it has a grant for it in policy.yaml. The gateway checks both on every request. |
| Masked fields and other people's rows never leave the gateway | Row rules go into the data source's own query, and the gateway checks every row again and masks it before it reaches a tool or an AI tool. Each row is masked by just the groups that let it through, so someone in two groups never gets one group's rows with the other's looser masking. |
| Only the AI apps you allow can sign anyone in | Apps are listed in policy.yaml and checked on every sign-in and token refresh, so an app you take out stops getting tokens within seconds. Whichever app someone uses, they get exactly their own access. |
| Tools can't reach your cloud | Each tool runs as kuriko-tools, an identity with no permissions. Only the gateway may reach a tool (Cloud Run IAM), and data reaches tools only through it. |
| Credentials are read by one identity, and only the ones you name | Only kuriko-gateway can read data source secrets, and only the ones policy.yaml names, each granted individually. Tools, builds and the app can't read any. |
| Credentials only go where you said | An API source's credential is sent only to its base_url: https, a public hostname, never an IP address or internal name. Every next page is checked against it and redirects aren't followed. Credentials can't be written in policy.yaml; a value that looks like one is refused. |
| Per-person tokens are sealed | Encrypted with your Cloud KMS key, with the person and source as authenticated context: a token moved to another person fails to decrypt. Connecting is single-use, expires in ten minutes, and is tied to the browser that started it. |
| Tool code never runs where Kuriko's session lives | Tools are served from the gateway's address, never the app's, so a tool's code can't touch Kuriko's sign-in session or admin pages. Sign-in hand-offs between the two are short-lived, sent by form POST (never in URLs), and accepted only from Kuriko's exact address. |
| Unpublished work is private | A deploy is a preview only its owner can open until it's published. Private tools are visible only to their owner and admins. |
| Every decision is recorded | Each data read and write, denial, deploy, publish and policy change is in the audit log, with who and when. |
| Access changes are reviewed | Access lives in policy.yaml in your git repo, and that's the only way to change it. Plans show every change before it happens. |
Identities
Each part of Kuriko runs as its own service account, with only what it needs:
| Identity | Can |
|---|---|
kuriko-gateway | Read the data source secrets policy.yaml names, and the BigQuery datasets their owners grant it; use the Cloud KMS key, deploy tools, reach tools. |
kuriko-web | Read Kuriko's database and its own sign-in secrets; see Google groups membership. |
kuriko-builder | Read uploaded sources, write build logs, push tool images. Nothing else. |
kuriko-tools | Nothing. Every tool runs as it. |
kuriko-events | Deliver deploy events to the gateway. |
The gateway can read exactly the secrets policy.yaml names. When you apply a change, Kuriko gives it any new secrets first, then changes access in one transaction, then takes away secrets the file no longer names, so a data source is never briefly unreachable. Taking a secret away never deletes it.
Coming soon
Hardening on its way, with what's true until then:
- A separate address for every tool. Today all tools share the gateway's address, so in someone's browser one tool's code could make requests to another tool as them.
- Instant offboarding. Ending someone's AI tool connections the moment they leave or a group. Until then it can last up to 30 days; their Kuriko sign-in ends as soon as stops letting them in.
- An audit log nobody can edit. Kuriko never rewrites it, but its database role technically still could.
- Per-tool build identities. Builds share one identity today, so a build could read another tool's uploaded source.
- Signed identity for tools. Tools learn who's using them from headers the gateway sets, which is safe because only the gateway can reach a tool.
Found something we should know about? Tell us.