-
Notifications
You must be signed in to change notification settings - Fork 409
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
security: Add "marker" mode for log densensitation #9136
Conversation
@@ -221,57 +221,121 @@ String FieldVisitorToString::operator()(const Tuple & x_def) const | |||
|
|||
String FieldVisitorToDebugString::operator()(const Null &) const |
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.
Can we use template to reduce similar code?
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.
The UInt64/Int64/DecimalField<...>
share the similar code, but other types are not.
We can try to eliminate it using std::enable_if
, but it is not related to this PR change, maybe we can do it in another PR.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JinheLin, Lloyd-Pottiger The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
What problem does this PR solve?
Issue Number: close #8977
Problem Summary:
In the previous PR, #1277, tiflash support setting
security.redact_info_log
to be set as "true" / "false".If the configuration item is set to true, all user data in the log is replaced by
?
.What is changed and how it works?
Mark sensitive data with
‹..›
. whensecurity.redact_info_log=marker
. Note that‹
is not "less"<
but U+2039. If the raw data contains‹
,‹
will be escaped to‹‹
, similar to›
.Introduce
Redact::toMarkerString
to handle marking sensitive data with‹..›
and escaping.Check List
Tests
Side effects
Documentation
Release note