Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add security invoker label for encrypt column

Joshen Lim15e08017836e
diff --git a/studio/stores/project/VaultStore.ts b/studio/stores/project/VaultStore.ts
index a803ff64dbc..03aa9f72ab3 100644
--- a/studio/stores/project/VaultStore.ts
+++ b/studio/stores/project/VaultStore.ts
@@ -133,7 +133,7 @@ export default class VaultStore implements IVaultStore {
}
async encryptColumn(column: PostgresColumn, keyId: string) {
- const query = `security label for pgsodium on column "${column.table}"."${column.name}" is 'ENCRYPT WITH KEY ID ${keyId}';`
+ const query = `security label for pgsodium on column "${column.table}"."${column.name}" is 'ENCRYPT WITH KEY ID ${keyId} SECURITY INVOKER';`
return await this.rootStore.meta.query(query)
}