You do not need a relationship between the two tables.
Relevant is to use a deterministic algorithm. Using a wrapper (as contained in UTILITY) you can extend an
existing algorithm with for example a prefix/suffix or with a preserve range :
as a result you have one algo that changes val1 to xxx-1
and another algo that changes 1val-1 to 1xxx-1
This will work indipendently from schemas.
Maybe you can add a company name to your profile ?
Original Message:
Sent: 09-18-2024 08:55:21 AM
From: Ravi Nistala
Subject: Masking cross schema
Hi Tio: I think the below example will give more info . As i said in my earlier there is no relation between the so called master and child and no user who can access both the schemas. each schema has their own individual users who are owners of their respective schemas. Hope this helps.
| Before Masking | |
Schema1 | | Schema2 | |
TableChild | | TableMaster |
val_col | | id_col | val_col |
val1 | | 1 | val1 |
val2 | | 2 | val2 |
val3 | | 3 | val4 |
val5 | | 4 | val6 |
| | | |
| After Masking | |
Schema1 | | Schema2 | |
TableChild | | TableMaster |
val_col | | id_col | val_col |
xxx-1 | | 1 | xxx-1 |
xxx-2 | | 2 | xxx-2 |
val3 | | 3 | xxx-3 |
val5 | | 4 | xxx-4 |
------------------------------
Ravi Nistala
CTO
Original Message:
Sent: 09-18-2024 07:15:43 AM
From: Tino Pironti
Subject: Masking cross schema
I reached out to customer success to identify who is managing your account. If there is an active engagement I will try to reach out directly and arrange a session. As stated earlier the UTILITY plugin can do what you are looking for. I assume the ID_value is a column of the same table, correct ?
------------------------------
Tino Pironti
Masking SME
Technical Manager
Delphix
Original Message:
Sent: 09-18-2024 06:34:59 AM
From: Ravi Nistala
Subject: Masking cross schema
Thank you Tino. But there are couple of constraints in our scenario. There is no single user who has access to both the schemas. so we have to use one user one schema and second there is no FK between the master and child. The client is treating them as master and child but really there is no relation between them. So what we are currently doing is temporary granting access to schema (with master) to the child schema user and them revoking that in another job.
there masking requirement is unique. they want to mast the child column with a constant string value concatenated with a ID value from the master. like ('constant'+ID_value). so i don't think we can use any of the delphix alogorithim our of the box. so we are using SQL scripts . i know you said to use some toolkit from delphix but we could not get hold of it
------------------------------
Ravi Nistala
CTO
Original Message:
Sent: 09-18-2024 02:26:54 AM
From: Tino Pironti
Subject: Masking cross schema
As far as I know you cannot automatically handle cross-schema constraints. You need a connector, ruleset and job per schema. What you can do is use pre-scripts to drop the PK/FK constraint in both schemas, then mask them using the same deterministic uniqueness preserving algorithm (for example dlpx-core:CM Alpha-Numeric) and afterwards use post-scripts to re-enable the constraints in both schemas, I have already implemented that a couple of times, little work to configure but works fine.
I doubt tweaking permissions would work as the connector is always schema specific.
------------------------------
Tino Pironti
Masking SME
Technical Manager
Delphix
Original Message:
Sent: 09-17-2024 12:25:30 PM
From: Ravi Nistala
Subject: Masking cross schema
we have a requirement from a client where we need to mask tables from 2 schemas. parent is in one schema and child is in another. both schema belong to same database. both schemas have different users having access ONLY to their schemas. user of child table schema does not have access to the master table and vice versa.
Is there a way we can do masking in delphix without tweaking the permissions for both the child table as well as for the master table?
------------------------------
Ravi Nistala
CTO
------------------------------