Habr•September 5, 2026•🇷🇺Translated from Russian

pg_anon Open-Source Tool Receives Major Updates for PostgreSQL Data Masking and Partial Database Operations

pg_anon, an open-source tool developed by Tantor Labs for masking personal data in PostgreSQL, has received significant updates over the past year. The new version 1.11.0 introduces packaging as a standard Python package, support for partial database dumps and restores, enhanced handling of complex schemas, and a REST API for automation.

The tool addresses a common challenge in organizations that need to create copies of production databases for developers, analysts, or contractors without exposing real personal data. Direct copying of production databases risks violating internal security policies and data protection laws such as 152-FZ and GDPR. pg_anon performs masking by replacing field values with plausible alternatives while keeping table structures and referential integrity intact, resulting in a pseudonymized dataset.

Installation and New CLI Structure

Installation now uses standard pip commands with optional dependency groups. Users can install the base package or add support for the REST API and development tools. Two commands are provided after installation: pg_anon for core operations and pg_anon_api for running the REST service. Each operation mode is now a separate subcommand, improving usability compared to the previous single-entry-point approach.

Partial Dump and Restore Capabilities

A major addition is support for partial dumps and restores. Administrators can specify tables to include or exclude using dictionary files passed via command-line options. The tool automatically collects DDL for dependent objects such as custom types, domains, and functions to ensure successful restoration on a clean target database without manual pre-creation of supporting objects.

Performance and Schema Improvements

The dump engine was rewritten using asyncio instead of multiprocessing. Metadata collection now uses a single query instead of per-table connections, dramatically reducing preparation time on databases with thousands of tables. Compression was changed to a streaming model with lower gzip levels, eliminating memory leaks on large JSON-heavy tables. Support was added for partitioned tables, inherited tables, generated columns, identity sequences, and object names containing special characters.

REST API and Automation

The new REST API enables integration into automated pipelines. Standardized error codes, operation identifiers, custom headers, and log retrieval features support use in CI/CD systems that refresh masked database copies on a schedule without human intervention.

The release maintains backward compatibility with older command syntax while providing a more structured and extensible foundation for data masking workflows in regulated environments.

Related articles

Habr•Privacy & Surveillance

Yandex Browser Removes Anonymity References from License Agreement, Acknowledging Extensive Data Collection

Yandex has quietly updated its browser license agreement by removing all mentions of anonymity and depersonalization. The company claims the changes are purely technical and do not increase data collection. However, the revised text now explicitly classifies browsing history, IP addresses, hardware details, and interaction data as potentially personal information. The agreement also grants Yandex broad rights to access users' phone contacts for voice calling features powered by Alice. Responsibility for obtaining consent from all contacts is placed on the user. No obligation exists for Yandex to delete previously collected data after synchronization is disabled. The update highlights how browser telemetry can build detailed social graphs without traditional identifiers.

AntiMalware•Privacy & Surveillance

Telegram Removes Google Fallback from Voice Input in Latest Android Beta

Telegram has removed the Google speech recognition fallback option from its Android beta version 13.3.2 (7349). The change follows the addition of on-device models supporting 14 languages, making the external fallback less necessary. Developers noted that the built-in engine now handles dictation for Arabic, Indonesian, Malay, French, and German among others. Earlier concerns raised by analyst Eldar Murtazin suggested dictated messages might reach Google servers, but traffic analysis by Code.ru found no such connections even before the removal. The feature works in airplane mode and functions independently of the former toggle. Updates released on November 23 also improved language detection, right-to-left script highlighting, and added an option to disable dictation during voice message recording. The move addresses user questions about where voice data is processed while strengthening local processing in secret chats.

AntiMalware•Privacy & Surveillance

GTA VI Accused of Collecting Psychological Player Profiles for Insurers and Employers, Claims Lack Evidence

An unverified accusation has emerged alleging that GTA VI collects detailed telemetry data to build psychological profiles of players. A user on X claiming to be a former Rockstar North engineer asserted that the game sends button presses, stick movements, and reaction times to an internal system called Lens. The profiles are said to assess traits such as self-control, risk-taking, aggression, and impulse buying before being shared with insurers and recruiters. No documents, network captures, or server addresses have been provided to substantiate the claims, and the author's identity remains unconfirmed. Take-Two's privacy policy does acknowledge collection of gameplay activity, identifiers, and IP addresses for personalized profiles and advertising partners. Independent outlets have found no record of the alleged subsidiary Vantage Analytics in company filings.

Securitylab•Privacy & Surveillance

Complete Guide to Verifying Used iPhones Before Purchase: Step-by-Step Security Checks

Used iPhones can appear fully functional with high battery health and responsive apps, yet still be locked to a previous owner's Apple Account or enrolled in corporate MDM after a factory reset. The verification process must be split into three stages: confirming the seller can fully transfer ownership, inspecting hardware and software details, and performing a complete erase followed by internet-based reactivation. Buyers should insist on seeing the device reach the home screen without requiring prior credentials or remote management profiles. Key checks include Activation Lock status, operator restrictions, part authenticity history, battery capacity, and biometric functionality using the buyer's own data. Corporate MDM enrollment can persist after erasure if the device remains tied to an organization's automated enrollment program, requiring official release confirmation. Only after successful activation and function testing should payment be completed to avoid inheriting unusable or restricted hardware.