-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Issue 8091][Pulsar SQL] Add presto password authenticators plugin #9411
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
Conversation
|
LGTM |
sijie
left a comment
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.
I am not sure we need to add this.
password authentication is already supported in the latest image. We have enabled and use it in the helm chart: https://github.com/streamnative/charts/blob/master/charts/pulsar/templates/presto/presto-coordinator-configmap.yaml#L258
|
Adding the configuration will just cause the server to fail to start, like this: To get it to work, you to do item 2, listed in issue #8091: "include the plugin https://mvnrepository.com/artifact/io.prestosql/presto-password-authenticators in the pulsar image and put in the presto plugin folder." If you don't believe me, you are welcome to try it. |
|
@cdbartholomew okay. Can you add an integration test to verify this work? |
eolivelli
left a comment
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.
LGTM
|
The pr had no activity for 30 days, mark with Stale label. |
|
@cdbartholomew:Thanks for your contribution. For this PR, do we need to update docs? |
|
Today, we hit this problem, sadly, it was opened on 2021 and not yet fixed :-/ cc @sijie |
|
Closed as stale and conflict. @miton18 I'm active in reviewing Pulsar SQL related issues/PRs. Also, in the master branch, we upgrade from PrestoSQL to Trino version #16683. If it's still relevant to your use case, you can either open a new issue to describe the case and reproduce or rebase and resubmit this patch (ping me as a reviewer :)) |
Fixes #8091
Motivation
In order to use authentication in Presto (and Pulsar SQL), the password authenticators plugin must be present in the distribution. If you configure password authentication and the plugin is not present, the server will not start.
Modifications
This update pulls in the password authenticators plugin from the PrestoSQL build and packages as part of the presto distribution used by the
pulsar sql-worker runcommand.Verifying this change
I have built a Docker image with this change and confirmed that file-based password authentication works with this change. Since the plugin comes from the Presto build, I don't think we need any extra tests for it. Adding an integration test would be difficult because configuring authentication in Presto requires HTTPS to also be set up.
Does this pull request potentially affect one of the following parts:
If
yeswas chosen, please highlight the changesDocumentation
The plugin can be configured by modifying the files in the
/etc/conf/prestodirectory by following the PulsarSQL (now Trino) documentation. For example, this link explains has to configure file-based password authentication.