supabase_vault
Supabase Vault Extension
pg_vault : Supabase Vault Extension
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 7050 | supabase_vault | pg_vault | 0.3.1 |
SEC | Apache-2.0 | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-- | No | Yes | No | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | vault |
| Requires | pgsodium |
| See Also | column_encrypt pg_tde pg_enigma pgsodium pgcryptokey anon pgcrypto pgsmcrypto |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.3.1 |
18 17 16 15 14 | pg_vault |
pgsodium |
| RPM | PIGSTY | 0.3.1 |
18 17 16 15 14 | vault_$v |
- |
| DEB | PIGSTY | 0.3.1 |
18 17 16 15 14 | postgresql-$v-vault |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| el8.aarch64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| el9.x86_64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| el9.aarch64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| el10.x86_64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| el10.aarch64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| d12.x86_64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| d12.aarch64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| d13.x86_64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| d13.aarch64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| u22.x86_64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| u22.aarch64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| u24.x86_64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| u24.aarch64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| u26.x86_64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
| u26.aarch64 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 | PIGSTY 0.3.1 |
Source
github.com/supabase/vault
vault-0.3.1.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Supabase Vault provides a vault.secrets table to store sensitive information (API keys, tokens, etc.) encrypted at rest. Decryption happens on the fly through the vault.decrypted_secrets view.
Storing Secrets
Reading Secrets
The vault.secrets table stores data encrypted. Use the vault.decrypted_secrets view to read decrypted values:
Updating Secrets
Security Note
Turn off statement logging to prevent secrets from appearing in logs: