pgsodium (pending deprecation): Encryption Features
A guide from Supabase
Apps on Plentiful run on Supabase's open-source database, sign-in, file storage and live updates, so most of this guide applies. The differences: your app reaches its database through its own server — not Supabase's data API (supabase.from(…)) — there are no Edge Functions (your app's server does that work), and scheduled work uses Jobs. Where it says "Supabase dashboard", use your app's Dashboard. Ask the builder when in doubt.
Supabase DOES NOT RECOMMEND any new usage of pgsodium.
The pgsodium extension is expected to go through a deprecation cycle in the near future. We will reach out to owners of impacted projects to assist with migrations away from pgsodium once the deprecation process begins.
The Vault extension won’t be impacted. Its internal implementation will shift away from pgsodium, but the interface and API will remain unchanged.
pgsodium is a Postgres extension which provides SQL access to libsodium's high-level cryptographic algorithms.
Supabase previously documented two features derived from pgsodium. Namely Server Key Management and Transparent Column Encryption. At this time, we do not recommend using either on the Supabase platform due to their high level of operational complexity and misconfiguration risk.
Note that Plentiful has not been audited for SOC 2 or HIPAA. If a compliance framework requires your data to be encrypted at rest, ask us before relying on Plentiful for it — see security.
Get the root encryption key for your Supabase project#
Encryption requires keys. Keeping the keys in the same database as the encrypted data would be unsafe. For more information about managing the pgsodium root encryption key on your Supabase project see encryption key location. This key is required to decrypt values stored in Supabase Vault and data encrypted with Transparent Column Encryption.
Resources#
- Supabase Vault
- Read more about Supabase Vault in the blog post
- Supabase Vault on GitHub
Resources#
- Official
pgsodiumdocumentation