mcpField
C
consent-withdrawal

consent-withdrawal

github.com/mukul975Security32338 installsUpdated 32w ago
Repository

About consent-withdrawal

A GDPR consent-withdrawal implementation skill for product and privacy teams, centered on making withdrawal as easy as granting consent. It covers withdrawal entry points, processing, third-party notifications, and records for renewed consent.

Key features

  1. 01Measure effort for consent and withdrawal
  2. 02Plan multiple withdrawal entry points
  3. 03Outline withdrawal processing
  4. 04Notify third parties receiving data
  5. 05Record renewed consent after withdrawal

Use cases

  1. 01Review a website's consent-withdrawal flow
  2. 02Plan an email unsubscribe mechanism
  3. 03Design withdrawal notices for third-party sharing

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mukul975/privacy-data-protection-skills --skill consent-withdrawal

After installing, type/consent-withdrawalin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

assets/
template.md
references/
standards.md
workflows.md
scripts/
process.py

Details

From the project README

Implementing Consent Withdrawal

Overview

GDPR Article 7(3) states: "The data subject shall have the right to withdraw his or her consent at any time. The withdrawal of consent shall not affect the lawfulness of processing based on consent before its withdrawal. Prior to giving consent, the data subject shall be informed thereof. It shall be as easy to withdraw consent as to give it."

The "equal ease" requirement is the most technically demanding aspect. If consent was given with a single checkbox tick during sign-up, withdrawal must be achievable with a comparable level of effort — not buried behind multiple navigation layers, settings pages, or dark patterns.

Equal Ease Analysis

Measuring Consent Complexity

Quantify the effort required to give consent and ensure withdrawal meets or exceeds this standard:

MetricHow to MeasureTarget
Click CountNumber of clicks/taps from entry point to completionWithdrawal clicks <= consent clicks
Page NavigationsNumber of page loads between start and completionWithdrawal pages <= consent pages
Form FieldsNumber of inputs requiredWithdrawal fields <= consent fields
Time to CompleteMeasured in usability testingWithdrawal time <= consent time
Cognitive LoadComprehension difficulty of instructionsWithdrawal instructions equally clear
AccessibilitySteps required with keyboard-only navigationEqual keyboard accessibility
CloudVault SaaS Inc. Compliance Analysis
ActionMethodClick CountPagesFields
Give consent (sign-up)Unticked checkbox tick1 clickSame page0
Withdraw consent (preference center)Toggle switch off + confirm2 clicks1 page0
Withdraw consent (email unsubscribe)Unsubscribe link click1 click1 page0

The preference center withdrawal requires one additional click (confirmation dialog). This is acceptable because it protects against accidental withdrawal, and the EDPB acknowledges that a confirmation step does not violate equal ease (Guidelines 05/2020, paragraph 116).

One-Click Withdrawal Architecture

Withdrawal Entry Points

CloudVault SaaS Inc. provides withdrawal access from multiple locations:

  1. Preference Center: Settings > Privacy (2 clicks from any page)
  2. Footer Link: "Privacy Choices" link in page footer (1 click + toggle)
  3. Email Unsubscribe: One-click unsubscribe link in every marketing email (1 click, per RFC 8058 List-Unsubscribe-Post)
  4. Account Dashboard: Privacy widget showing current consent state (1 click + toggle)
  5. API Endpoint: PUT /api/v1/consent/preferences/{subject_id} for programmatic withdrawal
Withdrawal Processing Pipeline
TRIGGER: User clicks withdrawal toggle for a specific purpose
  │
  ├─► Step 1: Client-Side
  │     ├─ Display confirmation dialog:
  │     │   "Withdraw consent for [purpose name]?"
  │     │   "This will stop [specific processing description]."
  │     │   "You can re-enable this at any time."
  │     │   [Cancel] [Withdraw]
  │     │
  │     └─ User clicks [Withdraw]
  │
  ├─► Step 2: API Call
  │     PUT /api/v1/consent/preferences/{subject_id}
  │     Body: { decisions: [{ purpose_id: "pur_analytics_01", decision: "withdrawn", mechanism: "toggle_switch" }] }
  │
  ├─► Step 3: Backend Processing (within 100ms)
  │     ├─ Create ConsentDecision record (decision: "withdrawn")
  │     ├─ Validate request (subject exists, purpose exists, consent was previously granted)
  │     ├─ Update consent state cache (Redis/in-memory)
  │     └─ Return success response to client
  │
  ├─► Step 4: Cascading Effects (async, within 1 hour)
  │     ├─ Dispatch withdrawal events to message queue (Kafka/RabbitMQ/SQS)
  │     ├─ Each downstream system receives withdrawal notification:
  │     │
  │     │   Purpose: "Service Improvement Analytics" (pur_analytics_001)
  │     │   ├─ Stop analytics SDK data collection for this user
  │     │   ├─ Remove user from analytics cohorts
  │     │   └─ Flag existing analytics data for review/deletion
  │     │
  │     │   Purpose: "Product Update Emails" (pur_marketing_002)
  │     │   ├─ Remove user from email marketing lists
  │     │   ├─ Add user to suppression list
  │     │   ├─ Cancel any scheduled email campaigns for this user
  │     │   └─ Confirm with email service provider (ESP)
  │     │
  │     │   Purpose: "Industry Benchmarking" (pur_benchmarking_003)
  │     │   ├─ Stop data sharing with Datalytics Partners Ltd.
  │     │   ├─ Notify Datalytics Partners Ltd. via API
  │     │   ├─ Request confirmation of processing cessation
  │     │   └─ Flag shared data for deletion per DPA terms
  │     │
  │     └─ Log all propagation events with status tracking
  │
  ├─► Step 5: Downstream Acknowledgment (within 24 hours)
  │     ├─ Each downstream system sends acknowledgment
  │     ├─ System monitors for missing acknowledgments
  │     ├─ Escalation workflow for unacknowledged withdrawals:
  │     │   ├─ T+1 hour: Automated retry
  │     │   ├─ T+4 hours: Alert to engineering team
  │     │   └─ T+24 hours: Escalate to DPO
  │     └─ All acknowledgments logged in propagation table
  │
  └─► Step 6: User Confirmation
        ├─ UI updates: toggle shows "off" state
        ├─ Confirmation message: "Consent withdrawn. Processing will stop within 24 hours."
        ├─ Confirmation email sent to user
        └─ Consent receipt updated and available for download

Third-Party Notification Protocol

When consent is withdrawn for a purpose involving third-party data sharing:

  1. Immediate API Notification: Send structured notification to third party via pre-established API endpoint (defined in the Data Processing Agreement).

  2. Notification Payload:

{
    "notification_type": "consent_withdrawal",
    "subject_reference": "hashed_subject_id",
    "purpose_id": "pur_benchmarking_003",
    "withdrawal_timestamp": "2026-03-14T10:30:00Z",
    "required_action": "cease_processing",
    "action_deadline": "2026-03-15T10:30:00Z",
    "acknowledgment_required": true,
    "controller": "CloudVault SaaS Inc."
}
  1. Expected Response:
{
    "acknowledgment": true,
    "received_at": "2026-03-14T10:30:05Z",
    "action_status": "processing_cessation_initiated",
    "estimated_completion": "2026-03-14T12:00:00Z"
}
  1. DPA Enforcement: The Data Processing Agreement with Datalytics Partners Ltd. (Section 8.3) requires acknowledgment within 4 hours and processing cessation within 24 hours. Failure to comply constitutes a DPA breach.

Handling Re-Consent After Withdrawal

When a user withdraws consent and later wants to re-consent:

  • Re-consent is permitted and should use the same mechanism as initial consent
  • The consent record must show a clear audit trail: granted → withdrawn → granted
  • If the consent text has changed since the last grant, the new version must be displayed
  • No "nudging" or dark patterns to encourage re-consent (EDPB Guidelines 05/2020)
  • A reasonable cooling-off period is not required but may be implemented for fraud prevention

Key Regulatory References

  • GDPR Article 7(3) — Right to withdraw consent; equal ease requirement
  • GDPR Recital 42 — Consent not freely given if withdrawal causes detriment
  • EDPB Guidelines 05/2020 on Consent — Paragraphs 108-120 on withdrawal
  • RFC 8058 — Signaling One-Click Functionality for List Email Headers (List-Unsubscribe-Post)
  • CNIL Enforcement (Google, January 2022) — EUR 150M fine partly for difficult consent withdrawal
  • AEPD Enforcement (CaixaBank, January 2021) — EUR 6M fine for inadequate withdrawal mechanisms

Comments

Markdown supported