Configuring a Data Masking Rule
You can configure data masking rules to mask sensitive data in APIs. This example shows how to configure data masking rules to mask access requests.
Networking Requirements
Figure 1 shows the networking configuration of API data security protection.
| Device | Description |
|---|---|
| Client PC | IP address: 172.16.212.65 |
| API data security protection | IP address: 172.16.35.44 |
| Application Server | IP address: 172.16.35.53 |
(Optional) Configuring a Masking Template
Before configuring a custom data masking rule, you can configure a masking template and use it to quickly configure a data masking rule.
- Log in to the API data security protection web console as user sysadmin.
- In the navigation pane on the left, choose Security Policies > Data Masking and click the Templates tab.
- In the upper right corner of the page, click Add Template.
- On the displayed page, configure masking template information, as shown in Figure 2.
- After the masking template is configured, click Save.
Configuring a Data Masking Rule
Before configuring a data masking rule, ensure that you have added application assets. For details, see Application Services. Ensure that no rules that conflict with the data masking rule are enabled.
- Log in to the API data security protection web console as user sysadmin.
- In the navigation pane on the left, choose Security Policies > Data Masking and click the Rules tab.
- Click Add in the upper right corner of the page.
- In the displayed dialog box, configure the data masking rule. Figure 3 shows an example of configuring a data masking rule using a template.
- Click OK.
Verifying a Data Masking Rule
- Enter the proxy IP address and port (172.16.35.44:8182) of the application in the address box of the browser on the client. If sensitive data is masked, the masking rule takes effect. Figure 4 shows an example.
- Log in to the API data security protection web console as user sysadmin.
- Choose Log Management > Retrieval, find the target request record, and click Details. If the request matches the configured data masking rule, the masking rule takes effect.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot



