Video
Automating Masking for Databricks with Perforce Delphix [Demo]
Masking sensitive data in Databricks at enterprise scale is a major compliance challenge, especially for large tables and regulated data. This video demo shows how Perforce Delphix Hyperscale Compliance masks Databricks data at massive scale. It runs in three phases (unload, mask, and load) without needing a staging area. Unmasked data never leaves your production security zone, and only masked data is written to the non-production target.
Watch the Demo to Learn How To:
- Understand the three-phase Hyperscale architecture for Databricks: unload, mask, and load.
- Run a profiling job through the Hyperscale API to automatically identify sensitive data in a Databricks table.
- Automatically create a dataset from the profiling results.
- Review the masking inventory and correct the algorithm assigned to a column.
- Create and execute a masking job using the same parameters as a Compliance Engine.
- Monitor the job through all three phases and verify that the masked data was loaded into the target Databricks table.
See Databricks Masking in Action
See how Delphix solutions makes Databricks data masking easy.
Contact Us for Databricks Masking
Back to top
Full Transcript
Hello everybody and welcome. My name is Jose Rodriguez. I am a Principal Sales Engineer here at Delphix by Perforce. If you are a customer, you may already know about our compliance solutions.
Today I'm going to demonstrate how can we mask Databricks data using our Hyperscale product. For those of you who are not familiar with Hyperscale, this is our compliance solution that enables organizations to mask data at a massive scale. In order to achieve that, it runs in three phases. One unload, which in Databricks means that we collect information and metadata about the source tables.
This is specific for Databricks. We don't need a staging area to temporarily store the data to be masked. Second phase is the masking, where the Hyperscale orchestrator uses a number of compliance engines to run in parallel multiple masking jobs on the data. And the third phase is the load where the data is after masking being loaded into the Databricks target system right in the storage, and the delta logs as necessary for Databricks to be aware of the changes.
With this approach, we ensure that no unmasked data ever leaves the security zone. All the relevant pieces of the architecture that handle unmasked data reside within the production area, and only the mask data is ever written to the non-production target. Here we go with them. Let's start first by reviewing my Databricks setup.
I have a table called employee, which as you can see, contains several pieces of private information. And then I have another table which at this moment is empty. And it's going to be the target of our masking job. Now we move on to the Hyperscale Controller interface.
You may know that this is going to be integrated with our DCT product. And DCT will become the web UI for the Hyperscale Controller. But at the moment we're going to be running with this with the Swagger interface.
As with any other masking job, we start with the profiler, and specifically Hyperscale. We will be using an existing compliance engine to run the profiling job, meaning that we get to choose a profile set from that engine. And I will define that in the definition of my job. The profiling can be executed on single tables, a list of tables, or entire schema. For the sake of the demo, I chose a single table profiling approach.
You can see the parameters include the schema employee and a connector ID. This connector is a Databricks specific connector which has been created previously. Endpoints to our database systems. I have defined two important pieces of information here.
One is a target table which I showed you, "jose_employees_masked", which is going to be the target of our masking job. And I have said the create data set to true meaning that at the end of the profiling job, if it is successful, it will automatically create a data set for our Hyperscale configuration. And this is important in the next step.
A final relevant parameter is the active file coverage. This allows us to limit how much data we read during the profiling to reduce the runtime when we are dealing with large tables. Once we have the profiling job execute created, we can execute it. And once we have the execution running, we can pull it with this specific API endpoint.
When it is done, it will show you obviously the status, the data info, meaning what has been profiled, whether there has been an table in it, target table defined, and then it will list the masking inventory that is the result of the profiling itself. You may notice here that last name column has been assigned a domain name that doesn't really match. We will fix that in a later step. I have updated the data set to fix the problem with the wrong algorithm associated with the last name column.
As you can see now, the masking inventory properly shows the domain name being last name and algorithm name being the core last name algorithm that comes out of the box in our products. And now that we have a data set, we are ready to create our masking job. Again. We will be creating a job and we can use the predefined existing configurations.
Note that for Databricks specifically, we have a special job called data transfer. This is a pass through no masking job that enables the organizations to move data within the data instances. Applying the filtering or the transformations that are necessary without really masking any data. In this case, I chose the regular masking data rate, job configuration, and for those of you who are familiar with our compliance engines, you will see that these parameters are exactly the same parameters we're can see when configuring the masking job in an engine proper.
Once we have the job created, we can execute it. Our job ID is 2. We click the execute button. And after a few seconds we get a job ID and the status is running.
This takes a couple of minutes so I'm going to jump off now. Now after a few minutes we can check the execution status using this execution ID. And we can see that it is seated in its three faces. And we can go into our target database stable.
And determine that the data has been successfully masked and loaded onto it. Note that we changed the first name, last name, and email columns, but we did not change the bank account number because it was not listed in our data set. And with this concludes the demo. Thank you very much.