Here is an example output in my environment.
Original Message:
Sent: Wed October 04, 2023 04:08 AM
From: Shahryar Memon
Subject: Redact(Masking) Not Working on MS SQL Server
Hi Satoshi,
I am facing the same issue. Getting masked alerts. Data on my front-end application is masked but it is not being masked on SQL Management Studio. Any leads here?
------------------------------
Shahryar Memon
------------------------------
Original Message:
Sent: Tue September 19, 2023 04:37 AM
From: SATOSHI KAWASE
Subject: Redact(Masking) Not Working on MS SQL Server
Hi Akash,
I have created a table on MS SQL Server that has a char(20) column, and installed a policy that replaces the first 4 digits to asterisk (*) when 6 digits number is found. I mean, I used REDAT with regex "([0-9][0-9][0-9][0-9])[0-9][0-9]". Everything worked fine.
What I ran is here:
create table table0919 (col1 char(20), col2 char(10))
insert into table0919 values ('qazwsxedcrqazwsxedcr', '1q1q1q1q1q')
insert into table0919 values ('000017-AED-0086-51XX', 'abcabcabca')
select * from table0919
Here is the response:
col1 col2
-------------------- ----------
qazwsxedcrqazwsxedcr 1q1q1q1q1q
****17-AED-0086-51XX abcabcabca
I do not know why it's not working in your environment. Could you please open a support ticket? Then support engineers will review your environment and should be able to find what's missing.
Thanks,
Satoshi
------------------------------
SATOSHI KAWASE
Original Message:
Sent: Tue September 19, 2023 01:45 AM
From: Akash Parmar
Subject: Redact(Masking) Not Working on MS SQL Server
Hi Satoshi,
Thank you for the response. Below items are already done.
Inspect Returned Data and press Restart Inspection Engine from Guardium GUI, - even restarted Sniffer from CLI.
Regarding your second query - data type is = char(20) & the actual value is 000017-AED-0086-51
I have used multiple regex but no luck. For example,
0\d\d\d\d\d-([A-Z][A-Z][A-Z]|[a-z][a-z][a-z])-\d\d\d\d-\d\d
([0-9][0-9][0-9][0-9][0-9][0-9])[-]([A-Z][A-Z][A-Z])[-]([0-9][0-9][0-9][0-9])[-]([0-9][0-9])
([0-9][0-9][0-9][0-9])[0-9][0-9]
------------------------------
Akash Parmar
Original Message:
Sent: Tue September 19, 2023 01:10 AM
From: SATOSHI KAWASE
Subject: Redact(Masking) Not Working on MS SQL Server
Hi Akash,
If you've never seen expected result, I'd suggest to check the settings first. Did you check Inspect Returned Data and press Restart Inspection Engine from Guardium GUI, Manage > Activity Monitoring > Inspection Engines before using REDACT function?
If you're seeing expected result without your own regex, could you please show us the regex that you're using and the data that you're expecting to be masked, and the data type (e.g. NVARCHAR(100))? This could be a sensitive information, then I'd suggest to open a support ticket, then we can review your data and configuration in our secure environment.
Thanks,
Satoshi
------------------------------
SATOSHI KAWASE