pg_dregg
dregg · Experimental object-capability authorization functions for row-level security.
Overview
PostgreSQL · 18
Usage
Sources:
pg_dregg 0.1.0 is an experimental PostgreSQL adapter for object-capability authorization and row-level security.
Core Workflow
A DBA provisions the issuer trust key; applications present an issued capability token through dregg.token. RLS predicates call dregg_admits for an operation and row identifier. dregg_cap_explain exposes denial reasoning and dregg_revoke supports credential revocation. Enable and, when needed, force RLS on the protected tables.
Operational Boundaries
The documented live adapter targets PostgreSQL 18 and requires superuser installation. Missing or malformed trust configuration denies authorization. Token issuance and attenuation happen outside this minimal SQL example; do not substitute illustrative keys or tokens in production. Optional proof attestation fails closed when its verifier is absent. Upstream formal-verification claims are not an independent security audit of an installation.