iOS sandbox: prove it on two leases and document what it covers

未关闭
#2,047 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
ios, typescript
领域
security, testing

调研方向

Read ADR 0103 §8 and inspect e2e/slow-ios-sandbox.test.ts, its probe app fixture, and e2e/slow-ios-passthrough-signals.test.ts; the work depends on #2044, #2045, and #2046. Run the slow lane with two leases on one sandboxed worker and record each B13 and B14 result. Then document the measured coverage and all listed gaps in the new worker/ page and update the named trust lines; done when the website builds and its shared-service claims match the recorded results.

由索引模型根据 Issue 内容生成。

描述

task:ready

Part of #1648.

Scope

The sandbox is proven end to end on one worker with two leases, the shared Mac services are probed, and the website says what the sandbox covers, what it does not, and that it is weaker than a VM.

If it goes wrong, the docs promise isolation the sandbox does not give.

Technical spec

Commit b037ae2a0.

Rows
  • Behaviours: B13, B14
Facts

none

Modules touched

e2e/slow-ios-sandbox.test.ts and its probe app fixture, website (a new page under worker/ for the sandbox, linked from astro.config.mjs, and the trust lines in gateway/access.mdx and concepts/tokens-and-roles.mdx:38), src/drivers/AGENTS.md and src/drivers/ios/AGENTS.md known gaps, src/daemon/AGENTS.md Security model, docs/internal/flows/device-exec.md:94 known gap. Searches: rg "accident boundary|shell access" website docs src --glob '*.md*'.

Rules in play
  • ADR 0103 (Accepted — not yet implemented): the sections named on each line below; the feature's rows hold the shapes.
  • ADR 0103 §8: the gap list the docs carry.
  • Documentation rule 9 and user-facing-docs voice: no claim about a shared service before B14 measured it.
Tests

Seam: slow lane e2e/slow-ios-sandbox.test.ts (T2 adds it), two leases on one sandboxed worker; model e2e/slow-ios-passthrough-signals.test.ts.

  • B13: On a sandboxed worker a probe app in a leased simulator is refused the worker's home, another lease's simulator data, an unopened loopback port, a Mac program and a Mac service, and reaches its own data, an opened reverse port and its lease folder; an .ipa and a photo uploaded to the lease folder install and add; a worker path outside it does not; an agent-device session opens, takes a snapshot and taps through its XCTest runner; a client's own XCTest bundle is not tried (known gap): each attempt in the case list, two leases on one worker
  • B14: The probe also tries the shared Mac services (pasteboard between leases, input to another simulator, rendering of another simulator) and records each result; the docs page states the measured results and the gaps and nothing more: pasteboard written by lease A read by lease B; input sent at B from A; B's screen read from A

Done when

  • Slow lane (real simulators): e2e/slow-ios-sandbox.test.ts runs B13 and B14 with two leases on one sandboxed worker.
  • The new website page lists every gap of ADR 0103 §8, the client XCTest gap, a lease's app holding a reversePorts port so another lease's reverse on it is refused TUNNEL_PORT_IN_USE, and agent-device's fast accessibility snapshot being off (its XCTest path is used), and the shared-service lines match B14's recorded results.
  • website/ builds; the trust lines on gateway/access.mdx say a sandboxed worker's iOS leases are boxed in and an agent token is still shell access through other tools.

Out of scope

Narrowing terminal access (a follow-up issue), CPU, memory or disk limits.

Depends on

  • #2044 because: the allow-list B13 relies on
  • #2045 because: port grants B13 opens
  • #2046 because: the lease-folder read B13 uses

Written by an agent.

主要语言
TypeScript
星标
730
派生
44
平均合并
15 小时 28 分钟
30 天内合并 PR
387

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

callstackincubator/simlock 的其他 Issue

查看 callstackincubator/simlock 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。