Skip to content

pg_seal

Tamper-evident audit log for PostgreSQL 🦭

pg_seal · Tamper-evident audit log for PostgreSQL 🦭

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101617pg_sealpg_seal1.0.0SECBSD-3-ClauseRust

Usage

Sources:

pg_seal — A PostgreSQL extension written in Rust (pgrx) for a cryptographic audit log of data changes. Use it when implementing the corresponding security, audit, or access-control workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.

Core Workflow

CREATE EXTENSION pg_seal;

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Important Objects

  • pg_seal_append is an extension function.
  • pg_seal_hash is an extension function.
  • pg_seal_verify() is an extension function.
  • pg_seal_verify_detail() is an extension function.

Requirements and Caveats

  • The catalog records version 1.0.0.
  • The control file marks the extension as non-relocatable.
  • The control file requires a superuser for installation.
  • The control file marks the extension as not trusted.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader