handling-sensitive-test-data

Classifies, anonymizes, and sanitizes test data, secrets, and CI artifacts containing personal data.

113|17|Updated Oct 5, 2025
One-click install
npx skills add https://github.com/jaktestowac/awesome-copilot-for-testers --skill handling-sensitive-test-data-jaktestowac
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: handling-sensitive-test-data
Source: https://github.com/jaktestowac/awesome-copilot-for-testers/tree/main/plugins/handling-sensitive-test-data/skills/handling-sensitive-test-data
Command: npx skills add https://github.com/jaktestowac/awesome-copilot-for-testers --skill handling-sensitive-test-data-jaktestowac

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @faker-js/faker, and includes references (resource) components.

What problem does it solve? Test environments routinely accumulate personal data through production dumps, recorded HAR files, committed fixtures, and CI artifacts, creating legal exposure under GDPR, HIPAA, and PCI DSS. This Skill provides a structured workflow to inventory, classify, and replace that data with safe synthetic alternatives before it leaks. ## Core Features & Use Cases - PII Classification: Sorts data into direct identifiers, quasi-identifiers, special category, financial, and credential classes, with regime-specific notes for GDPR, HIPAA, and PCI. - Synthetic Data Generation: Provides seeded, deterministic factory patterns using reserved domains and phone ranges, plus irreversible SQL anonymization recipes with re-identification checks when production data is unavoidable. - Secrets and Artifact Sanitization: Covers .env handling, CI secret stores, masking verification, HAR stripping scripts, and per-artifact retention rules. - Use Case: A QA team discovers a staging database seeded from a production dump two years ago. Use this Skill to classify the exposed fields, build an irreversible anonymization pipeline with a re-identification check, and set a deletion date with a named owner. ## Quick Start Audit my Playwright test suite for personal data in fixtures, HAR files, and CI artifacts, then generate a remediation plan with synthetic data replacements.

Frequently Asked Questions about handling-sensitive-test-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I anonymize production data for testing?▼

Run an irreversible, deterministic transformation inside the production boundary before the data leaves it. Replace direct identifiers, generalize quasi-identifiers like birth dates and postcodes, drop free-text fields entirely, then run a re-identification check on a sample before use.

How do I generate synthetic test data with Faker?▼

Use @faker-js/faker with a fixed seed so failures reproduce, and build factory functions with overridable fields. Use reserved domains like @example.com and reserved phone ranges so generated values are obviously fake and cannot reach real people.

Why is replacing names not enough for anonymization?▼

Quasi-identifiers like date of birth, postcode, and gender re-identify most people when combined, even with names removed. Anonymization must generalize these fields and verify k-anonymity across combinations, otherwise the dataset remains personal data under GDPR.

How do I remove secrets from HAR files before committing?▼

Strip Authorization, Cookie, Set-Cookie, and X-API-Key headers and clear cookie arrays with a sanitization script run as part of the recording workflow. Header stripping does not cover response bodies, so record against synthetic data whenever possible.

What should I do if a secret was committed to git?▼

Rotate the secret immediately, since it persists in history, clones, and forks even after the file is deleted. History rewriting with git filter-repo or BFG is optional cleanup; rotation is the only step that actually remediates the exposure.

When is a production data copy acceptable for testing?▼

Only when a specific constraint cannot be met by generated data, such as a required distribution or legacy record shape. The copy must go through an irreversible pipeline with a re-identification check, recorded approval, and a deletion date with a named owner.