Skip to content

Add impersonation to related metastore calls#12002

Merged
electrum merged 1 commit intotrinodb:masterfrom
zhangbutao:add_impersonation_to_related_metastore_calls
Apr 20, 2022
Merged

Add impersonation to related metastore calls#12002
electrum merged 1 commit intotrinodb:masterfrom
zhangbutao:add_impersonation_to_related_metastore_calls

Conversation

@zhangbutao
Copy link
Contributor

@zhangbutao zhangbutao commented Apr 19, 2022

Description

In production env, we often turn on metastore server side authorization and audit. Metastore server authorization and audit need real user of client, therefore i think trino should add impersonation to related metastore calls, eg: getAllDatabases, getAllTables,listRoles.

Related issues, pull requests, and links

We often use metastore server authorizaton based on the hdfs storage or ranger authorization and both the two authorizations need real user of metastore client . You can refer to hive jira:
https://issues.apache.org/jira/browse/HIVE-3705 metastore Storage Based Authorization
https://issues.apache.org/jira/browse/HIVE-21753 metastore Ranger Based Authorization

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:

# Section
* Add impersonation to related metastore calls

@cla-bot cla-bot bot added the cla-signed label Apr 19, 2022
@findepi findepi requested review from kokosing and lukasz-walkiewicz and removed request for findepi April 19, 2022 10:35
@electrum electrum merged commit 82df8d9 into trinodb:master Apr 20, 2022
@electrum
Copy link
Member

Thanks!

@github-actions github-actions bot added this to the 378 milestone Apr 20, 2022
@osscm
Copy link
Contributor

osscm commented Apr 28, 2022

#11577 is fixed by this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants