Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

java-data-governance

PII-aware customer onboarding with automatic redaction and retention policies.

Run it

mvn compile exec:java

What it does

  1. Accepts customer data containing PII (email, SSN, phone, credit card)
  2. Detects PII fields using the same regex patterns as the runtime
  3. Performs KYC verification using the real data
  4. Redacts all PII fields (masking) before storage
  5. Produces a safe, redacted summary for the audit log

Key concepts

  • PII detection — built-in patterns for email, SSN, phone, credit card, IP address
  • Redaction modes — mask (partial reveal), hash (SHA-256), or remove
  • Data retentionretention_days controls automatic audit entry expiry via purge_expired()
  • Audit safetyretain_prompts: false and retain_outputs: false strip sensitive content from logs
  • DataPolicyIr — workflow-level and node-level data handling policy in the IR

Runtime data policy

When submitted to the JamJet runtime, the DataPolicyIr in the workflow IR controls automatic PII handling:

data_policy:
  pii_detectors: [email, ssn, phone, credit_card]
  redaction_mode: mask
  retain_prompts: false
  retain_outputs: false
  retention_days: 90

Next steps