MVP-1.13 · Cross-tenant negative tests in CI #274

Open
opened 2026-09-20 20:17:26 +00:00 by sharang · 0 comments
Owner

Goal

Contract 2.0 §13 sign-off requires demonstrated tenant isolation. The isolation work in MVP-0.2 is only credible if CI proves it on every change, and the existing Mongo integration tests are currently not run in CI at all.

What to change

  • HTTP cross-tenant negative test: tenant B's JWT against tenant A's finding returns 404.
  • MCP token cross-tenant negative test.
  • Werkbank runner key cross-tenant negative test.
  • Run the existing Mongo integration tests in CI: tenant_isolation, tenant_status_middleware, werkbank_api, demo_seed.

Acceptance

  • The three negative tests exist and fail loudly if isolation regresses.
  • The four Mongo integration tests run on every CI check job (wired in MVP-4.1) with a Mongo service container.
  • A cross-tenant leak anywhere in HTTP, MCP or the runner API blocks the deploy.
  • The results are linked as evidence in the §13 checklist (MVP-5.1).
## Goal Contract 2.0 §13 sign-off requires demonstrated tenant isolation. The isolation work in MVP-0.2 is only credible if CI proves it on every change, and the existing Mongo integration tests are currently not run in CI at all. ## What to change - HTTP cross-tenant negative test: tenant B's JWT against tenant A's finding returns 404. - MCP token cross-tenant negative test. - Werkbank runner key cross-tenant negative test. - Run the existing Mongo integration tests in CI: `tenant_isolation`, `tenant_status_middleware`, `werkbank_api`, `demo_seed`. ## Acceptance - [ ] The three negative tests exist and fail loudly if isolation regresses. - [ ] The four Mongo integration tests run on every CI check job (wired in MVP-4.1) with a Mongo service container. - [ ] A cross-tenant leak anywhere in HTTP, MCP or the runner API blocks the deploy. - [ ] The results are linked as evidence in the §13 checklist (MVP-5.1).
sharang added this to the Production MVP milestone 2026-09-20 20:17:26 +00:00
sharang added the infrastructuresecurity labels 2026-09-20 20:17:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#274