-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Feature Request: Ranger authorization integration #8980
Comments
This could perhaps piggy back to use Hive policies in Ranger or else copy what Hive has to a separately managed policy for Presto. There are trade-offs to both styles, so perhaps make this a configurable user choice. |
I am trying to implement authorization for any connector. For that to work I need to access the resources (columns etc) for the connector. I have been trying to find where in the source you have access to the connector metadata (tables, columns, connection detail etc) and the query information before execution and it seems all of this is available to you in the SQLQueryExecution class in the start function. After you have analyzed the query and gotten all the connector handles. Would this be a good place to perform an authorization check if we can access the necessary resources (column granularity). It feels like its too late in the Presto process to reject a request but who knows. Anyone who can point me in the right direction? Thank you |
any updates or plans where integration will be completed? |
Hi, Need some help with addressing column level security: Any hint around this area would be much appreciated. |
What about using |
Thanks @kokosing. that helps. My bad I was checking with v201.
|
To me it sounds like a bug? CC: @rschlussel2 Is this expected? |
@RameshByndoor can u share the code? |
@RameshByndoor Are you going to base your work on top of #10904? |
@RameshByndoor can you give an example query where you're seeing the alias and object name. I can take a look. |
@rschlussel2 you can use simple command as |
@rschlussel can you help me with the above.? Is it expected or how to patch it.? |
I want to implement ranger plugin for presto .. could you please point to the branch which I can refer and clone and test |
@RameshByndoor are you working on this actively? We have a need to add this support and were planning to take up this work up unless someone else is already working on it. Please let me know. |
@RameshByndoor the issue you mentioned does seem like a bug and is easily reproducible. While @rschlussel is looking at it you can unblock by filtering columns which are not identifiers, something like this in Analyzer.analyze:
|
Thanks for the reminder- I'd forgotten about this. I just put up a PR to fix it #11295 |
@stagraqubole The code is similar in both the cases. Its a matter of where we plug it. SystemAccessControl would work regardless of all the underlying connectors of presto. Policies will be maintained under presto service in Ranger making presto as a main query engine. |
Taking example of Hive connector which would be the biggest consumer of Ranger support, doing it in SystemAccessControl would mean that you will maintain two Ranger policies now: one for Hive and one for Presto which would get difficult to maintain. Doing it in ConnectorAccessControl allows a single Policy holder in Ranger and that would be the one created for Hive, very similar to having SqlStandardAccessControl as ConnectorAccessControl rather than SystemAccessControl. |
@rschlussel Does your PR fix #11295 has a support for Ranger in Presto now? |
no. it unblocks @RameshByndoor who is working on adding support. |
im interested in this ranger plugin for presto.. can you give some branch which i can take and try to test |
We are on test cases nd other sanity checks, Not yet ready to PR. |
Any update on timeline? I appreciate the work you've done for this plugin. Would love to get my hands on it. |
https://docs.google.com/document/d/1Jtapmwkp1Up_w6w_3dUeOXfLPLRAsglbqoIWNRG-NJM/edit# This is what me and @RameshByndoor have done. We are testing the code at this moment. I can't commit any hard timelines but we should be in a state to release it next week. We have also handled #10996 as part of the ranger presto integration. Features supported :
|
This may not be the best place for a question, but given the lack of support for this specific feature, I figured I'll give it a shot. @cquptEthan or any one else? Have you gotten SSL working with this custom plugin? We don't have the CredentialProvider API setup for keystore passwords, and I'm at a loss on how to get this working without it. From what I can tell, the properties I need to have available with an https Ranger endpoint are: The plugin then expects a value for hadoop.security.credential.provider.path to interrogate the CredentialProvider API for a password of the keystore/truststore based on the last two properties above. Is this understanding correct? How can I get around using the CredentialProvider API? |
thank you ll direcotry: root@slave3:/opt/presto316/presto-server-316-SNAPSHOT/plugin/ranger/ranger-presto-plugin-impl# ll error:
1 error
1 error |
Its not the same: This you need to fix yourself as that is not an issue with the plug-in but an is errot |
thank you very much . i have solved this problem by putting A right libc.so into this directory. then i add a service prestodev, using jdbc:presto://10.183.243.83:8090. when I test the connection , i got another error :
my presto server is configured with SSL. and i can access presto by ./presto_cli --server https://slave3.example.com:9090 --catalog mysql --schema population --truststore-path /opt/presto-public.store --truststore-password XXX123 --user root --password so how can I configure Ranger with SSL? and also i can not find the file ranger_admin.log |
Could you please tell us which version of horton on which it worked.we get a facebook spi not found error when we add ranger plugin in prest |
We are getting errors on the same lines as the one posted above by x90004942 commented on Jul 2 |
@dsjoegeo |
Hey I have implemented prestodb integration with Ranger successfully in my environment |
Hi all, Is this thread still active ? |
No? |
@shekarrreddy568 would you mind sharing the environment you used to test the ranger integration? |
hey ,
Currently i am on vacation, can be able to help after 10 days.
…On Fri, Mar 20, 2020, 7:28 AM Kenton Parton ***@***.***> wrote:
@shekarrreddy568 <https://github.com/shekarrreddy568> would you mind
sharing the environment you used to test the ranger integration?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8980 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALI7QXELTZQ2OD6O5A62SLLRILETPANCNFSM4D3CREYA>
.
|
@shekarrreddy568 That would be great, thank you! |
Is this documentation still up to date? https://cwiki.apache.org/confluence/display/RANGER/Presto+Plugin If not, would someone mind providing a link please. Thank you! |
@shekarrreddy568 We would appreciate a summary of your environment |
@shekarrreddy568-zz @shekarreddy568 taking a gamble here on whether you are reachable? Still wondering if you can share your experience with using Ranger. |
@aweisberg |
Is anyone still actively working on this? |
Yes, I have WIP implementation, will share the PR by sometime next week. |
@rohanpednekar Is active development going on for this? When can we expect it to be released tentatively |
@sridhartw, yes we are actively working on this. Subscribe to #15519 for the live updates. Thanks! |
For help with PrestoDB, please join the Presto Community Slack channel at https://prestodb.slack.com. |
ERROR main io.trino.server.Server Unable to create injector, see the following errors:
Learn more: 1 error ======================
|
Feature Request to add Apache Ranger integration support for Presto.
This will solve authorization very nicely for most people who are running the widely used standard open source Hortonworks Hadoop platform and provide granular access controls down to the column level, as well as integrating to the single-pane-of-glass for security configuration and auditing across all data access components on a Hadoop cluster.
Also, is there any chance this project could go in to the Apache Foundation? I think this combined with Ranger integration would massively increase Presto's market, especially if Hortonworks were to adopt it (they usually require their integrated components to be in the Apache Foundation).
Great work so far on this distributed SQL engine btw! :)
The text was updated successfully, but these errors were encountered: