OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Custom Auto-Classification Recognizers

Open PubChimps opened this issue 8 months ago • 4 comments

Release 1.12 added the ability to create custom recognizers for classification. Build a set of domain-specific recognizers:

  • Financial data — account numbers, routing numbers, SWIFT codes, IBAN
  • Healthcare — MRN, diagnosis codes, drug names, NPI numbers
  • Geolocation — lat/long pairs, postal codes across different countries, IP addresses
  • Infrastructure — AWS ARNs, Kubernetes resource names, Docker image references
  • EU-specific PII — NIE/NIF (Spain), BSN (Netherlands), Personnummer (Sweden)

PubChimps avatar Mar 20 '26 19:03 PubChimps

Hi @PubChimps

I’d like to take up this issue. I have a clear implementation plan for building domain-specific recognizers across the mentioned categories.

mstejas610 avatar Apr 11 '26 12:04 mstejas610

Hi @PubChimps @harshach 👋

I'm participating in the WeMakeDevs × OpenMetadata Hackathon and actively contributing across multiple issues. I'd love to pick this one up alongside my other contributions. (Project Track) Planning to implement recognizer definitions for all five domains — Financial, Healthcare, Geolocation, Infrastructure, and EU-specific PII — using the PatternRecognizer, DenyListRecognizer, and ContextRecognizer types from 1.12, with tests and a working demo.

Quick alignment questions before I open a draft PR:

Should these live as Python files in the ingestion framework, or as JSON/YAML seed configs? Is there a preferred directory/module structure introduced in 1.12 for recognizer definitions? Should EU PII recognizers tag into the existing PII.Sensitive classification or a separate one?

Happy to sync if needed. Will share progress here!

mohitjeswani01 avatar Apr 17 '26 19:04 mohitjeswani01

Hi everyone, thank you for your interest in the hackathon!

We will not be assigning this issue, this is just an idea of something that could be submitted for it! Please feel free to submit something on this whether you are assigned or not, or submit something totally different! Whatever you think would showcase OpenMetadata and help our community the most!

PubChimps avatar Apr 18 '26 02:04 PubChimps

Hi! I'd like to investigate and fix this as part of the WeMakeDevs × OpenMetadata OUTATIME Hackathon.

I've been working hands-on with OpenMetadata 1.4.7's classification and PII tagging system and ran into related issues:

  • Auto-classification not applying tags correctly to scanned columns
  • PII tag propagation inconsistencies after table scans via the REST API

I've built a custom governance layer on top of OpenMetadata that handles PII detection (Aadhaar, PAN, IFSC, GDPR, HIPAA) and writes tags back via /api/v1/tables/{id} — during this work I identified gaps in the auto-classification pipeline.

I'd be glad to dig into the root cause and submit a fix. Could you please assign this to me?

Alkur123 avatar Apr 23 '26 16:04 Alkur123