wangzhigang1999 opened a new pull request, #7567:
URL: https://github.com/apache/kyuubi/pull/7567

   ### Why are the changes needed?
   
   The Engine UI proxy currently falls back to Jetty's generic 403 page when 
proxying is disabled, the target host is not allowlisted, or the URL is 
invalid. The page does not tell users which Kyuubi settings need to be changed.
   
   This patch keeps the existing 403 status and host validation, but returns an 
actionable Kyuubi-styled page that shows the target engine and the relevant 
proxy and host allowlist settings.
   
   ### How was this patch tested?
   
   - `dev/reformat`
   - `build/mvn -pl kyuubi-server -am 
-Pspark-provided,hive-provided,flink-provided scalastyle:check`
   - `build/mvn test -pl kyuubi-server -am -rf :kyuubi-server_2.12 
-Pspark-provided,hive-provided,flink-provided -Dtest=none 
-DwildcardSuites=org.apache.kyuubi.server.api.EngineUIProxyServletSuite`
   - Compared the previous and updated 403 responses through real Jetty 
servlets in a browser.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Assisted-by: Codex with GPT-5
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to