hyperion_vault
hyperion_vault · Encrypted secrets vault for PostgreSQL with KMS envelope encryption and automatic rotation.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101257 | hyperion_vault | hyperion_vault | 0.3.0 | SEC | GPL-3.0 | Rust |
PostgreSQL · 18
Usage
Sources:
hyperion_vault is a PostgreSQL 18 secrets vault that keeps only ciphertext, a KMS-wrapped data-encryption key, and a nonce in PostgreSQL and WAL. The packaged 0.3.0 release is marked unstable upstream and combines a pgrx extension with a co-located REST API.
Enable the extension
The rotation supervisor is a background worker, so add hyperion_vault to the existing shared_preload_libraries list and restart PostgreSQL before creating the extension:
The extension creates the vault schema. For the API’s dedicated database login, grant the service role through the provided helper:
The extension GUCs include hyperion_vault.rotation_enabled, hyperion_vault.scan_interval_secs, and hyperion_vault.database. The REST service exposes create, read, update, delete, rotate, and verify operations under /v1/secrets.
Security boundary
Production mode requires AWS KMS. The local master-key mode is only for development and testing. Secret reads are controlled by the VAULT_ALLOWED_IPS IPv4/CIDR allowlist and fail closed when it is empty; management operations require bearer tokens. Review the upstream security and threat-model documentation, terminate the API with TLS, and use verified TLS for remote PostgreSQL connections before deploying this preview release.