Repository navigation
immudb version 1.12.1
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,REPEATandSUBSTRINGreject 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
08P01instead of crashing (#2172).
Authorization
RETURNINGand subqueries insideINSERT/UPDATE/DELETErequireSELECT(#2172).VerifiableSQLGetand the pgsql column-catalog handlers requireSELECT(#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 DATABASEover 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
0700and data files0600(#2172).
Data integrity
- pgsql writes containing catalog words inside string literals are no longer skipped (#2173).
INSERT/UPDATE/DELETE … RETURNINGover the pgsql extended protocol no longer writes rows twice (#2173).TruncateDatabaserejects retention periods below 24h, including0;ExcludeCommitTimecan 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/varson port 9497 need--pprof. immuadmin database truncaterequires--retention-periodof at least 24h.- Deleting a database logs out every user who had access to it.
- Table and schema
GRANT/REVOKEover 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 apporREVOKE … ON DATABASE db FROM app, used to be silently ignored and now return an error. immudb only acceptsGRANT|REVOKE <privileges> ON DATABASE <db> TO USER <user>; remove or rewrite such lines in migration scripts.