Skip to content

Commit

Permalink
add postgrest redme
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfandevops committed Jun 21, 2024
1 parent 150ecb2 commit 1e68f8d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions openshift/templates/postgrest/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
== Postgrest research on test env
create role web_anon nologin;
# GRANT CONNECT ON DATABASE cthub TO web_anon;
GRANT USAGE ON SCHEMA public TO web_anon;
GRANT SELECT ON public.vehicle TO web_anon;
# ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO web_anon;
create role authenticator noinherit login password 'xxxxx';
GRANT web_anon to authenticator;

select * from information_schema.role_table_grants where grantee='web_anon';

openssl rand -hex 64

0 comments on commit 1e68f8d

Please sign in to comment.