-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Do not trace authn http request bodies #11750
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
Do not trace authn http request bodies #11750
Conversation
b616836 to
11defc5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that we already decided not to log request bodies, so I just chose to do that more consistently.
Also the redacted authn request (with body) is already logged in the authn provider itself.
|
Also, a user may choose to send the password in the URL part. However, this is completely insecure in many levels, so I don't think we should try to redact the URL all. Maybe we should just forbid password interpolation in the URL part instead. |
|
we probably need to trace the parameters used to build the request body (before encoded to JSON). |
|
@zmstone we trace full and secured request inside the provider https://github.com/emqx/emqx/blob/master/apps/emqx_auth_http/src/emqx_authn_http.erl#L73 |
11defc5 to
68f31a9
Compare
Fixes EMQX-11130
Summary
🤖 Generated by Copilot at c237ddf
This pull request enhances the security, logging, and tracing of HTTP authentication and bridge requests, adds a new GitHub workflow for Scorecard analysis, fixes some bugs and flaky tests, and updates the version number of the emqx_bridge_http application. It modifies the files
emqx_authn_http.erl,emqx_bridge_http_connector.erl,emqx_bridge_http_SUITE.erl,scorecard.yaml,emqx_bridge_http_connector.hrl,emqx_bridge_http.app.src, andemqx_bridge_kafka_impl_consumer_SUITE.erl.PR Checklist
Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:
changes/(ce|ee)/(feat|perf|fix)-<PR-id>.en.mdfiles