| index 4b15cb952..ca0159ae8 100644 |
| --- a/docs/superpowers/plans/2026-10-30-devbox-mode-copy.md |
| +++ b/docs/superpowers/plans/2026-10-30-devbox-mode-copy.md |
| @@ -175,3 +175,44 @@ plist's `Sockets` entry, such as `Listeners`; `<count>` a number; |
| | DBX-C91 | infra/devbox/README.md | Then add the DNS record and run the checks below. | approved | |
| | DBX-C92 | infra/devbox/README.md | On a Mac, use lsof instead of ss to see what is listening, and read the log file instead of journalctl. | approved | |
| | DBX-C93 | devbox_cli.go | the environment file <env file> has an access control list, which can let other accounts read or change it. remove it with: chmod -N <env file> | approved | |
| + |
| +## Identity and private targets (#486 A): socket links, --allow, list access, the private page and the runbook section |
| + |
| +Drafted 2026-11-01 for docs/superpowers/plans/2026-11-01-devbox-identity.md and |
| +approved by Paul 2026-11-02, unedited. More placeholders: `<sockets dir>` the |
| +shared sockets folder, /run/carlos-devbox/sockets; `<user>` the devbox service |
| +account, usually carlos-devbox; `<login>` one tailnet login, such as |
| +alice@github; `<logins>` a comma-separated list of them. |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| DBX-C94 | devbox_cli.go | usage: carlos devbox share [--port <port>, --socket <path> or --dir <path>] [--allow <logins>] [<name>] | approved | |
| +| DBX-C95 | devbox_cli.go | a Unix socket your tool listens on, inside <sockets dir>. share makes it private to you and the devbox service. if your tool restarts and makes a new socket, share again | approved | |
| +| DBX-C96 | devbox_cli.go | tailnet logins that may open the link, separated by commas, such as alice@github. anyone else sees a page saying the link is private. without --allow, everyone on the tailnet can open it. sharing again replaces the list | approved | |
| +| DBX-C97 | devbox_cli.go | give one of --port for a dev server, --socket for a socket or --dir for a folder | approved | |
| +| DBX-C98 | devbox_cli.go | <path> is not directly inside <sockets dir>. have your tool create its socket there, then share it | approved | |
| +| DBX-C99 | devbox_cli.go | <path> is not a socket. give the path of the Unix socket your tool listens on | approved | |
| +| DBX-C100 | devbox_cli.go | <path> belongs to another account. you can only share a socket you created | approved | |
| +| DBX-C101 | devbox_cli.go | nothing is answering on <path>. start your tool, then share again | approved | |
| +| DBX-C102 | devbox_cli.go | could not let the devbox service open <path>. check that the socket is yours, or tell whoever runs this devbox | approved | |
| +| DBX-C103 | devbox_cli.go | this machine has no devbox service user called <user>. tell whoever runs this devbox | approved | |
| +| DBX-C104 | devbox_cli.go | --socket works on Linux devboxes only for now. on this devbox, use --port | approved | |
| +| DBX-C105 | devbox_cli.go | --allow works on Linux devboxes only for now. on this devbox, every link is open to the tailnet | approved | |
| +| DBX-C106 | devbox_cli.go | <login> is not a tailnet login. give logins such as alice@github, separated by commas, with no spaces | approved | |
| +| DBX-C107 | internal/edge/devboxfront.go | This link is private | approved | |
| +| DBX-C108 | internal/edge/devboxfront.go | Only the people it was shared with can open it, from their own devices on the tailnet. | approved | |
| +| DBX-C109 | devbox_cli.go | name owner kind target access age state | approved | |
| +| DBX-C110 | devbox_cli.go | socket | approved | |
| +| DBX-C111 | devbox_cli.go | private | approved | |
| +| DBX-C112 | devbox_cli.go | tailnet | approved | |
| +| DBX-C113 | devbox_cli.go | usage: carlos devbox list [--allowed] | approved | |
| +| DBX-C114 | devbox_cli.go | also show who can open your private links | approved | |
| +| DBX-C115 | devbox_cli.go | private: <logins> | approved | |
| +| DBX-C116 | infra/devbox/README.md | ## Visitor identity and private links | approved | |
| +| DBX-C117 | infra/devbox/README.md | The service tells each link's upstream who is visiting, in the Carlos-Visitor-Login, Carlos-Visitor-Name and Carlos-Visitor-Node headers. It removes any a visitor sends, so a tool behind a link can trust them. | approved | |
| +| DBX-C118 | infra/devbox/README.md | Tailscale names a device's owner, not the person using it. So a visit from this machine, or from any node listed in CARLOS_DEVBOX_SHARED_NODES, carries no identity, and a link shared with --allow refuses it. | approved | |
| +| DBX-C119 | infra/devbox/README.md | Add every other shared machine, such as another devbox, to CARLOS_DEVBOX_SHARED_NODES in the environment file, as machine names separated by commas. | approved | |
| +| DBX-C120 | infra/devbox/README.md | The service user asks tailscaled who each visitor is. If it cannot, every visitor is anonymous, and links shared with --allow refuse everyone. | approved | |
| +| DBX-C121 | infra/devbox/README.md | The service creates /run/carlos-devbox/sockets when it starts. Any account can create a socket there, but nobody can list the folder, and only a socket's owner can remove it. | approved | |
| +| DBX-C122 | infra/devbox/README.md | Share a socket link and open it from another device. Check that another account on this machine cannot connect to the socket. | approved | |
| +| DBX-C123 | infra/devbox/README.md | Share a link with --allow and your own login. Check that it opens from your own device and shows the private page from a browser on this machine. | approved | |