Add data retention detection feature for GDPR/CCPA compliance#42
Draft
Add data retention detection feature for GDPR/CCPA compliance#42
Conversation
Co-authored-by: mitchelllisle <18128531+mitchelllisle@users.noreply.github.com>
Co-authored-by: mitchelllisle <18128531+mitchelllisle@users.noreply.github.com>
Co-authored-by: mitchelllisle <18128531+mitchelllisle@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add feature to detect overdue customer data retention
Add data retention detection feature for GDPR/CCPA compliance
Oct 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR implements a comprehensive data retention detection feature that enables organizations to identify and manage customer data exceeding specified retention schedules. This feature helps ensure compliance with data protection regulations like GDPR and CCPA by providing automated tools for detecting, analyzing, and handling retention violations.
Problem Statement
Organizations using Maskala need the ability to:
Solution
The new
RetentionDetectoranalyzer provides a complete toolkit for retention management:Core Capabilities
1. Policy-Based Detection
2. Compliance Monitoring
3. Automated Action Planning
4. Multi-Policy Support
Key Features
Integration Example
The feature integrates seamlessly with existing Maskala components:
What's Included
New Components
Testing
Documentation
docs/RETENTION_DETECTION_GUIDE.md) with best practicesRetentionPipelineExample.scala) showing end-to-end workflowUse Cases
This feature enables:
Technical Details
Files Changed
Added:
src/main/scala/org/mitchelllisle/analysers/RetentionDetector.scalasrc/test/scala/RetentionDetectorTest.scalasrc/test/resources/retentionConfig.yamlsrc/main/scala/org/mitchelllisle/examples/RetentionPipelineExample.scaladocs/RETENTION_DETECTION_GUIDE.mdModified:
README.md(added Retention Detection section)Testing Checklist
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.