-
-
Notifications
You must be signed in to change notification settings - Fork 201
Description
Issue submitter TODO list
- I've searched for an already existing issues here
- I'm running a supported version of the application which is listed here and the feature is not present there
Is your proposal related to a problem?
No response
Describe the feature you're interested in
When you visit an API path that does not exist like /api/foobar, Kafka-UI prints a JSON response containing a stackTrace field.
I'd like to be able to prevent the stacktrace from being printed as a defence in depth strategy to limit exposing implementation detail that could be used to scan for known vulnerabilities. This is to address https://owasp.org/www-community/Improper_Error_Handling.
I appreciate that Kafka-UI displays the currently-deployed git commit short hash in the header, and since Kafka-UI is open-source, that can also be used to discover the library dependency tree. However, I think addressing that is outside the scope of this request.
Describe alternatives you've considered
I tried to use Spring web native property server.error.include-stacktrace to prevent this, but that didn't work.
I see the stacktrace is always being added in GlobalErrorWebExceptionHandler.java class.
Version you're running
Additional context
No response
Metadata
Metadata
Assignees
Labels
Projects
Status