jeffersongoncalves / filament-gdpr-dsar
Filament plugin for laravel-gdpr-dsar: handle GDPR data subject requests (Arts. 15-22) in your panel: verify identity, export, erase, extend the one-month deadline, complete or reject.
Package info
github.com/jeffersongoncalves/filament-gdpr-dsar
pkg:composer/jeffersongoncalves/filament-gdpr-dsar
Requires
- php: ^8.2
- filament/filament: ^5.3
- jeffersongoncalves/filament-plugin-core: ^3.0
- jeffersongoncalves/laravel-gdpr-dsar: ^1.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- jeffersongoncalves/pest-plugin-database-migrations: ^1.0
- larastan/larastan: ^3.0
- laravel/pint: ^1.0
- orchestra/testbench: ^10.0|^11.0
- pestphp/pest: ^3.0|^4.0
- pestphp/pest-plugin-laravel: ^3.0|^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Filament GDPR DSAR
A Filament panel for GDPR data subject requests (Arts. 15 to 22). It is the UI of laravel-gdpr-dsar: every action calls that package, so the rules it enforces (verify first, automatic types only, one-month deadline) stay in one place.
Features
- Register a request for access, rectification, erasure, restriction, portability, objection or automated decisions. The deadline is set from
gdpr-dsar.deadline(one month). - Extend a complex request once by two further months, with the reason you give the data subject (Art. 12(3)).
- Verify identity: link the request to the data subject's record. Nothing is exported or erased before this.
- Fulfil access and portability (JSON export, downloadable from the request) and erasure (anonymizes the subject's records).
- Complete the rights answered by hand (confirmation, correction, sharing information...) with the response you gave, or reject with a reason.
- Overdue requests in red, an "Overdue" filter, and a navigation badge with open requests (red when one is overdue).
- 19 languages.
Compatibility
| Plugin Version | Filament |
|---|---|
| 1.x | 3.x |
| 2.x | 4.x |
| 3.x | 5.x |
Installation
You can install the package via composer:
composer require jeffersongoncalves/filament-gdpr-dsar:"^3.0" php artisan vendor:publish --tag="gdpr-dsar-migrations" php artisan migrate
Set up laravel-gdpr first: the models listed in gdpr.models are the ones a request can be linked to, exported and erased.
Usage
use JeffersonGoncalves\Filament\GdprDsar\GdprDsarPlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ GdprDsarPlugin::make() ->navigationGroup('GDPR') // default: no group ->navigationSort(10) ->navigationIcon('heroicon-o-shield-check') ->slug('data-subject-requests') ->subjectModels([User::class]), // default: gdpr.models ]); }
All fluent methods are optional. The export disk and the deadline are configured in laravel-gdpr-dsar's gdpr-dsar config. Keep the export disk private: the file holds the data subject's personal data.
The resource has no authorization of its own: register it only on panels whose users handle privacy requests, or add a policy for
JeffersonGoncalves\GdprDsar\Models\DataSubjectRequest.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
