Skip to content

Commit 4fa9d38

Browse files
committed
Revoke some permissions from Hasura user for test purposes.
1 parent 0f0fcf4 commit 4fa9d38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azuredbmock/00-initialize.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ GRANT SELECT ON ALL TABLES IN SCHEMA information_schema TO xxx_db_hasura_usernam
3030
GRANT SELECT ON ALL TABLES IN SCHEMA pg_catalog TO xxx_db_hasura_username_xxx;
3131

3232
-- grant all privileges on all tables in the public schema to the hasura user
33-
GRANT ALL ON SCHEMA public TO xxx_db_hasura_username_xxx;
33+
GRANT USAGE ON SCHEMA public TO xxx_db_hasura_username_xxx;
3434
GRANT ALL ON ALL TABLES IN SCHEMA public TO xxx_db_hasura_username_xxx;
3535
GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO xxx_db_hasura_username_xxx;
3636
GRANT ALL ON ALL FUNCTIONS IN SCHEMA public TO xxx_db_hasura_username_xxx;
@@ -89,7 +89,7 @@ GRANT SELECT ON ALL TABLES IN SCHEMA information_schema TO xxx_db_hasura_usernam
8989
GRANT SELECT ON ALL TABLES IN SCHEMA pg_catalog TO xxx_db_hasura_username_xxx;
9090

9191
-- grant all privileges on all tables in the public schema to the hasura user
92-
GRANT ALL ON SCHEMA public TO xxx_db_hasura_username_xxx;
92+
GRANT USAGE ON SCHEMA public TO xxx_db_hasura_username_xxx;
9393
GRANT ALL ON ALL TABLES IN SCHEMA public TO xxx_db_hasura_username_xxx;
9494
GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO xxx_db_hasura_username_xxx;
9595
GRANT ALL ON ALL FUNCTIONS IN SCHEMA public TO xxx_db_hasura_username_xxx;

0 commit comments

Comments
 (0)