Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PS-8378: Allow to run EXPLAIN with lower level of privileges #4962

Draft
wants to merge 1 commit into
base: 8.0
Choose a base branch
from

Conversation

dlenev
Copy link
Contributor

@dlenev dlenev commented Dec 23, 2022

This patch introduces new global dynamic EXPLAIN_OBSERVER privilege which allows users which have it to run EXPLAIN statement for any DML. For users which don't have this privilege EXPLAIN for a DML statement still requires the same privileges as for the DML being explained.

The idea is that users employed by monitoring/performance analysis tools can use this privilege to get information about execution plans for problematic statements, without risk of more data exposure or undesirable data changes which occurrs when they are granted global SELECT/INSERT/UPDATE/DELETE necessary to explain any DML.

@dlenev dlenev self-assigned this Dec 23, 2022
This patch introduces new global dynamic EXPLAIN_PLAN privilege
which allows users which have it to run EXPLAIN statement for any DML.
For users which don't have this privilege EXPLAIN for a DML statement
still requires the same privileges as for the DML being explained.

The idea is that users employed by monitoring/performance analysis
tools can use this privilege to get information about execution plans
for problematic statements, without risk of more data exposure or
undesirable data changes which occurrs when they are granted global
SELECT/INSERT/UPDATE/DELETE necessary to explain any DML.
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