DEV Community

CaraComp
CaraComp

Posted on • Originally published at go.caracomp.com

Your Face at Work Is Now 128 Numbers — and You Can't Take It Back

the technical implications of this regulatory shift in facial data mean we need to rethink how we architect biometric authentication. For developers working with computer vision and facial comparison, the recent ruling in Türkiye—prohibiting biometric attendance tracking even with employee consent—is a massive signal. It moves the conversation from "can we build it?" to "is this data object proportional to the requirement?"

As engineers, we often treat a facial scan as just another form of identity verification. We pull a frame, run it through a detector like HOG or a CNN-based ResNet, and extract a 128-dimensional vector. This embedding, a string of floating-point numbers, represents the Euclidean distance between landmarks on a human face. To a system, it's just math. To a regulator, it's a "special category" data object that represents a permanent, non-rotatable physical identity.

The technical problem with using biometrics for routine tasks like "clocking in" is the persistence of the data. Unlike an API key or an OAuth token, you cannot revoke a user's face if your database is compromised. When we build systems that store these embeddings in a persistent database for simple attendance, we are creating a high-risk data surface for a low-risk utility.

The Engineering Gap: Transaction vs. Identity

There is a fundamental difference between a transaction record and a biometric template. A standard attendance log is a simple timestamped entry. A biometric template, however, is a searchable data object. In the high-dimensional space where these embeddings live, they don't just say "this person is here"—they allow for clustering and cross-referencing against other datasets.

If you are currently deploying facial recognition APIs for employee management, you should consider the principle of proportionality. If the same goal (logging a start time) can be achieved via an RFID scan or a local PIN, the biometric approach becomes a liability. The Turkish regulator’s stance is that the power imbalance in employment makes "consent" technically invalid. From a dev perspective, this means we must build non-biometric fallbacks into every auth flow we design.

Comparison vs. Surveillance

At CaraComp, we distinguish between facial recognition (scanning crowds or building persistent databases for monitoring) and facial comparison (analyzing specific photos for investigation). The former is what regulators are currently targeting. The latter—performing Euclidean distance analysis between two known images provided for a specific case—is an essential tool for OSINT and private investigation.

For developers building investigation technology, the focus should be on "stateless" or "per-case" analysis. Instead of building a massive, searchable database of identities, the goal is to provide high-accuracy metrics on a side-by-side basis. This keeps the data relevant only to the specific investigation and minimizes the long-term storage of sensitive biometric templates.

Deployment Implications for Devs

If you're building in this space, start prioritizing these three technical shifts:

  1. Data Minimization: Don't store the raw 128d embeddings for longer than the immediate transaction requires.
  2. Local Processing: Keep the biometric extraction on the edge device rather than centralizing templates in a cloud database.
  3. Proportional Logic: If your system uses a camera for attendance, ask if a non-biometric hash of a badge ID would suffice.

We are moving into an era where "biometric by default" is a legacy mindset. Modern investigation tech and HR systems must be built with the understanding that a face is not just a password—it's a permanent identifier that requires enterprise-grade protection, even for the smallest firms.

How are you handling the "right to be forgotten" in systems that store facial embeddings? Drop a comment if you've had to implement a deletion protocol for biometric templates.

Top comments (0)