You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+33-1
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ This project template is an opinionated fork of the popular [Drupal-composer tem
8
8
9
9
- Copy this repository and push it to our organization.
10
10
- Log in to CircleCI using your Github account and add the new project.
11
-
11
+
- Create and maintain a Personal Data mapping list for automatic data sanitization in `gdpr.json` file. See GDPR sanitization section for more information.
12
12
13
13
## How it works
14
14
@@ -21,3 +21,35 @@ Have a look at the file for details, but in short this is how it works:
21
21
- Create a custom docker image for Drupal and nginx, and push those to a docker registry (typically that of your cloud provider).
22
22
- Install or update our helm chart while passing our custom images as parameters.
23
23
- The helm chart executes the usual drush deployment commands.
24
+
25
+
## GDPR sanitization
26
+
27
+
SQL data dump for developers is parsed with [GDPR Tools](https://github.com/machbarmacher/gdpr-dump) project.
28
+
You can create a `/gdpr.json` file with [Faker](https://packagist.org/packages/fzaninotto/faker) formatters that will allow replacing data as it's dumped from database using `mysqldump` / `drush sql-dump` command.
29
+
30
+
```
31
+
{
32
+
"users_field_data": {
33
+
"name": {"formatter": "name"},
34
+
"pass": {"formatter": "password"},
35
+
"mail": {"formatter": "email"},
36
+
"init": {"formatter": "clear"}
37
+
}
38
+
}
39
+
```
40
+
Available formatters:
41
+
```
42
+
**name** - generates a name
43
+
**phoneNumber** - generates a phone number
44
+
**username** - generates a random user name
45
+
**password** - generates a random password
46
+
**email** - generates a random email address
47
+
**date** - generates a date
48
+
**longText** - generates a sentence
49
+
**number** - generates a number
50
+
**randomText** - generates a sentence
51
+
**text** - generates a paragraph
52
+
**uri** - generates a URI
53
+
**clear** - generates an empty string
54
+
```
55
+
You can also add extra elements and attributes, like `_cookies`, `_description` or `_purpose` to enrich the Personal Data information. Just make sure it's marked or prefixed so that it does not mess up GDPR dump when it looks for table data replacements.
0 commit comments