Protect a column with default settings
This guide explains how to protect columns using default settings, including transformers, access policies, and token access policies (in cases where the default transformer is tokenizing).
Column Defaults Overview
Column defaults are policies that apply to every accessor extracting data from a specific column. Column defaults do not apply to mutators. There are three key default settings:
- Default transformers: Used to transform the data in the column, such as masking or tokenizing sensitive information.
- Default access policies: Determine who can access the data in the column via an accessor, such as role checks or system identity checks.
- Default token access policies: Determine who can access the data in the column via token resolution, such as role checks or system identity checks.
Example Use Cases for Default Transformers
- Default Masking Transformer for SSN Column
- Automatically apply a masking transformer to the SSN column in all queries to obscure sensitive data.
- Default Redaction Transformer for Patient Diagnosis Code Column
- Automatically redact the Patient Diagnosis Code column in all queries to ensure privacy.
- Default Tokenizing Transformer for Email Column
- Automatically tokenize the email column in all queries to secure user identities.
Example Use Cases for Default Access Policies
- Default Role Check for SSN Column
- Apply a role check access policy to the SSN column in all queries to ensure only authorized roles can access this sensitive data.
- Default Permission Check for Patient Diagnosis Code Column
- Apply a permission check access policy to the Patient Diagnosis Code column to ensure it is only accessible by users with specific permissions.
- Default System Identity Check for Credit Card Number Column
- Apply a system identity check access policy to the Credit Card Number column to allow only the financial system to read the credit card number.
Overriding Column Defaults for an Accessor
You can override column defaults for an individual accessor.
For Transformers:
- Set a specific transformer on the column on the relevant accessor.
For Access Policies and Token Access Policies:
- Use the boolean parameter
AreColumnAccessPoliciesOverridden
to disable all default policies for the accessor. This allows you to apply custom policies specific to the accessor.
For more details on how to override column defaults on an individual accessor, refer to the API reference.
Combining Policies
For any accessor that involves multiple columns with default access policies, the system will AND the following three types of policies:
- Global baseline policy: Applied to ensure baseline security.
- Column-default access policies: Applied unless overridden.
- Accessor-specific access policy composition: Applied in addition to the above policies.
This ensures that all policies work together to provide a robust security framework. For tokens generated by a given accessor, the same approach applies to token access policies.
Updated 5 months ago