Disable AI SQL generation in embedded client#100290
Merged
alexey-milovidov merged 12 commits intomasterfrom Apr 10, 2026
Merged
Disable AI SQL generation in embedded client#100290alexey-milovidov merged 12 commits intomasterfrom
alexey-milovidov merged 12 commits intomasterfrom
Conversation
The embedded client (used by SSH and WebSocket protocols) runs inside the server process. The AI provider initialization reads API keys from environment variables, which is a security concern since the server's environment should not be exposed to users. Skip `initAIProvider` when `isEmbeeddedClient` returns true, both in interactive and non-interactive mode paths. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
Workflow [PR], commit [8c86dd9] Summary: ✅ AI ReviewSummaryThis PR disables ClickHouse Rules
Final Verdict
|
iskakaushik
approved these changes
Mar 21, 2026
thevar1able
approved these changes
Mar 21, 2026
Member
Author
Member
Author
Member
Author
|
The Stress test (arm_msan) failure is fixed by #101239, which should be merged first. After it is merged, please update the branch to include the fix. |
This was referenced Apr 8, 2026
Contributor
LLVM Coverage Report
Changed lines: 100.00% (11/11) | lost baseline coverage: 1 line(s) · Uncovered code |
Member
Author
|
Now please review #100277 |
This was referenced Apr 10, 2026
robot-clickhouse
added a commit
that referenced
this pull request
Apr 10, 2026
robot-clickhouse
added a commit
that referenced
this pull request
Apr 10, 2026
robot-clickhouse
added a commit
that referenced
this pull request
Apr 10, 2026
robot-clickhouse
added a commit
that referenced
this pull request
Apr 10, 2026
clickhouse-gh Bot
added a commit
that referenced
this pull request
Apr 10, 2026
Backport #100290 to 26.3: Disable AI SQL generation in embedded client
alexey-milovidov
added a commit
that referenced
this pull request
Apr 10, 2026
Backport #100290 to 26.1: Disable AI SQL generation in embedded client
alexey-milovidov
added a commit
that referenced
this pull request
Apr 10, 2026
Backport #100290 to 25.8: Disable AI SQL generation in embedded client
alexey-milovidov
added a commit
that referenced
this pull request
Apr 10, 2026
Backport #100290 to 26.2: Disable AI SQL generation in embedded client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The embedded client (used by SSH and WebSocket terminal protocols) runs inside the server process. The
initAIProviderfunction reads API keys from environment variables (OPENAI_API_KEY,ANTHROPIC_API_KEY), which is a security concern since the server's environment should not be exposed to connected users via the??command.Skip
initAIProviderwhenisEmbeeddedClientreturns true, both in interactive and non-interactive mode paths. The??command will print "AI SQL generator is not initialized" instead of accessing environment variables.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Disable AI SQL generation (
??command) in the embedded client (SSH and WebSocket protocols) to prevent access to the server's environment variables.Documentation entry for user-facing changes