GitHub user chenglongwei opened an issue:
https://github.com/apache/trafficserver/issues/1483
HTTP Request Debugging Feature
### Goals
HTTP request debugging feature in ATS core can help ATS DevOps to quickly
locate an issue at development, staging or production environments. Users can
specify a single request they want to debug by marking it with a cookie. This
feature logs the HTTP headers of the debugged request and its response before
and after each plugin execution for each hook. This will allow engineers to
identify issues due to plugin bugs and help them make sense of various changes
happening throughout the request/response pipe.
### Specifications
Only allow certain IPs to use this feature.
For security reason, the IPs allowed to use this feature can be configured
in a file debuggable_ips.config.
Specify the debugging request with a cookie â__ts_debug=onâ.
This is added to cookie to specify that this request is to be debugged and
headers are collected to be logged before and after executing each plugin at
every hook.
### Proposed design

1. Make a specified request to debug this request and its response.
2. Before and after each plugin execution for each hook, ATS collects the
hdrs (HTTP headers) of the debugged request and its response. A blacklist of
headers (Cookie, Set-Cookie, Authorization, etc) could be used to avoid
sensitive information going to logs.
3. Log the debug information to a log file (Or other implementations).
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---