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

DRILL-8121: Add UserSession to StoragePlugins #2475

Closed
wants to merge 4 commits into from

Conversation

cgivre
Copy link
Contributor

@cgivre cgivre commented Feb 27, 2022

DRILL-8121: Add UserSession to StoragePlugins

Description

One of the major limitations of Drill is that per-user credentials are not supported in non-Hadoop, or file system storage plugins. In conducting experiments, one of the major challenges preventing this was that there was no reliable way for a storage plugin to obtain the username of the user who submitted the query.

This PR represents the first step in making this possible by passing the UserSession object down to the storage plugin instance. Thus for each query, the storage plugin can obtain the active user id. This does not affect any current Drill behavior, but will make it possible to implement per-user credentials for plugins such as JDBC, Splunk, ElasticSearch and others that do not have the concept of user impersonation.

Documentation

No user facing changes

Testing

Added unit tests.

@cgivre cgivre requested a review from jnturton February 27, 2022 16:00
@cgivre cgivre self-assigned this Feb 27, 2022
@cgivre cgivre added access-controls enhancement PRs that add a new functionality to Drill security labels Feb 27, 2022
@jnturton jnturton marked this pull request as draft March 7, 2022 07:32
@cgivre cgivre closed this Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
access-controls enhancement PRs that add a new functionality to Drill security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant