From f883317e1727a7ae02b74a88ec65fdc0a28912dc Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Wed, 20 Mar 2024 13:18:05 +0100 Subject: [PATCH] add ro role --- migrations/create_benchrunner.sql | 2 ++ migrations/permissions.sql | 4 ++++ 2 files changed, 6 insertions(+) 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;