Account and reference · Chapter 29

Data and security

This chapter explains where your site's data lives and how it's protected. The short version, with every outside service Chirai uses, is on the Security & privacy page.

Each site has its own database

Every site gets its own database schema. One site can never read another site's tables, and a customer account on one site doesn't exist on another.

Three kinds of data are kept apart:

  • Chirai's own data (your account, plan, builds, settings) lives in Chirai's tables. Only Chirai's server reads them, and a sign-in to one of your sites can't reach them at all. The database refuses it on every Chirai table.
  • Your site's data (products, pages, orders) lives in that site's own schema. Your site reaches it through Chirai's gateway, which only ever opens that one schema.
  • Your customers' data (their accounts and their records) lives inside your site's schema, behind the access rules below. Customer accounts belong to one site only and are never Chirai accounts.

Access rules

Chirai writes rules into each database, not just into the pages:

  • Catalogue data (products, posts, listings). Anyone can read it; only you change it, through Manage site.
  • Personal records (orders, bookings, profiles, customers, patients, students, notes, applications, and any table with an email, phone, address, birth date, bank, health or ID column). A customer can read and change only their own. Changing the number in an address (/users/123 to /users/124) shows nothing that isn't theirs: the database answers with their rows only, whatever page asks.
  • People others are meant to see (a member directory, public profiles). Add a visibility switch (is_public); only switched-on rows are shown to others.
  • Forms (contact, newsletter), visitors can submit; only you can read.
  • Money records (orders, payments), written only by Chirai's server; customers can't edit them, for example to mark an order paid.

Every build is tested with two test accounts trying to read, change, delete and add each other's records. If they can, the rules are tightened and tested again before you see the preview. Before every publish, Chiru attacks the preview again, with more checks: a visitor reading private rows, a changed filter, a customer making themself an admin, leaked keys, script in saved content, and more.

Your keys and passwords

Payment keys, email passwords and service tokens are stored encrypted on Chirai's server. They're never sent to your sites or shown again in the dashboard. Keys for connected APIs are encrypted too and used only through Chirai's relay. Your Google Play and App Store connections (the Google token and Apple's .p8 key) are encrypted the same way and never sent back to the browser.

Your Chirai account

  • Two-step sign-in. In Settings → Security, turn on two-step sign-in and scan the code with an authenticator app (Google Authenticator, Microsoft Authenticator, Authy, 1Password). Signing in then needs your password and the app's 6-digit code, so a stolen password alone opens nothing.
  • New sign-in emails. When your account is used from a browser it has never been used from, you get an email. If it wasn't you, press This wasn't me in that email.
  • Locking. A locked account is signed out everywhere and can't be used until you set a new password from the link Chirai emails you (and enter your two-step code, if you have one). Your sites stay live. Chirai also locks an account by itself when the code of many sites is downloaded within a few minutes. Chirai never emails you a password and never asks for yours.
  • Sign out everywhere and Recent activity (sign-ins, password changes, code downloads, publishes, deleted sites) are on the same page.
  • Activity log. Settings → Activity log lists every change on your account and builds, by you or your team, with when, from which address and device, and whether it went through. Entries are written to a separate, append-only log: nobody, including Chirai's own server, can edit or delete one, and each entry is chained to the one before so a removed entry would show. Kept for 400 days; download it as CSV.
  • Team. Settings → Team lets you add people as Admin, Editor or Viewer (see Teams and roles).
  • Lost your authenticator? Write to support from your account's email address.

Uploads and published code

  • A file you upload must be the picture, PDF or video it says it is; a program renamed to look like a picture is refused, and so is a PDF that carries a script.
  • Before a site or app is published, its code is read for things no site needs: running programs, hidden code, coin miners, and sending visitors' data away. If any is found the publish stops and names the file. Ask IILA to remove it.

Attackers turned away

Chirai's server watches for addresses that probe for files only an attacker looks for (password files, other systems' admin pages). Such an address is refused for an hour. Every address also has request limits, so nobody can flood your site's forms or guess passwords at speed. An automatic block stops bare bot requests only: people using Chirai or your site from a browser keep working, even when they share a network with the attacker.

Backups

Chirai backs up its database every night and keeps backups for 14 days. One site's data can be put back on its own, without touching other sites.

Where your data goes

Chirai uses a few outside services, and sends each only what it needs. Your customers' data is never sold or shared for advertising. Before a site's assistant or Chirai support asks an AI model, emails, phone numbers, card numbers and ID numbers are taken out of the message. Old personal details are cleaned up every day: who an email went to after 30 days, sign-in addresses after 180 days, abandoned carts after 30 days. Vercel hosts published sites, AI providers receive your description and your site's code to write and fix it, image services receive a short description of a picture, payment providers handle your customers' payments on their own pages, and your email provider sends your site's emails. The full list, provider by provider, is on the Security & privacy page.

Reporting a security problem

Write to the security address on the Security & privacy page.

The Database page (Pro and Agency)

See each site's tables and run SQL inside that site's own schema. It can't reach anything else.

Your own Supabase

In Settings → Supabase you can connect your own Supabase account (Chirai creates a project for your sites) instead of using Chirai's.

Customers' rights

Customers can download their data and delete their account from the account page. See Customers and accounts.