-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
150ecb2
commit 1e68f8d
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |