Repository navigation
Locus v0.1.3 (security)
Security fix. Update if you run Locus with Docker on a server.
Until now, docker-compose.yml published Postgres and Redis on every network interface:
- Redis had no password, so anyone who could reach the server could read or change the job queue.
- Postgres used the default password
locus_dev, which is public in this repo, so anyone who could reach the server could read the database (accounts, password hashes, encrypted API keys, leads).
Docker's published ports bypass host firewalls such as UFW, so a firewall did not block this. Both services are now bound to 127.0.0.1 and can't be reached from the network. The app and worker are unaffected.
Update
git pull
docker compose up -dIf your server was reachable from the internet
- Set a strong
POSTGRES_PASSWORDin.envand update the password insideDATABASE_URLto match. An existing database keeps its old password, so change it inside Postgres too:docker compose exec postgres psql -U locus -c "ALTER USER locus PASSWORD 'your-new-password';" - Change your provider API keys (Serper, AI providers) in each provider's dashboard and re-enter them in Locus. They are encrypted in the database, but rotating them is the safe choice if the database was exposed.
- Change
NEXTAUTH_SECRET,ENRICHMENT_KEY_SECRETandINTERNAL_API_SECRET. Note that a newENRICHMENT_KEY_SECRETmeans re-entering your API keys in Locus.