Docs / Privacy & Compliance / GDPR, ISO 27001, SOC 2

GDPR, ISO 27001 and SOC 2

The bundle is not certified, but it gives evidence for your audit: who did what and when, who read the entries, and which entry changed.

Setup for an audit

Statuses

StatusMeaning
DefaultThe bundle does it without configuration.
Opt-inThe bundle gives it. You enable it.
PartialEven when you enable everything, a part is missing. The comment tells what.
Not coveredThe bundle does not cover it.
Your processOutside the bundle: a process or a contract of your organisation. The comment tells how the bundle helps.

GDPR

Text: Regulation (EU) 2016/679 (General Data Protection Regulation).

RuleWhat it requiresStatusComment
Art. 4(5) PseudonymisationDefines pseudonymisation: processing the data so that you cannot link it to a person without extra information that you keep apart and protect.Opt-inUse keyed_hash on the entity fields, and a listener for the user and IP values. See Pseudonymisation.
Art. 5(1)(c) Data minimisationProcess only the personal data that the purpose needs.Opt-inOnly the #[Auditable] classes are recorded. Remove or hash each field that the purpose does not need with #[AuditIgnore] and #[AuditTransform]: see Transformations.
Art. 5(1)(e) Storage limitationKeep personal data no longer than the purpose needs.Opt-inThe bundle has no default retention period. Schedule audit-log:purge, and rotate the filesystem and stdout logs yourself. See Retention.
Art. 5(2) AccountabilityBe able to show that you obey the GDPR.Opt-inThe entries show who did what and when. Even with no other source enabled, the bundle records the reads, checks and purges of the entries. See Sources.
Art. 6 Lawfulness of processingHave a legal basis for each processing.Your processChoose the legal basis of the audit trail, often the legitimate interest (art. 6(1)(f)). Then the right to object (art. 21) applies: plan how you answer it.
Art. 13 and 14 Information to be providedTell the persons who you are, which data you process, why, for how long, and which rights they have.Your processTell the persons that the application records their actions and data, in your privacy notice or when they log in (CNIL para. 13).
Art. 15 Right of access by the data subjectGive a person a copy of their data on request.PartialFind the entries of a person in PHP with the context filter on user_identifier, ip or subject_id. It does not search filesystem, stdout or the changeset of another entity, and the commands have no context filter or export: see Access requests.
Art. 17 Right to erasure ('right to be forgotten')Erase the data of a person without undue delay when art. 17(1) applies, unless art. 17(3) applies.PartialFind the entries of a person with the context filter, then delete them in the storage. There is no erase command, and the filter has the same limits as art. 15: see Erasure.
Art. 25 Data protection by design and by defaultBuild data protection into the processing. By default, process only the data that each purpose needs.PartialBy default, the bundle records only what you mark, masks the token, password and email route parameters, truncates the IP and uses file mode 0600. You set the retention and the field masking, and you protect the Messenger transport: see Async writes.
Art. 28 ProcessorHave a contract with each processor that handles the data for you.Your processThis applies to a hosted log platform, or a hosted Elasticsearch or MongoDB. The contract must ask for logging (CNIL para. 14), and transfers outside the EU follow chapter V.
Art. 30 Records of processing activitiesList each processing in your records.Your processAdd the audit trail to the record of each audited processing, or give it its own record (CNIL para. 15).
Art. 32 Security of processingProtect the data with measures that fit the risk.PartialIntegrity detects a changed entry, but not a deleted entry, and it does not cover the context_* columns. The EasyAdmin pages need the ROLE_AUDIT_LOG_VIEWER role: see EasyAdmin viewer.
Art. 33 Notification of a personal data breach to the supervisory authorityNotify a breach to the authority within 72 hours, unless it is unlikely to cause a risk to the persons. Document each breach.Your processThe Doctrine sources, http_kernel and security record who read or changed the data. Your incident process decides on the notification.

CNIL recommendation on logging

Text: CNIL deliberation 2021-122 of 14 October 2021, in French. The CNIL PDF numbers its paragraphs. The table gives the paragraph number and a short name for each rule.

RuleWhat it requiresStatusComment
Para. 6 Content of a recordRecord the author, the time, the type and the data reference of each create, read, change and delete operation. Avoid copying the data.PartialEnable the user context provider to record the author, but a console command has no author. Doctrine reads are not recorded: put #[Auditable] on the controllers that show the data. See Sources.
Para. 7 Separate storageKeep the logs apart from the main system. The application writes only and cannot overwrite an entry.Opt-inGive each output its own connection, client or document manager, with an account that cannot change or delete the entries. See Database account.
Para. 8 RetentionKeep the logs between six months and one year. A longer period needs a documented reason (para. 16 to 21).Opt-inThe bundle has no default retention period. Schedule audit-log:purge. See Retention.
Para. 9 Analysis and alertsAnalyse the logs in real time or in the short term. Define a process to raise and handle the alerts.Your processSend the entries to your log platform with the stdout, filesystem or elasticsearch output. Set the alerts there.
Para. 11 Reuse of the logsLimit the reuse of the logs for another purpose, for example with a usage charter or an alert when an authorised account changes them.PartialThe commands and the EasyAdmin viewer record each read, check and purge by default. ReaderInterface and a direct access to the storage are not recorded, and the bundle sends no alert. See Access to the entries.
Para. 12 Timestamp and signatureTimestamp and sign each record when you create it. Keep the logs confidential, available and intact.PartialIntegrity adds an HMAC-SHA256 hash to each entry, and audit-log:verify detects a changed entry. The hash is not a signature, the time comes from the server clock, and a deleted entry is not detected (planned): see Limits.
Para. 18 Sensitive dataDo not collect sensitive data in the logs (GDPR art. 9) when the main processing does not hold them.Opt-inPut #[AuditIgnore] on the sensitive fields: the bundle then does not store them. Only the #[Auditable] classes are recorded: see Transformations.
Para. 22 Short retention of the main dataIf the main data is kept less than six months, do not keep it in the logs. Keep only pseudonymised identifiers, or automatically purge the data whose retention has ended.Opt-inUse #[AuditIgnore] or keyed_hash on these fields, and pseudonymise the user and IP values with a listener. See Pseudonymisation.

ISO/IEC 27001:2022

Text: ISO/IEC 27001:2022. The standard is not free, and its controls are not public. The table gives the title of each Annex A control and a short summary.

ControlWhat it requiresStatusComment
A.5.18 Access rightsGive, review, change and remove the access rights as your access control policy says.PartialEnable doctrine_orm and add #[Auditable] to the entity that holds the roles. A role given through a to-many relation is not recorded: see Sources.
A.5.25 Assessment and decision on information security eventsAssess the security events and decide if they are security incidents.Opt-inFind the entries of a user or an object with the context filter, in PHP.
A.5.26 Response to information security incidentsRespond to the security incidents with documented procedures.Your processAt the start of an incident, stop the scheduled purge and run audit-log:verify.
A.5.28 Collection of evidenceIdentify, collect and keep the evidence of security events.PartialEach entry has a UUID, and integrity shows that an entry did not change. Integrity does not detect a deleted entry, and no trusted third party timestamps the entries: see Limits.
A.5.33 Protection of recordsProtect the records from loss, destruction, falsification, unauthorised access and unauthorised release.PartialIntegrity detects a changed entry, but not a deleted entry (planned). With dbal and elasticsearch, the hash does not cover the context_* columns and fields. See Limits.
A.5.34 Privacy and protection of PIIObey the laws and contracts that apply to PII.PartialUse the personal data tools. Some GDPR rules are partial or your process: see the GDPR table.
A.8.2 Privileged access rightsRestrict and manage the privileged access rights.Opt-inThe security source records each user switch, and with the user context provider each entry made during the switch has impersonator_identifier. Each purge writes a PURGE entry, but a console purge has no author: see security.
A.8.3 Information access restrictionRestrict the access to information as your access control policy says.Your processThe EasyAdmin pages need the ROLE_AUDIT_LOG_VIEWER role. Give it as your policy says. See EasyAdmin viewer.
A.8.5 Secure authenticationUse secure authentication technologies and procedures.PartialThe security source records each login, login failure and logout. A LOGIN_FAILURE entry has no identifier, so you cannot count the failures of one account. See security.
A.8.10 Information deletionDelete the information when you no longer need it.Opt-inSchedule audit-log:purge for the dbal, elasticsearch and mongodb outputs, and rotate the filesystem and stdout logs. See Retention.
A.8.11 Data maskingMask the data as your access control policy and business needs say.Opt-inHide, hash or remove each field with #[AuditTransform] and #[AuditIgnore]. By default, http_kernel masks the token, password and email route parameters, and the request provider truncates the IP: see Transformations.
A.8.13 Information backupKeep backup copies of the information and test them.Your processBack up the audit storage. Apply the same retention period to the backups.
A.8.15 LoggingProduce, store, protect and analyse logs of activities, exceptions, faults and other events.Opt-inSeven sources record the Doctrine changes, controller access, commands, logins, Messenger messages and workflow transitions. A lost entry is logged at the error level, and a bulk DQL or SQL query is not recorded: see Sources.
A.8.16 Monitoring activitiesMonitor the networks, systems and applications for unusual behaviour.Your processRun audit-log:verify on a schedule and alert on a non-zero exit code. Alert on the error logs of the bundle.
A.8.17 Clock synchronizationSynchronise the clocks with approved time sources.Your processThe dbal and mongodb outputs store the time in UTC. Synchronise the server clocks, for example with NTP.
A.8.24 Use of cryptographyDefine and apply rules for cryptography and key management.Opt-inIntegrity uses HMAC-SHA256 by default, and keyed_hash always does. Do not set integrity.algorithm to md5 or sha1, and note that a key rotation is not supported: see Limits.

SOC 2

Text: 2017 Trust Services Criteria (With Revised Points of Focus - 2022), AICPA. The download can ask for a free account. The criteria have no short titles, so the table gives a summary of each.

CriterionWhat it requiresStatusComment
CC4.1Evaluate the controls on a regular basis to check that they work.Your processRun audit-log:verify on a schedule. Each run writes a VERIFY entry.
CC6.1Protect the information assets with logical access security.Your processThe EasyAdmin pages need the ROLE_AUDIT_LOG_VIEWER role. Protect your own pages that show the entries with security.access_control. The commands and the EasyAdmin pages record each read: see Access to the entries.
CC6.2Register and authorise each new user before you give access. Remove the credentials when the access is no longer authorised.Opt-inEnable doctrine_orm and add #[Auditable] to your user entity, to record each creation, change and deletion of a user. Put #[AuditIgnore] on the password field.
CC6.3Give, change and remove access based on roles, with least privilege.PartialEnable doctrine_orm and add #[Auditable] to the entity that holds the roles, but a role given through a to-many relation is not recorded. With the user context provider, each entry made during a user switch has impersonator_identifier. See Sources.
CC6.6Protect the system against threats from outside its boundaries.PartialThe security source records each login failure, but not the identifier that the user typed. The IP needs the request context provider, which truncates it by default. See security.
CC7.2Monitor the system components for unusual behaviour and analyse it.Your processSend the entries to your log platform and set alerts there. Alert on the error logs of the bundle.
CC7.3Evaluate the security events to find the security incidents.Opt-inFind the entries of a user or an object with the context filter, in PHP. To filter on transaction_id, add it to indexed_context.
CC7.4Respond to security incidents with a defined incident response program.Your processAt the start of an incident, stop the scheduled purge and run audit-log:verify.
CC8.1Authorise, test, approve and apply the changes to infrastructure, data, software and procedures.PartialThe Doctrine sources record each change that flush() writes, with the old and the new values. A bulk DQL query or a native SQL query is not recorded: see Sources.
A1.2Manage the environmental protections, data backups and recovery infrastructure.Your processBack up the audit storage. With Messenger, configure a failure_transport: see Async writes.
C1.1Identify and keep the confidential information.Opt-inHide, hash or remove the confidential fields with transformations before they are stored. Only the #[Auditable] classes are recorded.
C1.2Dispose of the confidential information.Opt-inSchedule audit-log:purge. Each purge writes a PURGE entry by default.
PI1.2Control the completeness and accuracy of the system inputs.PartialSame limit as CC8.1. By default, the bundle only logs a lost entry: alert on the error logs.
PI1.4Deliver the output completely, accurately and on time.PartialEach output gets each entry, even if another output fails, and by default an audit failure never breaks your application: it is logged at the error level. With Messenger, configure a failure_transport: see Async writes.
PI1.5Store the inputs, items in processing and outputs completely and accurately.PartialSame limits as ISO A.5.33. See Limits.
P4.2Keep personal information only as long as your objectives need.Opt-inThe bundle has no default retention period. Schedule audit-log:purge: see Retention.
P4.3Dispose of personal information securely.Partialaudit-log:purge deletes by age only. To delete the entries of one person, see Erasure.
P5.1Give the data subjects access to their stored personal information.PartialSame limits as GDPR art. 15. See Access requests.

This table does not make your application compliant or certified. Compliance and certification belong to your organisation, its processes and its audit.