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

オープン 初心者向け
#235 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
73/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

modules/mail/worker/filing.ts と modules/mail/worker/lib/tools.ts を読み、raw_headers がツールの回答にどのように渡されるかをたどり、その後、名前が挙げられている2つのテストとドキュメントを確認してください。文書化された動作のうち、どれが意図されたものかを判断し、Authentication-Results のエントリーを含むようにテストを更新して、テストが選んだ動作を検証し、ドキュメントもそれに一致するようにしてください。

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
TypeScript
スター
1
フォーク
1
平均マージ
9時間 3分
マージ済み PR(30日)
136

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cloudhal-dev/podbay のほかの issue

cloudhal-dev/podbay の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。