-
Notifications
You must be signed in to change notification settings - Fork 3k
Cellular: clean sensitive information from trace #9660
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
Conversation
@blind-owl, thank you for your changes. |
@blind-owl, thank you for your changes. |
|
||
const bool stored_debug_state = _at->get_debug(); | ||
_at->set_debug(false); | ||
|
||
_at->write_string(sim_pin); |
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.
Is there a reason that this line wasn't instead removed?
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.
Not sure what you are referring here as injected code:
- stores current tracing state (enable/disable)
- disable tracing
- resumes stored tracing state after sim pin has been written to the modem (cellular subsystem)
@blind-owl, thank you for your changes. |
LGTM but |
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.
^^
I set it to 5.11.5 but we might just have conflicts with latest refactor so some patches might need manual resolution for 5.11.x or just moving to 5.12. |
Moving to 5.12. Confirmed that trying to bring this into a patch would lead to pain for @adbridge 😁 |
Information removed from the cellular subsystem trace log: * SIM pin * APN username and password Added get_debug() to ATHandler.h to get the current trace state in order to support suspend/resume of trace output.
a454a3d
to
b6a0892
Compare
CI started |
Test run: SUCCESSSummary: 12 of 12 test jobs passed |
Description
Remove sensitive information from cellular subsystem trace logs.
Test coverage:
Pull request type
Reviewers
@jarvte