Privacy compliance checklist (KVKK and GDPR)
Work through this page in order before an assistant sees real personal data, and run the acceptance tests at the end to prove that each control is on. It maps settings to the kind of obligation they help with. It does not say what KVKK or GDPR require of you, and it does not replace a review by your data-protection officer or legal counsel.
Not legal advice
Every setting below is an engineering control. Whether a combination of them satisfies a law, a contract or a regulator is a legal decision. Retention presets, for example, are engineering defaults.
When to use
- You are about to give an agent, a portal or an API client access to customer, employee or patient data.
- You are preparing a data-protection review and need to know which controls exist and where they are.
- You changed a model provider, a vector store, a file store or a portal and want to re-check the chain.
The order
Several controls only work if an earlier one is in place. A guardrail does nothing until it is bound, a retention policy deletes nothing until dry run is off, and a PII policy protects nothing until a model or an agent names it.
| # | Step | Where it lives | You are done when |
|---|---|---|---|
| 1 | Decide where data is stored | Settings → Providers, Data → Knowledge Index, Data → Document Store | You can name the region of every model, embedding, vector and file endpoint |
| 2 | Sign-in and groups | Settings → Single Sign-On, Settings → LDAP Directory, Settings → IAM center | A test person lands with the role, groups and projects you intended |
| 3 | Agents and knowledge | Build → Agents, Data → Knowledge Engine | Only the intended people can reach each agent, project and document |
| 4 | Portals | Build → Portals → the portal → Compliance, Access | A person sees the terms and the AI label before chatting, from an allowed network |
| 5 | PII policy and PII protection | Operate → PII Service, the model or the agent | Personal data leaves for the provider as tokens |
| 6 | Guardrails in Enforce mode | Operate → Guardrail, the model or the agent | A test request is blocked, not only recorded |
| 7 | Retention | Settings → Data retention, RETENTION_DRY_RUN | The preview shows what will go and dry run is off |
| 8 | Audit and export | Settings → Audit Log, IAM center → Audit | You can export a file that shows your own changes |
1. Decide where data is stored
Personal data rests in more places than the database. Write down each place and its region before you create anything that stores data.
| What is stored or sent | Where it goes | You choose it in |
|---|---|---|
| Workspace records: agents, conversations, logs | The database of the installation (self-hosted) or of the hosted service | The installation. See Install |
| Prompts and answers | The endpoint of the model provider you register | Settings → Providers, then the model in Build → Model Hub |
| Document text for search | The embedding model's endpoint when a document is indexed, then the vector provider | Data → Knowledge Engine module, Data → Knowledge Index |
| Vectors | A vector provider: SQLite Vector, Postgres, Azure AI Search or AWS S3 Vectors | Settings → Providers |
| Files: uploads, session files, agent outputs | A file provider: S3-compatible storage, Amazon S3, Azure Blob Storage, MongoDB GridFS or the server's disk | Settings → Providers, then a bucket in Data → Document Store |
A file is written under the tenant id and the provider key, so workspaces that share one store never see each other's objects. See Files and Vector Stores.
On the hosted service the platform's own storage providers (Cognipeer Files and Cognipeer Vector) can appear in the provider list next to yours. Ask Cognipeer where they run.
Check. Open Settings → Diagnostics and run Test now under This workspace. It tests each model, embedding, vector and file provider with the same test as Test connection.
2. Sign-in and groups
Decide who can sign in, with which role, and which groups they land in.
- Open Settings → Single Sign-On (OpenID Connect) or, on a self-hosted installation, Settings → LDAP Directory. Only owners and admins can open them.
- Map the identity provider's administrator claim or the LDAP admin group, and set the default role. The roles you can set are
admin,project_admin,userandportal_user. The default isuser. - Turn on group sync and add group mappings. A group is created the first time someone arrives with it, with no grants.
- Open Settings → IAM center → Principals → Groups and give each group its workspace role, service permissions and project assignments.
- Set default projects for new sign-ins only if every new person should see them.
How it behaves:
- The role is recomputed at every sign-in. It can promote or demote, and it never touches the owner.
- A person who matches no mapping gets the default role, no groups and only the default projects. With no project they land on a request-access page.
- Directory groups have read-only membership. Change membership at the identity provider.
- SSO uses OpenID Connect. SAML is not supported.
See Authentication and Authorization (IAM).
SSO can be silently ignored on the hosted service
SSO and LDAP are licensed modules. On the hosted service an SSO connection in a workspace whose package does not include the module is ignored, not refused. Confirm the package before you test.
3. Agents and knowledge
- Projects are the unit of access. Put data that needs different audiences in different projects. A project can only lower what the workspace level allows.
- Knowledge access control is off by default. With it off, everyone who can read the knowledge base reads every document. Switching it on hides nothing by itself: the top level stays open until you change its permissions. See Knowledge base access control.
- Connector sources. A source that does not send document permissions makes every synced document visible to everyone with access to the module. Decide this before you bind the source. See Connector knowledge sources.
- Files and memory. Session files follow each agent's retention setting. Agent memory keeps context across conversations: decide per agent whether it needs it. The Collections tab of Data retention shows whether the engine or an older mechanism ages each store out.
- Transcripts. Portal conversations are ordinary agent conversations. People with read access to the agent can read them.
4. Portals
Open Build → Portals, open the portal, and use these tabs. The portal admin guide describes each one.
| Control | Tab | What it does |
|---|---|---|
| Ask people to accept terms | Compliance | A dialog shows your terms before any chat is mounted. Changing the text raises the version and asks everyone again. Ask again after can repeat it every 1 to 3,650 days |
| Label assistant messages, privacy, terms, support and About the AI assistant links | Compliance | An AI label on every answer and a link row under the input. Links must be full https addresses |
| Who can use this portal | Access | Everyone in the organization, or selected people and groups |
| Allowed networks | Access | Restricts the portal to IP ranges. Check your own address before you save |
| Feedback comments | Chat features | Readable by people who can edit the agent. Turn comments off if people might type personal data |
Traps:
- Each terms acceptance stores the person's IP address and browser. Say so in your own privacy notice.
- Behind a reverse proxy, set
TRUSTED_PROXIESor every person looks like the proxy and the network check is meaningless. - Generated conversation titles send the first question and answer, each cut to 700 characters, to the model you chose for titles.
5. PII policy and PII protection
A PII policy says what to look for. PII protection puts it in the path of every call.
- Open Operate → PII Service and create a policy. Pick the categories and the languages. Use the test panel.
- Turn it on for a model: Build → Model Hub, open the model, Edit, PII protection. Or for an agent: Build → Agents → your agent → Build → General, the PII policy picker. An agent's setting replaces the model's.
- Repeat for every model and agent that can see personal data.
The provider receives a token in place of each value, the answer comes back with the real value, and logs keep the tokens. See PII Service.
| Trap | What happens | Do this |
|---|---|---|
| Images, files and audio | While protection is on, a request with an image, file or audio part is refused with 400 and nothing is sent to the provider | Use a separate model or agent without protection for media, and decide who may use it |
| Policy off or deleted | A disabled policy, or the PII service switched off for the workspace, lets calls through unprotected. A deleted policy makes calls fail | Look for the This policy is turned off warning in the picker |
| Language filter | Languages is applied before the category switches. tc_kimlik never runs if Turkish is not selected | Select Turkish, or leave Languages empty |
| Tools see real values | The model sees tokens. Tools, the conversation and the person see the real values | Review each tool that receives personal data |
6. Guardrails in Enforce mode
A guardrail checks the text at six points of the request. It only blocks when it is in Enforce mode and bound to something.
- Open Operate → Guardrail. Start from offers KVKK and GDPR templates. Pick one, or build your own.
- Run it in Monitor first and read its evaluation history for a few days.
- Bind it: Build → Model Hub → the model → Guardrails → Edit, or the agent's guardrail binding. Portals use the guardrails of their agents.
- Open the guardrail and set Mode to Enforce. Check each hook's Enforcement too: Block stops the request, Observe only records.
| Trap | What happens | Do this |
|---|---|---|
| New guardrails start in Monitor | A guardrail created in the UI or from a template evaluates and records, and blocks nothing | Switch Mode to Enforce after the trial |
| Created but not bound | A guardrail runs only where it is bound. A model with nothing attached reads No guardrails attached — every request to this model passes unchecked | Bind it and tick the hooks |
| Hook set to Observe | The mode is Enforce but that hook only records | Set Enforcement to Block |
| Fail mode | A guardrail that runs a PII or prompt-shield policy defaults to closed: if the check cannot run, the content counts as a violation. Others default to open | Choose it deliberately for each guardrail |
| Streaming | A guardrail migrated from an older version has Check while streaming off, so a streamed answer is not blocked mid-stream | Turn it on |
| Off means unchecked | An allow from a guardrail that is Off means nothing was checked | Treat it as unknown |
See Guardrails.
7. Retention
The retention engine ages out logs under one policy. Prompts and answers are content: they are cleared (redacted) early and the row stays. Everything else is deleted.
Run the inventory. It is read-only:
bashnpm run retention:inventory npm run retention:inventory -- --tenant <slug-or-dbName>Open Settings → Data retention → Edit policy. Pick a starting point, set the days per class and add project exceptions. Impact now shows how many rows would be deleted or cleared.
Open the Legal holds tab to keep data past its retention for a dispute or an investigation. A hold covers the workspace or one project.
Set
RETENTION_DRY_RUN=falseand restart. Until then sweeps only count.
| Trap | What happens | Do this |
|---|---|---|
| Dry run is the default | RETENTION_DRY_RUN is true: sweeps count and record what they would delete, and delete nothing. Clean now always acts | Review the inventory, then turn it off. On the hosted service it is a deployment setting: confirm with Cognipeer that enforcement is on |
| The Data retention screen is an enterprise module | The engine runs in every edition with its defaults. Editing the policy needs the module | See Licensing |
| Shortening waits | A shorter duration keeps the old number for 24 hours by default and can be cancelled | Plan the change a day ahead |
| Audit has a floor | The audit class never goes below 365 days by default, for every workspace and every purge | Do not plan a shorter audit retention than the floor |
| Older mechanisms | Agent runs, session events, webhook deliveries and session files keep their own settings | Read the Collections tab |
See Data retention.
8. Audit and export
- Settings → Audit Log lists audited requests (event, status, method and path, request id, actor, address, project and resource) and exports them as CSV or JSON. Filter Action to Write or Admin to see changes. Reading needs read access to the
auditservice. - Settings → IAM center → Audit lists refused requests and policy changes, with CSV export.
- Each retention sweep or purge that acted leaves a destruction record. Records are kept three years by default.
- Guardrail decisions are kept in each guardrail's evaluation history: pass or fail, findings, the calling surface and the request id. Detected values are masked before they are stored.
What is not covered yet
Do not plan on these. Handle them with a process outside the product.
| Need | Status |
|---|---|
| Data-subject requests: find or delete everything about one person | Not available |
| Export before deletion | Not part of the retention engine |
| A legal hold on one person, one conversation or one record | Holds cover a workspace or a project |
| Holds against deletes outside the retention engine, such as a person deleting their own conversation | Not covered |
| One policy for every older retention mechanism | They keep their own settings |
Acceptance tests
Run these with fake personal data. Do not use real people.
| Test | How | You should see |
|---|---|---|
| Personal data leaves as tokens | On a model or agent with PII protection and no redacting guardrail, send My email is john@example.com and my TCKN is 12345678950. Repeat both. | The answer shows the real values. The usage log shows tokens, not values |
| Media is refused | Send an image to the same model | 400, and nothing sent to the provider |
| A guardrail blocks | Send text that your guardrail should block | 400 with error.type: "guardrail_block" and the guardrail key |
| The decision is recorded | Open the guardrail's evaluation history | The evaluation with its findings and the request id |
| Monitor differs from Enforce | Set Mode to Monitor and resend | The request passes and the evaluation is still recorded |
| Retention preview | Settings → Data retention → Edit policy | Impact now lists rows per class. No dry-run alert once enforcement is on |
| Retention acted | After a sweep, open Destruction records | A record for the sweep. Run npm run retention:inventory for the numbers |
| Audit export | Settings → Audit Log, filter Action to Write, export CSV | A file that contains your own latest changes |
| Portal terms and network | Open the portal as a test person, then from outside the allowed ranges | The terms dialog and the AI label. Not available from here outside the ranges |
| Sign-in mapping | Sign in with a test identity that is not an administrator | The default role and the mapped groups. For LDAP, sign in from the web login form |
Common problems
| Symptom | Cause | Fix |
|---|---|---|
| A guardrail never blocks | Mode is Monitor, it is not bound, or the hook is on Observe | Guardrails in Enforce mode |
| Requests with attachments fail after turning PII protection on | Media is refused while protection is on | Use a separate model or agent for media |
| Turkish ID numbers are not detected | The Languages filter leaves out Turkish | Select Turkish or clear the filter |
| Retention deleted nothing | Dry run | Set RETENTION_DRY_RUN=false after the inventory |
| A shorter retention did not apply | The shortening waits 24 hours by default | Wait, or cancel it from the banner |
| Everyone reads every knowledge document | Access control is off, or the top level has no permissions | Knowledge base access control |
| An SSO user signs in and sees nothing | Default role, no groups, no default projects | Add group mappings and grants, or default projects |
| SSO does nothing on the hosted service | The package does not include SSO | Check the package |

