8000 fix(security): same-origin and host checks on routes that write to agents (#222) by simon-inkie · Pull Request #227 · simon-inkie/inkie-deck · GitHub
[go: up one dir, main page]

Skip to content

fix(security): same-origin and host checks on routes that write to agents (#222) - #227

Merged
simon-inkie merged 3 commits into
mainfrom
origin-checks-agent-routes
Nov 19, 2026
Merged

simon-inkie merged 3 commits into
mainfrom
origin-checks-agent-routes

Conversation

@simon-inkie
@simon-inkie simon-inkie commented Nov 19, 2026 •
Copy link
Copy Markdown
Owner

Reuses the Nudges origin and host helper on the six write routes and the chat read-receipt loader: cross-site, same-site, mismatched Origin and unapproved Host get 403; same-origin browsers and header-less loopback clients still work. Trusted tunnels must preserve Host and list their hostname in MC_ALLOWED_HOSTS (documented in INSTALL.md and .env.example). 495 tests, typecheck, leak scans, dashes and full gates green locally. SPEC: .specs/222-origin-checks-agent-routes/SPEC.md


Devin Review

simon-inkie and others added 2 commits November 19, 2026 10:15
…ents (#222)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Simon Dixon <simon-inkie@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Simon Dixon <simon-inkie@users.noreply.github.com>
devin-ai-integration[bot]

This comment was marked as resolved.

…n origin proof is missing (#222)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Simon Dixon <simon-inkie@users.noreply.github.com>
@simon-inkie
simon-inkie merged commit 73946a7 into main Nov 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0