← 插件

Paseo Users

bearyjd1次安装

Groundwork for sharing one machine running Paseo between several people (pre-release: the plugin reports status and enforces nothing).

$ paseo plugin add bearyjd/users

该插件的概览尚未翻译为你的语言,因此以英文显示。

Paseo Users is a pre-release project for people who want to share one machine running Paseo without sharing everything in it. Installing the plugin does not do that yet: it adds one status call and enforces nothing.

The problem

Paseo has one owner. Everyone who holds the daemon password is that owner, with every permission. There are no accounts, so one person can see another's projects and sessions, open files in any directory the daemon can read, and change the daemon's settings.

How this project approaches it

One daemon per person (usable now, outside the plugin). A separate command line tool, paseo-users, in the same repository plans one Paseo daemon for each person on one Linux host. Each daemon has its own data folder, port and password, and each person adds their own daemon as a host in the Paseo app. No changes to Paseo are needed.

One daemon with accounts (not usable yet). The repository holds code for accounts, login sessions, roles, project sharing and an audit log. Paseo gives plugins no caller identity and checks no resource ownership, so this needs changes to Paseo itself.

What the installed plugin does

It registers one read-only call, users.status.get, which reports the plugin version, enforcement: "none" and the Paseo capabilities that are still missing. There is no screen, account, command or setting. Installing it does not build or run the command line tool.

Shared mode or separate mode

With the command line tool you choose a mode for each person.

Shared modeSeparate mode
Runs asYour Linux userTheir own Linux user
Projects, sessions and password in PaseoOwnOwn
Their agents can read your filesYesNo, if your file permissions deny it
Past conversations saved by provider toolsVisible to each otherPrivate
LLM loginsYours, sharedTheir own for each provider
SetupMostly without rootNeeds root, creates an account and installs software
Tried on a real hostLimitedTreat as unverified

What is protected and what is not

Tested on throwaway daemons: one person's daemon password does not open another person's daemon, and each daemon keeps its own project list.

Shared mode keeps people out of each other's way. It is not a security boundary. Every daemon and agent runs as your Linux user, so an agent can read another daemon's password file, your keys and your provider logins. Use it only for people you would trust with your Linux account.

Separate mode relies on Linux file permissions between accounts. The plan lists checks for you to run. They are not run for you. It does not protect against root, kernel bugs or network access between daemons on the same host.

In both modes, daemon passwords are stored in plain text in files only their daemon's user can read, and encrypting the network connection is up to you. Removing a person cannot undo what they or their agents already read.

The account code is covered by unit tests. On an unpublished patched Paseo, administrators sign in as separate users. Developer accounts are refused because Paseo cannot yet limit what each one sees.

Roadmap

Planned, with no dates:

  1. Check separate mode, moving a person from shared to separate, and removal on a real host.
  2. Manage people from a screen in Paseo: first read-only status, then changes you confirm one at a time. Steps that need root stay in a terminal.
  3. One daemon with accounts: sign-in and account screens, then per-user limits on projects, sessions, terminals and files in Paseo itself. Developer accounts depend on this.
  4. Later: running each workspace in its own account or container, and single sign-on or passkeys.

Setup

  • Paseo 0.17.4 up to, but not including, 0.20. Plugin loading was checked on 0.17.4, 0.18.2 and 0.19.1.
  • Node.js 22 or later. Paseo 0.19 itself needs 22.16 or later.
  • The plugin needs no settings, accounts, tokens or external tools.
  • Tested on Linux only. The command line tool needs systemd and is built from a clone of the repository (see docs/13-cli.md).

Data and permissions

  • The installed plugin reads no files, writes no files, makes no network calls, and sends nothing to agents or providers.
  • Calling users.status.get needs the daemon's management permission.
  • Like every Paseo plugin, it runs as trusted code without a sandbox.
  • The command line tool's setup and planning commands do not change the host. apply and migrate --apply do, only with two explicit confirmation flags, and can create accounts and system services. For separate mode they download the Paseo CLI (at a version you choose) and provider CLIs (latest, not pinned) from npm.
  • The account code, if loaded into a patched Paseo, stores accounts and an audit log in the daemon's plugin data folder. Passwords are stored as scrypt hashes and session tokens as hashes.