Skip to content

security: document fixed similar-VOC SQL fragment - #619

Merged
seonghobae merged 1 commit into
mainfrom
fix/similar-voc-semgrep-audit
Aug 25, 2026
Merged

security: document fixed similar-VOC SQL fragment#619
seonghobae merged 1 commit into
mainfrom
fix/similar-voc-semgrep-audit

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Root cause

PR #614 safely interpolates only the repository-owned SOURCE_POST_ELIGIBILITY_SQL with the fixed post alias; every request and identity value remains an asyncpg parameter. Semgrep cannot derive that provenance and reported the same false positive twice.

This adds the existing narrow scanner annotation used by the other audited eligibility queries, beside an explicit trust-boundary explanation. It does not suppress any other rule or path.

The Global Ask candidate-membership repair was already delivered by merged PR #614 and is retained unchanged.

Verification

  • uv run --extra dev --extra backend pytest -q tests/test_global_ask_sources.py backend/tests/test_similar_voc_api.py tests/test_post_eligibility.py — 22 passed
  • semgrep --config p/python backend/app/main.py backend/app/post_chat_ingestion.py --error --metrics=off — 0 findings across 151 Python rules
  • git diff --check origin/main...HEAD — passed

Follow-up to #614 and code-scanning findings 234/235.


Open in Devin Review

@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 21 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 41dbfb3b-f8d0-4d6e-9e97-83734ddaf6fe

📥 Commits

Reviewing files that changed from the base of the PR and between 48f013a and 29e01dc.

📒 Files selected for processing (1)
  • backend/app/main.py

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.

@devin-ai-integration devin-ai-integration 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@seonghobae
seonghobae enabled auto-merge (squash) August 25, 2026 11:39
@seonghobae
seonghobae merged commit 718dfcc into main Aug 25, 2026
21 of 22 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