Urgent.News

What's breaking now, across thousands of outlets.

Tech

Read, return, forget: processing passport scans without storing the image

Originally published at Read, return, forget: processing passport scans without storing the image A passport photo is the most sensitive file most apps ever receive. It carries a face, a full name, a date of birth and a document number, and it is enough to open an account somewhere else. Yet in many upload flows the picture is copied five or six times before anyone asks whether it needs to exist…

Processing passport scans without storing the image image has become a concern for many apps. The GDPR doesn't outright forbid storing a passport image, but it encourages data minimisation. This means keeping only what is necessary for the specific purpose, and no longer than needed. In practice, this can be achieved through a "read, return, forget" pattern.

Instead of copying the image multiple times, read the needed information (like name, date of birth and document number) from the image and immediately return the result. The image itself should not be stored anywhere. If storage is unavoidable, give the image a very short lifespan - minutes, for example, and delete it as soon as the request is completed.

Understand where passport images typically end up in your system. Common places include upload buckets, request logs, error reports, queues/retries, backups/snapshots, support tickets, and analytics/session replay. These are places you can control, so make sure not to store the image there. If you must use a vendor service for OCR or similar processing, ask them about their storage practices. Ensure the image is only in memory for the request and does not leave the request in any form.

Remember, the GDPR and upcoming anti-money-laundering law require you to be able to explain why you keep personal data. By following the "read, return, forget" pattern, you can demonstrate compliance by showing there were no unnecessary copies of the image to keep.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Stop Hand-Rolling JSON Lines With WriteLine. .NET 11 Writes Them for You

TL;DR: JsonSerializer.SerializeAsyncEnumerable(stream, items, topLevelValues: true) writes canonical JSON Lines: one compact value per line, LF after every one.

  • .NET 11 introduces JSONL writing with JsonSerializer.SerializeAsyncEnumerable
  • topLevelValues parameter creates JSON Lines format with newline separation
  • PipeWriter overload enables streaming JSONL endpoints in ASP.NET Core

A small metadata contract for reviewing photo crops

A photo handoff often includes a final image, an intended destination and a sentence such as “make it square.” That is not quite enough information for another person to review the export.

  • reviewcrop function checks dimensions for photo crops
  • Returns ratio match, upscale needed, source ratio in dict
  • Raises ValueError for non-finite positive numbers

How Elon Musk's 'Universal High Income (UHI)' Works: When Humanoid Robots Push the Cost of Goods Toward Zero

Whenever Universal Basic Income (UBI) is debated, a common objection surfaces: "Even if every citizen receives an unconditional monthly stipend, won't that just trap everyone on a bare-minimum…

  • Universal High Income (UHI) replaces Universal Basic Income (UBI) in an AI/robot era.
  • AI and humanoid robots could drive goods and services costs toward zero.
  • UHI aims to fund a high income for every citizen, boosting living standards.

Is ElevenLabs Creator Worth $22/mo? Credit Math, Cloning and When to Stay on Starter

#ad #ElevenAgentsPartner Disclosure: I'm an ElevenLabs affiliate partner. If you buy through links on my site I may earn a commission at no extra cost to you.

  • ElevenLabs Creator plan costs $22/month with 121,000 credits.
  • 60-second short video uses ~900 credits, 3-minute explainer uses ~3,510 credits.
  • Creator plan suitable for >30 min/month narration or Professional Voice Cloning.

More from Friday 6 November →