-
Notifications
You must be signed in to change notification settings - Fork 590
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
fix: ALTER xxx OWNER TO xxx
should check the CREATE
privilege on the schema
#13593
Conversation
It is weird that test1/test2 does not has create privilege on dev.public schema whereas they can create table on it :) |
Because risingwave/src/frontend/src/session.rs Lines 717 to 723 in bcf7579
|
Is it designed for RW? I found in PG a user still needs create privilege to create a table in public schema. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #13593 +/- ##
==========================================
- Coverage 68.06% 68.03% -0.03%
==========================================
Files 1516 1516
Lines 261570 261607 +37
==========================================
- Hits 178049 177997 -52
- Misses 83521 83610 +89
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add some e2e tests for it?
For example altering a table's owner which is under a non-public schema To see if it will be rejected. And altering again after granted CREATE
privilege of the schema to see if it will success.
I think that's because RW don't have role concept and |
…thub.com/risingwavelabs/risingwave into kanzhen/fix-alter-owner-create-privilege
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM.
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Resolve #13509.
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.