[Redact log] Redact key range and value in RSFilter from logging#1282
Merged
JaySon-Huang merged 12 commits intopingcap:masterfrom Dec 15, 2020
Merged
[Redact log] Redact key range and value in RSFilter from logging#1282JaySon-Huang merged 12 commits intopingcap:masterfrom
JaySon-Huang merged 12 commits intopingcap:masterfrom
Conversation
Contributor
Author
|
/run-all-tests |
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
4b4ac27 to
d075581
Compare
Contributor
Author
|
/run-all-tests |
JaySon-Huang
added a commit
to JaySon-Huang/tiflash
that referenced
this pull request
Dec 29, 2020
…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
JaySon-Huang
added a commit
that referenced
this pull request
Dec 31, 2020
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.
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
Run some queries and check the log file
Side effects
Release note
security.redact_info_logconfig, which redacts user data from logs