Skip to content
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

Prevent view owner from being set when system security is used #20647

Conversation

homar
Copy link
Member

@homar homar commented Feb 9, 2024

Description

It is a security hole as user can have broader access to glue than to trino and can leverage this to get access to data he should not access

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, 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:

# Section
* Stop setting materialized view owner in glue catalog . ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Feb 9, 2024
@github-actions github-actions bot added the iceberg Iceberg connector label Feb 9, 2024
@homar homar force-pushed the homar/dont_set_owner_for_glue_view_when_using_system_security branch from 4908d1d to 3ef8da1 Compare February 9, 2024 17:47
@homar homar requested a review from alexjo2144 February 9, 2024 20:14
@findepi
Copy link
Member

findepi commented Feb 15, 2024

Prevent view owner

Did you mean "materialized view"?

throws IOException
{
Path rootPath = Files.createTempDirectory("test_iceberg_mv_with_glue");
TrinoCatalog glueTrinoCatalog = createGlueTrinoCatalog(false, true, new LocalFileSystemFactory(rootPath));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HDFS_FILE_SYSTEM_FACTORY should work ok for local files, just use file:// url
this will avoid adding TrinoFileSystemFactory parameter in createTrinoCatalog overload, keeping things simpler

Copy link
Member

@findepi findepi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

%

@findepi
Copy link
Member

findepi commented Feb 15, 2024

/test-with-secrets sha=3ef8da1423497723a0d38d90eeef49727f103c33

Copy link

github-actions bot commented Feb 15, 2024

The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/7912829622

@homar homar force-pushed the homar/dont_set_owner_for_glue_view_when_using_system_security branch from 3ef8da1 to b075e78 Compare February 15, 2024 15:36
@findepi
Copy link
Member

findepi commented Feb 15, 2024

/test-with-secrets sha=b075e781b70d455c037742cc9d5d9f13d9b30d0b

Copy link

The CI workflow run with tests that require additional secrets has been started: https://github.com/trinodb/trino/actions/runs/7920785518

@findepi findepi merged commit 3a882e9 into trinodb:master Feb 16, 2024
43 checks passed
@github-actions github-actions bot added this to the 440 milestone Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed iceberg Iceberg connector
Development

Successfully merging this pull request may close these issues.

3 participants