Redact log (release-4.0)#1333
Merged
JaySon-Huang merged 8 commits intopingcap:release-4.0from Dec 31, 2020
Merged
Conversation
…gcap#1282) Signed-off-by: JaySon-Huang <tshent@qq.com> Conflicts: dbms/src/Debug/dbgFuncRegion.cpp dbms/src/Storages/DeltaMerge/DeltaMerge.h dbms/src/Storages/DeltaMerge/DeltaMergeStore.cpp dbms/src/Storages/DeltaMerge/File/DMFilePackFilter.h dbms/src/Storages/DeltaMerge/File/DMFileReader.h dbms/src/Storages/DeltaMerge/RangeUtils.cpp dbms/src/Storages/DeltaMerge/RegionSplit.cpp dbms/src/Storages/DeltaMerge/ReorganizeBlockInputStream.h dbms/src/Storages/DeltaMerge/RowKeyRange.cpp dbms/src/Storages/DeltaMerge/RowKeyRange.h dbms/src/Storages/DeltaMerge/Segment.cpp dbms/src/Storages/DeltaMerge/tests/dm_basic_include.h dbms/src/Storages/DeltaMerge/tests/gtest_dm_file.cpp dbms/src/Storages/StorageDeltaMerge.cpp dbms/src/Storages/Transaction/LearnerRead.cpp dbms/src/Storages/Transaction/RegionCFDataBase.cpp dbms/src/Storages/Transaction/RegionData.cpp dbms/src/Storages/Transaction/RegionState.cpp dbms/src/Storages/Transaction/TiKVKeyValue.h dbms/src/Storages/Transaction/TiKVRecordFormat.h tests/delta-merge-test/raft/region_merge_common_handle.test
Signed-off-by: JaySon-Huang <tshent@qq.com>
* Redact log for client-c Signed-off-by: JaySon-Huang <tshent@qq.com>
Contributor
Author
|
/run-all-tests |
Contributor
Author
|
This will update client-c, which upgrades the kvproto library. I think there is no backward compatibility issue on upgrading it on the release-4.0 branch? @solotzg |
Contributor
Author
|
/run-all-tests |
Contributor
Author
|
/run-all-tests |
Contributor
Author
|
/run-all-tests |
Contributor
Author
|
@zanmato1984 @flowbehappy PTAL |
11 tasks
This file contains hidden or 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
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.
cherry-pick of #1282, #1306
What problem does this PR solve?
Issue Number: related to #1277
Problem Summary: Avoid printing user data (key range and value in RSFilter) to logging file. This PR doesn't avoid printing all user data but greatly reduces those logs.
What is changed and how it works?
security.redact_info_logwhich avoids printing user data to logRedactto control whether we will convert the sensitive value to?or notRedact::keyToDebugStringforHandleRange,RowKeyRange,TiKVKey,TiKVValue,RawTiDBPKFieldVisitorToDebugString. It Mainly to avoid printing value to log (e.g. RSFilter)toStringtotoDebugString, indicating that the value will be converted to '?' if redact-log is onNote that the PRs that redact logs with some sensitive values generated by protobuf structure
DebugString/ShortDebugStringwill be file laterRelated changes
pingcap/docs/pingcap/docs-cn:Check List
Tests
Side effects
Release note
security.redact_info_logconfig, which redacts user data from logs