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

sql: prevent DROP OWNED BY with synthetic privileges #14924

Closed
cockroach-teamcity opened this issue Aug 24, 2022 · 1 comment
Closed

sql: prevent DROP OWNED BY with synthetic privileges #14924

cockroach-teamcity opened this issue Aug 24, 2022 · 1 comment

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Aug 24, 2022

Exalate commented:

Related PR: cockroachdb/cockroach#86619
Commit: cockroachdb/cockroach@2bd3826


Release note (sql change): DROP OWNED BY cannot be performed if the
user has synthetic privileges (in system.privileges)

Jira Issue: DOC-5465

@exalate-issue-sync
Copy link

Rafi Shamim (rafiss) commented:
I filed cockroachdb/cockroach#88149 to track the fix for resolving this limitation.

As far as documenting the limitation, we should say something like “{{DROP OWNED BY}} will result in an error if the user was granted a privilege using the {{GRANT SYSTEM ...}} command. To work around this, use {{SHOW SYSTEM GRANTS FOR }} and then use {{REVOKE SYSTEM ...}} for each privilege in the result."

@exalate-issue-sync exalate-issue-sync bot assigned rmloveland and unassigned ghost Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants