Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdprDump user preservation #397

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,7 @@ To use these commands, you need a secret key that is used to encrypt and decrypt
You should use the following naming convention for your custom keys: `SEC_{PROJECT_NAME}_{CONTEXT}` where `CONTEXT` refers to the environment you are working on, such as `silta_dev` (development context) or `silta_finland` (production context). For example, if you are working on the `drupal-project` project in the `silta_dev` environment, you should use the `SEC_DRUPAL_PROJECT_SILTA_DEV` key.

The `silta/silta.secret` file is a YAML file that contains the encrypted secrets for your project in the default `silta-dev` context. You can add more files for other contexts, such as `silta/silta-prod.secret` for the production context.

### GDPR requirements
User data in feature environments is sanitized using [Smile-SA/gdpr-dump tool](https://github.com/Smile-SA/gdpr-dump). In order to preserve certain users,
you can uncomment the gdprDump code block in silta-main.yml and specificy user IDs which need to be preserved.
6 changes: 6 additions & 0 deletions silta/silta-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ php:
drupal:
# In main environment, run cron once an hour. Adjust as needed.
schedule: '~ * * * *'

# Prevent specific users from being sanitizied on feature environments.
# gdprDump:
# tables:
# users_field_data:
# skip_conversion_if: 'in_array({{uid}}, [1, 2, 3])'