Skip to content

[Bug] [AUTHZ]ALTER operation to change the table name don't require any permission #7040

Open
@baotran306

Description

@baotran306

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the bug

Describe the bug
I'm using Iceberg table version 1.9.0 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 like ALTER 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)

master

Expectation

Ranger check support iceberg all operation permission check


Task list

Spark 3 Reference: https://iceberg.apache.org/docs/1.9.0/spark-getting-started/

DDL

Writing with SQL:

Procedures:

Queries

Are you willing to submit PR?

  • Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix.
  • No. I cannot submit a PR at this time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions