Skip to content

fix(sql): stop false-positive forbidden keywords in Call-IDs (11.0.305) - #908

Merged
adubovikov merged 1 commit into
homer11from
fix/call-id-forbidden-keyword-11.0.305
Aug 2, 2026
Merged

fix(sql): stop false-positive forbidden keywords in Call-IDs (11.0.305)#908
adubovikov merged 1 commit into
homer11from
fix/call-id-forbidden-keyword-11.0.305

Conversation

@adubovikov

@adubovikov adubovikov commented Aug 2, 2026

Copy link
Copy Markdown
Member

Summary

  • Call flow / node SQL validation no longer 500s when Call-ID / session_id embeds blocklisted words like call (same class of bug as -- inside session_ids).
  • Replace naive whole-string regex in validateUserSQL / MCP validateSQL with token-aware sqlvalidator.ContainsForbiddenIdentifier.
  • Keep CALL (and other DML/DDL keywords) blocked as real SQL identifiers; ignore string literals.
  • Bump version to 11.0.305.

Test plan

  • go test ./coordinator/sqlvalidator/ ./node/ ./mcp/
  • Call flow with session_id / Call-ID containing call (and similar) returns data, not 500
  • Real CALL … / bare DELETE identifiers still rejected by node/MCP validators

Make node/MCP read-only keyword checks token-aware via sqlvalidator so
words like "call" inside quoted session_id values are allowed while real
CALL/DML identifiers remain blocked. Bump version to 11.0.305.
@adubovikov
adubovikov merged commit c2cd5ad into homer11 Aug 2, 2026
10 checks passed
@adubovikov
adubovikov deleted the fix/call-id-forbidden-keyword-11.0.305 branch August 2, 2026 20:05
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