Access model: Users × Machines × Applications
Kovlet checks three things before an app can touch a Data Space: who is signed in, which device the request comes from, and which app is asking. This page explains how those checks combine.
At a glance
- Every request is checked against a user, a machine (the device or server) and an application.
- An app can use a space only if both the person and the app have a role on it. The app gets the lower of the two.
- Roles on a Data Space are viewer (read), editor (read and write) and owner (also manage access and undo changes).
- Owner actions happen in the Kovlet console, never through an app.
- You can cut off one app or one machine everywhere without signing anyone out.
The three principals
Kovlet decides every connection and every write from three principals at once. A principal is simply someone or something that can be identified and given access:
- the user: the person who signed in,
- the machine: the device or server the request comes from,
- the application: the app making the request.
| Principal | What it is | How it authenticates | What an owner can do |
|---|---|---|---|
| User | A person with a Kovlet account | Passkey, email code, or Google, GitHub, Apple or Microsoft sign-in | Grant viewer, editor or owner per Data Space; invite external guests; share a space with the entire org |
| Machine | A device or a workload: a laptop, phone, desktop app, server, CI job or agent sandbox | Personal devices: a non-exportable P-256 device key (WebCrypto, Secure Enclave, Android Keystore, OS keychain) that signs every request. Headless machines: a device code approved without a key, or a Machine Auth Key | See every machine, revoke a lost or compromised one, require approved machines |
| Application | One app: a web origin, a native app's redirect URI, a CLI or a coding agent | Registered on first consent; then pinned to its origins or redirect URIs | See every connected app, revoke one, require approved apps, undo one app's changes |
Personal devices and headless machines count against separate plan limits (devices and machines).
How Kovlet decides
Which principals are checked depends on who is on the other end. Each request carries one of three combinations:
(User, Machine, App)for a person using an app,(Machine, App)for a headless server or script,(EndUser, App)for an end user of a public app.
A person's app: (User, Machine, App)
The short version: the machine and the app must be trusted, and the app gets the lower of the person's role and its own. A request is allowed only when every check passes:
- Machine. The machine is not revoked. If the space or its workspace requires approved machines, the machine is approved in that workspace.
- App. The app is not revoked. The request comes from one of its registered origins, when it has any. If the space or its workspace requires approved apps, the app is approved in that workspace.
- User role on the space. This is the highest of the user's direct grant, the space's entire-org role (for members of the workspace) and an accepted guest invitation.
- App role on the space. This is the grant the user gave the app at consent: viewer or editor. An app's grant is never more than editor.
- Effective role. This is the lower of the user role and the app role:
min(role(User, Space), role(App, Space)). It must cover the action: viewer to read, editor to write.
So a viewer can't write through any app. And an app the user approved as viewer can't write, even when the user is the owner.
A headless workload: (Machine, App)
A server, cron job or agent sandbox has no person at the keyboard. It needs checks 1 and 2, plus an explicit machine grant: (Machine, App) → Space with viewer or editor.
Two things create such a machine:
- a Machine Auth Key from the console's Machines page,
- a device code approved without a device key.
The machine's owner is the person who approved it.
An end user: (EndUser, App)
A public app's own users sign in through the app. They are not Kovlet accounts.
- Their ceiling is the app's grant on the one space they signed in to.
- The space's per-record rules narrow that further. Rules are closed by default.
See end users vs Kovlet users.
Roles
| Role | On a Data Space it can |
|---|---|
viewer | Connect, read rows and files, read the schema and the activity feed |
editor | Everything a viewer can, plus write rows and files, restore from the Trash, create tables and add optional columns |
owner | Everything an editor can, plus approve destructive schema changes, manage who has access, and roll back. These owner actions go through the Kovlet console (or an admin scope), never an app session. |
Workspaces have their own roles: member, admin and owner. They decide who manages the workspace (its apps, machines, domain and flags). They don't decide who reads a Data Space.
Approvals and revocation
Approval is whether a workspace trusts an app or machine. Revocation cuts one off.
- Apps. An app is registered the first time someone approves it. It is approved at once when that person is an admin or owner of the workspace, and pending otherwise. Pending only matters where the space or workspace requires approved apps. An approved app is locked to the redirect URIs it already has.
- Machines. A machine is enrolled when someone signs in on it. The same rule applies: approved when that person is a workspace admin or owner, pending otherwise. Where approved machines are required, an admin approves pending machines in the console.
- Revoking a machine ends every session on it. A device whose key was revoked must make a new key and sign in again.
- Revoking an app ends its sessions for every user. Nobody is signed out of other apps.
- Approval is per workspace. A machine or app approved in another workspace doesn't count as approved here. An external guest's laptop is an example.
Checking access from an app
GET /v1/spaces/{space}/access returns what the current session may do on a space: {"role", "read", "write", "manage"}.
A denial carries a stable reason, such as app_not_approved, machine_not_approved, no_app_grant or insufficient_role. The errors reference lists them all.
Why three axes
Many AI-built apps sharing data raise questions a single credential can't answer.
- Credentials that name only a user can't tell a trusted dashboard from a buggy script the same person generated an hour ago.
- Credentials that name only an app (a static API key) can't tell who is using it, or from which machine. They also leak with the code.
Checking all three lets an owner answer the questions that matter: which apps can touch this space, from which machines, on behalf of whom, and which app made this change.
Next
- Zero-key onboarding: how an app gets its grant without an API key.
- End users vs Kovlet users.
- Glossary.
Ready to try it? Start free. No credit card, no API keys.
For coding agents: this page is also Markdown. Add .md to the URL or send Accept: text/markdown. The full reference is at /llms-full.txt.