diff --git a/apps/www/_blog/2025-05-08-event-triggers-wo-superuser.mdx b/apps/www/_blog/2025-05-08-event-triggers-wo-superuser.mdx index 63e2bf3823d..54c976df382 100644 --- a/apps/www/_blog/2025-05-08-event-triggers-wo-superuser.mdx +++ b/apps/www/_blog/2025-05-08-event-triggers-wo-superuser.mdx @@ -4,8 +4,8 @@ description: Using Postgres Hooks to allow regular users to create event trigger author: steve_chavez author_url: https://github.com/steve-chavez author_image_url: https://github.com/steve-chavez.png -image: 2025-05-08-event-triggers-wo-superuser/cover-event-triggers.png -thumb: 2025-05-08-event-triggers-wo-superuser/cover-event-triggers.png +image: 2025-05-08-event-triggers-wo-superuser/cover-event-triggers-dark.png +thumb: 2025-05-08-event-triggers-wo-superuser/cover-event-triggers-dark.png categories: - postgres tags: @@ -24,7 +24,14 @@ In this blog post, we’ll explain how we do this in the `supautils` extension, ## Privileged Role -![utility hook](/images/blog/2025-05-08-event-triggers-wo-superuser/utility-hook.png) +Utility Hook The core of `supautils` is the “privileged role”, which is a role that serves as proxy to superuser. It provides a safe subset of superuser capabilities and it’s accessible to regular users. @@ -61,7 +68,14 @@ And once a superuser trips on the event trigger, it will fire with its privilege ## Skipping Event Triggers -![fmgr hook](/images/blog/2025-05-08-event-triggers-wo-superuser/fmgr-hook.png) +FMGR Hook A solution would be skipping user Event Triggers for superusers. diff --git a/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/cover-event-triggers-dark.png b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/cover-event-triggers-dark.png new file mode 100644 index 00000000000..4380846473d Binary files /dev/null and b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/cover-event-triggers-dark.png differ diff --git a/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/cover-event-triggers-light.png b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/cover-event-triggers-light.png new file mode 100644 index 00000000000..c990cf5f175 Binary files /dev/null and b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/cover-event-triggers-light.png differ diff --git a/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/cover-event-triggers.png b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/cover-event-triggers.png deleted file mode 100644 index 0c1b0916883..00000000000 Binary files a/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/cover-event-triggers.png and /dev/null differ diff --git a/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/fmgr-hook-dark.png b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/fmgr-hook-dark.png new file mode 100644 index 00000000000..198752cfa8d Binary files /dev/null and b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/fmgr-hook-dark.png differ diff --git a/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/fmgr-hook-light.png b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/fmgr-hook-light.png new file mode 100644 index 00000000000..c7aef0e80bf Binary files /dev/null and b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/fmgr-hook-light.png differ diff --git a/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/fmgr-hook.png b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/fmgr-hook.png deleted file mode 100644 index b862e3718a2..00000000000 Binary files a/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/fmgr-hook.png and /dev/null differ diff --git a/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/utility-hook-dark.png b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/utility-hook-dark.png new file mode 100644 index 00000000000..da0ebd8faa4 Binary files /dev/null and b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/utility-hook-dark.png differ diff --git a/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/utility-hook-light.png b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/utility-hook-light.png new file mode 100644 index 00000000000..405aa34561c Binary files /dev/null and b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/utility-hook-light.png differ diff --git a/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/utility-hook.png b/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/utility-hook.png deleted file mode 100644 index 9b90a72440e..00000000000 Binary files a/apps/www/public/images/blog/2025-05-08-event-triggers-wo-superuser/utility-hook.png and /dev/null differ diff --git a/apps/www/public/planetpg-steve_chavez-rss.xml b/apps/www/public/planetpg-steve_chavez-rss.xml index 0cf42092594..ed086a19ba2 100644 --- a/apps/www/public/planetpg-steve_chavez-rss.xml +++ b/apps/www/public/planetpg-steve_chavez-rss.xml @@ -5,9 +5,9 @@ https://supabase.com/blog Latest Postgres news from Steve Chavez at Supabase en - Fri, 16 Dec 2022 00:00:00 -0700 + Thu, 08 May 2025 00:00:00 -0700 - + https://supabase.com/blog/event-triggers-wo-superuser PostgreSQL Event Triggers without superuser access https://supabase.com/blog/event-triggers-wo-superuser diff --git a/apps/www/public/rss.xml b/apps/www/public/rss.xml index ff71e142a6f..a90e31bf251 100644 --- a/apps/www/public/rss.xml +++ b/apps/www/public/rss.xml @@ -5,11 +5,18 @@ https://supabase.com Latest news from Supabase en - Fri, 04 Apr 2025 00:00:00 -0700 + Mon, 26 May 2025 00:00:00 -0700 + + https://supabase.com/blog/open-data-standards-postgres-otel-iceberg + Open Data Standards: Postgres, OTel, and Iceberg + https://supabase.com/blog/open-data-standards-postgres-otel-iceberg + Replace custom CRUD endpoints, reduce infrastructure complexity, and accelerate product delivery. + Mon, 26 May 2025 00:00:00 -0700 + https://supabase.com/blog/simplify-backend-with-data-api - Simplify back-end complexity with Supabase Data APIs + Simplifying back-end complexity with Supabase Data APIs https://supabase.com/blog/simplify-backend-with-data-api Replace custom CRUD endpoints, reduce infrastructure complexity, and accelerate product delivery. Sat, 17 May 2025 00:00:00 -0700