Data Processing Agreement
Last updated October 26, 2026
This Data Processing Agreement ("DPA") forms part of the contract between Kwan-Code and its Customer for the Kwan service. It sets out how Kwan processes personal data on the Customer's behalf, under Moroccan law 09-08 and, where it applies, the EU General Data Protection Regulation (GDPR).
1. Parties and roles
- The Customer, the company identified in the order form, acting as controller ("responsable du traitement").
- Kwan-Code ("Kwan"), acting as processor ("sous-traitant").
Terms not defined here have the meaning given in law 09-08 or the GDPR, and in the Terms of Service. If this DPA and the Terms of Service conflict on personal data, this DPA prevails.
2. Subject matter and duration
Kwan processes personal data only to provide the Kwan service (Kwan Admin, Kwan Code and the Kwan Server) to the Customer, as described in the Terms of Service and the order form. This DPA applies for as long as Kwan processes personal data for the Customer, including the export and deletion period after the contract ends.
3. Details of the processing
Nature and purpose: hosting, storing, organising, displaying and deleting data so that the Customer can run its software projects, review work and AI usage, and keep an audit trail.
Categories of data subjects: the Customer's employees, contractors and clients who use Kwan; people named in project material; people who appear as commit authors.
Categories of personal data:
- account data: name, username, email, bcrypt password hash, role, and optional Google/GitHub sign-in identity (subject identifier, email, avatar URL);
- project data: project information, briefs and attached files, tasks, questions and answers, documents written with AI, merge request metadata, releases and the technical sheet;
- commit metadata: sha, author name and email, date, message, line counts and the agent used;
- AI conversation transcripts, with secrets masked, and token usage counts;
- the audit log: actions, their author, time and IP address;
- secrets: the project's GitHub token and environment variables, encrypted.
Special categories of data are not needed for the service. The Customer will not put them into Kwan unless it has a lawful basis and has told Kwan in writing.
Source code is not stored by Kwan. It remains in the Customer's GitHub repository and is read through the GitHub API only when a User views it, without a copy being kept.
4. Customer instructions
Kwan processes personal data only on the Customer's documented instructions. The contract, this DPA and the Customer's use and configuration of the service are those instructions. Kwan will inform the Customer if it believes an instruction breaches data protection law, and may then suspend that instruction.
If the law requires Kwan to process data otherwise, Kwan will inform the Customer beforehand, unless the law forbids it.
The Customer is responsible for the lawfulness of the processing it instructs, including its own declarations to the CNDP and the information given to data subjects.
5. Kwan's obligations
Kwan will:
- process personal data only for the purposes above, and never sell it, use it for advertising or use it to train AI models;
- ensure that the people it authorises to process the data are bound by confidentiality and only access it when needed to operate, support or secure the service;
- implement the security measures described in this DPA;
- keep a record of the processing it carries out for the Customer;
- make available to the Customer the information needed to demonstrate compliance with this DPA.
6. Sub-processors
The Customer authorises Kwan to use the following sub-processor:
- Our hosting provider: hosting of the Kwan Server, its database and storage.
Kwan will inform the Customer of any intended addition or replacement of a sub-processor at least 30 days in advance. The Customer may object on reasonable data protection grounds; if the parties cannot agree, the Customer may terminate the affected service. Kwan imposes on each sub-processor data protection obligations at least as protective as this DPA and remains responsible for it.
The following services are chosen and controlled by the Customer and are not Kwan's sub-processors. They process data under the Customer's own agreements with them:
- GitHub, which hosts the Customer's source code; Kwan accesses it with the token the Customer provides;
- Anthropic, which provides the AI assistant run by Kwan Code on Users' computers, under the Customer's own Claude account or API key;
- Google and GitHub as sign-in providers, when the Customer enables them and a User chooses to use them.
7. Security measures
Kwan implements technical and organisational measures appropriate to the risk, including:
- Tenant isolation: each Customer's data is separated in the database by row-level security, so one company cannot read another's data.
- Encryption of secrets: each project's GitHub token and environment variables are encrypted with a key specific to the Customer; environment variables are given only to the people the Customer approves.
- Passwords: stored only as bcrypt hashes. Optional sign-in with Google or GitHub through OAuth.
- Masked secrets in AI transcripts: secrets are masked before conversation transcripts are stored.
- Audit log: an immutable record of who did what, when and from which IP address, available to the Customer.
- Access control: role-based permissions in the service; access to production restricted to authorised Kwan staff.
- Encryption in transit (HTTPS) between the applications and the server.
- Data minimisation: source code is not stored by Kwan; only commit metadata is kept.
- Regular backups, and procedures to restore availability after an incident.
Kwan may update these measures, provided the overall level of protection is not reduced.
8. Personal data breaches
Kwan will notify the Customer without undue delay, and at the latest within 48 hours, after becoming aware of a personal data breach affecting the Customer's data. The notice will describe, as far as known, the nature of the breach, the categories and approximate number of data subjects and records concerned, its likely consequences, and the measures taken or proposed. Kwan will provide further information as it becomes available.
Kwan will take reasonable steps to contain the breach and limit its effects, and will help the Customer meet its own obligations to notify the authorities (the CNDP and, where the GDPR applies, the competent supervisory authority) and the data subjects.
9. Assistance to the Customer
Kwan will help the Customer, taking into account the nature of the processing, to answer requests from data subjects exercising their rights (access, rectification, deletion, objection and, under the GDPR, restriction and portability). Most of these can be handled by the Customer directly in Kwan Admin. If Kwan receives a request directly, it will forward it to the Customer without answering it, unless authorised to.
Kwan will also provide reasonable assistance with data protection impact assessments and prior consultations with the authorities, where required.
10. Deletion and return of data
When the contract ends, the Customer may export its data or ask Kwan to return it in a standard format during 30 days. Kwan then deletes the Customer's personal data, including from backups within 35 days, and confirms the deletion in writing on request, unless the law requires it to keep some data.
During the contract, the Customer can delete users, projects and other data from Kwan Admin. Entries in the audit log are kept for as long as the Customer's audit needs require, up to 5 years.
11. Audits
Kwan will make available to the Customer the information reasonably needed to demonstrate compliance with this DPA, such as security documentation and the answers to security questionnaires.
If that information is not sufficient, the Customer may, at most once a year and with at least thirty days' written notice, have an audit carried out by itself or by an independent auditor bound by confidentiality, during business hours and without disrupting the service or compromising other customers' data. Each party bears its own costs, unless the audit reveals a material breach by Kwan. Audits required by an authority are always permitted.
12. International transfers
Kwan will not transfer the Customer's data to another country without ensuring that the transfer complies with the law.
Transfers outside Morocco comply with law 09-08 and, where required, are authorised by the CNDP. Where the GDPR applies, transfers outside the European Economic Area rely on an adequacy decision or on the European Commission's Standard Contractual Clauses, with additional measures where needed.
Transfers to services chosen by the Customer (GitHub, Anthropic, Google) are made under the Customer's own agreements with them and are the Customer's responsibility.
13. Liability and term
Each party's liability under this DPA is subject to the limits in the Terms of Service, except where the law does not allow them. This DPA lasts as long as Kwan processes personal data for the Customer.
Contact for this DPA: privacy@kwan-code.com. Data protection officer: privacy@kwan-code.com.