← All Learning Paths

Privacy Engineer

Implement privacy by design: PII inventory, data residency and retention, masking and tokenization, log redaction, and erasure workflows.

roleintermediate10 nodes12.58h total

Path overview

落地隐私设计:PII 清单、数据驻留与保留、脱敏与令牌化、日志脱敏与数据擦除流程。

Implement privacy by design: PII inventory, data residency and retention, masking and tokenization, log redaction, and erasure workflows.

  1. Execute "Mask Email Addresses for Logs", change one constant, and describe how the output diverges from "the maskEmail entry point".

    Completion criteria: Save two runs of "Mask Email Addresses for Logs" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: Pino Redaction of Sensitive Log Fields

    ⏱ 0.75h

  2. Run the privacy engineer snippet "Pino Redaction of Sensitive Log Fields", capture stdout, and show which line demonstrates the documented behavior: "Prevent secrets from leaking into logs by configuring Pino redaction paths, nested wildcard".

    Prerequisites: Mask Email Addresses for Logs

    Completion criteria: Attach the terminal transcript for "Pino Redaction of Sensitive Log Fields": command, exit code, and the printed result you used to confirm "Prevent secrets from leaking into logs by configuring Pino redaction paths, nested wildcard".

    Next step: Log Scrubber Redacting Secret Values

    ⏱ 0.75h

  3. Adapt "Log Scrubber Redacting Secret Values" to a second input and compare the new output with the behavior described in "the REDACTED entry point".

    Prerequisites: Pino Redaction of Sensitive Log Fields

    Completion criteria: Paste the command, the exit code, and the output line matching "A structured log scrubber that masks known secret keys and bearer tokens before"; then show a second run with a changed parameter.

    Next step: Redact PII in Application Logs

    ⏱ 0.75h

  4. Execute "Redact PII in Application Logs" end to end, then repeat the last step with one parameter changed and compare "Introduce a redaction layer that scrubs PII and secrets before logs are written.".

    Prerequisites: Log Scrubber Redacting Secret Values

    Completion criteria: Run the steps through "Introduce a redaction layer that scrubs PII and secrets before logs are written.", paste the command output, and mark the line that matches "Sensitive keys are replaced with a marker before serialisation."; then rerun with one parameter changed.

    Next step: Scan Databases for Unlabeled PII

    ⏱ 0.5h

  5. Run "Find personal data stored in columns nobody labeled as PII before a privacy audit or a data" from "Scan Databases for Unlabeled PII" and confirm the documented result "A result list containing an EMAIL_ADDRESS entity with a score above 0.6.".

    Prerequisites: Redact PII in Application Logs

    Completion criteria: Deliver a transcript of "Scan Databases for Unlabeled PII" with each step's command and observed state, ending at "Find personal data stored in columns nobody labeled as PII before a privacy audit or a data".

    Next step: Implement a GDPR Right-to-Erasure Deletion Job

    ⏱ 0.5h

  6. Apply "Implement a GDPR Right-to-Erasure Deletion Job" to a privacy engineer task, checking that "A list that includes app.profiles.email, app.profiles.phone, app.orders.customer_email," appears after the "Implement an idempotent erasure job that deletes or anonymizes a user's personal data across" step.

    Prerequisites: Scan Databases for Unlabeled PII

    Completion criteria: Run "Implement a GDPR Right-to-Erasure Deletion Job" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Analytics Data Anonymization Workflow

    ⏱ 1h

  7. Use "Analytics Data Anonymization Workflow" to decide "A classification table covers every field entering analytics.", then prove the outcome with "Produce analytics datasets that cannot be traced back to individuals, verified by".

    Prerequisites: Implement a GDPR Right-to-Erasure Deletion Job

    Completion criteria: Deliver a transcript of "Analytics Data Anonymization Workflow" with each step's command and observed state, ending at "Produce analytics datasets that cannot be traced back to individuals, verified by".

    Next step: Implement a Data Retention Cleanup

    ⏱ 0.5h

  8. Follow "Implement a Data Retention Cleanup" and record "The candidate set is understood before any deletion occurs." at the step where it should appear, using "Build a dry-run query: Select the records that would be deleted, count them by class and" as the check.

    Prerequisites: Analytics Data Anonymization Workflow

    Completion criteria: Record the state "The candidate set is understood before any deletion occurs." at the verification step, then paste the output of "Build a dry-run query: Select the records that would be deleted, count them by class and" that proves it.

    Next step: Classify Fields by Data Sensitivity

    ⏱ 1.5h

  9. In the "Privacy Engineer" path, implement "Classify Fields by Data Sensitivity" so JSON object: { fields: [{ name, sample }] } yields [{name:contact,category:email},{name:card_on_file,category:payment-car, including the second sample's edge case.

    Prerequisites: Implement a Data Retention Cleanup

    Completion criteria: Attach the solution file for "Privacy Engineer", two passing sample runs, and one failing run whose error matches the contract.

    Next step: Capstone: Privacy Engineer

    ⏱ 0.33h

  10. Build "Build a Tamper-Evident Audit Log Service" through its phases, keeping "Append with chain" independently testable.

    Prerequisites: Implement a Data Retention Cleanup, Classify Fields by Data Sensitivity

    Completion criteria: Run the project's test command for "Build a Tamper-Evident Audit Log Service", paste the passing output, and attach the acceptance note for "Append with chain" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h