Support all Trino Security Access Control modes in Delta lake Connector#11782
Support all Trino Security Access Control modes in Delta lake Connector#11782kokosing merged 1 commit intotrinodb:masterfrom
Conversation
4439683 to
9b6b0cc
Compare
9b6b0cc to
bf45197
Compare
|
This PR is preparation to support Trino views within the Delta Lake connector. We would need to support Access control modes as otherwise the default SYSTEM access control would fail on every view access. See following comment |
|
@kokosing @lukasz-walkiewicz did you have time to look into this? |
bf45197 to
1b2d90f
Compare
|
I've also added docs based on the existing Iceberg docs. |
|
Are the other SecurityModules used by the Hive connector applicable? |
|
@alexjo2144 good question
|
|
We don't want legacy. |
|
Is this good to be merged? This would unblock #11763 |
|
@lukasz-walkiewicz CPTAL ? |
|
@mdesmet can you resolve the conflicts? |
1b2d90f to
cb83597
Compare
There was a problem hiding this comment.
I would prefer SYSTEM as default
There was a problem hiding this comment.
I based myself on the Iceberg security default:
Wouldn't we want to keep this consistent with Iceberg?
There was a problem hiding this comment.
I would change the Iceberg too. From user perspective ALLOW_ALL and and SYSTEM do not differ match, other than ALLOW_ALL pretends that it manages roles (while actaully it has no roles) so it limits system roles use cases.
I think we could even consider removal of ALLOW_ALL.
Hence I would prefer to use SYSTEM here, and then update Iceberg too.
There was a problem hiding this comment.
Please add a note which option is used by default.
There was a problem hiding this comment.
test-iceberg-plugin-access-control -> test-delta-lake-plugin-access-control
|
@kokosing CPTAL over this PR ? It has been dormant for a while now. |
cb83597 to
0419680
Compare
|
Thanks to #13862 I realized I was wrong. I think you should |
|
I am very sorry I have mislead you in the first place. |
0419680 to
4b2b708
Compare
There was a problem hiding this comment.
Unused parameter. Please remove.
There was a problem hiding this comment.
We can safely add a static import here. I think it will not be misleading.
4b2b708 to
7964760
Compare
|
@kokosing: Can you have another look? |
|
Thanks. I am sorry for the delay. |
| install(new ConnectorAccessControlModule()); | ||
| bindSecurityModule(ALLOW_ALL, new AllowAllSecurityModule()); | ||
| bindSecurityModule(READ_ONLY, new ReadOnlySecurityModule()); | ||
| bindSecurityModule(FILE, new FileBasedAccessControlModule()); |
Description
Support Read-only, file and allow all access control modes in delta connector.
Improvement
Change to the Delta Lake Connector
Related issues, pull requests, and links
Documentation
( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
( ) No release notes entries required.
( ) Release notes entries required with the following suggested text: