Skip to content

feat(security): log reasons for rejected read-only Cypher - #1769

Merged
Shashankss1205 merged 1 commit into
mainfrom
maintenance/fix-1233-20261015
Oct 15, 2026
Merged

Shashankss1205 merged 1 commit into
mainfrom
maintenance/fix-1233-20261015

Conversation

@Shashankss1205

Copy link
Copy Markdown
Collaborator

Records a bounded, fixed rejection reason for forbidden write clauses, statement separators, write-side namespaces and non-allowlisted CALLs. Logs omit query text, literals and parameter names. The existing configurable warning logger controls visibility.

Validation: rejection-category, sensitive-data omission and allowed-query tests; helper/security suite: 55 passed. Ruff passes.

Closes #1233.

@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
code-graph-context-pack Ready Ready Preview Oct 15, 2026 10:55am UTC

@github-actions

Copy link
Copy Markdown
Contributor

Hi! 👋 Join our CodeGraphContext Discord channel to collaborate: https://discord.gg/dR4QY32uYQ

@github-actions

Copy link
Copy Markdown
Contributor

🔍 PR Code Graph Analysis

feat(security): log reasons for rejected read-only Cypher (#1769)

📊 Interactive Visualization

View the blast radius graph: PR Reviewer Dashboard

📦 Artifacts

The graph JSON has been uploaded as a build artifact: pr-code-graph-1769


Generated by CodeGraphContext using FalkorDB Lite

@Shashankss1205 Shashankss1205 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewed every rejection path and verified fixed log messages omit query text, literals and parameter names. Valid read-only queries remain accepted without a warning. Combined helper/security/remote suite: 77 passed; Ruff passes. Existing warning logger configuration controls visibility.

@Shashankss1205
Shashankss1205 merged commit ae7a206 into main Oct 15, 2026
22 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog tasks to Done in CGC Progress Board Oct 15, 2026

This branch was successfully deployed

1 active deployment
Preview — bdb574b6 Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

feat: Add audit logging when read-only Cypher validation rejects a query

1 participant