-
Notifications
You must be signed in to change notification settings - Fork 53
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
Censor write only variables logging and added a new callback to sanitize any logging that would be passed to the existing message_callback #911
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WilcodenBesten
requested review from
Pietfried,
hikinggrass,
maaikez and
marcemmers
as code owners
December 12, 2024 13:29
The log line here: https://github.com/EVerest/libocpp/blob/main/lib/ocpp/common/websocket/websocket_libwebsockets.cpp#L996 can still leak secrets as it's not filtered. You could argue that it's debug so that's not needed, but better safe then sorry imo. Would love to here you're opinion on that. EDIT: as discussed during call today: remove it |
marcemmers
reviewed
Dec 12, 2024
WilcodenBesten
force-pushed
the
sensor-write-only-variables
branch
3 times, most recently
from
December 16, 2024 13:25
d031c56
to
983b199
Compare
hikinggrass
requested changes
Dec 20, 2024
…riable can be checked before the value change is logged. This prevents write-only varaiables to be logged Signed-off-by: Wilco den Besten <[email protected]>
…o the existing message_callback. Can be used to remove secrets from log lines Signed-off-by: Wilco den Besten <[email protected]>
Signed-off-by: Wilco den Besten <[email protected]>
Signed-off-by: Wilco den Besten <[email protected]>
Signed-off-by: Wilco den Besten <[email protected]>
Signed-off-by: Marc Emmers <[email protected]>
marcemmers
force-pushed
the
sensor-write-only-variables
branch
from
January 6, 2025 09:04
983b199
to
91689fe
Compare
Signed-off-by: Marc Emmers <[email protected]>
hikinggrass
reviewed
Jan 6, 2025
Signed-off-by: Marc Emmers <[email protected]>
hikinggrass
approved these changes
Jan 6, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
Checklist before requesting a review