Skip to content

Commit 0271bfe

Browse files
authored
fix: allow postgres to grant storage privs to other roles (#1666)
* fix: allow postgres to grant storage privs to other roles Temporary fix until STORAGE-211 is completed * chore: bump AMI versions * chore: bump AMI versions
1 parent 58024c1 commit 0271bfe

File tree

3 files changed

+23
-17
lines changed

3 files changed

+23
-17
lines changed

ansible/vars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ postgres_major:
99

1010
# Full version strings for each major version
1111
postgres_release:
12-
postgresorioledb-17: "17.0.1.097-orioledb"
13-
postgres17: "17.4.1.47"
14-
postgres15: "15.8.1.104"
12+
postgresorioledb-17: "17.0.1.098-orioledb"
13+
postgres17: "17.4.1.048"
14+
postgres15: "15.8.1.105"
1515

1616
# Non Postgres Extensions
1717
pgbouncer_release: "1.19.0"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- migrate:up
2+
-- TODO: remove this migration once STORAGE-211 is completed
3+
-- DRI: bobbie
4+
grant all on storage.buckets, storage.objects to postgres with grant option;
5+
6+
-- migrate:down

nix/tests/expected/storage.out

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ order by
8181
storage | buckets | authenticated | TRIGGER | f
8282
storage | buckets | authenticated | TRUNCATE | f
8383
storage | buckets | authenticated | UPDATE | f
84-
storage | buckets | postgres | DELETE | f
85-
storage | buckets | postgres | INSERT | f
86-
storage | buckets | postgres | REFERENCES | f
87-
storage | buckets | postgres | SELECT | f
88-
storage | buckets | postgres | TRIGGER | f
89-
storage | buckets | postgres | TRUNCATE | f
90-
storage | buckets | postgres | UPDATE | f
84+
storage | buckets | postgres | DELETE | t
85+
storage | buckets | postgres | INSERT | t
86+
storage | buckets | postgres | REFERENCES | t
87+
storage | buckets | postgres | SELECT | t
88+
storage | buckets | postgres | TRIGGER | t
89+
storage | buckets | postgres | TRUNCATE | t
90+
storage | buckets | postgres | UPDATE | t
9191
storage | buckets | service_role | DELETE | f
9292
storage | buckets | service_role | INSERT | f
9393
storage | buckets | service_role | REFERENCES | f
@@ -123,13 +123,13 @@ order by
123123
storage | objects | authenticated | TRIGGER | f
124124
storage | objects | authenticated | TRUNCATE | f
125125
storage | objects | authenticated | UPDATE | f
126-
storage | objects | postgres | DELETE | f
127-
storage | objects | postgres | INSERT | f
128-
storage | objects | postgres | REFERENCES | f
129-
storage | objects | postgres | SELECT | f
130-
storage | objects | postgres | TRIGGER | f
131-
storage | objects | postgres | TRUNCATE | f
132-
storage | objects | postgres | UPDATE | f
126+
storage | objects | postgres | DELETE | t
127+
storage | objects | postgres | INSERT | t
128+
storage | objects | postgres | REFERENCES | t
129+
storage | objects | postgres | SELECT | t
130+
storage | objects | postgres | TRIGGER | t
131+
storage | objects | postgres | TRUNCATE | t
132+
storage | objects | postgres | UPDATE | t
133133
storage | objects | service_role | DELETE | f
134134
storage | objects | service_role | INSERT | f
135135
storage | objects | service_role | REFERENCES | f

0 commit comments

Comments
 (0)