Skip to content
ShipVoice

Security

ShipVoice Business 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=prod the backend refuses to start while JWT_SECRET_KEY, AGENT_SERVICE_TOKEN or OPERATOR_PASSWORD still has its change-me value. The error names the one to change. The dashboard does the same for BETTER_AUTH_SECRET.
  • Each person sees only what their role allows. The Control Plane checks every request, 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. /docs and /openapi.json are 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 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

SettingWhat to do
ALLOWED_HOSTSSet 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.
DEBUGKeep it off on a live install. When on, it writes every database statement to the logs.
SecretsUse a long random value for each one, 32 characters or more. Never commit .env.

Good habits