Skip to content

omni_credentials

Application credential management

omnigres · Application credential management

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
2945omni_credentialsomnigres0.2.0FEATApache-2.0C
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
----d--NoNoNoYesnono

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTPIGSTY0.2.019 18 17 16 15omnigrespgcrypto, omni_os
RPMPIGSTY2026021219 18 17 16 15omnigres_$vpostgresql$v-contrib, postgresql$v-plpython3, python3-pip
DEBPIGSTY2026021219 18 17 16 15postgresql-$v-omnigrespostgresql-plpython3-$v, python3-pip
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el8.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el9.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el9.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el10.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el10.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
d12.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
d12.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
d13.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
d13.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u22.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u22.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u24.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u24.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u26.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u26.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212

Source

docs.omnigres.org/omni_credentials/credentials/

pig build pkg omnigres;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install omnigres;		# install by package name
pig install omni_credentials;		# install by extension name

pig install omni_credentials -v 18;   # install for PG 18
pig install omni_credentials -v 17;   # install for PG 17
pig install omni_credentials -v 16;   # install for PG 16
pig install omni_credentials -v 15;   # install for PG 15

Create this extension with:

CREATE EXTENSION omni_credentials CASCADE; -- requires pgcrypto, omni_os

Usage

omni_credentials: Application credential management

The omni_credentials extension provides secure, encrypted credential storage with access control. It is a templated extension.

Setup

SELECT omni_credentials.instantiate(
    schema  => 'omni_credentials',
    env_var => 'OMNI_CREDENTIALS_MASTER_PASSWORD'
);

Credentials View

The primary interface is the credentials view:

ColumnTypePurpose
nametextCredential identifier
valuebyteaEncrypted credential data
kindcredential_kindType: api_key, api_secret, password, etc.
principalregrolePostgreSQL role owning the credential
scopejsonbResource constraints ({"all": true} for universal)

Query and update the view directly; changes propagate automatically. Row-Level Security ensures only roles with grants on the principal can access credentials.

File Store (Development)

SELECT omni_credentials.instantiate_file_store(filename, schema);
-- Reload credentials from file:
SELECT credential_file_store_reload(filename);

Imports existing file records into the encrypted store and exports missing credentials from the table to the file. Auto-updates the file on credential changes.

Table reader