Table of Contents

Search

  1. Preface
  2. Introduction to Dynamic Data Masking
  3. Rules
  4. Connection Rules
  5. Security Rules
  6. Security Rule Set Simulator
  7. Masking Functions
  8. XML Functions Reference
  9. Glossary

Step 3. Create the XML Masking Rule Set

Create the third and final rule set for masking XML data types in a result set. Give the rule set the name that you specified in the previous rule set when you selected the Content Masking action. Then create the rules that directly process the XML data itself. Finally, create a rule within this rule set to apply the masking function.
  1. To create a security rule set, click on a domain node in the rule tree.
  2. Click
    Tree
    Add Rule Set
    .
    The
    Add Rule Set
    window appears.
  3. Enter the name of the security rule set that you gave as the
    Ruleset Name for Resultset
    property in the previous step. For example, "MaskEmpXMLData."
  4. Click
    OK
    .
    Within this rule set, create a rule or rules to match the XML content that you want to mask.
  5. In the Management Console, click the security rule set that you created in the previous step.
  6. Select
    Tree
    Security Rule Set
    .
    The
    Rule Editor
    appears.
  7. Click
    Action
    Append Rule
    .
    The
    Append Rule
    window appears.
  8. Enter a name for the rule, for example, "EmpNameXPathRule."
  9. For the
    Matching Method
    , select
    Metadata
    .
  10. For
    Content Type
    , select
    XPath
    .
  11. In the Text box, provide the XPath expression to match the XML elements that you want to mask. For example:
    /Personnel/Employee/Name
  12. For
    Action Type
    , select
    Masking
    .
  13. For
    Data Type
    , select
    String
    .
  14. For
    Masking Type
    , select the type of masking that you want to apply to the data. You can choose from pattern, redaction, or constant masking.
    For more information about the Masking action, the masking types, and their parameters, see the chapter "Security Rules."
  15. For the
    Processing Action
    , select
    Continue
    .
  16. Click
    OK.
  17. Select
    File
    Update Rules
    to save the rule in the rule tree.
  18. Optionally, you can create additional rules within this rule set on other XPath expressions.
    When you are finished creating the rules that match the XML data and configure the type of masking, create a final rule to apply the masking. This rule is mandatory and must be the final rule in the rule set.
  19. Select
    Tree
    Security Rule Set
    .
    The
    Rule Editor
    appears.
  20. Click
    Action
    Append Rule
    .
    The
    Append Rule
    window appears.
  21. Enter a name for the final rule, for example, "ApplyMasking."
  22. For the
    Matching Method
    , select
    Any
    .
  23. For
    Action Type
    , select
    Apply Masking
    .
  24. For the
    Processing Action
    , select
    Stop if Applied
    .
  25. Click
    OK
    .
  26. Select
    File
    Update Rules
    to save the rule in the rule tree.