Sections
Documentation › Administer
Multi-user security
This document describes what a Noyau instance shared by several accounts guarantees today and what it does not guarantee yet.
Threat model
| Actor | What they may attempt | Target |
|---|---|---|
| Signed-in member (browser, API) | Read, write, list or delete another account's projects, files, todos, notes, memory, agents, terminals and shares. They can also forge headers (X-Noyau-Profile, X-Noyau-Caller), guess identifiers, or use ../ and symbolic links |
Other accounts' data |
| A member's agent | The same HTTP calls, with its own token or by impersonating another agent | Same, plus the machine's tools (vault, Chrome, inter-agent tools) |
| Member or agent | Stop Noyau or another account's processes (kill, systemctl --user stop noyau, /api/system/resources/kill) |
Availability |
| Disabled account, revoked permission or revoked share | Keep going with a session, a token or an agent that is already running | Revocation |
The administrator is trusted with the machine, but not with content: they manage accounts, permissions and shares, without being able to open another account's content.
Guarantees
Identity
- Every request carries the identity of its author: a sign-in cookie or token, an
nyk_API token, or annya_agent token. X-Noyau-Profileis only read with the machine's master key, never with any other token.- Each agent receives
NOYAU_AGENT_TOKEN = nya_<session>.<HMAC-SHA256(clé, session)>. This token is bound to its session, and therefore to the owning account:- it is only valid for that account;
- it cannot be moved to another agent;
- it dies on the next request if the agent is deleted or archived, if the account is disabled, or if the "Agents" permission is revoked;
- it is only read from the
Authorizationheader, never from the URL (?token=).
- The scripts (
noyau-agent.mjs,noyau-todo.mjs,noyau-board.mjs,claude-design-tool.mjs) use this token first. - An agent cannot act as a person:
- it is denied access to the administration center;
- it cannot approve an install script;
- it cannot talk to the vault on behalf of another agent (
X-Noyau-Callermust be its own session); - it cannot configure the AI workers.
Per-account permissions
A new account has none of the following permissions. They are granted in Administration > account > Access.
| Permission | Grants |
|---|---|
agents |
Launching agents |
fullAccess |
Agents without command approval (yolo / full access) |
terminal |
"Shell" agent, custom command or ACP agent: all three can launch any program |
agentTools |
Inter-agent tools called by an agent (create, read and drive other agents, Claude Design) |
vault |
Project vault |
chrome |
The machine's shared Chrome |
- Administrators have every permission.
- Migrated existing accounts keep their permissions, with the "Trusted agents" badge and the warning shown in Administration.
- Deployment, server settings, updates, AI workers and stopping a process by PID are reserved for administrators.
- A revoked permission takes effect immediately:
- revoking
agentssuspends the account's agents and invalidates their tokens; - revoking
fullAccessrestarts in supervised mode the agents that were running with full access; - an explicit yolo request without the permission gets a 403;
- without the permission, a project's default "full" setting becomes "supervised";
- without the permission, a member cannot drive another member's full-access agent, even with a write share: they see it read-only.
- revoking
- Permissions are checked by route prefix, with strict, case-sensitive routing:
/api/Vaultor/api/vault/lead nowhere.
Data
- Every HTTP, websocket (terminal, voice) and MCP route checks the owner or the share. A guessed identifier is not enough: anything that is neither yours nor shared with you returns 404.
- Shares are granted read-only or read-write, to specific accounts or to everyone. They cover projects, Tasks and Files folders, notes and notebooks.
- A revoked share cuts access on the next request, including for an agent that is already running, since its token is checked again on every call. An open terminal is closed by the server within two seconds; permissions are also checked again on every message.
- Agent creation: only the fields intended for a person are read. Replacing an agent (
replaceId) requires owning it. - Paths:
- file names are sanitized and confined to the project folder;
- project files, reports and module media are read with
lstat, so a symbolic link is neither listed nor served; - writes use
wx, so they never go through a link; - repository images are resolved with
realpathon both sides; - files are served from a descriptor opened with
O_NOFOLLOWand checked (same inode, under the root) before reading, which closes the window between check and read.
Automated evidence
server/security-attack.test.jsstarts the real server in isolation. The following attempts are all refused:- member B against A: sessions, chat, files, websocket terminal, agent input and deletion;
- impersonation through
X-Noyau-ProfileandX-Noyau-Caller; - forged, moved or orphaned agent tokens;
- encoded
../and symbolic links to the machine key; killof someone else's PID or agent (the targeted process stays alive);- a new account without agents, yolo, terminal, vault or Chrome;
- a revoked permission or revoked share, which cuts off the running agent;
- cases from the independent review: case and trailing slash on permission-gated routes, another agent's memory, free command and ACP without the terminal permission, taking over an agent through
replaceId, a token in the URL or from an archived agent, an open terminal closed when the share is revoked.
server/access-routes.test.jschecks refusals by route family: projects, agents, files, todo, automations, administration, sign-in.
Member sandbox
The agents and terminals of a non-administrator account run inside bwrap (server/sandbox.js), without root, as soon as bwrap is usable (user namespaces allowed). NOYAU_SANDBOX=0 turns it off, NOYAU_SANDBOX=1 refuses to start without it; by default (auto), a warning is written at startup if it is missing.
| Item | Inside the sandbox |
|---|---|
| System | read-only |
HOME |
.data/sandbox-homes/<compte>, specific to the member (no ~/.ssh, ~/.claude, ~/.codex, or other projects) |
Tools (~/.nvm, ~/.local/bin, Claude binary, Codex…) |
read-only |
| Noyau repository | read-only; .data, .noyau-worktrees and .env* hidden |
| Working folder | the only writable folder; refused if it contains the HOME, Noyau or a hidden folder of the HOME |
Selected engine account (CLAUDE_CONFIG_DIR, CODEX_HOME) |
writable, only under Noyau's account folders |
/tmp, /run/user/<uid> |
empty: no tmux socket, no systemd bus, no SSH agent |
| Processes | --unshare-pid: Noyau's processes are invisible |
| Abstract sockets (X11 display, ICE), signals | blocked by Landlock (server/sandbox-scope.py, Linux kernel 6.12+): an agent cannot type into the graphical session; warning at startup if unavailable |
| API | NOYAU_AGENT_TOKEN token only; the end-of-turn hook uses it for its own session, and the conversation path it provides is only accepted under the folder of its Claude account |
The web terminal goes through tmux send-keys: the member's tmux keys do not open a window outside the sandbox.
Known limitations
- Administrator agents run outside the sandbox, whatever the engine: they have the system account's rights and can read outside their working folder, which is a starting point and not a boundary. Antigravity offers no file confinement (
agy --sandboxonly restricts its terminal;--add-diradds folders without removing the others). To confine an agent, launch it from a member account: its Antigravity, like Claude and Codex, then sees neither the machine'sHOMEnor.data(verified with the realagyin bwrap). - Shared network. A member's agent can reach the machine's services on
127.0.0.1(Noyau with its own token only, but also Ollama or a local database). - Shared engine accounts: a member who uses one of the instance's Claude or Codex accounts can read its credentials.
- Inside the sandbox, automatic task tracking and the Claude status line (master key) are inactive.
- Without bwrap (macOS, Windows, a container without namespaces), there is no sandbox: a member's agent can then read
.data(including the master key), other projects,~/.claudeand~/.codex, or stop Noyau. The "Agents" permission stays closed by default and is flagged "Trusted agents". - The master key opens everything. It is still required by the engines' other hooks and by the administration tools.
- Sharing agents, skills and groups, as well as team spaces, does not exist yet.