Inbox: allow an exact https origin to frame the Inbox (config-only, opt-in), for a self-hosted proxy host
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 58/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- security
Línea de trabajo
Read packages/server/inbox-framing.ts and the existing inboxFrameAncestors handling in packages/server/inbox.ts; then inspect the config type in packages/shared/config.ts. The issue names inbox-framing.test.ts and inbox-frame-ancestors.test.ts as tests to run. Done means the opt-in exact HTTPS DNS origins are validated, merged only for local Inbox requests, documented, and unset or empty config preserves current responses byte for byte.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
inboxFrameAncestors (#3299, #3376, since 0.28.66) lets a trusted app on this computer frame the Inbox. It keeps only localhost, *.localhost, 127.0.0.0/8 and app-scheme origins (packages/server/inbox-framing.ts, inboxFrameAncestor).
A self-hosted agent workspace can run on the same machine as Plannotator but be opened from other devices over a private network, at an https origin such as https://workspace.example.internal. It serves Plannotator's windows through an authenticated reverse proxy, each window on an origin of its own, so the window's requests reach Plannotator as local (Host: localhost:<port>). The plan, code-review and annotate servers can be framed there already, because they send no framing headers. The Inbox cannot: its frame-ancestors 'none' stays, and the only way around it is for the proxy to rewrite Plannotator's security headers, which is the brittle approach #3299 wanted to avoid.
Proposal
A second, config-only key, so the existing key keeps its "an app on this computer" meaning:
{ "inboxFrameAncestorsRemote": ["https://workspace.example.internal"] }
- Accept only exact
https://origins with a DNS host name: nohttp:, no IP literal (v4 or v6), no wildcard, no path, no credentials, no'self'; the default port only when written without one, as the existing validator does. - Same scope as
inboxFrameAncestors: applied only to requests the Inbox treats as local (via === "local"), never on the tailnet listener or a device-door request; merged into the sameframe-ancestorslist and into the'self' <list>of the documents the Inbox frames.X-Frame-Optionsis dropped only when the merged list is not empty. - Unset or empty: every answer byte-for-byte as today. Dropped entries: one stderr line each, as today.
- No environment variable, matching the existing key's config-only choice.
Likely files: packages/server/inbox-framing.ts (a remote validator beside inboxFrameAncestor, merged in resolveInboxFrameAncestors), packages/server/inbox.ts (read the key where inboxFrameAncestors is read), packages/shared/config.ts (type), docs (environment.md, inbox-phones-and-security.md) and tests (inbox-framing.test.ts, inbox-frame-ancestors.test.ts).
Related observation
The plan, code-review and annotate servers send no X-Frame-Options or frame-ancestors, so any page that learns their loopback URL can frame them while they wait for a decision (clickjacking of Approve/Deny). Writes are already guarded by Sec-Fetch-Site, which limits but does not remove the risk of a framed click. A default of frame-ancestors 'self', with the same opt-in lists, would close that without breaking hosts that embed them on purpose. Happy to split this into its own issue.
Evidence
- Checked at v0.28.67 and at
mainb5b307783 (2026-11-17): no change to the Inbox framing rules since the tag. - A working reverse-proxy integration framed plan reviews with no Plannotator change: approve, and deny with feedback, each reached the right agent session. Only the Inbox needed a header replacement on the proxy.
- Lenguaje dominante
- TypeScript
- Estrellas
- 8.7k
- Forks
- 649
- Merge medio
- 16 h 1 min
- PR fusionados (30 d)
- 756
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de backnotprop/plannotator
-
Inbox: numbered choices in a :::question become free text, and context bullets become the choicesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
backnotprop/plannotator#4132 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Claude Code: "classic.PermissionRequest hook was skipped" notice is back on Bash permission promptsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
backnotprop/plannotator#4051 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
backnotprop/plannotator#4000 ·
Los mantenedores suelen responder en 1 día
-
PR description is hidden when a PR review opens on a phonePosiblemente ocupada @flipcyde101 la tomó hace 8 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
backnotprop/plannotator#3667 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
backnotprop/plannotator#2643 · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de backnotprop/plannotator
Issues similares
-
enhancement status:needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
dongdongbh/Mindwtr#1625 ·
Los mantenedores suelen responder en 1 día
-
area/ui-schema good first issue type/bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
duckdb/duckdb-wasm#2335 ·
Los mantenedores suelen responder en 1 día