[feature] Desensitize sensitive information.#2848
[feature] Desensitize sensitive information.#2848ayu-v0 wants to merge 12 commits intoapache:masterfrom
Conversation
Signed-off-by: Ayu <127600988+ayu-v0@users.noreply.github.com>
Signed-off-by: Ayu <127600988+ayu-v0@users.noreply.github.com>
Signed-off-by: Ayu <127600988+ayu-v0@users.noreply.github.com>
|
relate with #2800 |
Signed-off-by: Ayu <127600988+ayu-v0@users.noreply.github.com>
Signed-off-by: Ayu <127600988+ayu-v0@users.noreply.github.com>
Signed-off-by: Ayu <127600988+ayu-v0@users.noreply.github.com>
|
The merge error is caused by @Date and @description, I've fixed it @yuluo-yx |
Signed-off-by: Ayu <127600988+ayu-v0@users.noreply.github.com>
|
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