Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing...

37
1 Compuware Test Drive Test Data Privacy – Disguise Rules Revised: 1/8/2021 This tutorial will introduce you to the File-AID Test Data Privacy Manager to create Disguise Rules to be used to disguise different data elements.

Transcript of Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing...

Page 1: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

1

Compuware Test Drive

Test Data Privacy – Disguise Rules Revised: 1/8/2021

This tutorial will introduce you to the File-AID Test Data Privacy Manager to create Disguise Rules to be used to disguise different data elements.

Page 2: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years2

Contents

GETTING STARTED ........................................................................................................................... 3

FILE-AID Data Privacy Manager ....................................................................................................... 4

Data Privacy Rules Repository ..................................................................................................... 5

Create Your Own TDP Project ...................................................................................................... 6

Add Data Elements....................................................................................................................... 9

Add Source Data Identifiers ....................................................................................................... 15

Encryption Rules ........................................................................................................................ 18

Field Masking ............................................................................................................................. 20

Translation Rules ........................................................................................................................ 21

Rule Logic ................................................................................................................................... 24

Coverage ........................................................................................................................................ 31

NEXT STEPS .................................................................................................................................... 37

Page 3: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years3

GETTING STARTED Instructions: • This guide contains many screenshots to provide a visual reference • Every action you must take is Highlighted • Please note each place that you must enter your own specific ID or number • You must complete each step before proceeding to the next to successfully follow the test

drive script. If, at any point during your experience, your host connection times out, you may need to log back in to the TestDrive host connection.

If at any time during the execution of this script the Compuware Enterprise Services Login popup is shown, enter your test drive ID and password under User ID and Password, check the Save credentials box and then depress the ENTER key or click OK.

Page 4: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years4

FILE-AID Data Privacy Manager Data privacy rules are created in the Data Privacy plug-in and stored in a repository. These rules are then available to disguise data from each of the following File-AID products:

File-AID/EX File-AID/Data Solutions File-AID for DB2 File-AID/RDX File-AID for IMS

The data to be disguised may reside in z/OS files, IMS databases, or relational database tables in DB2, DB2 UDB, Microsoft SQL Server, Sybase, or Oracle. Other file types such delimited, flat files, CSV or XML can be disguised as well. In this exercise you will:

• Create at least two Rule Action Types – Format Preserving Encryption for Phones, SSNs, and Credit Cards – Translation for names

• Use the provided translate table • Use Expression Builder

– Literal Values – Date Aging

• Coverage – View the rules against the metadata

Page 5: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years5

Data Privacy Rules Repository

Data Privacy Rules are created and stored in a Rules Repository. A windows service called File-AID Services enables connectivity to defined repositories. These rules can then be called later to disguise data at the time of execution of a copy, convert, or extract job.

Topaz connects to the File-AID Services through a setting in Topaz Preferences.

In Topaz go to Window, then Preferences.

Expand Compuware by clicking on the arrow, then select File-AID Services. Here you will see the link to the machine and port where File-AID Services is running.

Page 6: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years6

Click Test Connection. Then OK. Click Apply and Close.

Create Your Own TDP Project

Open the File-AID Data Privacy Manager by going to the Compuware menu and selecting File-AID Data Privacy.

Page 7: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years7

Click the Data Privacy tab in the top left. Double-click on TDPRepos repository to open. Right-Click on TDPRepos and select Create New Project.

Name your project with your Test Drive ID (CWEZ###) and click OK.

Page 8: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years8

Here you will see the overview for the data privacy project. The three sections that we will work with on the right are Data Elements, Rules, and Coverage. These correspond to the tabs across the bottom.

Page 9: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years9

Add Data Elements

Data Elements are containers that allow you to normalize multiple fields into a common item based on data identification instructions. Click on the Data Elements tab at the bottom of this pane. Use the Add button in the left-hand Data Elements pane to create the list of elements to be disguised.

Page 10: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years10

Enter SSN in the first field and click Finish.

Repeat this process for the following Data Elements as shown. Create Data Elements for: CREDIT CARD, EMAIL, FIRST LAST NAME, FIRST NAME, LAST NAME, PHONE, and STREET ADDRESS.

Page 11: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years11

Add another Data Element: DATE Enter DATE in the first field and click Next.

Page 12: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years12

Select DATE from the Processing type dropdown. Select the correct date format as shown from the dropdown and enter the initialize date values. Click Next

Page 13: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years13

The other data handling characteristics available when creating Data Elements are accessible through the left-hand pane. Click Next through each of these screens. The screens are shown below in order: Value Alignment:

Page 14: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years14

Invalid and Long Data Values:

Null Values:

Page 15: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years15

References:

Click Finish.

Add Source Data Identifiers

Source Data Identifiers locate the actual data associated with a data element. At disguise execution time, the data identification process is invoked to match the content of the Source Data Identifier against the metadata of the object being disguised. For z/OS files, the metadata is the COBOL or PL/I layout. For DBMS objects, the metadata is the column definition from the DBMS catalog. Click on the Credit Card Data Element. Click Add in the Source Data Identifier right-hand pane.

Page 16: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years16

Type CREDIT*CARD*NUM in the first field and again in the last field. The data identifier name field will show in your list and the Part 1 field is the actual name that will be searched for to identify the field for disguise. It is not Case sensitive unless box is checked. Click Finish.

Add Source Data Identifiers (SDIs) for each of the Data Elements. Data Elements can have multiple SDIs defined. Create separate SDI(s) for the listed Data Elements below:

– DATE: *DATE – EMAIL: *EMAIL* – FIRST LAST NAME: *CONTACT*NAME – FIRST NAME: *FIRST*NAME

FNAME – LAST NAME: *LAST*NAME – PHONE: *PHONE* – SSN: REP_ID

SOC*SEC*NUM SSN

– STREET ADDRESS: CONTACT*ADDR ADDRESS

Page 17: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years17

Note the * are used as wildcards. This will also mean that field names using a dash (-) or column names using an underscore (_) will be identified. For example, any column or field name containing the string “phone” will be identified as a phone number and have the phone rule disguise technique applied to that data.

Below is an example of the different Source Data Identifiers (SDI) for the SSN Data Element. Any columns or fields matching these identifiers will be disguised by the rule for SSN.

Page 18: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years18

Encryption Rules

Click on the Rules tab at the bottom of your Project. Click Add.

Create a new Rule called SSN Rule.

Select Format Preserving Encryption for the Rule Action.

Click Next

Page 19: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years19

Create an Action name “SSN Encryption” as shown. Encryption requires a key. Use the dropdown menu to select Global Encryption. Select the SSN Data Element in the list under Project Resource. Click Finish

Repeat adding an Encryption Rule for the Credit Card Data Element following the above example. Type “CREDIT CARD Rule” for the rule name and click Format Preserving Encryption, then Next. Type “CC Encryption Rule” for the Action name. Select the Global Encryption Key. Select CREDIT CARD for the Project Resource. Click Finish.

Page 20: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years20

Field Masking

Use Field Masking to determine which bytes of data to apply disguise. In this example we will disguise only a portion of the phone number. Create an Encryption Rule for the Phone Data Element called “Phone Rule”. Select Format Preserving Encryption. Click Next. Enter an Action name of “PHONE Encryption”. Check Enter Key Value and type in a value. Check the box for the PHONE Project Resource. Enter “NNN” under the Field Mask column as shown below by either using your Tab key or clicking in the Field Mask column. The first 3 bytes will be excluded from encryption and will retain the original values. You can also enter a key value on this screen by selecting Enter key value or let it default to using the Managed key and select Global Encryption from the dropdown. Click Finish.

Golden principle: Rules are created for Data Elements. The Source Data Identifiers defined to the Data Element determine which columns and fields will be disguised by that rule.

Page 21: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years21

Translation Rules

Translation Rules

Add a new Rule for First Names. Select Translation for the rule action. Click Next.

Type “FIRST NAME Translation” for an action name. Select the Translate table and Access path previously defined from the dropdown menus. Click Next.

Page 22: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years22

Note that the translate tables already exist with fictitious data and have been identified within the Manage Translate Tables utility under Resource Administration. Select First Name under Project Resource to use in calculating the hash value. For example, if the translate table has 1000 rows, this will hash the first name to a value between 1 and 1000 and point to that row. Click Next.

Page 23: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years23

Select the Project Resource to be replaced with new values by checking the box next to FIRST NAME. Click in the Translate Table Data Column to see the dropdown menu. Select FIRST by using the drop-down menu in that column to determine what data to bring back from the table. Click Finish.

Repeat for Last Names using last name as the hash field and the replacement field.

Page 24: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years24

Rule Logic

Literal Values

Add a new Rule for Email Data Element. Leave Create Rule Action as None. Click Finish.

On the right-hand side select the Rule Logic tab. Click the Build button to open the Expression Editor.

Page 25: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years25

Click on the Resources tab (you may need to stretch this box to see it) Expand the Email Data Element in the list by clicking on the arrow.

Click on the setValue under EMAIL and drag to the Expression area on the Right.

Page 26: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years26

Double click on the red word string and replace with a literal value such as “[email protected]”. Double quotes are required. Click the Validate Expression button to verify syntax and logic. Click OK and OK.

This is an example of replacing sensitive data with a literal value for every row or record.

Page 27: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years27

Date Aging Logic

Create a new rule for the DATE Data Element with a Rule name of DATE Rule. This rule will use Rule Logic. Leave None checked for Rule Action and click Finish.

On the right-hand side select the Rule Logic tab Click the Build button to open the Expression Editor

Page 28: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years28

In Expression Builder click the Resources tab and expand the DATE Data Element by clicking on the arrow. Click on setValue and drag to the right Expression area.

Page 29: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years29

Click the Functions tab at the bottom. Expand Date Functions in the top list. To drag and drop the function into our expression: Click the ADD Days function and drag to the right Expression area and hover over the red word String until it is highlighted. Drop the function to replace that word.

Page 30: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years30

Click Resources, expand DATE and drag getOriginalValue right to replace the word Date (may need to manually remove the word Date if it is not replaced – see following screenshot). Replace the word Integer with a value of 3. This will age the original values by 3 days. Calendar intelligence is built in and will roll dates to the next month or year accordingly and never return an invalid date such as February 30th.

Page 31: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years31

Validate Expression and click OK for Successful Validation and click OK to close the Expression Editor.

You have now successfully created disguise rules to replace sensitive data in fields or columns containing Names, Phone Numbers, Social Security Numbers, Credit Card Numbers, Dates, and Email addresses. These rules exist in your project in the repository and can be used against multiple data types including but not limited to SQL Server, Oracle, Sybase, Db2 and DB2 z/OS, VSAM, sequential, IMS, Excel, Access, Flat Files, Delimited Files, and XML.

Coverage When a project is created, a Coverage tab is available for project metadata. However, there is no requirement to define metadata to the project. If metadata is defined to the project, however, coverage can be displayed for any single metadata, and coverage reports can be requested against the list of project metadata.

Page 32: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years32

Let’s view how the rules you created in this project would be applied to a table that we will be disguising. Check Coverage against a data source Click Coverage tab along the bottom of your Project.

Click Add button to the right.

Page 33: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years33

Select the host SQL Server Sample from the dropdown menu. Type “dbo” (in lowercase) for the Schema name and click List.

Select the Customer, Order and Sales Rep tables with a CTRL click. Click OK

Page 34: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years34

Highlight the Sales Rep table. Click View Coverage on the right

This will open a window at the bottom with the metadata from that table showing what columns are being identified as Data Elements and what rules will be applied when we move the data. Drag this window up to the side by clicking and dragging the tab as in the example showing the gray lines.

Page 35: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years35

Click on the Data Elements tab at the bottom of the Project. In this view you can see how the rules created will be applied. The DE: denotes the Data Element and the symbol denotes the Source Data Identifier for each column eligible to be disguised. Under the Rule column is listed the Disguise Rule that will be applied.

Notes: Address is identified with a Data Element and an SDI, but there is no Rule listed. This is because we have not created a Street Address rule in this Project. The *Phone* SDI identified two columns in this table containing phone numbers.

Page 36: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years36

You can also use this Coverage View to add Source Data Identifiers. Click on the SSN Data Element. Drag the EIN column from the coverage to the SDI fields to add as another column name that may contain SSN.

Click the Refresh blue arrows icon on the top right of coverage to see changes applied to that column. You now see the SSN Rule will be applied to that column.

Close the Coverage View by clicking on the X on the tab. Close the Disguise Project by clicking on the X on the tab. You will use these rules saved in the project in the next script.

Page 37: Compuware Test Drive Test Data Privacy Disguise Rules Drive...Otherwise, you can use an existing project that has been created for you. NEXT STEPS Click on the link below to return

The Mainframe Software Partner for the Next 50 Years37

This completes the Disguise Rules section. Please proceed to the Composite Rules Script before logging out of Test Drive to build upon your Data Privacy Project. To use the Data Disguise Project that you created in this exercise do not leave Test Drive. Otherwise, you can view an existing project that has been created for you but the work has already been completed.

NEXT STEPS Click on the link below to return to the Compuware Test Drive main page and choose your next road trip!

COMPUWARE TEST DRIVE

NOTE: if you wish to rerun this Test Drive Script, simply restart the Test Drive script from page 4. To regenerate the files and libraries return to the Build Your Environment script