Records nobody can quietly change.
Tamper-evident ledger tables, and secret vaults that keep their keys in hardware. Append-only rows under a retention lock, hash-chained and anchored outside the database, so an edit, a delete or a rollback is found by a single statement.
Ledger tables, secret vaults and encrypted columns are in the enterprise edition of 1.1.0: the rasterizeddb-enterprise release archives, with rdb-studio-enterprise for the LEDGER page.
Rows that cannot be changed without anyone noticing
In the 1.1.0 enterprise edition: a ledger table refuses UPDATE and DELETE until its retention passes, chains every committed row by hash, and copies the chain heads somewhere the database cannot rewrite.
- 1Append-only by policy
CREATE LEDGER TABLE with a retention lock: rows can be added, and nothing removes one before its retention ends. Superusers are not exempt.
- 2Every row is hashed
Each committed row gets a salted digest, and the transaction's digests are chained to the previous transaction's hash.
- 3Heads leave the database
The chain heads are copied to a separate disk, or to S3 with Object Lock in compliance mode, where the database itself cannot rewrite them.
- 4Changes are refused
An UPDATE or DELETE inside the retention window is refused, whoever runs it. A legal hold keeps rows past their retention.
- 5Someone edits a file
Bytes are changed underneath the engine, behind its back.
- 6VERIFY finds it
Recomputing the chain against the anchored heads shows exactly which rows were edited, deleted or rolled back.
Ledger tables
- Append-only, or VERSIONED to keep every version of a row, with a retention lock and legal holds; superusers are not exempt
- Every committed row hash-chained, with receipts a client can keep
- Chain heads anchored to a separate directory or to S3, optionally signed
- VERIFY LEDGER, or the offline rdb-ledger-verify tool, finds edited, deleted or rolled-back rows
CREATE LEDGER TABLE payments (
id BIGINT NOT NULL,
payer TEXT NOT NULL,
amount BIGINT NOT NULL
)
NO DELETE UNTIL 7 YEARS AFTER INSERT
NO DROP UNTIL 90 DAYS IDLE
ANCHOR TO 'dir:/mnt/worm/ledger';
ALTER LEDGER TABLE payments SET LEGAL HOLD 'case-4411';
VERIFY LEDGER payments;Secret vaults
A self-hosted alternative to cloud key vaults, in the same server as the data.
- Versioned secrets with soft delete and purge protection
- Keys from an HSM through PKCS#11, a TPM, a hybrid post-quantum ML-KEM-768 with X25519 key file, or a plain key file for development
- The secret's value is cut from every place the server keeps statement text
- An audited, hash-chained record of every read
CREATE VAULT app_secrets KEY PROVIDER 'pkcs11:module=/usr/lib/softhsm/libsofthsm2.so;token=rdb;key=vault-kek;pin-source=/etc/rasterizeddb/hsm.pin' RETAIN DELETED 30 DAYS; VAULT app_secrets SET SECRET 'db/password' = 'correct horse battery staple'; VAULT app_secrets GET SECRET 'db/password'; -- audited
Encrypted columns
- Column values encrypted with a vault key, decrypted only for roles allowed to read them
- Works in ledger tables too
- Keys rotate in the vault
CREATE TABLE staff (
id BIGINT NOT NULL,
ssn VARCHAR(11) ENCRYPTED WITH VAULT hr KEY 'pii' NOT NULL
);Around them
- Client-certificate (mTLS) login on the PostgreSQL and native protocols
- The Studio LEDGER page, in the enterprise build of Studio
- An optional FIPS 140-3 mode built on the AWS-LC FIPS module, under which the ledger's hashes and the vaults' encryption run inside the module