Skip to content

pgpm-encrypted-secrets

SQL helpers over PGPM encoded secret storage

pgpm-encrypted-secrets · SQL helpers over PGPM encoded secret storage

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102143pgpm-encrypted-secretspgpm-encrypted-secrets0.47.0SECMITPLpgSQL

Usage

Sources:

pgpm-encrypted-secrets adds get, upsert, verify and delete operations over the separate secrets-table extension, with PGP encoding and crypt hashing modes.

Core Workflow

CREATE EXTENSION "pgpm-encrypted-secrets" CASCADE;
SELECT encrypted_secrets.secrets_getter('00000000-0000-0000-0000-000000000001'::uuid, 'demo', NULL);

Operational Boundaries

encrypted_secrets.secrets_upsert, encrypted_secrets.secrets_verify and encrypted_secrets.secrets_delete take an owner UUID and secret name. The PGP implementation derives its passphrase from the owner UUID stored with the row; it does not protect ciphertext from someone who can read that identifier. Enforce application authorization and SQL grants independently, and never log real secret arguments.

Version 0.47.0 is a SQL/PLpgSQL extension with no own shared library or preload. Install the matching dependency versions first: pgcrypto, plpgsql, pgpm-encrypted-secrets-table, pgpm-verify. Its SQL expects the platform roles authenticated to exist; use the upstream role bootstrap and review grants before installation. The control permits non-superuser installation but is not marked trusted; dependency, schema and role-grant privileges still apply. No current PostgreSQL-major matrix is declared.

Table reader