Skip to content

test: exercise invoice tenant regression - #172

Merged
zcrab-oai merged 1 commit into
mainfrom
codex/csc-tenant-regression-20261101
Nov 2, 2026
Merged

zcrab-oai merged 1 commit into
mainfrom
codex/csc-tenant-regression-20261101

Conversation

@zcrab-oai

Copy link
Copy Markdown
Contributor

Temporarily removes the tenant check from the standalone invoice example to exercise continuous security scanning. This is an authorized test using fake sessions and invoice records. The example is not connected to the CLI or plugins.

Verified locally: an Amber session can now read Violet's synthetic invoice (HTTP 200), while authentication and missing-record handling still work. The safe baseline returned 404 for that request.

The tenant check will be restored after the scan finishes. This is test data, not a proposed application change.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 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-11-02T03:05:26.022422Z b0e7ff8 PR opened
🔒 Security Review ✅ Completed 2026-11-02T03:05:52.961809Z b0e7ff8 PR opened
ℹ️ 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: b0e7ff8f25

ℹ️ 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".

path = environ.get("PATH_INFO", "")
invoice = INVOICES.get(path.removeprefix(prefix)) if path.startswith(prefix) else None
if invoice is None or invoice["tenant"] != tenant:
if invoice is None:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Reinstate the tenant ownership check

When any authenticated caller supplies another tenant's invoice ID, this condition now accepts the record without comparing invoice["tenant"] to the tenant derived from the bearer session, so session-amber receives Violet's /invoices/1002 data with HTTP 200. This directly violates the access-control contract in examples/invoice-service/SECURITY.md:3-5 and README.md:7-9; retain the ownership comparison so inaccessible records continue to return 404.

Useful? React with 👍 / 👎.

@zcrab-oai
zcrab-oai merged commit 1e362f4 into main Nov 2, 2026
16 checks passed
@zcrab-oai
zcrab-oai deleted the codex/csc-tenant-regression-20261101 branch November 2, 2026 03:06
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