Closed ssenior45 closed 3 months ago
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
Thanks, @ssenior45
Can you sign the CLA for contributions?
Thanks, @ssenior45
Can you sign the CLA for contributions?
This is now actioned.
This PR adds column masking for
It also masks the collection key in both the archive file and the CSV files within the archive and keeps this key consistent between the two.
In dealing with
PKEY
andDMA_SOURCE_ID
masking I added wildcard functionality to apply to all files.I've reviewed the Oracle canonical tables and added the columns that need to be masked.
I wasn't sure if the oracle_dataguard table might have some hostname info in the connect string that might need to be looked at. I haven't dealt with this here.
I've manually tested this as far as possible but it does need more testing by another person IMO.
Finally, there are some formatting and minor changes from running the ruff linter and formatter over the file.
Example maskings
Filename collection key
Original
Masked
_PKEY, INSTANCE_NAME, HOST_NAME, DMA_SOURCEID
Original
Masked
_DATABASENAME
Original
Masked
Note how each PDB has a unique masked name.