Skip to content

Keep the user's settings in the embedded client of the web terminal and SSH - #125515

Merged
alexey-milovidov merged 3 commits into
masterfrom
fix-embedded-client-settings-reset
Oct 13, 2026
Merged

alexey-milovidov merged 3 commits into
masterfrom
fix-embedded-client-settings-reset

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

The embedded client (used by /webterminal and the SSH interface) replaced the settings of the authenticated session with default values via setSettings. Settings coming from the user's profiles, roles, and CREATE USER ... SETTINGS were lost, including readonly, resource limits, and additional_table_filters. Now only the explicitly changed settings are applied, after checking them against the constraints.

LocalConnection::sendQuery now also checks the settings sent with a query against the constraints, as TCPHandler does.

Related: https://github.com/ClickHouse/clickhouse-private/issues/80919

Changelog category (leave one):

  • Critical Bug Fix (crash, data loss, RBAC)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

The web terminal and the SSH interface no longer reset the settings of the user (from settings profiles, roles, and CREATE USER ... SETTINGS) to default values. Previously, restrictions such as readonly, resource limits, and additional_table_filters were not applied in these interfaces.

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/125515]

Version info

  • Merged into: 26.10.1.2321-master (included in 26.10 and later)
  • Backported to: 26.9.19.8, 26.8.27.8, 26.7.30.10, 26.3.52.5

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-local clickhouse-local / embedded modes (incl. local file processing). pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-critical-bugfix pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants