Files
sor/Shared/legal/gdpr.md
T

149 lines
6.5 KiB
Markdown

# GDPR Compliance Notes
**AeternalisGames LLC**
**Last Updated: [DATE]**
> **DRAFT — Internal compliance checklist and design notes. Not a published legal document.**
> Must be reviewed by a qualified attorney before EU/EEA users are permitted to access the Services.
---
## Overview
The General Data Protection Regulation (GDPR) applies to any processing of personal data of individuals in the EU/EEA, regardless of where the data controller (AeternalisGames LLC) is based. This document tracks GDPR compliance requirements and implementation notes.
---
## 1. Lawful Basis for Processing
For each category of data, we must establish a lawful basis:
| Data Category | Lawful Basis |
|---|---|
| Account data | Contract (necessary to provide the service) |
| Gameplay data | Contract / Legitimate Interest |
| Chat logs | Legitimate Interest (moderation/safety) |
| Payment data | Contract / Legal Obligation |
| Marketing emails | Consent (explicit opt-in required) |
| Analytics | Legitimate Interest (with opt-out) |
**Action required**: Finalize lawful basis mapping with legal counsel before launch.
---
## 2. Right to Erasure (Right to Be Forgotten)
Users may request deletion of their personal data. Implementation requirements:
- **Account data**: Must be fully deleted from all production databases within 30 days of a verified request.
- **Gameplay statistics**: Delete or anonymize (statistics may be retained in anonymized, non-identifiable form).
- **Chat logs**: Must propagate deletion to **both hot storage and cold archive** (remote MySQL). A deletion pipeline must be designed and tested before launch.
- **Transaction records**: May be retained for up to 7 years for financial/legal compliance. The user's PII within transaction records should be anonymized where possible (replace name/email with a pseudonymous ID).
- **Stripe data**: Deletion requests must also be forwarded to Stripe; document the Stripe data deletion process.
**Design requirement**: The deletion pipeline must handle cold archive propagation. This must be architected before launch — do not launch with cold archive data that cannot be systematically deleted on request.
---
## 3. Data Portability
Users may request an export of their personal data in a machine-readable format (JSON or CSV). The export must include:
- Account information (username, email, registration date)
- Gameplay history and statistics
- Virtual currency transaction history (in-game)
- Chat history (within hot storage retention window)
**Action required**: Build a data export endpoint. This endpoint must be accessible via account settings or by contacting support. Authenticated requests only.
---
## 4. Consent
- **Data collection consent**: Must be obtained at registration. The registration flow must include a clear reference to the Privacy Policy with an explicit acknowledgment.
- **Marketing / email consent**: Must be a separate, explicit opt-in checkbox at registration. Pre-checked boxes are not valid consent under GDPR.
- **Cookie consent**: EU visitors must receive a cookie consent banner. See Cookie Policy.
- **Consent records**: Timestamp and version of consent must be stored per user.
---
## 5. Data Retention Limits
GDPR requires that data is not retained longer than necessary. Documented retention periods per category:
| Data Category | Retention Period | Basis |
|---|---|---|
| Account data | Until deletion + 30-day grace period | Contract |
| Gameplay stats | Until account deletion | Contract |
| Chat logs (hot) | 30 days | Legitimate Interest |
| Chat logs (cold) | [TBD — define before launch] | Legitimate Interest |
| Transaction records | 7 years | Legal Obligation |
| IP / server logs | 90 days | Legitimate Interest |
| Support tickets | 2 years from resolution | Legitimate Interest |
**Action required**: Document and enforce retention periods with automated cleanup jobs.
---
## 6. Data Processing Agreements (DPA)
A DPA must be in place with any third-party processor that handles EU user data:
- **Stripe, Inc.**: Stripe's DPA is available at stripe.com/legal/dpa. We must execute or accept it before processing EU user payments.
- **Hosting / Infrastructure provider(s)**: [TBD — identify provider and execute DPA]
- **Any analytics service**: [TBD — if applicable]
**Action required**: Execute DPAs with all processors before accepting EU/EEA users.
---
## 7. Chat Archive: Cold Storage Deletion Pipeline
The chat archive design creates a specific GDPR challenge: data in cold storage (remote MySQL) must be reachable by deletion requests.
**Design requirements before launch**:
1. Cold archive must be queryable by user ID (not just time range).
2. Deletion pipeline must issue delete or anonymize commands to cold storage, not just hot storage.
3. Deletion must be logged in the audit log (with anonymized user reference — do not block deletion by logging a deleted user's ID).
4. The deletion pipeline must be tested end-to-end before any EU users are admitted.
---
## 8. Data Protection Contact
Under GDPR, we must designate a contact point for data protection inquiries. A formal Data Protection Officer (DPO) may not be required for a company of our size, but a designated contact is required.
- **Designated contact**: **[NAME or ROLE — TBD]**
- **Contact email**: **[PRIVACY CONTACT EMAIL]**
- This contact information must appear in the Privacy Policy.
---
## 9. Admin Service and Audit Logs
GDPR deletion requests must not be blocked by audit log entries referencing the deleted user.
**Design rule**: When a user is deleted, audit log entries referencing that user must have the user reference anonymized (replace with a pseudonymous token or "deleted_user"), not deleted. This preserves audit integrity while complying with deletion requests.
This requirement must be incorporated into the Admin service audit log design.
---
## 10. Checklist
- [ ] Finalize lawful basis mapping
- [ ] Implement data export (portability) endpoint
- [ ] Design and implement cold-archive deletion pipeline
- [ ] Execute Stripe DPA
- [ ] Execute hosting provider DPA(s)
- [ ] Implement consent flow at registration (data collection + marketing, separately)
- [ ] Implement cookie consent banner (see Cookie Policy)
- [ ] Designate Data Protection contact and publish in Privacy Policy
- [ ] Implement automated data retention cleanup jobs
- [ ] Audit log anonymization on user deletion
- [ ] Legal review by qualified attorney
---
*This document is an internal compliance planning document and must be reviewed by a qualified attorney before EU/EEA users access the Services.*