Skip to content

immudb version 1.12.1

Choose a tag to compare

@vchaindz vchaindz released this 27 Nov 16:00
· 2 commits to master since this release
v1.12.1
5c192ca

immudb — Changes from v1.12.0 to v1.12.1

v1.12.1 is a hardening release with fixes from an external security review. All users should upgrade.

Crashes

  • Stream message sizes from the wire are validated; the gRPC server recovers from handler panics instead of exiting (#2172).
  • LPAD, RPAD, REPEAT and SUBSTRING reject negative lengths and cap result sizes (#2172).
  • Concurrent CTE queries no longer crash the server, and a CTE can no longer replace a view of the same name for other sessions (#2172).
  • pgsql Bind with too few parameter values returns 08P01 instead of crashing (#2172).

Authorization

  • RETURNING and subqueries inside INSERT/UPDATE/DELETE require SELECT (#2172).
  • VerifiableSQLGet and the pgsql column-catalog handlers require SELECT (#2172).
  • Deleting a database revokes all user permissions on it, so a new database with the same name does not inherit them (#2172).
  • GRANT/REVOKE … ON DATABASE over pgsql now take effect instead of being silently ignored (#2172).

Secrets

  • /debug/vars, which includes the process command line, is served only with --pprof, and no longer by the auditor (#2172).
  • pgsql query text is logged at DEBUG only, with passwords masked; session IDs are no longer logged (#2172).
  • New data directories are created 0700 and data files 0600 (#2172).

Data integrity

  • pgsql writes containing catalog words inside string literals are no longer skipped (#2173).
  • INSERT/UPDATE/DELETE … RETURNING over the pgsql extended protocol no longer writes rows twice (#2173).
  • TruncateDatabase rejects retention periods below 24h, including 0; ExcludeCommitTime can no longer be changed after database creation (#2173).

Upgrade notes

  • Tools reading the data directory as a different OS user cannot read newly created files.
  • Scrapers of /debug/vars on port 9497 need --pprof.
  • immuadmin database truncate requires --retention-period of at least 24h.
  • Deleting a database logs out every user who had access to it.
  • Table and schema GRANT/REVOKE over pgsql (as emitted by pg_dump) are still ignored, now with a warning.
  • Breaking: PostgreSQL-style database grants over pgsql, such as GRANT CONNECT ON DATABASE db TO app or REVOKE … ON DATABASE db FROM app, used to be silently ignored and now return an error. immudb only accepts GRANT|REVOKE <privileges> ON DATABASE <db> TO USER <user>; remove or rewrite such lines in migration scripts.