Repository navigation
Conversation
Contributor
6 of 25 tasks
filimonov
force-pushed
the
hide_details_from_access_denied_exception2
branch
from
January 8, 2026 02:39
4e1e2e0 to
a329c29
Compare
filimonov
commented
Jan 8, 2026
Contributor
Author
|
@vitlibar can you look? |
vitlibar
reviewed
Jan 9, 2026
Member
|
@pufit What do you think? |
Member
|
I believe this is a good improvement. But first of all, before merging it, I want to merge my changes with optimizing the use of checkAccess, because right now some functions like |
Contributor
Author
|
@pufit any updates?
I believe it's not a hot path in normal siturations. :) |
Member
|
Let's merge this PR first. #95874 |
Member
|
@filimonov, hi |
Avoid exposing table structure to the users which does not have the permissions to access the table
filimonov
force-pushed
the
hide_details_from_access_denied_exception2
branch
from
March 6, 2026 01:23
2ff811f to
1d738f6
Compare
Contributor
Author
|
@pufit done. And it's so green, that it's hard to believe :) |
pufit
approved these changes
Mar 7, 2026
1 task
6 tasks done
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
ACCESS_DENIED hints no longer reveal column names unless the user can show all required columns; database/table names remain visible in the hint.
Documentation entry for user-facing changes
ACCESS_DENIED error hints no longer expose column names unless the user has SHOW_COLUMNS visibility for all required columns. Hints still include database/table names from the query. This reduces schema leakage while keeping grant guidance readable.
Example of the issue:
Note
Medium Risk
Changes the formatting of
ACCESS_DENIEDhint text in a security-sensitive area (privilege visibility), which may affect clients/tests that rely on exact error messages.Overview
Sanitizes
ACCESS_DENIEDhints so the “required grant” and “missing permissions” text no longer includes column names unless the user hasSHOW_COLUMNSfor all referenced columns; database/table names from the query remain visible.Adds a new integration test suite (
test_access_denied_hint_sanitized) and updates multiple existing integration tests to reflect the new hint behavior (often expectingSELECT ON db.tableuntilSHOW COLUMNSis granted).Written by Cursor Bugbot for commit f6a04c0. This will update automatically on new commits. Configure here.
Version info
26.3.1.501