diff --git a/migrations/create_benchrunner.sql b/migrations/create_benchrunner.sql index 3e028036..77d32450 100644 --- a/migrations/create_benchrunner.sql +++ b/migrations/create_benchrunner.sql @@ -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; diff --git a/migrations/permissions.sql b/migrations/permissions.sql index 3c7da09c..72fc2832 100644 --- a/migrations/permissions.sql +++ b/migrations/permissions.sql @@ -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;