Top Banner
How to avoid the theft of personal data, and content in development process by Nikitin Yevgeniy
13

How to avoid the theft of personal data, and content in development process in Drupal

Apr 14, 2017

Download

Internet

Evgeny Nikitin
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: How to avoid the theft of personal data, and content in development process in Drupal

How to avoid the

theft of personal

data, and content in

development process

by Nikitin Yevgeniy

Page 2: How to avoid the theft of personal data, and content in development process in Drupal

Data - is value!

✘ personal user’s information (email, phone number, address...).✘ information about purchases.✘ paid content.✘ correspondence of users (can contain personal data).✘ transactions of payment systems.

Page 3: How to avoid the theft of personal data, and content in development process in Drupal

Agency

Subcontractor

Subcontractor

People involved in a project

PMTL

DEV DEV DEV QA

DEV DEV QA

DEV DEV FREELANCER

ADMIN

FREELANCER

Page 4: How to avoid the theft of personal data, and content in development process in Drupal

Ways not to use live content in a development

Using “Dummy content”+ It can be used in QA process.+ Data is used during development

and support.+ Using “migrate”, “feeds”,

“features” modules.- Not all bugs can be reproduced.- Difficult to manage in long

support.

Clean db from critical data- complicated structure of entity

storage.- db might be too big.- Difficult to manage in long

support.+ Copy of live db is used.+ Get rid of issues related with

“feeds”, “migrate”, “features”.

Page 5: How to avoid the theft of personal data, and content in development process in Drupal

Modules and tables that can

contain confidential data

✘ user (users)✘ comment (comment)✘ dblog (watchdog)✘ webform (webform_submitted_data)✘ maillog (maillog)✘ address field✘ commerce✘ payment✘ cache_* tables✘ ....

Page 6: How to avoid the theft of personal data, and content in development process in Drupal

Tools for cleaning database

✘ custom SQL script - difficult to create and support, but it works.

✘ drush sql-sanitize - by default clean mail and password in user table. Expanding by hook_drush_sql_sync_sanitize().

✘ DB Sanitizer

Page 7: How to avoid the theft of personal data, and content in development process in Drupal

DB Sanitizer

1. Supports configurations.2. Management of tables and entities separately.3. Checks whether new tables or entities was added.4. Handles entity revisions.5. Drush support for creating sql script file.

Helps to create sql script for cleaning database

Page 8: How to avoid the theft of personal data, and content in development process in Drupal
Page 9: How to avoid the theft of personal data, and content in development process in Drupal
Page 10: How to avoid the theft of personal data, and content in development process in Drupal
Page 11: How to avoid the theft of personal data, and content in development process in Drupal

4 commands => 10 sql queries

Page 12: How to avoid the theft of personal data, and content in development process in Drupal

Links

https://docs.acquia.com/articles/scrubbing-drupal-database-environment - Scrubbing a Drupal database environment

https://www.drupal.org/sandbox/sinn/2552477 - DB Sanitizer

Page 13: How to avoid the theft of personal data, and content in development process in Drupal

contact me!

Nikitin Yevgeniywww.linkedin.com/in/nikitinevgeny

skype: yenyasinn