Skip to content

Locus v0.1.3 (security)

Choose a tag to compare

@mabdullahb mabdullahb released this 27 Nov 02:42

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 -d

If your server was reachable from the internet

  1. Set a strong POSTGRES_PASSWORD in .env and update the password inside DATABASE_URL to 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';"
  2. 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.
  3. Change NEXTAUTH_SECRET, ENRICHMENT_KEY_SECRET and INTERNAL_API_SECRET. Note that a new ENRICHMENT_KEY_SECRET means re-entering your API keys in Locus.