Skip to content

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.

#StepWhere it livesYou are done when
1Decide where data is storedSettings → Providers, Data → Knowledge Index, Data → Document StoreYou can name the region of every model, embedding, vector and file endpoint
2Sign-in and groupsSettings → Single Sign-On, Settings → LDAP Directory, Settings → IAM centerA test person lands with the role, groups and projects you intended
3Agents and knowledgeBuild → Agents, Data → Knowledge EngineOnly the intended people can reach each agent, project and document
4PortalsBuild → Portals → the portal → Compliance, AccessA person sees the terms and the AI label before chatting, from an allowed network
5PII policy and PII protectionOperate → PII Service, the model or the agentPersonal data leaves for the provider as tokens
6Guardrails in Enforce modeOperate → Guardrail, the model or the agentA test request is blocked, not only recorded
7RetentionSettings → Data retention, RETENTION_DRY_RUNThe preview shows what will go and dry run is off
8Audit and exportSettings → Audit Log, IAM center → AuditYou 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 sentWhere it goesYou choose it in
Workspace records: agents, conversations, logsThe database of the installation (self-hosted) or of the hosted serviceThe installation. See Install
Prompts and answersThe endpoint of the model provider you registerSettings → Providers, then the model in Build → Model Hub
Document text for searchThe embedding model's endpoint when a document is indexed, then the vector providerData → Knowledge Engine module, Data → Knowledge Index
VectorsA vector provider: SQLite Vector, Postgres, Azure AI Search or AWS S3 VectorsSettings → Providers
Files: uploads, session files, agent outputsA file provider: S3-compatible storage, Amazon S3, Azure Blob Storage, MongoDB GridFS or the server's diskSettings → 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.

  1. Open Settings → Single Sign-On (OpenID Connect) or, on a self-hosted installation, Settings → LDAP Directory. Only owners and admins can open them.
  2. 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, user and portal_user. The default is user.
  3. Turn on group sync and add group mappings. A group is created the first time someone arrives with it, with no grants.
  4. Open Settings → IAM center → Principals → Groups and give each group its workspace role, service permissions and project assignments.
  5. 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.

ControlTabWhat it does
Ask people to accept termsComplianceA 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 linksComplianceAn AI label on every answer and a link row under the input. Links must be full https addresses
Who can use this portalAccessEveryone in the organization, or selected people and groups
Allowed networksAccessRestricts the portal to IP ranges. Check your own address before you save
Feedback commentsChat featuresReadable 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_PROXIES or 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.

  1. Open Operate → PII Service and create a policy. Pick the categories and the languages. Use the test panel.
  2. 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.
  3. 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.

TrapWhat happensDo this
Images, files and audioWhile protection is on, a request with an image, file or audio part is refused with 400 and nothing is sent to the providerUse a separate model or agent without protection for media, and decide who may use it
Policy off or deletedA disabled policy, or the PII service switched off for the workspace, lets calls through unprotected. A deleted policy makes calls failLook for the This policy is turned off warning in the picker
Language filterLanguages is applied before the category switches. tc_kimlik never runs if Turkish is not selectedSelect Turkish, or leave Languages empty
Tools see real valuesThe model sees tokens. Tools, the conversation and the person see the real valuesReview 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.

  1. Open Operate → Guardrail. Start from offers KVKK and GDPR templates. Pick one, or build your own.
  2. Run it in Monitor first and read its evaluation history for a few days.
  3. Bind it: Build → Model Hub → the model → Guardrails → Edit, or the agent's guardrail binding. Portals use the guardrails of their agents.
  4. Open the guardrail and set Mode to Enforce. Check each hook's Enforcement too: Block stops the request, Observe only records.
TrapWhat happensDo this
New guardrails start in MonitorA guardrail created in the UI or from a template evaluates and records, and blocks nothingSwitch Mode to Enforce after the trial
Created but not boundA guardrail runs only where it is bound. A model with nothing attached reads No guardrails attached — every request to this model passes uncheckedBind it and tick the hooks
Hook set to ObserveThe mode is Enforce but that hook only recordsSet Enforcement to Block
Fail modeA 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 openChoose it deliberately for each guardrail
StreamingA guardrail migrated from an older version has Check while streaming off, so a streamed answer is not blocked mid-streamTurn it on
Off means uncheckedAn allow from a guardrail that is Off means nothing was checkedTreat 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.

  1. Run the inventory. It is read-only:

    bash
    npm run retention:inventory
    npm run retention:inventory -- --tenant <slug-or-dbName>
  2. 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.

  3. 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.

  4. Set RETENTION_DRY_RUN=false and restart. Until then sweeps only count.

TrapWhat happensDo this
Dry run is the defaultRETENTION_DRY_RUN is true: sweeps count and record what they would delete, and delete nothing. Clean now always actsReview 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 moduleThe engine runs in every edition with its defaults. Editing the policy needs the moduleSee Licensing
Shortening waitsA shorter duration keeps the old number for 24 hours by default and can be cancelledPlan the change a day ahead
Audit has a floorThe audit class never goes below 365 days by default, for every workspace and every purgeDo not plan a shorter audit retention than the floor
Older mechanismsAgent runs, session events, webhook deliveries and session files keep their own settingsRead 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 audit service.
  • 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.

NeedStatus
Data-subject requests: find or delete everything about one personNot available
Export before deletionNot part of the retention engine
A legal hold on one person, one conversation or one recordHolds cover a workspace or a project
Holds against deletes outside the retention engine, such as a person deleting their own conversationNot covered
One policy for every older retention mechanismThey keep their own settings

Acceptance tests ​

Run these with fake personal data. Do not use real people.

TestHowYou should see
Personal data leaves as tokensOn 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 refusedSend an image to the same model400, and nothing sent to the provider
A guardrail blocksSend text that your guardrail should block400 with error.type: "guardrail_block" and the guardrail key
The decision is recordedOpen the guardrail's evaluation historyThe evaluation with its findings and the request id
Monitor differs from EnforceSet Mode to Monitor and resendThe request passes and the evaluation is still recorded
Retention previewSettings → Data retention → Edit policyImpact now lists rows per class. No dry-run alert once enforcement is on
Retention actedAfter a sweep, open Destruction recordsA record for the sweep. Run npm run retention:inventory for the numbers
Audit exportSettings → Audit Log, filter Action to Write, export CSVA file that contains your own latest changes
Portal terms and networkOpen the portal as a test person, then from outside the allowed rangesThe terms dialog and the AI label. Not available from here outside the ranges
Sign-in mappingSign in with a test identity that is not an administratorThe default role and the mapped groups. For LDAP, sign in from the web login form

Common problems ​

SymptomCauseFix
A guardrail never blocksMode is Monitor, it is not bound, or the hook is on ObserveGuardrails in Enforce mode
Requests with attachments fail after turning PII protection onMedia is refused while protection is onUse a separate model or agent for media
Turkish ID numbers are not detectedThe Languages filter leaves out TurkishSelect Turkish or clear the filter
Retention deleted nothingDry runSet RETENTION_DRY_RUN=false after the inventory
A shorter retention did not applyThe shortening waits 24 hours by defaultWait, or cancel it from the banner
Everyone reads every knowledge documentAccess control is off, or the top level has no permissionsKnowledge base access control
An SSO user signs in and sees nothingDefault role, no groups, no default projectsAdd group mappings and grants, or default projects
SSO does nothing on the hosted serviceThe package does not include SSOCheck the package

Next steps ​

Studio · Pulse · Console · Agent SDK and more — the Cognipeer documentation hub · Contact Support