Tool answers carry every Authentication-Results field through raw_headers; the tests that say otherwise do not test it
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 73/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- documentation, security, testing
Research direction
Read modules/mail/worker/filing.ts and modules/mail/worker/lib/tools.ts to trace how raw_headers reaches tool answers, then review the two named tests and documents. Decide which documented behavior is intended, update the tests to include an Authentication-Results entry, and make sure the tests verify the chosen behavior and the documents agree.
Written by the indexing model from the issue text.
Description
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-resultsout ofraw_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_headersa realAuthentication-Resultsentry, so the assertion tests something and fails without the control.
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 1
- Avg merge
- 9h 3m
- Merged PRs (30d)
- 136
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudhal-dev/podbay
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
cloudhal-dev/podbay#234 ·
Maintainers usually reply within 1 day
-
decision enhancement needs lead
Difficulty 5/5 Over a week Newbie friendliness 25/100
cloudhal-dev/podbay#116 ·
Maintainers usually reply within 1 day
-
decision enhancement needs lead security
Difficulty 5/5 Over a week Newbie friendliness 25/100
cloudhal-dev/podbay#93 · 2 comments ·
Maintainers usually reply within 1 day
-
area: auth decision enhancement needs lead
Difficulty 5/5 Over a week Newbie friendliness 25/100
cloudhal-dev/podbay#87 ·
Maintainers usually reply within 1 day
-
decision enhancement needs lead
Difficulty 5/5 Over a week Newbie friendliness 25/100
cloudhal-dev/podbay#86 ·
Maintainers usually reply within 1 day
All issues in cloudhal-dev/podbay
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
can1357/oh-my-pi#21349 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ohcnetwork/care_fe#17474 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100