Three questions that get mixed up
- Where is it stored? The country of the disks. This is residency.
- Who can reach it? A support engineer, contractor or parent company abroad may open data that never leaves a local disk. This is access.
- Whose rules apply to the provider? The company's place of registration and the contract decide it. This is jurisdiction.
A project can pass the first and fail the second, so write down all three.
Where copies usually hide
| Place | What ends up there | How to find out |
|---|---|---|
| Server disk | Database, uploads, sessions | Provider contract; ask for the city |
| Backups | A full copy of everything | Read the backup job's destination |
| Orders, scans of IDs, CVs | MX record; mail provider's terms | |
| CDN and proxy | Cached pages, visitor IPs, sometimes decrypted traffic | NS and response headers |
| Error tracking and monitoring | Stack traces with user data | Search config files for DSN and API keys |
| Analytics, chat, pixels | Behaviour, IPs, phone numbers | Browser developer tools, Network tab |
| SaaS (CRM, helpdesk, forms) | Customer lists | Admin settings, data processing terms |
| SMS and messenger bots | Phone numbers, message text | Invoices from the gateway |
| AI tools | Whatever staff paste in | Ask staff, without blame |
| Laptops and test servers | Last year's dump | Ask developers |
The last two lines are where most surprises come from. Nobody planned those copies, and no contract covers them.
Trace the outgoing connections
You can find half of the list in a few minutes. Replace the domain with your own; the first commands show who hosts mail and DNS, the last one which outside hosts a page loads:
dig +short MX example.az
dig +short NS example.az
dig +short TXT example.az | grep -i spf
curl -s https://example.az/ | grep -oE 'https?://[^/"'"'"' ]+' | sort | uniq -c | sort -rnOn the server, see which programs talk to which addresses right now, and which endpoints are written in the configuration:
sudo ss -tnp state established
sudo grep -rhoE 'https?://[a-zA-Z0-9.-]+' /etc /srv /var/www --include='*.env' --include='*.yml' --include='*.conf' --include='.env' | sort | uniq -c | sort -rn | head -40Scripts that load other scripts appear only in the browser, so also open a page with the Network tab and sort by domain. An IP lookup tells you the owner of an address, not reliably the country of the disk; for that you need the provider's word in writing.
The inventory worksheet
One row per copy, not per system. Copy this into a spreadsheet; the rows are invented examples:
data_set,personal_data,system,provider,country_stored,who_has_access,encrypted,retention,contract_ref,owner,next_review
orders,yes,shop database,hosting company,Azerbaijan,2 admins,disk: no / transit: yes,5 years,A-12,IT lead,2027-03
orders,yes,nightly backup,S3 storage,Azerbaijan,1 admin,yes (restic),6 months,A-12,IT lead,2027-03
orders,yes,order emails,mail provider,unknown,sales team,transit only,no limit,none,sales lead,now
visitors,yes,web analytics,SaaS,unknown,marketing,vendor,vendor default,online terms,marketing,nowAny "unknown" is a task, and any "no limit" is a decision somebody should make. Review it when a tool is added, not once a year.
Questions to put into the contract
- In which country and city are the disks that hold our data? And the backups and the recovery site?
- Can you move the data elsewhere without asking us? How much notice do you give?
- Which of your employees and subcontractors can reach the data, from which countries, and is each access logged?
- Who are your subprocessors, and how do we learn about new ones?
- What happens on termination: in what format do we export, and when are the copies deleted?
- How quickly do you report an incident, and to whom?
- What do you do if an authority requests our data?
Ask for answers in the agreement or an annex. A sentence on a website, including ours, is not a contract.
For Cloudraft the short version is: VPS disks and the S3-compatible storage are in Baku, the company is Cloudraft LLC, Baku, and data on these servers stays in the country. A separate disaster-recovery site exists, with plans arranged individually, so put its location in your question list. The software you install and the services it calls are outside our view: that part of the inventory is yours.
Technical measures that make the paper true
Encrypt copies that travel. Backups should be encrypted before upload, with the key kept elsewhere; the backup guide does this with restic. Use TLS for every database connection that leaves the machine.
Encrypt the sensitive fields. Full-disk encryption on a virtual server protects a discarded disk, yet a running machine is always unlocked. For identity numbers and scans, encrypt in the application and keep the key outside the database.
Keep databases without a public address. Place them on a private network that only the application and staff VPN can reach.
Log access to files that matter. A simple watch on Ubuntu or Debian:
sudo apt install -y auditd
echo '-w /srv/clients -p rwa -k clients' | sudo tee /etc/audit/rules.d/clients.rules
sudo augenrules --load
sudo ausearch -k clients --start today -iGive each administrator a personal account with sudo, because a shared root login makes logs useless.
Expire data. Logs, carts, CVs and old dumps that no longer exist cannot leak. Check that logrotate matches the retention column.
Anonymise test data. Developers rarely need real phone numbers.
When local storage is not the main question
Public marketing pages, open documentation and product photos gain little from residency rules; choose their location by speed for visitors. And a server in Baku with an old CMS and a shared password is worse protected than a well-run one anywhere. Residency is one property of a system, alongside security, recovery and access.
Data residency questions
Must personal data of Azerbaijani customers be stored in Azerbaijan?
Ask a lawyer who knows your sector. The law "On Personal Data" is the starting point, and the answer may differ for a bank, a clinic and an online shop.
Does a VPS in Baku make my company compliant?
No. It settles where the server disk is. Email, backups, analytics, access rights and contracts have to be checked separately.
Does using a CDN move my data abroad?
It can. A proxying CDN sees visitor IPs and often decrypts traffic at its own locations. Serve only static files through it, or ask the provider where requests are processed.
How do I prove where my data is stored?
Keep the contract or annex naming the location, the inventory with review dates, and copies of provider answers. Screenshots of a lookup by IP are weak evidence.
Who should own the data inventory?
One named person, usually the IT lead, with a lawyer or compliance officer reviewing it. Shared ownership normally means the sheet is never updated.