This page is from the earlier docs. It is kept for reference while we rewrite it, and parts may be out of date. Go to the current docs
Security
ShipVoice Pro runs on your own servers, so the security of the install is yours. This page lists what the code does for you and what you set.
What is on from the start
- No default passwords in production. With
ENV=prodthe backend refuses to start whileJWT_SECRET_KEY,AGENT_SERVICE_TOKENorOPERATOR_PASSWORDstill has itschange-mevalue. The error names the one to change. The dashboard does the same forBETTER_AUTH_SECRET. - Each client sees only its own data. The app filters every request by client, and Postgres checks the same rule a second time with row-level security.
- HTTPS is enforced. Every response tells the browser to come back over HTTPS only.
- The API reference is hidden.
/docsand/openapi.jsonare served only on your computer, never on a live install. - Sign-in is limited. The operator sign-in allows ten attempts a minute from one address.
Where keys are kept
Your Stripe, Anthropic, OpenAI, Google AI and mail keys are not kept in the .env file. Each one is entered in the console’s Settings, checked with its vendor, and stored sealed. Nobody can read a key back after it is saved.
You can also set one from the terminal:
uv run shipvoice secret set
It asks for the key at a hidden prompt, so the key never lands in your shell history. A key left in the environment is ignored, and the startup log tells you which one.
What to set yourself
| Setting | What to do |
|---|---|
ALLOWED_HOSTS | Set it to a JSON list of every name the API is reached by: its public domain, the name the agent machines call it by, and your host’s health check name. Left empty, every host name is answered. |
DEBUG | Keep it off on a live install. When on, it writes every database statement to the logs. |
| Secrets | Use a long random value for each one, 32 characters or more. Never commit .env. |
Good habits
- Give each person their own login and the lowest role that lets them do their work. See Team and roles.
- Take your own database backups. See Database and storage.
- Keep up with new versions. See Updating ShipVoice Pro.
- If a key leaks, replace it at the vendor first, then save the new one in Settings.