Skip to content

VinayaSathyanarayana/GDPR

 
 

Repository files navigation

GDPR

This plugin is meant to assist a Controller, Data Processor, and Data Protection Officer (DPO) with efforts to meet the obligations and rights enacted under the GDPR.

Installation

  1. Upload the plugin to the /wp-content/plugins/ directory or install directly from the [http://wordpress.org/plugins/gdpr](WordPress Plugin Repository).
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Fill out all sections of the settings page.

Shortcodes & helper functions

Display one of the request forms [gdpr_request_form type="$type"] or

<?php gdpr_request_form( $type ); ?>

$type can be delete, rectify, complaint, export-data

Create a button to open the preferences modals [gdpr_preferences text="$text"] or

<?php gdpr_preferences( $text ); ?>

$text is the button label. It is also optional.

Checks whether a cookie is allowed

<?php is_allowed_cookie( $cookie ); ?>

Checks wheter a consent was given

<?php have_consent( $consent_id ); ?>

Features

  • Consent management
  • Privacy Preference management for Cookies with front-end preference UI & banner notifications
  • Privacy Policy page configurations with version control and re-consent management
  • Rights to erasure & deletion of website data with a double opt-in confirmation email
  • Re-assignment of user data on erasure requests & pseudonymization of user website data
  • Data Processor settings and publishing of contact information
  • Right to access data by admin dashboard with email look up and export
  • Right to access data by Data User with front-end requests button & double opt-in confirmation email
  • Right to portability & export of data by Admin or Data User in XML or JSON formats
  • Encrypted audit logs for the lifetime of Data User compliance activity
  • Data User Secret Token for two-factor decryption and recovery of data
  • Data breach notification logs and batch email notifications to data users
  • Telemetry Tracker for visualizing plugins and website data

Settings

General From the Settings options in the dashboard, you can select the Privacy Policy page for tracking and logging consent.

On login, the user must consent to the Privacy Policy outlined on the site. If the user does not consent, the user will not be registered or logged in.

If the site owner updates the Privacy Policy page content, the change will be logged and flagged to the admin that they must notify users on next login to seek re-consent. Additionally, the warning message can be dismissed in the event of a minor correction or mistake.

Additionally, under General Settings the Admin can set the outgoing email limitation which would set the batch notification email limit per hour in the event of a Breach Notification.

Cookie Preference Management Similar to consent management, users can opt in or out of cookies that are being used on the site. There are 3 formats of cookies that can be created which include:

  • Always Active: Cookies that are always active or are required for the site to function.
  • Toggled: Cookies that can be activated or blocked based on the user preference
  • Opt-Out Link: Cookies that require configuration from a third-party source in order to opt-out

Depending on the user preference setting, you can use the is_allowed_cookie( $cookie ) function to save and set the cookies. The cookie with the user approved cookies can be found at another cookie named gdpr_approved_cookies. There's also a helper function called is_allowed_cookie( $cookie ) that you can use to prevent setting up a cookie.

Consent Management

Consents can be registered on the settings page. They can be optional or not. By default, this plugin comes with a Privacy Policy consent that users need to agree with on registration.

For optional consents, there's a wrapper function have_consent( $consent_id ) to help you display or hide something on the site depending if the user gave consent or not.

Consents are logged to the user record for auditing or for access purposes.

Requests Table & Rights of Data User

Right to Erasure Requests

  1. The Data User is able to submit a request to be erased from the site using a shortcode.

  2. When a request is made, the Data User will receive an email confirmation to confirm the deletion request.

    1. After email confirmation, the user request is added to the requests table for review by the Administrator. The Administrator can also add a user manually with an email look up and review.
    2. If the Data User has content published on the site for any post types or comments, they will be added to this table. If they do not have any content, they will receive a confirmation of erasure request and be provided a 6 digit Token for safekeeping after erasure in case of recover data needs.
    3. The requests table allows the Administrator to reassign any content to another user or delete it.
    4. In the event of comments, the Data User’s content would be made anonymous.
  3. Admin can also manually add users to the erasure requests table with a manual email search

Right to Access Data Request & User Data Portability

  1. The Data User can place a request to download their data with the shortcode.
  2. After requesting their data, the user will receive a double opt-in confirmation email then the plugin will generate an XML or JSON file, which will be emailed to them for download with an expiration time of 48 hours.

Right to Rectify & Complaint Requests

  1. The Data User can place a request to rectify data or file a complaint with the shortcode.
  2. After making their request, the user will receive a double opt-in confirmation email and then add them to the table for admin to handle the request.

Tools

Access Data

The Access Data tool allows the Admin to look up a user email and view the data of a particular user. The Admin can download and export the data in a JSON or XML format and provide to the Data User if manually requested.

NOTE: This method should not be used without the Data User confirming their identity.

Audit Log

Everything the Data User does from registration, providing consent to the privacy policy, terms of service and other requests are logged and encrypted in a database. Data breach notifications are also logged to all data users upon confirmation by Controller.

  1. Using the Data User's email, you can look up and retrieve the user information and display it.
  2. If the Data User has been removed from the site, this encrypted log is deleted from the database and saved as an encrypted file inside the plugin folder.

If in the future, the Data User makes a complaint or there is a need to recover the data, the user can provide their email address and the 6 digit token they received from the deletion confirmation email to decrypt and retrieve the file.

Data Breach & Notifications

In case of a data breach, the Admin can generate a Data Breach Notification to users by logging the information and confirm the breach through a double opt-in confirmation email. The following information would be recorded in the audit log:

  1. Nature of the personal data breach
  2. Name and contact details of the data protection officer
  3. Likely consequences of the personal data breach
  4. Measures were taken or proposed to be taken

Once the confirmation of the breach has been confirmed via email, the website will begin a batch email notification process to all users every hour until all users receive the notification.

Telemetry Tracker

The Telemetry Tracker feature will display all data that is being sent outside of your server to another destination. It will indicate the plugin or theme responsible, file and line where the data is being sent.

WordPress Core and some plugins gather data from your install and send this data to an outside server.

WordPress Plugin Repository does not allow plugins to do that, but premium plugins are able to do this because they are not bound by the Plugin repository rules. If you did not explicitly opt-in for this feature you should make a complaint.

Important!

Activating this plugin does not guarantee that an organization is successfully meeting its responsibilities and obligations of GDPR. Individual organizations should assess their unique responsibilities and ensure extra measures are taken to meet any obligations required by law and based on a data protection impact assessment (DPIA).

Frequently Asked Questions

What is GDPR

This Regulation lays down rules relating to the protection of natural persons with regard to the processing of personal data and rules relating to the free movement of personal data.

This Regulation protects fundamental rights and freedoms of natural persons and in particular their right to the protection of personal data.

The free movement of personal data within the Union shall be neither restricted nor prohibited for reasons connected with the protection of natural persons with regard to the processing of personal data.

How do Businesses benefit from GDPR?

  • Build stronger customer relationships and trust
  • Improve the brand image of the organization and its brand reputation
  • Improve the governance and responsibility of data
  • Enhance the security and commitment to the privacy of the brand
  • Create value-added competitive advantages

Who does the GDPR affect?

The GDPR applies to all EU organisations – whether commercial business, charity or public authority – that collect, store or process EU residents’ personal data, even if they’re not EU citizens.

The GDPR applies to all organisations located within the EU, whether you are a commercial business, charity or public authority, institution and collect, store or process EU citizen data. It also applies to any organisation located outside of the EU if they also collect store or process EU citizen data.

What is considered personal data?

The GDPR defines personal data as any information or type of data that can directly or indirectly identify a natural person’s identity. This can include information such as Name, Address, Email, Photos, System Data, IP addresses, Location data, Phone numbers, and Cookies.

For other special categories of personal data, there are more strict regulations for categories such as Race, Religion, Political Views, Sexual Orientation, Health Information, Biometric and Genetic data.

What are the penalties for non-compliance?

Organizations can be fined up to 4% of annual global turnover for breaching GDPR or €20 Million. This is the maximum fine that can be imposed for the most serious infringements.

There is a tiered approach to the fines whereby a company can be fined 2% for not having their records in order (Article 28), not notifying the supervising authority and Data User about a security breach or for investigating and assessing the breach.

Am I compliant just by activating this plugin?

No, this plugin is meant to assist a Controller, Data Processor, and Data Protection Officer (DPO) with efforts to meet the obligations and rights enacted under the GDPR.

Activating this plugin does not guarantee that an organisation is successfully meeting its responsibilities and obligations of GDPR. Organisations should assess their unique responsibilities and ensure extra measures are taken to meet any obligations required by law and based on a data protection impact assessment (DPIA).

Changelog

1.1.3
  • Changed Complaint and Rectification form submit button wording.
  • Added a loading indicator on the reconsent window. Slow servers will not give the impression that this featured is not working anymore.
  • Fixed user notification not showing after confirming deletion email.
  • Fixed consent "required" toggle not displaying the correct state.
  • Added a second confirmation after disagreeing to reconsent.
1.1.2
  • Fixed reconsent modal not closing after agreeing to the new policy.
1.1.1
  • Forgot to unload jQuery-UI
1.1.0
  • Merge the two preferences windows into one.
  • [gdpr_preferences] shortcode doesn't need the 'type' attribute to work anymore.
  • Removed jQuery UI from the front end and replaced with our own notification window to keep a consistent color scheme, avoid unnecessary requests and avoid style issues from theme to theme.
  • Allow logged out users to keep track of consents too. ( Those are not logged to the audit log for obvious reasons. )
  • Added a refresh after preferences change so users can display forms or count the user visit and so on depending on the new user consent.
1.0.6
  • Allowing users to add target on their privacy policy links on the consent description.
1.0.5
  • Allow users to use links on their consent descriptions so they can link to their privacy policy or other pages.
1.0.4
  • Added a link to the privacy policy page on the cookie bar and on the cookie preferences window.
  • Added a new option for a text just before the privacy policy link on the cookie bar.
  • Checking if the user actually registered cookies before showing the cookie bar.
1.0.3
  • Added a shortcode for re-opening the cookie or consent management windows.
1.0.2
  • Added new filters for access data so extensions can add more information.
  • Rebuilt the translation pot file and added translation comments.
1.0.1
  • Fix issue on cookie preferences not saving and displaying php errors.
1.0.0
  • Added cookie management screen
  • Added consent management screen
  • Added Telemetry tracker
  • Complete code rewrite
  • Added more types of request
  • Added Help documentation
  • Added new shortcodes
  • Changed to Settings API
0.1.1
  • Set the admin email as the default processor information on activation
  • Settings updated notice is now dismissible
0.1.0
  • Beta version released to the public

Upgrade Notice

1.0.0

This is a major rewrite of the plugin. Things will look different and work differently. We tried to keep most things the same so the impact would be minimal. This plugin is no longer in BETA. Update with care

0.1.0

This plugin is in beta. Use it at your own discretion.

Packages

No packages published

Languages

  • PHP 81.2%
  • CSS 8.9%
  • JavaScript 7.7%
  • Shell 2.2%