Skip to content

v1.59.1

Choose a tag to compare

@akashc777 akashc777 released this 19 Oct 20:27
· 76 commits to main since this release

The graph database, fenced and up to date: update now

This update moves the graph database that holds your workspace's messages, docs and tasks to Dgraph 25.5.0, and closes the holes the version every install ran had open, two of them critical. On the old version, any program inside your install's network could wipe part of the database without signing in, so update now. The database also answers only your server now, stops sending usage reports, and runs within set memory limits. It fixes one problem with files attached to messages too.

  • The database can't be wiped from inside the network. Dgraph's previous version accepted requests to replace its stored data with no sign-in, on the port your server talks to it on. Dgraph 25.5.0 closes it, along with a way to stop the database with one request and two ways to slip a query into an interface your install never used.
  • The database answers only your server. Its coordinator's admin pages answered any address; they now answer only the install's own network, as the database already did. The database also leaves the network your web proxy serves from, which gave the proxy a path to it that nothing needed.
  • Nothing is reported out. Dgraph sends usage reports to its developers unless told not to; your install now tells it not to.
  • The database has limits. It runs with a 1 GB cache and a 4 GB memory limit, where before it could take as much memory as the server had. If one query ever runs away, the database restarts on its own rather than slowing the whole server.

Fixes

  • Files attached to a message could change content they didn't belong to; fixed.

Before you update
Run make backup first. No database migrations. Re-run the install command you installed with, then make update. It takes a backup of its own, moves the graph database to Dgraph 25.5.0 and restarts it once, so the install is unavailable for a short while. It builds no new index and changes no data. Everyone stays signed in.

On a small server, set the database's limits lower in your install's .env before you update, for example DGRAPH_CACHE_MB=512 and DGRAPH_MEM_LIMIT=2g.