Skip to content

sanitize: allowlist six pre-existing history-scan denies - #42

Merged
sumitake merged 1 commit into
mainfrom
cursor/sanitize-history-allowlist-bf52
Aug 28, 2026
Merged

sanitize: allowlist six pre-existing history-scan denies#42
sumitake merged 1 commit into
mainfrom
cursor/sanitize-history-allowlist-bf52

Conversation

@sumitake

@sumitake sumitake commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Summary

Sanitization on push to main fails in Sanitize history and metadata (python3 scripts/sanitize_public.py --tracked --history). Tracked scan already passes. The same six deterministic denies already failed on d880c0f0; they are pre-existing and were not introduced by PR #41.

This PR does not revert PR #41, does not change the scanner, and does not skip --history. It only allowlists the six quoted findings.

  1. History-blob entries for cmd/portable-ghar-runtime-lock/main_test.go@99d55b0de82a227bcfd52f4b9ca64130db9c4338 lines 43 (DEPLOYID002), 53 (URI001), and 74 (DEPLOYID002). Same class and schema as the existing @504a9c865eb35654def0a297c05c2b3b25b80895 entries. Line hashes were computed with the scanner's own hasher against the full blob; they match the existing sibling entries because the flagged lines are byte-identical.

  2. Two identities added to PUBLIC_HISTORY_METADATA_LINES in scripts/sanitize_public.py:

    • Cursor Agent at cursor.com
    • the unprefixed users.noreply.github.com co-author form

    The existing GitHub-id form is unchanged. Entries are written with the existing "".join((..., "@domain")) split so the scanner does not flag the table itself.

Head: 940f6f7b0b10d729c00bcb80613a9138e3f2bd6d on 12f6cd32ae0830a3c95217dca381122eed4827e5.

Test plan

  • python3 -m unittest tests.sanitization.test_sanitize_public — 121 tests, 0 failures
  • python3 -m unittest discover -s tests -p 'test_*.py' — 290 tests, 0 failures
  • python3 scripts/sanitize_public.py --trackedsanitization passed
  • python3 scripts/sanitize_public.py --tracked --historysanitization passed (this is the failing push step)
  • No scanner, workflow, or --history skip changes. Allowlist growth is the three history-blob rows plus the two metadata identities.

Existing table test iterates PUBLIC_HISTORY_METADATA_LINES; no new tests were added because that test is not a hardcoded expected-set.

PUBLIC-SAFETY checklist

  • This PR contains no deployment identifiers (account IDs, zone IDs, tunnel IDs, installation/client/app IDs, or any other environment-specific identifier).
  • This PR contains no secrets (tokens, keys, credentials, passwords, or anything secret-shaped), real or expired.
  • This PR contains no real logs, real configuration, or real runtime state -- only synthetic examples (see CONTRIBUTING.md for the placeholder conventions, e.g. owner/repository, example-fleet, operator@example.invalid).
  • I ran python3 scripts/sanitize_public.py --tracked locally and it reported sanitization passed.
  • I ran python3 scripts/check_repository_metadata.py locally (if this PR touches governance/repository metadata) and it exited 0.

Governance/repository metadata is untouched, so the metadata script is N/A.

Additional context

The UUID/userinfo findings are historical copies of the already-inspected synthetic GitHub release-asset fixture in cmd/portable-ghar-runtime-lock/main_test.go. The HISTORY_META findings come from commit 7fec2d93 (Cursor Agent author/committer and the unprefixed co-author trailer).

Do not merge from this agent.

Open in Web Open in Cursor 

@coderabbitai

coderabbitai Bot commented Aug 28, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 429b5bdb-e0b1-4ff6-a0b7-b41323ef90ee


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

The push/schedule sanitizer (--tracked --history) already failed these
six deterministic findings on d880c0f and still fails them on the PR #41
pin bump. Tracked scan is clean; this does not change the scanner, skip
--history, or broaden beyond the six denies.

Add history-blob allowlist entries for
cmd/portable-ghar-runtime-lock/main_test.go@99d55b0de82a227bcfd52f4b9ca64130db9c4338
lines 43 (DEPLOYID002), 53 (URI001), and 74 (DEPLOYID002), matching the
existing @504a9c865eb35654def0a297c05c2b3b25b80895 exceptions. The flagged
lines are byte-identical; hashes were computed with the scanner's own
line hasher against the full blob OID.

Add the Cursor Agent cursor.com identity and the unprefixed
users.noreply.github.com co-author form to PUBLIC_HISTORY_METADATA_LINES.
Keep the existing GitHub-id form.

Co-authored-by: John Osumi <sumitake@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/sanitize-history-allowlist-bf52 branch from 7351487 to 940f6f7 Compare August 28, 2026 15:03
@sumitake
sumitake marked this pull request as ready for review August 28, 2026 15:04
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@sumitake
sumitake merged commit 167ba40 into main Aug 28, 2026
19 checks passed
sumitake added a commit that referenced this pull request Aug 31, 2026
After #42, --history still fails one remaining HISTORY_META deny on
167ba40: the merge-commit Cursor Agent cursor.com Co-authored-by trailer.

PUBLIC_HISTORY_METADATA_LINES already has the bare identity and the
John Osumi Co-authored-by form. Add the missing exact trailer.

Does not change the scanner, skip --history, or broaden beyond this line.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: John Osumi <sumitake@users.noreply.github.com>
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.

2 participants