Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When HTTP logging mode is enabled, oxTrust should also dump response body. #1745

Open
aliaksander-samuseu opened this issue Jul 30, 2019 · 1 comment
Assignees
Labels
Config Issues related to config management
Milestone

Comments

@aliaksander-samuseu
Copy link
Contributor

aliaksander-samuseu commented Jul 30, 2019

At the moment, httpLoggingEnabled property in conjunction with loggingLevel makes oxTrust to dump complete HTTP request into log file on disk for easy review. That is a huge step forward in terms of troubleshooting and ease of providing support to customers that (in theory) may make usage of cumbersome complex tools like intercepting proxies and Apache's mod_dumpio not necessary in most cases.

The only downside to this currently is that this feature won't dump HTTP response's body along with the request - and this severely limiting its troubleshooting potential in many cases.

According to @yurem , such limitation was added with optimization in mind, to prevent log from consuming disk space rapidly; there also are some implementation difficulties to make that happen (but still may be possible).

Overall, I believe implementing this additional functionality may worth a try. To tackle the disk space issue at least, there could be an additional key in JSON configuration array which would allow to enable HTTP response body logging separately from the rest of the HTTP logging functionality.

@aliaksander-samuseu aliaksander-samuseu added this to the 4.1 milestone Jul 30, 2019
@aliaksander-samuseu aliaksander-samuseu added the enhancement libs update, re-factroring, etc. label Jul 30, 2019
@yuriyz yuriyz modified the milestones: 4.1, 4.2 Dec 12, 2019
@nynymike nynymike added Config Issues related to config management and removed enhancement libs update, re-factroring, etc. labels Jan 20, 2020
@aliaksander-samuseu
Copy link
Contributor Author

aliaksander-samuseu commented Feb 6, 2020

@yurem

I probably just copied this text for a similar oxAuth enhancement I created back then, with minor editing. But as I see now, there is actually no such option for oxTrust at all, in 4.0. Or at least we don't offer a changeable property for it in oxTrust's JSON config OOTB.

HTTP request and response logging (including bodies of both) for oxTrust would be useful when you need to troubleshoot SCIM flow, and calls to newly added oxTrust API as well. Ideally, we should have such feature.

@yurem yurem modified the milestones: 4.2, 4.3 May 26, 2020
@syntrydy syntrydy modified the milestones: 4.3, 5.0 Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Config Issues related to config management
Projects
None yet
Development

No branches or pull requests

5 participants