Skip to content

Matrix: a forged tenant field never widens scope - #111

Merged
warheart1984-ctrl merged 2 commits into
mainfrom
test/forged-tenant-fields
Oct 17, 2026
Merged

warheart1984-ctrl merged 2 commits into
mainfrom
test/forged-tenant-fields

Conversation

@warheart1984-ctrl

Copy link
Copy Markdown
Owner

RFC appendix item 19 (from the mcp-multitenant-gateway study). Test only, no app change.

For every list, mutation and id case, a tenant forges tenant_id, _tenant_id, tenant_key, tenant, jarvis.tenant_key (body + query) and four tenant headers, naming alice by her real tenant key, by name, and as operator. The response must equal the one forging a nonexistent name, nothing of alice's may appear, and alice's state must not change. Runs for OAuth tenants and (via the keys matrix) key tenants.

Mutation-checked: a planted header-honouring tenant override fails it. Both matrix files: 52 passed on Postgres.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T03:02:10.473274Z 95158e6 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e51673b909

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/test_tenant_isolation.py Outdated
Comment thread tests/test_tenant_isolation.py
…ce (Codex on #111)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@warheart1984-ctrl
warheart1984-ctrl merged commit bcec5be into main Oct 17, 2026
3 checks passed
@warheart1984-ctrl
warheart1984-ctrl deleted the test/forged-tenant-fields branch October 17, 2026 13:51
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