From 22de6d3dadc41505576077f8c7ad62dabe7a383a Mon Sep 17 00:00:00 2001 From: "Christian R. Garcia" Date: Tue, 29 Aug 2023 15:23:51 -0700 Subject: [PATCH] Add PGREST_USER role creation at startup --- pgrest/utils.py | 4 ++++ requirements.txt | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pgrest/utils.py b/pgrest/utils.py index 41ee8c9..058e789 100644 --- a/pgrest/utils.py +++ b/pgrest/utils.py @@ -209,6 +209,10 @@ def create_roles(tenants=[]): roleTenant=tn, description='Role granting read access to all tables in the PgREST API.', _tapis_set_x_headers_from_service=True) + t.sk.createRole(roleName='PGREST_USER', + roleTenant=tn, + description='Role granting read access to all /view/ endpoints in the PgREST API.', + _tapis_set_x_headers_from_service=True) t.sk.createRole(roleName='PGREST_WRITE', roleTenant=tn, description='Role granting write access to all tables in the PgREST API.', diff --git a/requirements.txt b/requirements.txt index bc9db38..17d7f7b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,8 +6,8 @@ psycopg2==2.8.6 cerberus postgres docker -tapipy==1.2.20 -tapisservice==1.2.6 +tapipy==1.4.1 +tapisservice==1.4.0 uWSGI ipython jedi==0.17.2 # was required to get past issues with ipython in the manage.py shell; see: \ No newline at end of file