apache / kyuubi

Apache Kyuubi is a distributed and multi-tenant gateway to provide serverless SQL on data warehouses and lakehouses.
https://kyuubi.apache.org/
Apache License 2.0
2.11k stars 915 forks source link

[Bug] AuthenticationFilter auth type check has bug while check equals of set and seq type #6709

Closed lifulong closed 1 month ago

lifulong commented 1 month ago

Code of Conduct

Search before asking

Describe the bug

while check auth types in AuthenticationFilter.initAuthHandlers authTypes == Set(NOSASL) left side is seq, right side is set, the result is always false, even if authTypes values is Seq(NOSASL)

Affects Version(s)

master

Kyuubi Server Log Output

2024-09-25 14:55:22.330 DEBUG org.apache.kyuubi.server.http.authentication.AuthenticationFilter: No auth scheme matched for url: http://10.101.1.62:10100/api/v1/ping

Kyuubi Engine Log Output

No response

Kyuubi Server Configurations

kyuubi.authentication NOSASL

Kyuubi Engine Configurations

No response

Additional context

No response

Are you willing to submit PR?

github-actions[bot] commented 1 month ago

Hello @lifulong, Thanks for finding the time to report the issue! We really appreciate the community's efforts to improve Apache Kyuubi.