Ash FrameworkAF
Ash Framework3y ago
2 replies
laznic

Using pgsodium with Ash

Wondering if there would be an Ash way to do column encryption with pgsodium? Currently I have just done them directly in the migrations files with execute("SECURITY LABEL FOR pgsodium ON COLUMN table.column IS 'ENCRYPT WITH KEY COLUMN key_id NONCE nonce ASSOCIATED association_id'") for each column I want to get encrypted.

Would custom_statements in the Ash resource be the place to do this?
Was this page helpful?