ChatGPT at work under KVKK - where does the data go?
In most companies, ChatGPT, Claude and Gemini use starts before anyone approves it. Someone summarizes an email, someone pastes a customer complaint. Under KVKK, Turkey's personal data protection law, the questions are a
In most companies, ChatGPT, Claude and Gemini use starts before anyone approves it. Someone summarizes an email, someone pastes a customer complaint. Under KVKK, Turkey's personal data protection law, the questions are always the same: where does the data go, who can use it, what gets recorded? This post explains how we handle the technical side of these questions in BaseLLM, the AI gateway by Base Interactive.
Three questions
KVKK was written before modern AI, but it still applies to AI use. When an employee types personal data into a prompt, three things matter:
| Question | Why it matters |
|---|---|
| Where does the data go? | If the model provider is abroad, this is a cross-border transfer of personal data |
| Who can use it? | Which team can use which model, with which data? |
| What gets recorded? | When something happens, can you show what happened? |
When employees use the provider's website or their own API keys, the answers stay scattered. Every team leaves through its own path and nobody sees the full picture.
One exit point
The BaseLLM AI gateway runs on the company's own servers. It installs with Docker on a single server, or with a Helm chart on Kubernetes and OpenShift. Applications do not call the model provider directly. They call the gateway's OpenAI-compatible endpoint. Provider keys are kept encrypted (AES-256-GCM) in the gateway, not in the applications.
So every request to a model goes through the same point, and the three questions are answered in one place.
Where the data goes: models per project
Each project can only use the models bound to it. If an application asks for a model that is not in the project, the request is refused before it reaches the provider (model_not_allowed). Which provider a team can send data to is a setting, not an employee's choice.
This is the simplest way to separate sensitive work:
- A project that works with personal data can be bound only to a model running inside the company. Any OpenAI-compatible server (for example vLLM) can be added as a connection. That project's data never leaves the company network.
- A general-purpose project can use cloud models.
Sending less data out: masking
For projects that use cloud models, the gateway scans the text on your own server before it reaches the model. Turkish ID numbers, phone numbers, IBANs, card numbers and other personal data are reported, masked, replaced with placeholders or blocked, depending on the project rule. Secrets (API keys, passwords, connection strings) go through a separate scan and are blocked by default.
In placeholder mode the model never sees the real value, while the user gets the full answer. Details are in the Data masking doc and in our earlier post.
What gets recorded
At the end of every model request a usage record is written: time, project, model, token counts, latency, cost and end-user ID. The conversation text is not kept in this record.
Masking detections and admin actions also go to the audit log. Audit records are linked with a SHA-256 chain; if a past record is changed, the chain breaks. Records can be exported to a SIEM. Details are in the Audit Log doc.
A gateway is not compliance
A gateway puts technical controls in one place, but it does not make you KVKK compliant on its own. If personal data goes to a cloud model, you still need a transfer mechanism chosen by your legal team and a privacy notice for employees. What the gateway adds is evidence: you can answer "where does the data go, who can use it, what gets recorded" with records, not guesses.
A good starting point for an internal usage policy is the guide published by the Turkish Personal Data Protection Authority on 24 November 2025: Generative AI and the Protection of Personal Data (in 15 Questions) (in Turkish). It assesses personal data processing through generative AI systems under Law No. 6698 and gives guidance to organisations acting as data controllers.
The easiest way to try the BaseLLM AI gateway on your own infrastructure is the 30-day evaluation. Installation steps are in the Installation doc.
Originally published at llm.baseinteractive.com.tr.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.