Access and erasure
Find the entries of one person to answer a GDPR request for access or erasure.
Access requests
To answer a request for access (GDPR art. 15), find the entries of the person with the context filter:
new AuditEntryCriteria(context: ['user_identifier' => 'alice@example.com']);Filter on the stored value: the truncated IP with anonymize_ip, the digest with the pseudonymisation listener.
The filter does not find:
- the entries of the
filesystemandstdoutoutputs: search them in your log platform; - with
dbalandelasticsearch, the entries written before the key was inindexed_context; - a person in the changeset of another entity;
target_userandimpersonator_identifier, unless you add them toindexed_context.
Erasure
To erase the personal data of a person (GDPR art. 17), delete their entries. The bundle has no erase command: find the entries with the context filter, then delete them in the storage of the output. Do not edit an entry: a changed entry fails audit-log:verify.
GDPR art. 17(3) can let you keep some entries, for example for a legal claim. Decide case by case.
Retention - to delete the entries by age, see Retention.