Kori privacy and security
What Kori stores, where and for how long, how the Docker setup is locked down and how to report a vulnerability.
On this page
What Kori stores#
Kori keeps everything in one SQLite file in the kori-data Docker volume, or at DATABASE_PATH when run from source. Per server, that is:
- settings: whether tickets are on, the ticket category, the panel text and where it is posted, the welcome message and its pings, the log mode and the log channels;
- staff roles, with who added them;
- ticket types;
- tickets: the channel, the opener's ID, the type, the channel name, who claimed and closed it and when, and the welcome message ID;
- added members of each ticket, with who added them;
- in global mode, which server is the log server and any server-specific log channels.
Kori stores Discord IDs, not names. It does not store what anyone writes in a ticket.
How long#
- Closed ticket records stay in the database while Kori is in the server.
- When Kori is removed from a server, it deletes all of that server's data at once. Inviting Kori again starts from scratch.
- Kori keeps no transcripts. A transcript exists only as the Discord messages Kori sent to the transcript channel and to the opener.
Message content#
Kori does not receive message events. It reads a ticket's messages once, when the ticket closes, to write the transcript. It needs the Message Content Intent only for that.
Transcripts contain every message, the participants' names and IDs, and the reason. Keep transcript channels private to staff. In global mode, every server's transcripts reach the log server, so only use global mode for servers you run yourself.
Permissions#
Kori never needs Administrator. Grant only the permissions listed in Install Kori. It uses Manage Roles only for permission overwrites on ticket channels and never gives anyone a role.
Discord Administrators can read every ticket. Give Administrator only to people who should.
The Docker setup#
The docker-compose.yml from the repository runs Kori:
- as a non-root user;
- with a read-only file system, except the data volume and
/tmp; - with all Linux capabilities dropped and
no-new-privileges; - with no published ports; the optional health check is only reachable on the Docker network;
- with a limit of one CPU and 512 MB of memory.
The health check answers only ok or disconnected. It shows no server names, counts or version.
Secrets#
- The installer saves
.envso that only your user can read it. Never commit it. - Kori removes tokens and webhook URLs from its logs.
- If the token leaks, reset it in the Discord Developer Portal right away.
Backups#
The database holds member and channel IDs, so store backups as carefully as other user data. Back it up while Kori is stopped, or with SQLite's online backup, so the WAL file is included.
Report a vulnerability#
Do not open a public issue. Report it privately through GitHub Security Advisories with the version, the steps to reproduce and the impact. Only the latest release receives security fixes.
Source: Kori v2.0.0 SECURITY.md, README, Dockerfile, docker-compose.yml, db/migrations, src/db/repositories.rs, src/health.rs, src/logger.rs and src/bot.rs, checked 9 November 2026.