Skip to content

Commit

Permalink
Merge pull request #7 from dotkernel/issue-6
Browse files Browse the repository at this point in the history
anonymization page
  • Loading branch information
alexmerlin authored Sep 13, 2024
2 parents 0db6a82 + cb30a17 commit d440072
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions docs/book/v5/core-features/account-anonymization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Account anonymization

According to the GDPR, companies that record personal data from EU citizens must delete said data if its owner requests its deletion.
An alternative is to anonymize the data, according to [this article](https://commission.europa.eu/law/law-topic/data-protection/reform/rules-business-and-organisations/dealing-citizens/do-we-always-have-delete-personal-data-if-person-asks_en).

## What is 'personal data'?

According to [this article](https://commission.europa.eu/law/law-topic/data-protection/reform/what-personal-data_en), personal data is:

- A name and surname.
- A home address.
- An email address such as [email protected].
- An identification card number.
- Location data (for example the location data function on a mobile phone).
- An Internet Protocol (IP) address.
- A cookie ID.
- The advertising identifier of your phone.
- A phone number.
- Data held by a hospital or doctor, which could be a symbol that uniquely identifies a person.

Out of the box, Dotkernel Frontend saves the user's name (firstname and lastname) and email (identity).
This personal data is used for emails related to password reset and account activation.

## Anonymization

The anonymization process makes these replacements:

- The firstname and lastname are replaced with `anonymous` concatenated with the current UNIX timestamp, e.g. `anonymous1725980747`.
- The email is replaced with `anonymous` concatenated with the current UNIX timestamp and the value in `userAnonymizeAppend`, e.g. `[email protected]`.
- The avatar image and its database record are deleted.

The `userAnonymizeAppend` key can be set in `config/autoload/local.php` or left empty.

Note: setting `userAnonymizeAppend` to an email domain would work as a catch-all email, if your email service provider has this option enabled.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ nav:
- "Dependency Injection": v5/core-features/dependency-injection.md
- "Languages": v5/core-features/languages.md
- "CSRF": v5/core-features/csrf.md
- "Account anonymization": v5/core-features/account-anonymization.md
site_name: frontend
site_description: "DotKernel Frontend"
repo_url: "https://github.com/dotkernel/frontend"
Expand Down

0 comments on commit d440072

Please sign in to comment.