Initialize Policy Management
Initializing the policy management.
Create a policy that protects Credit Card Number (CCN) using CCN data element, with:
This example provides a walkthrough of the complete workflow to create a policy to protect a Credit Card Number (CCN) with tokenization using Protegrity CLI and REST APIs. The example includes defining a CCN Data Element and access controls to deploy a policy that protectors can enforce at runtime. The CCNs have a specific format and must comply with existing regulations. Hence, this example uses the Credit Card token type, with a common usability pattern of keeping the last four digits visible while tokenizing the rest.
Before using the CLI or the REST APIs, determine the properties required for the CCNs. For example:
These properties determine how the data element and the policy rules that are configured. They determine what applications and users will experience when data is protected or unprotected.
A key design choice specific to tokenization is selecting the tokenizer. You need to choose a tokenizer because it defines the tokenization engine and lookup-table strategy. Protegrity uses the tokenizer to deterministically transform a CCN into a same-length token. The tokenizer controls how the CCN digits are mapped into tokens so the protector can reliably produce and resolve tokens under policy. Protegrity offers multiple Static Lookup Table (SLT) tokenizer variants, such as, SLT_1_3, SLT_2_3, SLT_1_6, and SLT_2_6, which differ mainly in lookup-table design and operational footprint. For most CCN use cases, this example uses SLT_2_3 because it strikes a practical balance of memory usage and performance while working well for standard PAN lengths. This avoids the much larger memory footprint of the _6 options unless specifically required.
To execute any CLI or API command in this example, the following assumptions have been made:
CLI Examples
To execute any CLI command in this example, the following additional assumption has been made:
API Examples
To execute any API command in this example, the following additional assumption has been made:
Initializing the policy management.
Create a data element.
Create member source for the CCN.
Create a role.
Assign member source to the role.
Create a policy shell.
Define that includes a data element and role.
Create a datastore.
Deploy a policy to a datastore.
Confirm the policy deployment.
Was this page helpful?