-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Filter out values from system.metadata tables using access control #14197
Filter out values from system.metadata tables using access control #14197
Conversation
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.
The fix lgtm, can we add tests ?
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.
Yup, tests please :)
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.
You can use io.trino.security.TestAccessControl
for testing
29deef9
to
d3d89fb
Compare
@raunaqmorarka @ksobolew @kokosing Added tests, please take a look |
d3d89fb
to
28a3cc6
Compare
@huberty89 Thanks! Merged. |
Description
This PR filter out values using configured access control from tables:
analyze_properties
column_properties
materialized_view_properties
schema_properties
table_properties
Related issues, pull requests, and links
Non-technical explanation
Do not leak configured catalogs names when user does not have an access to them
Release notes
( ) This is not user-visible and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(x) Release notes are required, with the following suggested text: