carlos / platform Public

Devbox identity copy: DBX-C94..C123 approved

Paul approved all 30 rows unedited in the copy review on 2026-11-02.
The deck carries them verbatim from the review's result, and the gate's
pinned inventory now runs to DBX-C123. No row is built yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 5e2371611629dc1be66c4b47cd49ba90775cfd78 parent ba4eb7b
2 files changed, +45 −4
  • approved_devbox_copy_test.go +4 −4
  • docs/superpowers/plans/2026-10-30-devbox-mode-copy.md +41 −0
diff --git a/approved_devbox_copy_test.go b/approved_devbox_copy_test.go
index 37bb82f55..175a2a6b6 100644
--- a/approved_devbox_copy_test.go
+++ b/approved_devbox_copy_test.go
@@ -13,7 +13,7 @@ import (
// checked with its helpers, so "applied" means the same thing in every gate:
//
// - TestDevboxCopyRecordIsComplete: the deck names exactly DBX-C1 to
-// DBX-C93;
+// DBX-C123;
// - TestDevboxBuiltCopyIsApproved: an id in devboxCopyBuilt is an approved
// row (a string reaches code only after Paul has approved it);
// - TestDevboxBuiltCopyIsApplied: a built row's text is in the file it
@@ -23,10 +23,10 @@ const devboxCopyRecordPath = "docs/superpowers/plans/2026-10-30-devbox-mode-copy
var devboxCopyIDPattern = regexp.MustCompile(`^DBX-C[1-9][0-9]*$`)
-// devboxCopyIDs is the deck's inventory: DBX-C1 to DBX-C93, pinned.
+// devboxCopyIDs is the deck's inventory: DBX-C1 to DBX-C123, pinned.
var devboxCopyIDs = func() []string {
- ids := make([]string, 0, 93)
- for i := 1; i <= 93; i++ {
+ ids := make([]string, 0, 123)
+ for i := 1; i <= 123; i++ {
ids = append(ids, "DBX-C"+strconv.Itoa(i))
}
return ids
diff --git a/docs/superpowers/plans/2026-10-30-devbox-mode-copy.md b/docs/superpowers/plans/2026-10-30-devbox-mode-copy.md
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 |