本文へ移動
cccskills
無料GitHub で公開

implementing-data-minimization-architecture

Architecture patterns for GDPR Article 5(1)(c) data minimization and Article 25(1) data protection by design. Covers field-level encryption, data masking, aggregation, pseudonymization per Article 4(5), and anonymization per Recital 26. Includes ENISA pseudonymization techniques and a data minimization assessment matrix.

インストール方法を見る

含まれるファイル(5)

  • SKILL.md11.6 KB
  • assets/template.md4.1 KB
  • references/standards.md4.0 KB
  • references/workflows.md4.8 KB
  • scripts/process.py12.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Implementing Data Minimization Architecture

Overview

Data minimization is a core principle of the GDPR under Article 5(1)(c), requiring that personal data be "adequate, relevant and limited to what is necessary in relation to the purposes for which they are processed." Article 25(1) mandates that controllers implement appropriate technical and organisational measures, such as pseudonymisation, designed to implement data-protection principles effectively and to integrate necessary safeguards into the processing.

The European Data Protection Board (EDPB) Guidelines 4/2019 on Article 25 Data Protection by Design and by Default clarify that data minimization applies across four dimensions: the amount of data collected, the extent of processing, the period of storage, and the accessibility of data. ENISA's 2019 report on pseudonymisation techniques provides the technical foundation for implementing these requirements at scale.

Data Minimization Architecture Layers

Layer 1: Collection Minimization

Reduce data at the point of ingestion before it enters backend systems.

Techniques:

TechniqueDescriptionGDPR BasisImplementation Complexity
Schema enforcementReject fields not explicitly required for the declared purposeArt. 5(1)(c), Art. 25(1)Low
Client-side filteringStrip unnecessary fields in the client SDK before transmissionArt. 5(1)(c)Medium
Progressive collectionRequest additional fields only when a specific feature is activatedArt. 5(1)(c), Recital 39Medium
Purpose-gated formsDisplay only form fields relevant to the selected service tierArt. 5(1)(b), Art. 25(2)Low

Prism Data Systems AG Implementation: Prism Data Systems AG deploys an API gateway validation layer that enforces a strict allowlist of fields per endpoint. The customer onboarding endpoint /api/v2/customers accepts only: email, display_name, country_code, and consent_references[]. Fields like date_of_birth, phone_number, and billing_address are collected only when the customer activates the billing module, implementing progressive collection tied to purpose activation.

Layer 2: Processing Minimization

Reduce the identifiability of data during computation.

Pseudonymization (Article 4(5))

Article 4(5) defines pseudonymisation as "the processing of personal data in such a manner that the personal data can no longer be attributed to a specific data subject without the use of additional information, provided that such additional information is kept separately and is subject to technical and organisational measures."

ENISA Pseudonymization Techniques (2019 Report):

TechniqueReversibilityCollision RiskSuitable For
Counter-based mappingReversible with lookup tableNoneCustomer IDs, transaction references
HMAC-SHA256 with secret keyReversible with keyNegligible (256-bit)Cross-system linkage where re-identification is needed
Format-preserving encryption (FF1/FF3-1)Reversible with keyNoneStructured data (credit card numbers, SSNs) preserving format constraints
Tokenization with vaultReversible with vault accessNonePayment card data (PCI DSS alignment)
Keyed hash with salt rotationComputationally irreversible after rotationLowSession-level analytics where longitudinal tracking is unnecessary

Prism Data Systems AG Implementation: Prism Data Systems AG uses HMAC-SHA256 pseudonymization for all analytics pipelines. Customer identifiers are pseudonymized at the boundary between the transactional database and the analytics data warehouse. The HMAC key is stored in a Hardware Security Module (HSM) managed by the security operations team, physically and logically separated from the analytics infrastructure per ENISA recommended controls.

Anonymization (Recital 26)

Recital 26 states that the principles of data protection should not apply to anonymous information, namely "information which does not relate to an identified or identifiable natural person or to personal data rendered anonymous in such a manner that the data subject is not or no longer identifiable." The Article 29 Working Party Opinion 05/2014 on Anonymisation Techniques (WP216) established three risk criteria:

  1. Singling out — the ability to isolate a record identifying an individual
  2. Linkability — the ability to link two records relating to the same individual
  3. Inference — the ability to deduce the value of an attribute from other attributes

Anonymization Techniques:

TechniqueSingling OutLinkabilityInferenceData Utility
k-Anonymity (k=5)MitigatedPartially mitigatedNot mitigatedHigh
l-Diversity (l=3)MitigatedMitigatedPartially mitigatedMedium-High
t-Closeness (t=0.15)MitigatedMitigatedMitigatedMedium
Differential privacy (epsilon=1.0)MitigatedMitigatedMitigatedConfigurable
Data aggregation (min group=11)MitigatedMitigatedPartially mitigatedLow-Medium

Layer 3: Storage Minimization

Limit how much identifiable data persists at rest.

Field-Level Encryption Architecture:

                    ┌────────────────────────┐
                    │   Application Layer    │
                    │  (plaintext in memory) │
                    └──────────┬─────────────┘
                               │
                    ┌──────────▼─────────────┐
                    │  Encryption Service    │
                    │  AES-256-GCM per field │
                    │  Key: KMS / HSM        │
                    └──────────┬─────────────┘
                               │
          ┌────────────────────┼────────────────────┐
          │                    │                    │
 ┌────────▼───────┐  ┌────────▼───────┐  ┌────────▼───────┐
 │  email (enc)   │  │  name (enc)    │  │  country (clr) │
 │  DEK-email-v3  │  │  DEK-name-v3   │  │  (not PII)     │
 └────────────────┘  └────────────────┘  └────────────────┘

Each personally identifiable field is encrypted with a dedicated Data Encryption Key (DEK) wrapped by a Key Encryption Key (KEK) in AWS KMS or Azure Key Vault. This enables selective decryption: analytics queries on country never require decrypting email or name.

Prism Data Systems AG Implementation: Prism Data Systems AG classifies all database columns into four sensitivity tiers:

TierClassificationEncryptionAccess ControlExample Fields
T1Direct identifierAES-256-GCM, field-levelNamed individuals with business justificationemail, full_name, national_id
T2Quasi-identifierAES-256-GCM, field-levelRole-based, loggeddate_of_birth, postal_code, job_title
T3Sensitive attributeAES-256-GCM, field-levelPurpose-restricted, dual approvalhealth_data, financial_score
T4Non-identifyingTransport encryption (TLS 1.3)Standard RBACcountry_code, language_preference

Layer 4: Access Minimization

Restrict who and what systems can access identifiable data.

Data Masking Patterns:

PatternDescriptionUse Case
Static maskingIrreversibly replace PII in non-production databasesDevelopment and QA environments
Dynamic maskingApply masking rules at query time based on the requester's roleCustomer support dashboards
On-the-fly maskingMask data in transit between microservicesInter-service API calls where full PII is unnecessary
Tokenized viewsDatabase views that return tokens instead of raw valuesReporting layers, third-party integrations

Prism Data Systems AG Implementation: Customer support agents at Prism Data Systems AG see dynamically masked data by default: m***l@example.com for email, ***-***-4892 for phone numbers. Only escalation-tier agents can request unmasked access, which requires a ticket reference, is logged in the audit trail, and auto-expires after 30 minutes.

Data Minimization Assessment Matrix

Use this matrix to evaluate each data field against minimization requirements before approving a new processing activity or system design.

Assessment CriterionQuestionScoring
NecessityIs this field required to fulfill the stated purpose?0 = No, 1 = Partially, 2 = Yes
ProportionalityCould a less identifying alternative achieve the same result?0 = Yes (use alternative), 1 = Partially, 2 = No alternative exists
Aggregation potentialCan this field be aggregated or generalized without losing required utility?0 = Fully aggregable, 1 = Partially, 2 = Must remain granular
Pseudonymization feasibilityCan this field be pseudonymized for this processing purpose?0 = Easily pseudonymized, 1 = With effort, 2 = Not feasible
Temporal scopeIs this field needed beyond the immediate transaction?0 = No (delete after use), 1 = Short retention, 2 = Long retention required
Access scopeHow many roles need access to the raw value?0 = None (mask/encrypt), 1 = Limited roles, 2 = Broad access required

Scoring interpretation:

  • 0-4: Strong candidate for elimination, aggregation, or pseudonymization
  • 5-8: Apply masking, field-level encryption, and access controls
  • 9-12: Justified retention with full technical safeguards and documentation

Prism Data Systems AG Implementation: Before any new microservice is deployed, the data architecture review board at Prism Data Systems AG requires a completed minimization assessment for every personal data field. Fields scoring below 5 must be eliminated or pseudonymized before the service passes the privacy gate in the CI/CD pipeline.

Key Regulatory References

  • GDPR Article 4(5) — Definition of pseudonymisation
  • GDPR Article 5(1)(c) — Data minimization principle
  • GDPR Article 25(1) — Data protection by design
  • GDPR Article 25(2) — Data protection by default
  • GDPR Article 32(1)(a) — Pseudonymisation and encryption as security measures
  • GDPR Recital 26 — Scope of anonymous information
  • GDPR Recital 78 — Appropriate technical and organisational measures
  • EDPB Guidelines 4/2019 on Article 25 Data Protection by Design and by Default
  • ENISA Report: Pseudonymisation techniques and best practices (November 2019)
  • Article 29 Working Party Opinion 05/2014 on Anonymisation Techniques (WP216)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Implements 42 CFR Part 2 protections for substance use disorder patient records. Covers written consent requirements stricter than HIPAA, re-disclosure prohibition, court order procedures, qualified service organization agreements, and 2024 amendments aligning Part 2 with HIPAA. Keywords: 42 CFR Part 2, substance use disorder, SUD records, re-disclosure, consent, Part 2 amendments.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

Guides assessment of third-country adequacy decisions under GDPR Article 45 for international data transfers. Covers the current EC adequacy decisions list, adequacy assessment criteria, partial adequacy handling, and monitoring of adequacy decision reviews. Keywords: adequacy decision, Article 45, third country, adequate protection, EC adequacy list.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

Implements age-gating mechanisms for online services to restrict access based on user age. Covers hard gates versus soft gates, neutral age prompts, re-verification triggers, circumvention prevention, and regulatory requirements under GDPR, COPPA, UK Online Safety Act, and DSA. Keywords: age gate, age restriction, neutral prompt, children, online services, access control.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

Evaluates and implements age estimation and verification technologies for online services. Covers facial age estimation, digital ID verification, self-declaration with risk assessment, AI-based age estimation, and the accuracy versus privacy tradeoff. Includes ICO guidance and euCONSENT framework. Keywords: age verification, age estimation, facial analysis, digital ID, children, online safety.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

Preparing EU AI Act compliance documentation for high-risk AI systems. Covers Annex III classification, technical documentation under Art. 11, conformity assessment, risk management systems, and CE marking requirements. Keywords: EU AI Act, high-risk AI, Annex III, conformity assessment, CE marking.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

Implements GDPR Art. 22 automated decision-making and AI Act Art. 14 human oversight requirements for AI systems. Covers identification of solely automated decisions, meaningful human intervention design, logic explanation mechanisms, and contestation procedures. Keywords: Art. 22, automated decision, human oversight, AI Act, profiling, contestation.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

mukul975 のスキルをすべて見る

このスキルの問題を報告する