This document describes the structure and components of a Faasera Policy Document, which governs how profiling, masking, and classification are performed across structured and un-structured datasets.
Faasera supports dynamic and declarative policy definitions using JSON. Policies can be used to:
{
"name": "default-policy",
"config": {
...
},
"recognizers": {
...
},
"exclusion": {
...
},
"exclusionPatterns": [
...
],
"crypto": {
...
},
"fpe": {
...
},
"graphical": {
...
}
}
The recognizers section defines what types of data to detect.
"recognizers": {
"FIRSTNAME": true,
"EMAIL_ADDRESS": true,
"CREDITCARD_NUMBER": true
}
You can use internal types or enrich with AI-based hinting (classificationToHintService) for third-party models like
GLiNER:
"classificationToHintService": {
"name": "FIRSTNAME",
"email": "EMAIL_ADDRESS"
}
Defined in the maskConfig under config.
"config": {
"maskConfig": {
"FIRSTNAME": {
"type": "SEED",
"seedFileName": "firstnames.txt",
"seedSeparator": ","
},
"EMAIL_ADDRESS": {
"type": "PRESERVE",
"preserveStructure": true
}
}
}
Supported types include:
SEEDPRESERVEHASHREDACTRANDOMFPE (format-preserving encryption)"exclusion": {
"global": ["test", "sample"],
"fileBased": {
"emails.csv": ["noreply@example.com"]
}
}
You can also use exclusionPatterns:
"exclusionPatterns": ["\d{4}-\d{4}"]
"crypto": {
"algorithm": "AES",
"key": "base64-encoded-key=="
}
Optional fpe config for format-preserving encryption:
"fpe": {
"radix": 10,
"key": "hex-key",
"tweak": "tweak-key"
}
Use classificationToHintService in your policy when enriching labels from third-party models like GLiNER.
"classificationToHintService": {
"name": "FIRST_AND_LASTNAME",
"ssn": "SSN"
}
âšī¸ Note: Third-party models may be under separate licenses (e.g., GLiNER from HuggingFace). Refer to respective licenses for usage rights.
Faasera supports both JSON and YAML formats.
{
"name": "sample-policy",
"recognizers": {
"FIRSTNAME": true,
"SSN": true
},
"config": {
"maskConfig": {
"FIRSTNAME": {
"type": "SEED",
"seedFileName": "firstnames.txt"
},
"SSN": {
"type": "REDACT"
}
}
}
}
dictionary-lookup and mask-functions are reserved for custom UDM usage and are not used in profiling
policies directly.For further examples, please visit faasera.ai or contact support.