Privacy and legal basics
Note for AI agents: This page is baseline guidance, not an exact prescription. Read it, tell your owner what applies to their project, and get their approval before you change anything. Your project's own rules take precedence. If something important for this project is missing here, suggest it to your owner.
For agents
- General information only, not legal advice. Raise legal risks to the owner without being asked: personal data, liability, consumer rights, store policies.
- Every personal data field needs a purpose, a retention period and a legal basis; every kind of data needs a place in one deletion schedule.
- What the app tells users about deletion and backups must be true, including third parties such as AI providers.
- Read the official GDPR and KVKK texts: this site could not open those official pages during review, so it links the European Data Protection Board instead.
Which class?
This topic has items from class S. The blocks below are cumulative: read up to your own class.
- S: 2 items
- M: 8 items
- L: 4 items
- XL: 1 items
Audit checklist
Every project
- A privacy statement matches what the site really does
- What: If the site has a form, analytics or cookies, a privacy statement says what is collected, why, and for how long; if nothing is collected the site does not claim otherwise.
- How to check: List forms, cookies and external requests in the browser’s network panel; compare with the privacy text.
- Evidence: Network panel list; privacy page.
- Forms have spam and bot protection and a retention rule
- What: Contact or sign-up forms are protected against spam and bots, and the page states how long submitted data is kept (or no data is stored).
- How to check: Find the form handler; look for a challenge, honeypot or rate limit; find the retention statement.
- Evidence: Handler code or service setting; retention text.
+ If it has users, personal data or API keys (M)
- Personal data fields are documented
- What: For every personal data field the purpose, retention time and legal basis (KVKK, GDPR) are written down.
- How to check: List the database columns and form fields with personal data; find the matching entries in the data note.
- Evidence: Data note listing each field with purpose, period and basis.
- Every personal data use has a purpose and a legal basis
- What: For each use of personal data the purpose, legal basis and retention are recorded; the proactive warning to the owner happens when a new field is added.
- How to check: Compare the data list with the register.
- Evidence: Register.
- Only needed data is collected
- What: Each field has a reason; optional fields are optional; data that is not needed is not collected or is dropped early.
- How to check: Walk through forms and the database schema.
- Evidence: Field-by-field reasons.
- Third parties that receive data are listed
- What: Every service that receives personal data (hosting, e-mail, analytics, AI provider) is listed with what it receives and how long it keeps it; agreements are in place where law requires them.
- How to check: List outbound integrations.
- Evidence: Processor list.
- Users can use their data rights
- What: There is a working way for users to ask for access, correction and deletion, and the answer time is known.
- How to check: Walk through the request process.
- Evidence: Process description; test request.
- One deletion schedule covers all data
- What: Every kind of data has a deletion period, collected in one deletion schedule document, and the code implements it.
- How to check: Find the document; for each row find the job or code that deletes the data.
- Evidence: Schedule document and the matching job names.
- The deletion and backup promise to users is true
- What: The privacy text and screens state correct deletion and backup periods (for example “gone from systems within 7 days, from backups within 37 days”) including third-party providers.
- How to check: Compare the privacy text with the real jobs and backup retention.
- Evidence: Privacy text lines next to the job and retention settings.
- Data sent to AI providers is minimized and disclosed
- What: Personal data sent to an AI provider is minimized and masked, and the provider’s retention terms are documented; private messages between people are not sent.
- How to check: Read the prompt building code and the provider terms notes.
- Evidence: Masking code; terms note.
+ If it has an admin panel, file uploads, many users or a store app (L)
- Deletion paths respect legal holds
- What: If a legal hold may be required, every deletion path checks it, and no two different paths delete the same data.
- How to check: List the deletion paths and look for the hold check.
- Evidence: Code lines; path list.
- Admins cannot read private user content
- What: Staff and moderators have no way to read users’ private content (messages, notes, spending); what they can see is limited and every view is logged; passwords are never visible.
- How to check: Read the admin routes and queries; search for tables with private content in admin code.
- Evidence: List of admin-visible fields; audit log of views.
- Data location is known
- What: The project knows where personal data, files and backups are stored and whether any country requires local storage.
- How to check: Read provider region settings.
- Evidence: Region list.
- A skipped cleanup is an alarm
- What: If a cleanup job cannot get its lock or is skipped, it exits with a distinct code and raises an alarm; changed text and deleted files are kept for a short fixed period (for example 7 days) when needed.
- How to check: Block the lock and run the job.
- Evidence: Exit code; alarm.
+ If it targets millions of users (XL)
- Region-aware design and Standard lines
- What: Every user has a data region and personal data, files and backups stay in it; moving a user or country between regions is possible with a verifiable, resumable tool; each code commit has a
Standard:line. - How to check: Read the user model and storage configuration; read recent commits.
- Evidence: Region field; commit examples.
- What: Every user has a data region and personal data, files and backups stay in it; moving a user or country between regions is possible with a verifiable, resumable tool; each code commit has a
Common mistakes
- A privacy text promising deletion periods the code does not implement.
- Backups and AI providers left out of the deletion promise.
- Collecting optional data ‘just in case’.
- No list of third parties that receive personal data.
- Two different code paths deleting the same data.
- Deleting data while a legal hold applies.
- Private user content visible to admins.
- Logs holding personal data forever.
Sources
- European Data Protection Board — EDPB
- User Privacy Protection Cheat Sheet — OWASP Cheat Sheet Series
- Logging Cheat Sheet — OWASP Cheat Sheet Series
- Provide information for Google Play's Data safety section — Google Play Console Help
- User Data policy — Google Play Console Help
- App Privacy Details — Apple Developer
- Privacy manifest files — Apple Developer
- AI Risk Management Framework — NIST
- Pro Build Guide v1.2: compiled team practices — Pro Build Guide