maytasm opened a new pull request #11711:
URL: https://github.com/apache/druid/pull/11711
Add new config to filter internal Druid-related messages from Query API
response
### Description
When this new config is enabled, Druid Query API responses will hiding
internal information (class name, stack trace, internal concept, thread name /
servlet name, code, line/column number, host/ip). This is useful for when we
have external users using Druid query API.
For the initial functionality of this feature, we will handle the following
Query API responses:
- Jetty layer / Jetty filter (authentication filter, cannot route/connect to
downstream services, limit request, http allow method, etc.)
- In AsyncQueryForwardingServlet of the Router
- SqlResource (/druid/v2/sql/ POST endpoint)
The effect of this feature for each layer is described below:
- Without this feature enabled, any error in the Jetty layer / Jetty filter
will have `"servlet"`, `"message"`, "url"`, `"status"` and `"cause"` fields in
the response. With this feature enabled, the response will only contains
`"message"`, "url"`, and `"status"`. Note that the value of these fields remain
unchange.
-
This PR has:
- [ ] been self-reviewed.
- [ ] using the [concurrency
checklist](https://github.com/apache/druid/blob/master/dev/code-review/concurrency.md)
(Remove this item if the PR doesn't have any relation to concurrency.)
- [ ] added documentation for new or modified features or behaviors.
- [ ] added Javadocs for most classes and all non-trivial methods. Linked
related entities via Javadoc links.
- [ ] added or updated version, license, or notice information in
[licenses.yaml](https://github.com/apache/druid/blob/master/dev/license.md)
- [ ] added comments explaining the "why" and the intent of the code
wherever would not be obvious for an unfamiliar reader.
- [ ] added unit tests or modified existing tests to cover new code paths,
ensuring the threshold for [code
coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md)
is met.
- [ ] added integration tests.
- [ ] been tested in a test Druid cluster.
--
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]