Tool answers carry every Authentication-Results field through raw_headers; the tests that say otherwise do not test it

Abierto Apto para principiantes
#235 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
73/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Lee modules/mail/worker/filing.ts y modules/mail/worker/lib/tools.ts para rastrear cómo llega raw_headers a las respuestas de las herramientas; después, revisa las dos pruebas y los documentos mencionados. Decide cuál de los comportamientos documentados es el previsto, actualiza las pruebas para incluir una entrada Authentication-Results y asegúrate de que las pruebas verifiquen el comportamiento elegido y de que los documentos coincidan con él.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Found by the security review of the change that shows the platform's authentication statement (#28, pull request #233). This was already there before that change.

A message's raw_headers is the list of header fields the parser found (JSON.stringify(parsed.headers) in modules/mail/worker/filing.ts), and it is a named field of the tools' answers (modules/mail/worker/lib/tools.ts). So get_email over MCP, and the assistant, receive every Authentication-Results field, the platform's and any a sender forged, with nothing to tell them apart. A model or a client can take a forged field for the platform's statement.

No access is widened: a key already needs the right to read that mailbox, and ADR-0015 decision 21 keeps raw_headers on purpose. But two tests claim the platform's field is not in a tool's answer, and pass without testing it, because their fixtures seed raw_headers without the field:

  • test/workerd-agent/mcp.test.ts: seeded '[]', asserted absent.
  • test/unit/agent-no-send.test.ts: the same.

Two documents say the same: .claude/skills/podbay-security/SKILL.md ("no tool returns … what the platform said about its authentication") and docs/status.md ("nor the platform's field").

Done when

  • A decision: either the tools leave authentication-results out of raw_headers, or the documents say that the field's raw text travels there like any other header and only the platform's parsed statement is kept out.
  • The fixtures give raw_headers a real Authentication-Results entry, so the assertion tests something and fails without the control.
Lenguaje dominante
TypeScript
Estrellas
1
Forks
1
Merge medio
9 h 3 min
PR fusionados (30 d)
136

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de cloudhal-dev/podbay

Todos los issues de cloudhal-dev/podbay

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.