From 83245ab86d597753c48c99d20d459593057817c5 Mon Sep 17 00:00:00 2001 From: Laurence Isla Date: Thu, 5 Nov 2026 22:41:47 -0500 Subject: [PATCH] feat: bump admin-api to 0.124.2 to add GHCRTS optimizations to PostgREST --- ansible/files/postgrest-optimizations.service.j2 | 2 +- ansible/files/postgrest.service.j2 | 1 + ansible/tasks/setup-postgrest.yml | 1 + ansible/vars.yml | 6 +++--- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ansible/files/postgrest-optimizations.service.j2 b/ansible/files/postgrest-optimizations.service.j2 index 38604b67a8..e481785e6b 100644 --- a/ansible/files/postgrest-optimizations.service.j2 +++ b/ansible/files/postgrest-optimizations.service.j2 @@ -4,7 +4,7 @@ Description=Postgrest optimizations [Service] Type=oneshot # we don't want failures from this command to cause PG startup to fail -ExecStart=/bin/bash -c "/opt/supabase-admin-api optimize postgrest --destination-config-file-path /etc/postgrest/generated.conf ; exit 0" +ExecStart=/bin/bash -c "/opt/supabase-admin-api optimize postgrest --destination-config-file-path /etc/postgrest/generated.conf --destination-env-file-path /etc/postgrest/generated.env; exit 0" User=postgrest [Install] diff --git a/ansible/files/postgrest.service.j2 b/ansible/files/postgrest.service.j2 index 61102cb429..b47ab8e944 100644 --- a/ansible/files/postgrest.service.j2 +++ b/ansible/files/postgrest.service.j2 @@ -8,6 +8,7 @@ StartLimitBurst=0 [Service] Type=simple +EnvironmentFile=-/etc/postgrest/generated.env # We allow the base config (sent from the worker) to override the generated config ExecStartPre=/etc/postgrest/merge.sh /etc/postgrest/generated.conf /etc/postgrest/base.conf ExecStart=/opt/postgrest /etc/postgrest/merged.conf diff --git a/ansible/tasks/setup-postgrest.yml b/ansible/tasks/setup-postgrest.yml index 26d8c3e740..05ca41b3e3 100644 --- a/ansible/tasks/setup-postgrest.yml +++ b/ansible/tasks/setup-postgrest.yml @@ -98,6 +98,7 @@ loop: - base.conf - generated.conf + - generated.env loop_control: loop_var: 'empty_item' diff --git a/ansible/vars.yml b/ansible/vars.yml index 4cc0032724..125e95f380 100644 --- a/ansible/vars.yml +++ b/ansible/vars.yml @@ -21,14 +21,14 @@ supabase_admin_agent_splay: 30s # Checksums can be verified or updated by running: # # nix run .#update-ansible-artifacts # ############################################################################################################### -adminapi_release: 0.124.0 +adminapi_release: 0.124.2 adminapi_artifacts: amd64: url: "https://supabase-public-artifacts-bucket.s3.amazonaws.com/supabase-admin-api/v{{ adminapi_release }}/supabase-admin-api_{{ adminapi_release }}_linux_amd64.tar.gz" - checksum: sha256:b63212ad15acc99c5f8cab0f80da1229ace14a8391252be7ffc53ce877da2976 + checksum: sha256:5d2f1caa69425345acc6b4781f492742e95cc348acee567a5a786fdb9a42f328 arm64: url: "https://supabase-public-artifacts-bucket.s3.amazonaws.com/supabase-admin-api/v{{ adminapi_release }}/supabase-admin-api_{{ adminapi_release }}_linux_arm64.tar.gz" - checksum: sha256:5e9d0e2585968dc10e573e7b72252c38004994640906c9c2e6929c17af8cf923 + checksum: sha256:c8762f6f12af6dd407157f410412f1894c2aabb3194881d64c224d9f193a2ed1 adminmgr_release: 0.49.1 adminmgr_artifacts: amd64: