NEW RasterizedDB 1.1.0 is out: sharding and the gateway, the message broker, roles and row-level security, compression, .NET on NuGet, and the enterprise edition. What's new ›
SECURITY

Secure by default, on every door.

TLS on by default, SCRAM-SHA-256 with channel binding, one role catalogue behind every protocol, and unix sockets with kernel-checked identity when nothing should cross a network.

1 / 5

Authentication

  • SCRAM-SHA-256 by default: the password never crosses the wire and the catalogue stores nothing replayable
  • Channel binding on rastcp (tls-exporter, RFC 9266), mandatory, so a login cannot be relayed
  • An unknown user is indistinguishable from a wrong password
  • MySQL caching_sha2_password and SQL Server logins check the same roles
  • Redis AUTH checks the database's roles too
  • Peer authentication on unix sockets: the kernel's uid is the role
2 / 5

Transport

PostgreSQL connections require TLS by default (--pg-tls require), with your certificate or a self-signed pair made at start. rastcp is TLS 1.3 on TCP, always. Replication links pin each other's certificates or trust a cluster CA. A unix socket carries no TLS, and its file mode and group are its access control: trust is refused on a socket others can reach.

shell
--pg-tls require --pg-cert server.crt --pg-key server.key
--rdb-socket /run/rdb/rdb.sock --rdb-socket-auth peer --rdb-tcp off
--socket-mode 660 --socket-group app
3 / 5

Roles and limits

  • CREATE ROLE, GRANT and REVOKE; superuser-only statements refused with 42501
  • Saved passwords in rdb_studio go to the OS keyring, never to a file
  • Per-store S3 credentials kept apart in a 0600 file, never echoed by SHOW
  • max_connections, authentication and idle timeouts as in PostgreSQL
  • One engine per data directory, enforced by an OS lock
4 / 5

New in 1.1.0: the role system

A full role system: an engine-owned catalogue no SQL can read or write, column privileges, row-level security policies, default privileges and SECURITY DEFINER functions, checked once at object resolution.

  • The same model behind MySQL's CREATE USER and GRANT, and T-SQL's CREATE LOGIN
  • See the role system page for the whole surface
SQL
GRANT SELECT (id, name) ON customers TO support;
ALTER TABLE orders ENABLE ROW LEVEL SECURITY;
CREATE POLICY own_orders ON orders USING (owner = current_user);
5 / 5

Certificates and a FIPS 140-3 mode

  • Client-certificate login on the PostgreSQL protocol, against the CA --pg-client-ca names
  • An optional FIPS 140-3 mode built on the AWS-LC FIPS module, a build option in the 1.1.0 source: TLS, logins, S3 signing, ledger and vault cryptography inside the module; md5 logins and unvalidated algorithms refused
  • See the FIPS page for exactly what it covers
✓ page rendered in 91 µs axum + tera + htmx · no other javascript