ALERT: Due to maintenance activity, you might not see any screenshots. Your patience is highly appreciated. Thanks!!
This lab walks you through Cloud DLP API.
You will create Inspect Template using Custom Info-Types and Create a Job to test it.
Region: us-central1
Duration: 45 minutes
GCP Data Loss Prevention API, a SAAS (Software as a Service) helps you to de-identify and protect sensitive figures. It reduces the potential risk and takes informed decisions to prevent data loss. DLP API uses informationTypes also known as infoTypes which determine the sensitive content.
Let's say the end-user enters personal information like email address, credit card details, and password in an application. These are known as built-in infoTypes which we use in DLP API. To avoid threats, we can choose the DLP API to mask the data. There are multiple ways to implement this -
A Regular Expression is a sequence of characters that define a search pattern, mainly for use in pattern matching with strings, or string matching. Regular expressions are a generalized way to match patterns with sequences of characters. For example, the pattern used in this lab [1-9]{3}-[1-9]{1}-[1-9]{5} will match the strings/patterns which have the digits 1 to 9 for 3 times, followed by a dash (-), followed by digits 1 to 9 for 1 time, followed by a dash (-), followed by digits 1 to 9 for 5 times. For Instance, 123-4-56789 is the string that matches the pattern, on the contrary, 122-0-21010 is the string that doesn't match the pattern.
Create a stored InfoType.
Creating a Bucket and uploading a CSV File for identification.
Creating and Testing the Job.