Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ansible/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ postgres_major:

# Full version strings for each major version
postgres_release:
postgresorioledb-17: "17.0.1.097-orioledb"
postgres17: "17.4.1.47"
postgres15: "15.8.1.104"
postgresorioledb-17: "17.0.1.098-orioledb"
postgres17: "17.4.1.048"
postgres15: "15.8.1.105"

# Non Postgres Extensions
pgbouncer_release: "1.19.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- migrate:up
-- TODO: remove this migration once STORAGE-211 is completed
-- DRI: bobbie
grant all on storage.buckets, storage.objects to postgres with grant option;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest an ALTER DEFAULT PRIVILEGES instead, to not worry about future objects created on the storage schema:

alter default privileges for user supabase_storage_admin in schema storage grant all
    on tables to postgres with grant option;

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want all Storage tables to have these grants, only these ones.


-- migrate:down
28 changes: 14 additions & 14 deletions nix/tests/expected/storage.out
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ order by
storage | buckets | authenticated | TRIGGER | f
storage | buckets | authenticated | TRUNCATE | f
storage | buckets | authenticated | UPDATE | f
storage | buckets | postgres | DELETE | f
storage | buckets | postgres | INSERT | f
storage | buckets | postgres | REFERENCES | f
storage | buckets | postgres | SELECT | f
storage | buckets | postgres | TRIGGER | f
storage | buckets | postgres | TRUNCATE | f
storage | buckets | postgres | UPDATE | f
storage | buckets | postgres | DELETE | t
storage | buckets | postgres | INSERT | t
storage | buckets | postgres | REFERENCES | t
storage | buckets | postgres | SELECT | t
storage | buckets | postgres | TRIGGER | t
storage | buckets | postgres | TRUNCATE | t
storage | buckets | postgres | UPDATE | t
storage | buckets | service_role | DELETE | f
storage | buckets | service_role | INSERT | f
storage | buckets | service_role | REFERENCES | f
Expand Down Expand Up @@ -123,13 +123,13 @@ order by
storage | objects | authenticated | TRIGGER | f
storage | objects | authenticated | TRUNCATE | f
storage | objects | authenticated | UPDATE | f
storage | objects | postgres | DELETE | f
storage | objects | postgres | INSERT | f
storage | objects | postgres | REFERENCES | f
storage | objects | postgres | SELECT | f
storage | objects | postgres | TRIGGER | f
storage | objects | postgres | TRUNCATE | f
storage | objects | postgres | UPDATE | f
storage | objects | postgres | DELETE | t
storage | objects | postgres | INSERT | t
storage | objects | postgres | REFERENCES | t
storage | objects | postgres | SELECT | t
storage | objects | postgres | TRIGGER | t
storage | objects | postgres | TRUNCATE | t
storage | objects | postgres | UPDATE | t
storage | objects | service_role | DELETE | f
storage | objects | service_role | INSERT | f
storage | objects | service_role | REFERENCES | f
Expand Down
Loading