-
Notifications
You must be signed in to change notification settings - Fork 937
[Bug] [AUTHZ]ALTER operation to change the table name don't require any permission #7040
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
Comments
Hello @baotran306, |
I think the test of iceberg ranger may not fully check all commands of spark. I did not find alter table command in this file. |
If you need, I can check iceberg's alter table command for you. If there are code changes, you may need to merge a new patch into your branch. Do you need me to do this? |
Hi @davidyuan1223, thanks for your prompt response. I really need your help in coding this new patch. Please do this. Once you've made the necessary changes, I'll merge the new patch into my branch later. Additionally, Can you also include unit tests that cover the full range of Iceberg syntax? |
Of Course, But this work may need 2~3 weeks, I need to deal with other work recently, so I may not be able to look at this question until next week. |
Sounds good. I really appreciate you looking into this next week. Thanks. |
Hi @davidyuan1223, One more update from my side: I've just tested all the DDL commands for Iceberg tables. I think this list will be a little helpful in reducing your effort. It seems that almost all ALTER TABLE commands behave similarly to ALTER TABLE RENAME(No require any permission). Thanks again. ![]() |
Code of Conduct
Search before asking
Describe the bug
Describe the bug
I'm using Iceberg table version 1.7.2 and try to rename table using
ALTER TABLE t1 rename to t2
In my current situation, despite having revoked all my permissions, I am still able to change my table name using the
ALTER TABLE RENAME
command. Furthermore, I can even move a table from one schema to another using a command likeALTER TABLE schema_a.my_table RENAME TO schema_bb.my_table
without any apparent permissions.I try to another ALTER TABLE command, for example
ALTER TABLE ADD COLUMNS
and it deny my command as our expectation.However, the
ALTER TABLE RENAME
command appears to run regardless of whether the user has the ALTER permission or not. I believe this constitutes a critical security or data governance issue.What happens here?
Affects Version(s)
v1.10.1
Kyuubi Server Log Output
Kyuubi Engine Log Output
Kyuubi Server Configurations
Kyuubi Engine Configurations
Additional context
No response
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: