Skip to content

Commit

Permalink
Revoke select permissions from reporter on receiving.consensus_genome…
Browse files Browse the repository at this point in the history
… and receiving.sequence_read_set
  • Loading branch information
davereinhart committed Aug 21, 2023
1 parent fdaa5da commit 05bb235
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Deploy seattleflu/schema:roles/reporter/revoke-select-on-receiving-consensus-genome to pg

begin;

revoke select on receiving.consensus_genome from reporter;

commit;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Deploy seattleflu/schema:roles/reporter/revoke-select-on-receiving-sequence-read-set to pg

begin;

revoke select on receiving.sequence_read_set from reporter;

commit;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Revert seattleflu/schema:roles/reporter/revoke-select-on-receiving-consensus-genome from pg

begin;

grant select on receiving.consensus_genome to reporter;

commit;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Revert seattleflu/schema:roles/reporter/revoke-select-on-receiving-sequence-read-set from pg

begin;

grant select on receiving.sequence_read_set to reporter;

commit;
4 changes: 4 additions & 0 deletions schema/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,7 @@ warehouse/sequence-read-set/access-role-rls 2023-07-27T21:32:39Z Dave Reinhart <
@2023-07-27 2023-07-27T21:44:39Z Dave Reinhart <[email protected]> # Schema as of 27 July 2023
shipping/views [shipping/views@2023-07-27] 2023-07-27T22:31:51Z Dave Reinhart <[email protected]> # Add security invoker to shipping views for row-level security
@2023-07-28 2023-07-27T22:41:52Z Dave Reinhart <[email protected]> # Schema as of 28 July 2023

roles/reporter/revoke-select-on-receiving-consensus-genome 2023-08-18T23:41:26Z Dave Reinhart <[email protected]> # Revoke select permissions on receiving.consensus_genome from reporter.
roles/reporter/revoke-select-on-receiving-sequence-read-set 2023-08-21T17:02:31Z Dave Reinhart <[email protected]> # Revoke select permissions on receiving.sequence_read_set from reporter.
@2023-08-21 2023-08-21T17:58:25Z Dave Reinhart <[email protected]> # Schema as of 21 August 2023
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Verify seattleflu/schema:roles/reporter/revoke-select-on-receiving-consensus-genome on pg

begin;

select 1/(not pg_catalog.has_table_privilege('reporter', 'receiving.consensus_genome', 'select'))::int;

rollback;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Verify seattleflu/schema:roles/reporter/revoke-select-on-receiving-sequence-read-set on pg

begin;

select 1/(not pg_catalog.has_table_privilege('reporter', 'receiving.sequence_read_set', 'select'))::int;

rollback;

0 comments on commit 05bb235

Please sign in to comment.