Skip to content

Commit

Permalink
add ro role
Browse files Browse the repository at this point in the history
  • Loading branch information
grooviegermanikus committed Mar 20, 2024
1 parent 636dbfc commit f883317
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions migrations/create_benchrunner.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ CREATE TABLE benchrunner.bench_runs (

GRANT USAGE ON SCHEMA benchrunner TO r_benchrunner;
GRANT SELECT, INSERT, UPDATE ON ALL TABLES IN SCHEMA benchrunner TO r_benchrunner;
GRANT USAGE ON SCHEMA benchrunner TO ro_benchrunner;
GRANT SELECT ON ALL TABLES IN SCHEMA benchrunner TO ro_benchrunner;
4 changes: 4 additions & 0 deletions migrations/permissions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ GRANT CONNECT ON DATABASE literpc_integrationtest TO ro_literpc; -- TODO adjust

-- required for benchrunner-service
CREATE ROLE r_benchrunner;
CREATE ROLE ro_benchrunner;
GRANT ro_benchrunner TO r_benchrunner;

GRANT r_benchrunner TO literpc_app;
GRANT ro_benchrunner TO literpc_app;

0 comments on commit f883317

Please sign in to comment.