-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[feature] Desensitize sensitive information. #2848
Conversation
Signed-off-by: Ayu <[email protected]>
Signed-off-by: Ayu <[email protected]>
Signed-off-by: Ayu <[email protected]>
relate with #2800 |
Signed-off-by: Ayu <[email protected]>
Signed-off-by: Ayu <[email protected]>
Signed-off-by: Ayu <[email protected]>
The merge error is caused by @Date and @description, I've fixed it @yuluo-yx |
Signed-off-by: Ayu <[email protected]>
hi @ayu-v0 thanks for this pr. |
Sorry for rejecting this PR you worked so hard on. |
Thank you very much for your review. This PR may be because I considered that the desensitized data is the correct information that the user has verified, so I did not consider that the user might send the email with the desensitized information. Based on this scenario, I wonder if there are any solutions (if I can think of them, haha). |
…-branch # Conflicts: # hertzbeat-common/src/main/java/org/apache/hertzbeat/common/serialize/EmailDesensitizationSerializer.java # hertzbeat-common/src/main/java/org/apache/hertzbeat/common/serialize/PhoneDesensitizationSerializer.java
What's changed?
#2792
This PR desensitizes the phone and email, while ensuring that the desensitized data cannot be submitted to the database.
The desensitization rule for a email is to replace it with a "." to make the email illegal and ensure that it cannot be submitted directly to the database.The same goes for cell phone numbers.
Here is a picture of the modification operation:
The following is the information of the database:
Checklist
Add or update API