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

[Improvement] RESTful API supports isolated authentication configuration #6041

Open
3 of 4 tasks
beryllw opened this issue Feb 4, 2024 · 5 comments · May be fixed by #6042
Open
3 of 4 tasks

[Improvement] RESTful API supports isolated authentication configuration #6041

beryllw opened this issue Feb 4, 2024 · 5 comments · May be fixed by #6042

Comments

@beryllw
Copy link
Contributor

beryllw commented Feb 4, 2024

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

What would you like to be improved?

kyuubi restful api uses the authentication method set by the kyuubi.authentication parameter, but sometimes users do not want to enable the authentication for restful api.
When kyuubi.authentication=KERBEROS, but kyuubi.spnego.xxx not set, an error will be reported, and http requests for "/api/v1" will fail.

WARN main org.apache.kyuubi.server.http.authentication.AuthenticationFilter: The authentication handler KerberosAuthenticationHandler for scheme NEGOTIATE is not supported.

image
Should we add a configuration parameter like kyuubi.restful.authentication to control whether the restful api enables authentication?

How should we improve?

add a configuration parameter to supports restful api control authentication isolated.

Are you willing to submit PR?

  • Yes. I would be willing to submit a PR with guidance from the Kyuubi community to improve.
  • No. I cannot submit a PR at this time.
@pan3793 pan3793 changed the title [Improvement] Restful api supports isolated authentication configuration [Improvement] RESTful API supports isolated authentication configuration Feb 4, 2024
@pan3793
Copy link
Member

pan3793 commented Feb 4, 2024

I know the pain of Kerberos/SPNEGO for both user and administrator, as a workaround, it's allowed to configure multi-values on kyuubi.authentication, for example,

kyuubi.authentication=KERBEROS,LDAP

and even

kyuubi.authentication=KERBEROS,NONE

@beryllw
Copy link
Contributor Author

beryllw commented Feb 4, 2024

kyuubi.authentication=KERBEROS,NONE

look like kyuubi.authentication=KERBEROS,NONE can solve my problem, does NONE only work on restful api?

@pan3793
Copy link
Member

pan3793 commented Feb 4, 2024

... does NONE only work on restful api?

It also affects THRIFT-BINARY API.

@beryllw
Copy link
Contributor Author

beryllw commented Feb 4, 2024

It also affects THRIFT-BINARY API.

Maybe in some scenarios we just want to turn off the authentication of restful api?

@pan3793
Copy link
Member

pan3793 commented Feb 4, 2024

makes sense, u are welcome to have a try, but such a part is a little bit complex :)

beryllw added a commit to beryllw/incubator-kyuubi that referenced this issue Feb 4, 2024
beryllw added a commit to beryllw/incubator-kyuubi that referenced this issue Feb 4, 2024
beryllw added a commit to beryllw/incubator-kyuubi that referenced this issue Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants