supa audit blog post

This commit is contained in:
Copple committed 2022-03-09 14:45:15 +01:00
1 parent d40a7c96d8
commit b829519d4b
3 files changed
+453 -85

No files matched your search

+360
View File
@@ -0,0 +1,360 @@
---
title: Postgres Auditing in 150 lines of SQL
description: PostgreSQL has a robust set of features which we can leverage to create a generic auditing solution in 150 lines of SQL.
author: oli_rice
author_url: https://github.com/olirice
author_image_url: https://github.com/olirice.png
authorURL: https://github.com/olirice
image: supa-audit/postgres_auditing_in_150_lines_of_SQL.png
thumb: supa-audit/postgres_auditing_in_150_lines_of_SQL.png
tags:
- postgres
date: '2022-03-08'
toc_depth: 3
---
Data auditing is a system that tracks changes to tables' contents over time.
PostgreSQL has a robust set of features which we can leverage to create a generic auditing solution in 150 lines of SQL.
Auditing is particularly useful for historical analysis. To demonstrate, imagine you have a `users` table that tracks when a user is online.
You might add a `status` column which can have one of two values: `online` and `offline`. How would you track how long a user is online for throughout an entire month?
An auditing system would track every change with timestamps, and so you can measure the difference between each timestamp and sum them up for the entire month.
The goals of our auditing solution are:
- low maintenance
- easy to use
- fast to query
To demonstrate what we're working towards, the following example shows what we'll have at the end of the blog post:
```sql
-- create a table
create table public.members(
id int primary key,
name text not null
);
-- Enable auditing on the new table
select audit.enable_tracking('public.members');
```
Produce some records to audit
```sql
-- create a new record
insert into public.members(id, name) values (1, 'foo');
-- edit the record
update public.members set name = 'bar' where id = 1;
-- delete the record
delete from public.members;
```
Review the audit log
```sql
select * from audit.record_history
```
```markdown
id | record_id | old_record_id | op | ts | table_oid | table_schema | table_name | record | old_record
----+--------------------------------------+--------------------------------------+--------+-------------------------------------+-----------+--------------+------------+--------------------------+--------------------------
2 | 1ecd5ff0-1b6b-5bc2-ad80-1cb19769c081 | | INSERT | Mon Feb 28 18:13:52.698511 2022 PST | 16452 | public | members | {"id": 1, "name": "foo"} |
3 | 1ecd5ff0-1b6b-5bc2-ad80-1cb19769c081 | 1ecd5ff0-1b6b-5bc2-ad80-1cb19769c081 | UPDATE | Mon Feb 28 18:13:52.698511 2022 PST | 16452 | public | members | {"id": 1, "name": "bar"} | {"id": 1, "name": "foo"}
4 | | 1ecd5ff0-1b6b-5bc2-ad80-1cb19769c081 | DELETE | Mon Feb 28 18:13:52.698511 2022 PST | 16452 | public | members | | {"id": 1, "name": "bar"}
(3 rows)
```
Notice that our `record_id` and `old_record_id` stayed constant as we updated the row so we can easily query for a single row's history over time!
## Lets get building
### Namespace
To quote a tenet from [the zen of python](https://www.python.org/dev/peps/pep-0020/):
> Namespaces are one honking great idea -- let's do more of those!
>
So first things first, we'll create a separate schema named `audit` to house our auditing entities.
```sql
create schema if not exists audit;
```
### Storage
Next, we need a table to track inserts, updates and deletes.
Classically, an audit table's schema mirrors the table being audited and appends some metadata columns like the commit's timestamp. That solution has a few maintenance challenges:
- enabling auditing on a table requires a database migration
- when the source table's schema changes, the audit table's schema must also change
So instead, we'll lean on PostgreSQL's schema-less [`JSONB` data type](https://www.postgresql.org/docs/current/datatype-json.html) to store each record's data in a single column.
That approach has the added benefit of allowing us to store multiple tables' audit history in a single audit table.
```sql
create table audit.record_version(
id bigserial primary key,
-- auditing metadata
record_id uuid, -- identifies a new record by it's table + primary key
old_record_id uuid, -- ^
op varchar(8) not null, -- INSERT/UPDATE/DELETE/TRUNCATE
ts timestamptz not null default now(),
-- table identifiers
table_oid oid not null, -- pg internal id for a table
table_schema name not null, -- audited table's schema name e.g. 'public'
table_name name not null, -- audited table's table name e.g. 'account'
-- record data
record jsonb, -- contents of the new record
old_record jsonb -- previous record contents (for UPDATE/DELETE)
);
```
<details>
<summary>Postgres version compatibility</summary>
<p>
The table above uses PostgreSQL's built-in <a href="https://www.postgresql.org/docs/14/functions-uuid.html">uuid functionality</a>, which is available from version 14.
For backwards compatibility you can use the uuid-ossp extension.
</p>
<p>
<code>create extension if not exists "uuid-ossp";</code>
</p>
</details>
### Query Patterns
An audit log doesn't do us much good if its too slow to query! There are 2 query patterns we think are table stakes (😉) for an audit system:
**Changes to a Table in a Time Range**
For time slices, we need an index on the `ts` column. Since the table is append-only and the `ts` column is populated by insertion date, our values for `ts` are naturally in ascending order.
PostgreSQL's builtin [BRIN index](https://www.postgresql.org/docs/current/brin-intro.html) can leverage that correlation between value and physical location to produce an index that, at scale, is many hundreds of times smaller than the default (BTREE index) with faster lookup times.
```sql
-- index ts for time range filtering
create index record_version_ts
on audit.record_version
using brin(ts);
```
For table filtering, we've included a `table_oid` column which tracks PostgreSQL's internal `integer` identifier. We can add an index to this column instead of the `table_schema` and `table_name` columns, minimizing the index size and offering better performance.
```sql
-- index table_oid for table filtering
create index record_version_table_oid
on audit.record_version
using btree(table_oid);
```
**Changes to a Record Over Time**
One of the downsides to storing each row's data as `jsonb` is that filtering based on a column's value becomes very inefficient. If we want to look up a row's history quickly, we need to extract and index a unique identifier for each row.
For the globally unique identifier, we'll use the following structure
```
[table_oid, primary_key_value_1, primary_key_value_2, ...]
```
and hash that array as a UUID v5 to get an efficiently indexable UUID type to identify the row that is robust to data changes.
We'll use one utility function to lookup a record's primary key column names:
```sql
create or replace function audit.primary_key_columns(entity_oid oid)
returns text[]
stable
security definer
language sql
as $$
-- Looks up the names of a table's primary key columns
select
coalesce(
array_agg(pa.attname::text order by pa.attnum),
array[]::text[]
) column_names
from
pg_index pi
join pg_attribute pa
on pi.indrelid = pa.attrelid
and pa.attnum = any(pi.indkey)
where
indrelid = $1
and indisprimary
$$;
```
and another to consume the `table_oid` and primary key, converting the result into the record's UUID.
```sql
create or replace function audit.to_record_id(
entity_oid oid,
pkey_cols text[],
rec jsonb
)
returns uuid
stable
language sql
as $$
select
case
when rec is null then null
-- if no primary key exists, use a random uuid
when pkey_cols = array[]::text[] then uuid_generate_v4()
else (
select
uuid_generate_v5(
'fd62bc3d-8d6e-43c2-919c-802ba3762271',
(
jsonb_build_array(to_jsonb($1))
|| jsonb_agg($3 ->> key_)
)::text
)
from
unnest($2) x(key_)
)
end
$$;
```
Finally, we index the `record_id` and `old_record_id` columns that contain these unique identifiers for fast querying.
```sql
-- index record_id for fast searching
create index record_version_record_id
on audit.record_version(record_id)
where record_id is not null;
-- index old_record_id for fast searching
create index record_version_old_record_id
on audit.record_version(record_id)
where old_record_id is not null;
```
### Enrollment
Okay, so we have a home for our audit data that we're confident it can be queried efficiently. Now how do we populate it?
We need the audit table to populate without end-users making any changes to their transactions. So we'll set up a [trigger](https://www.postgresql.org/docs/current/sql-createtrigger.html) to fire when the data changes. In this case, we'll fire the trigger once for every inserted/updated/deleted row.
```sql
create or replace function audit.insert_update_delete_trigger()
returns trigger
security definer
language plpgsql
as $$
declare
pkey_cols text[] = audit.primary_key_columns(TG_RELID);
record_jsonb jsonb = to_jsonb(new);
record_id uuid = audit.to_record_id(TG_RELID, pkey_cols, record_jsonb);
old_record_jsonb jsonb = to_jsonb(old);
old_record_id uuid = audit.to_record_id(TG_RELID, pkey_cols, old_record_jsonb);
begin
insert into audit.record_version(
record_id,
old_record_id,
op,
table_oid,
table_schema,
table_name,
record,
old_record
)
select
record_id,
old_record_id,
TG_OP,
TG_RELID,
TG_TABLE_SCHEMA,
TG_TABLE_NAME,
record_jsonb,
old_record_jsonb;
return coalesce(new, old);
end;
$$;
```
## Public API
Finally, we'll wrap up the trigger creation and removal process behind a clean, idempotent, user facing API.
The API we'll expose for enabling auditing on a table is
```sql
select audit.enable_tracking('<schema>.<table>'::regclass);
```
and for disabling tracking
```sql
select audit.disable_tracking('<schema>.<table>'::regclass);
```
Under the hood, those functions register our auditing trigger against the requested table.
```sql
create or replace function audit.enable_tracking(regclass)
returns void
volatile
security definer
language plpgsql
as $$
declare
statement_row text = format('
create trigger audit_i_u_d
before insert or update or delete
on %I
for each row
execute procedure audit.insert_update_delete_trigger();',
$1
);
pkey_cols text[] = audit.primary_key_columns($1);
begin
if pkey_cols = array[]::text[] then
raise exception 'Table % can not be audited because it has no primary key', $1;
end if;
if not exists(select 1 from pg_trigger where tgrelid = $1 and tgname = 'audit_i_u_d') then
execute statement_row;
end if;
end;
$$;
create or replace function audit.disable_tracking(regclass)
returns void
volatile
security definer
language plpgsql
as $$
declare
statement_row text = format(
'drop trigger if exists audit_i_u_d on %I;',
$1
);
begin
execute statement_row;
end;
$$;
```
And we're done with 2 lines of code to spare!
### Performance
Auditing tables always reduces throughput of inserts, updates, and deletes. In cases where throughput is less than 1000 writes per second the overhead is typically negligible. For tables with a higher write frequency, consider logging changes outside of SQL with a tool like [pgAudit](https://www.pgaudit.org/).
### Do I really expect you to copy/paste all that?
Nope, for a turnkey solution to auditing in PostgreSQL, we've packaged this script into an extension with some extra goodies like `TRUNCATE` support. Check it out at https://github.com/supabase/supa_audit.
Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

+93 -85
View File
@@ -5,15 +5,23 @@
<link>https://supabase.com</link>
<description>Latest news from Supabase</description>
<language>en</language>
<lastBuildDate>Tue, 22 Feb 2022 00:00:00 GMT</lastBuildDate>
<lastBuildDate>Mon, 07 Mar 2022 23:00:00 GMT</lastBuildDate>
<atom:link href="https://supabase.com/blog/rss.xml" rel="self" type="application/rss+xml"/>
<item>
<guid>https://supabase.com/blog/2022/03/08/audit</guid>
<title>Postgres Auditing in 150 lines of SQL</title>
<link>https://supabase.com/blog/2022/03/08/audit</link>
<description>PostgreSQL has a robust set of features which we can leverage to create a generic auditing solution in 150 lines of SQL.</description>
<pubDate>Mon, 07 Mar 2022 23:00:00 GMT</pubDate>
</item>
<item>
<guid>https://supabase.com/blog/2022/02/22/supabase-beta-january-2022</guid>
<title>Supabase Beta January 2021</title>
<title>Supabase Beta January 2022</title>
<link>https://supabase.com/blog/2022/02/22/supabase-beta-january-2022</link>
<description>New crypto extension, Postgres videos, and a bunch of cool integrations.</description>
<pubDate>Tue, 22 Feb 2022 00:00:00 GMT</pubDate>
<description>New auth providers, SMS providers, and new videos.</description>
<pubDate>Mon, 21 Feb 2022 23:00:00 GMT</pubDate>
</item>
<item>
@@ -21,7 +29,7 @@
<title>Supabase Beta December 2021</title>
<link>https://supabase.com/blog/2022/01/20/supabase-beta-december-2021</link>
<description>New crypto extension, Postgres videos, and a bunch of cool integrations.</description>
<pubDate>Thu, 20 Jan 2022 00:00:00 GMT</pubDate>
<pubDate>Wed, 19 Jan 2022 23:00:00 GMT</pubDate>
</item>
<item>
@@ -29,7 +37,7 @@
<title>Golden Kitty Awards Ceremony Watch Party with Supabase</title>
<link>https://supabase.com/blog/2022/01/20/product-hunt-golden-kitty-awards-2021</link>
<description>Hang out with us while watching the Product Hunt Golden Kitty Awards Ceremony</description>
<pubDate>Thu, 20 Jan 2022 00:00:00 GMT</pubDate>
<pubDate>Wed, 19 Jan 2022 23:00:00 GMT</pubDate>
</item>
<item>
@@ -37,7 +45,7 @@
<title>Holiday Hackdays Winners 2021</title>
<link>https://supabase.com/blog/2021/12/17/holiday-hackdays-winners-2021</link>
<description>Celebrating many amazing projects submitted to our Holiday Hackdays Hackathon.</description>
<pubDate>Fri, 17 Dec 2021 00:00:00 GMT</pubDate>
<pubDate>Thu, 16 Dec 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -45,7 +53,7 @@
<title>Supabase Beta November 2021: Launch Week Recap</title>
<link>https://supabase.com/blog/2021/12/15/beta-november-2021-launch-week-recap</link>
<description>We wrapped up November with Supabase's third Launch Week. Here's all the awesome stuff that got shipped ...</description>
<pubDate>Wed, 15 Dec 2021 00:00:00 GMT</pubDate>
<pubDate>Tue, 14 Dec 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -53,7 +61,7 @@
<title>Kicking off the Holiday Hackdays</title>
<link>https://supabase.com/blog/2021/12/03/supabase-holiday-hackdays-hackathon</link>
<description>Build cool stuff and celebrate open-source software with us during the Holiday Hackdays!</description>
<pubDate>Fri, 03 Dec 2021 00:00:00 GMT</pubDate>
<pubDate>Thu, 02 Dec 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -61,7 +69,7 @@
<title>pg_graphql: A GraphQL extension for PostgreSQL</title>
<link>https://supabase.com/blog/2021/12/03/pg-graphql</link>
<description>GraphQL support is in development for PostgreSQL + Supabase.</description>
<pubDate>Fri, 03 Dec 2021 00:00:00 GMT</pubDate>
<pubDate>Thu, 02 Dec 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -69,7 +77,7 @@
<title>Five more things</title>
<link>https://supabase.com/blog/2021/12/03/launch-week-three-friday-five-more-things</link>
<description>It's never just one more thing!</description>
<pubDate>Fri, 03 Dec 2021 00:00:00 GMT</pubDate>
<pubDate>Thu, 02 Dec 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -77,7 +85,7 @@
<title>Supabase acquires Logflare</title>
<link>https://supabase.com/blog/2021/12/02/supabase-acquires-logflare</link>
<description>Today, we're ecstatic to announce that Logflare is joining Supabase.</description>
<pubDate>Thu, 02 Dec 2021 00:00:00 GMT</pubDate>
<pubDate>Wed, 01 Dec 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -85,7 +93,7 @@
<title>Realtime Postgres RLS now available on Supabase</title>
<link>https://supabase.com/blog/2021/12/01/realtime-row-level-security-in-postgresql</link>
<description>Realtime database changes are now broadcast to authenticated users, respecting the same PostgreSQL policies that you use for Row Level Security.</description>
<pubDate>Wed, 01 Dec 2021 00:00:00 GMT</pubDate>
<pubDate>Tue, 30 Nov 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -93,7 +101,7 @@
<title>Supabase Studio</title>
<link>https://supabase.com/blog/2021/11/30/supabase-studio</link>
<description>The same Dashboard that you're using on our Platform is now available for local development and Self-Hosting.</description>
<pubDate>Tue, 30 Nov 2021 00:00:00 GMT</pubDate>
<pubDate>Mon, 29 Nov 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -101,7 +109,7 @@
<title>Community Day</title>
<link>https://supabase.com/blog/2021/11/29/community-day</link>
<description>Kicking off launch week by highlighting the communities around Supabase.</description>
<pubDate>Mon, 29 Nov 2021 00:00:00 GMT</pubDate>
<pubDate>Sun, 28 Nov 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -109,7 +117,7 @@
<title>New in PostgreSQL 14: What every developer should know</title>
<link>https://supabase.com/blog/2021/11/28/whats-new-in-postgres-14</link>
<description>A quick look at some new features and functionality in PostgreSQL 14.</description>
<pubDate>Sun, 28 Nov 2021 00:00:00 GMT</pubDate>
<pubDate>Sat, 27 Nov 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -117,7 +125,7 @@
<title>PostgREST 9</title>
<link>https://supabase.com/blog/2021/11/28/postgrest-9</link>
<description>New features and updates in PostgREST version 9.</description>
<pubDate>Sat, 27 Nov 2021 00:00:00 GMT</pubDate>
<pubDate>Fri, 26 Nov 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -125,7 +133,7 @@
<title>Supabase Launch Week III: Holiday Special</title>
<link>https://supabase.com/blog/2021/11/26/supabase-launch-week-the-trilogy</link>
<description>Tis the season to be shipping.</description>
<pubDate>Fri, 26 Nov 2021 00:00:00 GMT</pubDate>
<pubDate>Thu, 25 Nov 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -133,7 +141,7 @@
<title>How we launch at Supabase</title>
<link>https://supabase.com/blog/2021/11/26/supabase-how-we-launch</link>
<description>The history and methodology of Supabase Launch Week.</description>
<pubDate>Fri, 26 Nov 2021 00:00:00 GMT</pubDate>
<pubDate>Thu, 25 Nov 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -141,7 +149,7 @@
<title>Supabase Beta October 2021</title>
<link>https://supabase.com/blog/2021/11/05/supabase-beta-october-2021</link>
<description>Three new Auth providers, multi-schema support, and we're gearing up for another Launch Week.</description>
<pubDate>Sun, 07 Nov 2021 00:00:00 GMT</pubDate>
<pubDate>Sat, 06 Nov 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -149,7 +157,7 @@
<title>Supabase $30m Series A</title>
<link>https://supabase.com/blog/2021/10/28/supabase-series-a</link>
<description>Supabase just raised $30M, bringing our total funding to $36M.</description>
<pubDate>Wed, 27 Oct 2021 23:00:00 GMT</pubDate>
<pubDate>Wed, 27 Oct 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -157,7 +165,7 @@
<title>Replenysh uses Supabase to implement OTP in less than 24-hours</title>
<link>https://supabase.com/blog/2021/10/19/replenysh-time-to-value-in-less-than-24-hours</link>
<description>Learn how Replenysh uses Supabase to power the circular economy, redefining how brands interact with their customers and products.</description>
<pubDate>Mon, 18 Oct 2021 23:00:00 GMT</pubDate>
<pubDate>Mon, 18 Oct 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -165,7 +173,7 @@
<title>Hacktoberfest Hackathon Winners 2021</title>
<link>https://supabase.com/blog/2021/10/14/hacktoberfest-hackathon-winners-2021</link>
<description>Celebrating many amazing projects submitted to our Hacktoberfest Hackathon.</description>
<pubDate>Wed, 13 Oct 2021 23:00:00 GMT</pubDate>
<pubDate>Wed, 13 Oct 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -173,7 +181,7 @@
<title>Supabase Beta Sept 2021</title>
<link>https://supabase.com/blog/2021/10/04/supabase-beta-sept-2021</link>
<description>Hackathon, Aborting request, UI updates, and now Hiring.</description>
<pubDate>Sun, 03 Oct 2021 23:00:00 GMT</pubDate>
<pubDate>Sun, 03 Oct 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -181,7 +189,7 @@
<title>Supabase Hacktoberfest Hackathon 2021</title>
<link>https://supabase.com/blog/2021/09/28/supabase-hacktoberfest-hackathon-2021</link>
<description>We're running another Supabase Hackathon during Hacktoberfest!</description>
<pubDate>Mon, 27 Sep 2021 23:00:00 GMT</pubDate>
<pubDate>Mon, 27 Sep 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -189,7 +197,7 @@
<title>Supabase Beta August 2021</title>
<link>https://supabase.com/blog/2021/09/10/supabase-beta-august-2021</link>
<description>Fundraising, Realtime Security, custom SMS templates, and deployments in South Korea.</description>
<pubDate>Thu, 09 Sep 2021 23:00:00 GMT</pubDate>
<pubDate>Thu, 09 Sep 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -197,7 +205,7 @@
<title>Supabase Beta July 2021</title>
<link>https://supabase.com/blog/2021/08/12/supabase-beta-july-2021</link>
<description>Discord Logins, Vercel Integration, Full text search, and OAuth guides.</description>
<pubDate>Wed, 11 Aug 2021 23:00:00 GMT</pubDate>
<pubDate>Wed, 11 Aug 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -205,7 +213,7 @@
<title>Open Source Hackathon Winners</title>
<link>https://supabase.com/blog/2021/08/09/hackathon-winners</link>
<description>Let the medal ceremony begin for the best projects submitted during the Supabase Hackathon.</description>
<pubDate>Sun, 08 Aug 2021 23:00:00 GMT</pubDate>
<pubDate>Sun, 08 Aug 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -213,7 +221,7 @@
<title>Supabase Swag Store</title>
<link>https://supabase.com/blog/2021/07/30/supabase-swag-store</link>
<description>Today we are officially launching the Supabase Swag Store.</description>
<pubDate>Thu, 29 Jul 2021 23:00:00 GMT</pubDate>
<pubDate>Thu, 29 Jul 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -221,7 +229,7 @@
<title>Updates for Supabase Functions</title>
<link>https://supabase.com/blog/2021/07/30/supabase-functions-updates</link>
<description>The question on everyone's mind - are we launching Supabase Functions? Well, it's complicated.</description>
<pubDate>Thu, 29 Jul 2021 23:00:00 GMT</pubDate>
<pubDate>Thu, 29 Jul 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -229,7 +237,7 @@
<title>The Supabase Hackathon</title>
<link>https://supabase.com/blog/2021/07/30/1-the-supabase-hackathon</link>
<description>A whole week of Hacking for Fun and Prizes.</description>
<pubDate>Thu, 29 Jul 2021 23:00:00 GMT</pubDate>
<pubDate>Thu, 29 Jul 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -237,7 +245,7 @@
<title>Supabase Reports and Metrics</title>
<link>https://supabase.com/blog/2021/07/29/supabase-reports-and-metrics</link>
<description>We're exposing a full set of metrics in your projects, so that you can build better (and faster) products for your users.</description>
<pubDate>Wed, 28 Jul 2021 23:00:00 GMT</pubDate>
<pubDate>Wed, 28 Jul 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -245,7 +253,7 @@
<title>Supabase Auth v2: Phone Auth now available</title>
<link>https://supabase.com/blog/2021/07/28/supabase-auth-passwordless-sms-login</link>
<description>Phone Auth is available today on all new and existing Supabase projects.</description>
<pubDate>Tue, 27 Jul 2021 23:00:00 GMT</pubDate>
<pubDate>Tue, 27 Jul 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -253,7 +261,7 @@
<title>Mobbin uses Supabase to authenticate 200,000 users</title>
<link>https://supabase.com/blog/2021/07/28/mobbin-supabase-200000-users</link>
<description>Learn how Mobbin migrated 200,000 users from Firebase for a better authentication experience.</description>
<pubDate>Tue, 27 Jul 2021 23:00:00 GMT</pubDate>
<pubDate>Tue, 27 Jul 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -261,7 +269,7 @@
<title>Supabase Storage now in Beta</title>
<link>https://supabase.com/blog/2021/07/27/storage-beta</link>
<description>Supabase Storage moves into Beta.</description>
<pubDate>Mon, 26 Jul 2021 23:00:00 GMT</pubDate>
<pubDate>Mon, 26 Jul 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -269,7 +277,7 @@
<title>Spot: a video sharing app built with Flutter</title>
<link>https://supabase.com/blog/2021/07/27/spot-flutter-with-postgres</link>
<description>Spot is a geolocation-based video-sharing app with some social networking features.</description>
<pubDate>Mon, 26 Jul 2021 23:00:00 GMT</pubDate>
<pubDate>Mon, 26 Jul 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -277,7 +285,7 @@
<title>Supabase is now on Postgres 13.3</title>
<link>https://supabase.com/blog/2021/07/26/supabase-postgres-13</link>
<description>From today, new Supabase projects will be on a version of Supabase Postgres that runs on Postgres 13.3.</description>
<pubDate>Sun, 25 Jul 2021 23:00:00 GMT</pubDate>
<pubDate>Sun, 25 Jul 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -285,7 +293,7 @@
<title>Supabase Community Day</title>
<link>https://supabase.com/blog/2021/07/26/supabase-community-day</link>
<description>Community Day</description>
<pubDate>Sun, 25 Jul 2021 23:00:00 GMT</pubDate>
<pubDate>Sun, 25 Jul 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -293,7 +301,7 @@
<title>Epsilon3 Self-Host Supabase To Revolutionize Space Operations </title>
<link>https://supabase.com/blog/2021/07/26/epsilon3-self-hosting</link>
<description>Learn how the team at Epsilon3 use Supabase to help teams execute secure and reliable operations in an industry that project spend runs into the billions.</description>
<pubDate>Sun, 25 Jul 2021 23:00:00 GMT</pubDate>
<pubDate>Sun, 25 Jul 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -301,7 +309,7 @@
<title>Supabase Launch Week II: The SQL</title>
<link>https://supabase.com/blog/2021/07/22/supabase-launch-week-sql</link>
<description>Five days of Supabase. Again.</description>
<pubDate>Wed, 21 Jul 2021 23:00:00 GMT</pubDate>
<pubDate>Wed, 21 Jul 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -309,7 +317,7 @@
<title>Protecting reserved roles with PostgreSQL Hooks</title>
<link>https://supabase.com/blog/2021/07/01/roles-postgres-hooks</link>
<description>Using Postgres Hooks to protect functionality in your Postgres database.</description>
<pubDate>Thu, 01 Jul 2021 23:00:00 GMT</pubDate>
<pubDate>Thu, 01 Jul 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -317,7 +325,7 @@
<title>Supabase Beta June 2021</title>
<link>https://supabase.com/blog/2021/07/02/supabase-beta-june-2021</link>
<description>Discord Logins, Vercel Integration, Full text search, and OAuth guides.</description>
<pubDate>Tue, 01 Jun 2021 23:00:00 GMT</pubDate>
<pubDate>Tue, 01 Jun 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -325,7 +333,7 @@
<title>Supabase Beta May 2021</title>
<link>https://supabase.com/blog/2021/06/02/supabase-beta-may-2021</link>
<description>Apple &amp; Twitter Logins, Supabase Grid, Go &amp; Swift Libraries.</description>
<pubDate>Tue, 01 Jun 2021 23:00:00 GMT</pubDate>
<pubDate>Tue, 01 Jun 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -333,7 +341,7 @@
<title>Supabase Beta April 2021</title>
<link>https://supabase.com/blog/2021/05/03/supabase-beta-april-2021</link>
<description>Supabase "gardening" - stability, security, and community support.</description>
<pubDate>Tue, 04 May 2021 23:00:00 GMT</pubDate>
<pubDate>Tue, 04 May 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -341,7 +349,7 @@
<title>Supabase Beta March 2021</title>
<link>https://supabase.com/blog/2021/04/06/supabase-beta-march-2021</link>
<description>Launch week, Storage, Supabase CLI, Connection Pooling, Supabase UI, and Pricing.</description>
<pubDate>Mon, 05 Apr 2021 23:00:00 GMT</pubDate>
<pubDate>Mon, 05 Apr 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -349,7 +357,7 @@
<title>Workflows are coming to Supabase</title>
<link>https://supabase.com/blog/2021/04/02/supabase-workflows</link>
<description>Functions are great, but you know what's better?</description>
<pubDate>Thu, 01 Apr 2021 23:00:00 GMT</pubDate>
<pubDate>Thu, 01 Apr 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -357,7 +365,7 @@
<title>PgBouncer is now available in Supabase</title>
<link>https://supabase.com/blog/2021/04/02/supabase-pgbouncer</link>
<description>Better support for Serverless and Postgres.</description>
<pubDate>Thu, 01 Apr 2021 23:00:00 GMT</pubDate>
<pubDate>Thu, 01 Apr 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -365,7 +373,7 @@
<title>Supabase Dot Com</title>
<link>https://supabase.com/blog/2021/04/02/supabase-dot-com</link>
<description>The Supabase Domain name is changing.</description>
<pubDate>Thu, 01 Apr 2021 23:00:00 GMT</pubDate>
<pubDate>Thu, 01 Apr 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -373,7 +381,7 @@
<title>Supabase Launches NFT Marketplace</title>
<link>https://supabase.com/blog/2021/04/01/supabase-nft-marketplace</link>
<description>A fully encrypted NFT platform to protect and transact your digital assets</description>
<pubDate>Wed, 31 Mar 2021 23:00:00 GMT</pubDate>
<pubDate>Wed, 31 Mar 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -381,7 +389,7 @@
<title>Supabase CLI</title>
<link>https://supabase.com/blog/2021/03/31/supabase-cli</link>
<description>Local development, database migrations, and self-hosting.</description>
<pubDate>Tue, 30 Mar 2021 23:00:00 GMT</pubDate>
<pubDate>Tue, 30 Mar 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -389,7 +397,7 @@
<title>Storage is now available in Supabase</title>
<link>https://supabase.com/blog/2021/03/30/supabase-storage</link>
<description>Launching Supabase Storage and how you can use it in your apps</description>
<pubDate>Mon, 29 Mar 2021 23:00:00 GMT</pubDate>
<pubDate>Mon, 29 Mar 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -397,7 +405,7 @@
<title>Supabase Beta Pricing</title>
<link>https://supabase.com/blog/2021/03/29/pricing</link>
<description>Supabase launches Beta pricing structure</description>
<pubDate>Sun, 28 Mar 2021 23:00:00 GMT</pubDate>
<pubDate>Sun, 28 Mar 2021 22:00:00 GMT</pubDate>
</item>
<item>
@@ -405,7 +413,7 @@
<title>Launch week</title>
<link>https://supabase.com/blog/2021/03/25/launch-week</link>
<description>Five days of Supabase.</description>
<pubDate>Thu, 25 Mar 2021 00:00:00 GMT</pubDate>
<pubDate>Wed, 24 Mar 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -413,7 +421,7 @@
<title>Angels of Supabase</title>
<link>https://supabase.com/blog/2021/03/25/angels-of-supabase</link>
<description>Meet the investors of Supabase.</description>
<pubDate>Thu, 25 Mar 2021 00:00:00 GMT</pubDate>
<pubDate>Wed, 24 Mar 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -421,7 +429,7 @@
<title>Developers stay up to date with intheloop.dev</title>
<link>https://supabase.com/blog/2021/03/22/In-The-Loop</link>
<description>Learn why Kevin is building intheloop.dev with Supabase</description>
<pubDate>Mon, 22 Mar 2021 00:00:00 GMT</pubDate>
<pubDate>Sun, 21 Mar 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -429,7 +437,7 @@
<title>Using Supabase in Replit</title>
<link>https://supabase.com/blog/2021/03/11/using-supabase-replit</link>
<description>Free hosted relational database from within your node.js repl</description>
<pubDate>Thu, 11 Mar 2021 00:00:00 GMT</pubDate>
<pubDate>Wed, 10 Mar 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -437,7 +445,7 @@
<title>Toad, a link shortener with simple APIs for low-coders</title>
<link>https://supabase.com/blog/2021/03/08/toad-a-link-shortener-with-simple-apis-for-low-coders</link>
<description>An easy-to-use link shortening tool with simple APIs</description>
<pubDate>Mon, 08 Mar 2021 00:00:00 GMT</pubDate>
<pubDate>Sun, 07 Mar 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -445,7 +453,7 @@
<title>Postgres as a CRON Server</title>
<link>https://supabase.com/blog/2021/03/05/postgres-as-a-cron-server</link>
<description>Running repetitive tasks with your Postgres database.</description>
<pubDate>Fri, 05 Mar 2021 00:00:00 GMT</pubDate>
<pubDate>Thu, 04 Mar 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -453,7 +461,7 @@
<title>Supabase Beta February 2021</title>
<link>https://supabase.com/blog/2021/03/02/supabase-beta-february-2021</link>
<description>One year of building.</description>
<pubDate>Tue, 02 Mar 2021 00:00:00 GMT</pubDate>
<pubDate>Mon, 01 Mar 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -461,7 +469,7 @@
<title>Cracking PostgreSQL Interview Questions</title>
<link>https://supabase.com/blog/2021/02/27/cracking-postgres-interview</link>
<description>Understand the top PostgreSQL Interview Questions</description>
<pubDate>Sat, 27 Feb 2021 00:00:00 GMT</pubDate>
<pubDate>Fri, 26 Feb 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -469,7 +477,7 @@
<title>Roboflow.com choose Supabase to power Paint.wtf leaderboard</title>
<link>https://supabase.com/blog/2021/02/09/case-study-roboflow</link>
<description>Learn how Roboflow.com used Supabase to build their Paint.wtf leaderboard</description>
<pubDate>Tue, 09 Feb 2021 00:00:00 GMT</pubDate>
<pubDate>Mon, 08 Feb 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -477,7 +485,7 @@
<title>Supabase Beta January 2021</title>
<link>https://supabase.com/blog/2021/02/02/supabase-beta-january-2021</link>
<description>Eleven months of building.</description>
<pubDate>Tue, 02 Feb 2021 00:00:00 GMT</pubDate>
<pubDate>Mon, 01 Feb 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -485,7 +493,7 @@
<title>Supabase Beta December 2020</title>
<link>https://supabase.com/blog/2021/01/02/supabase-beta-december-2020</link>
<description>Ten months of building.</description>
<pubDate>Sat, 02 Jan 2021 00:00:00 GMT</pubDate>
<pubDate>Fri, 01 Jan 2021 23:00:00 GMT</pubDate>
</item>
<item>
@@ -493,7 +501,7 @@
<title>Making the Supabase Dashboard Supa-fast</title>
<link>https://supabase.com/blog/2020/12/13/supabase-dashboard-performance</link>
<description>Improving the performance of the Supabase dashboard</description>
<pubDate>Sun, 13 Dec 2020 00:00:00 GMT</pubDate>
<pubDate>Sat, 12 Dec 2020 23:00:00 GMT</pubDate>
</item>
<item>
@@ -501,7 +509,7 @@
<title>Supabase Partners With Strive School To Help Teach Open Source</title>
<link>https://supabase.com/blog/2020/12/02/supabase-striveschool</link>
<description>Supabase Partners With Strive School To Help Teach Open Source To The Next Generation Of Developers</description>
<pubDate>Wed, 02 Dec 2020 00:00:00 GMT</pubDate>
<pubDate>Tue, 01 Dec 2020 23:00:00 GMT</pubDate>
</item>
<item>
@@ -509,7 +517,7 @@
<title>Xendit Built a Counter-Fraud Watchlist for the Fintech Industry</title>
<link>https://supabase.com/blog/2020/12/02/case-study-xendit</link>
<description>See how Xendit use Supabase to build a full-text search engine.</description>
<pubDate>Wed, 02 Dec 2020 00:00:00 GMT</pubDate>
<pubDate>Tue, 01 Dec 2020 23:00:00 GMT</pubDate>
</item>
<item>
@@ -517,7 +525,7 @@
<title>TAYFA Built a No-Code Website Builder in Seven Days</title>
<link>https://supabase.com/blog/2020/12/02/case-study-tayfa</link>
<description>See how Tayfa went from idea to paying customer in less than 30 days.</description>
<pubDate>Wed, 02 Dec 2020 00:00:00 GMT</pubDate>
<pubDate>Tue, 01 Dec 2020 23:00:00 GMT</pubDate>
</item>
<item>
@@ -525,7 +533,7 @@
<title>Monitoro Built a Web Crawler Handling Millions of API Requests</title>
<link>https://supabase.com/blog/2020/12/02/case-study-monitoro</link>
<description>See how Monitoro built an automated scraping platform using Supabase.</description>
<pubDate>Wed, 02 Dec 2020 00:00:00 GMT</pubDate>
<pubDate>Tue, 01 Dec 2020 23:00:00 GMT</pubDate>
</item>
<item>
@@ -533,7 +541,7 @@
<title>Supabase Alpha November 2020</title>
<link>https://supabase.com/blog/2020/12/01/supabase-alpha-november-2020</link>
<description>Nine months of building.</description>
<pubDate>Tue, 01 Dec 2020 00:00:00 GMT</pubDate>
<pubDate>Mon, 30 Nov 2020 23:00:00 GMT</pubDate>
</item>
<item>
@@ -541,7 +549,7 @@
<title>Postgres Views</title>
<link>https://supabase.com/blog/2020/11/18/postgresql-views</link>
<description>Creating and using a view in PostgreSQL.</description>
<pubDate>Wed, 18 Nov 2020 00:00:00 GMT</pubDate>
<pubDate>Tue, 17 Nov 2020 23:00:00 GMT</pubDate>
</item>
<item>
@@ -549,7 +557,7 @@
<title>Supabase Alpha October 2020</title>
<link>https://supabase.com/blog/2020/11/02/supabase-alpha-october-2020</link>
<description>Eight months of building.</description>
<pubDate>Mon, 02 Nov 2020 00:00:00 GMT</pubDate>
<pubDate>Sun, 01 Nov 2020 23:00:00 GMT</pubDate>
</item>
<item>
@@ -557,7 +565,7 @@
<title>Supabase.js 1.0</title>
<link>https://supabase.com/blog/2020/10/30/improved-dx</link>
<description>We're releasing a new version of our Supabase client with some awesome new improvements.</description>
<pubDate>Fri, 30 Oct 2020 00:00:00 GMT</pubDate>
<pubDate>Thu, 29 Oct 2020 23:00:00 GMT</pubDate>
</item>
<item>
@@ -565,7 +573,7 @@
<title>Supabase Alpha September 2020</title>
<link>https://supabase.com/blog/2020/10/03/supabase-alpha-september-2020</link>
<description>Seven months of building.</description>
<pubDate>Fri, 02 Oct 2020 23:00:00 GMT</pubDate>
<pubDate>Fri, 02 Oct 2020 22:00:00 GMT</pubDate>
</item>
<item>
@@ -573,7 +581,7 @@
<title>Supabase Hacktoberfest 2020</title>
<link>https://supabase.com/blog/2020/09/11/supabase-hacktoberfest-2020</link>
<description>Join us for a celebration of open source software and learn how to contribute to Supabase.</description>
<pubDate>Thu, 10 Sep 2020 23:00:00 GMT</pubDate>
<pubDate>Thu, 10 Sep 2020 22:00:00 GMT</pubDate>
</item>
<item>
@@ -581,7 +589,7 @@
<title>Supabase Alpha August 2020</title>
<link>https://supabase.com/blog/2020/09/03/supabase-alpha-august-2020</link>
<description>Six months of building</description>
<pubDate>Wed, 02 Sep 2020 23:00:00 GMT</pubDate>
<pubDate>Wed, 02 Sep 2020 22:00:00 GMT</pubDate>
</item>
<item>
@@ -589,7 +597,7 @@
<title>Supabase Auth</title>
<link>https://supabase.com/blog/2020/08/05/supabase-auth</link>
<description>Authenticate and authorize your users with Supabase Auth</description>
<pubDate>Tue, 04 Aug 2020 23:00:00 GMT</pubDate>
<pubDate>Tue, 04 Aug 2020 22:00:00 GMT</pubDate>
</item>
<item>
@@ -597,7 +605,7 @@
<title>Supabase Alpha July 2020</title>
<link>https://supabase.com/blog/2020/08/02/supabase-alpha-july-2020</link>
<description>Five months of building</description>
<pubDate>Sat, 01 Aug 2020 23:00:00 GMT</pubDate>
<pubDate>Sat, 01 Aug 2020 22:00:00 GMT</pubDate>
</item>
<item>
@@ -605,7 +613,7 @@
<title>Continuous PostgreSQL Backups using WAL-G</title>
<link>https://supabase.com/blog/2020/08/02/continuous-postgresql-backup-walg</link>
<description>Have you ever wanted to restore your database's state to a particular moment in time? This post explains how, using WAL-G.</description>
<pubDate>Sat, 01 Aug 2020 23:00:00 GMT</pubDate>
<pubDate>Sat, 01 Aug 2020 22:00:00 GMT</pubDate>
</item>
<item>
@@ -613,7 +621,7 @@
<title>Alpha Launch Postmortem</title>
<link>https://supabase.com/blog/2020/07/10/alpha-launch-postmortem</link>
<description>Everything that went wrong with Supabase's launch</description>
<pubDate>Thu, 09 Jul 2020 23:00:00 GMT</pubDate>
<pubDate>Thu, 09 Jul 2020 22:00:00 GMT</pubDate>
</item>
<item>
@@ -621,7 +629,7 @@
<title>What are PostgreSQL Templates?</title>
<link>https://supabase.com/blog/2020/07/09/postgresql-templates</link>
<description>What are PostgreSQL templates and what are they used for?</description>
<pubDate>Wed, 08 Jul 2020 23:00:00 GMT</pubDate>
<pubDate>Wed, 08 Jul 2020 22:00:00 GMT</pubDate>
</item>
<item>
@@ -629,7 +637,7 @@
<title>Physical vs Logical Backups in PostgreSQL</title>
<link>https://supabase.com/blog/2020/07/17/postgresql-physical-logical-backups</link>
<description>What are physical and logical backups in Postgres?</description>
<pubDate>Mon, 06 Jul 2020 23:00:00 GMT</pubDate>
<pubDate>Mon, 06 Jul 2020 22:00:00 GMT</pubDate>
</item>
<item>
@@ -637,7 +645,7 @@
<title>Supabase Alpha June 2020</title>
<link>https://supabase.com/blog/2020/07/01/supabase-alpha-june-2020</link>
<description>Four months of building</description>
<pubDate>Tue, 30 Jun 2020 23:00:00 GMT</pubDate>
<pubDate>Tue, 30 Jun 2020 22:00:00 GMT</pubDate>
</item>
<item>
@@ -645,7 +653,7 @@
<title>Steve Chavez has joined Supabase</title>
<link>https://supabase.com/blog/2020/06/15/supabase-steve-chavez</link>
<description>Steve joins Supabase to help build Auth.</description>
<pubDate>Sun, 14 Jun 2020 23:00:00 GMT</pubDate>
<pubDate>Sun, 14 Jun 2020 22:00:00 GMT</pubDate>
</item>
<item>
@@ -653,7 +661,7 @@
<title>Supabase Alpha May 2020</title>
<link>https://supabase.com/blog/2020/06/01/supabase-alpha-may-2020</link>
<description>Three months of building</description>
<pubDate>Sun, 31 May 2020 23:00:00 GMT</pubDate>
<pubDate>Sun, 31 May 2020 22:00:00 GMT</pubDate>
</item>
<item>
@@ -661,7 +669,7 @@
<title>Supabase Alpha April 2020</title>
<link>https://supabase.com/blog/2020/05/01/supabase-alpha-april-2020</link>
<description>Two months of building</description>
<pubDate>Sun, 31 May 2020 23:00:00 GMT</pubDate>
<pubDate>Sun, 31 May 2020 22:00:00 GMT</pubDate>
</item>
</channel>