Faasera Documentation

Faasera Profiler Policy Format Guide

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.


Overview

Faasera supports dynamic and declarative policy definitions using JSON. Policies can be used to:


Policy Structure

{
  "name": "default-policy",
  "config": {
    ...
  },
  "recognizers": {
    ...
  },
  "exclusion": {
    ...
  },
  "exclusionPatterns": [
    ...
  ],
  "crypto": {
    ...
  },
  "fpe": {
    ...
  },
  "graphical": {
    ...
  }
}

Recognizers

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"
}

Masking Rules

Defined in the maskConfig under config.

"config": {
"maskConfig": {
"FIRSTNAME": {
"type": "SEED",
"seedFileName": "firstnames.txt",
"seedSeparator": ","
},
"EMAIL_ADDRESS": {
"type": "PRESERVE",
"preserveStructure": true
}
}
}

Supported types include:


Exclusion

"exclusion": {
"global": ["test", "sample"],
"fileBased": {
"emails.csv": ["noreply@example.com"]
}
}

You can also use exclusionPatterns:

"exclusionPatterns": ["\d{4}-\d{4}"]

Crypto

"crypto": {
"algorithm": "AES",
"key": "base64-encoded-key=="
}

Optional fpe config for format-preserving encryption:

"fpe": {
"radix": 10,
"key": "hex-key",
"tweak": "tweak-key"
}

AI Hint Mapping

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.


Format & Usage

Faasera supports both JSON and YAML formats.


Sample Minimal Policy

{
  "name": "sample-policy",
  "recognizers": {
    "FIRSTNAME": true,
    "SSN": true
  },
  "config": {
    "maskConfig": {
      "FIRSTNAME": {
        "type": "SEED",
        "seedFileName": "firstnames.txt"
      },
      "SSN": {
        "type": "REDACT"
      }
    }
  }
}

📌 Notes


For further examples, please visit faasera.ai or contact support.