Skip to content

Commit 033e9d6

Browse files
committed
chore: remove insecure schema permissions from SQL schema file
Refactors schema setup by commenting out default privilege grants to improve security posture.
1 parent 9caf53f commit 033e9d6

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

pkgs/core/schemas/0020_schemas.sql

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,2 @@
11
-- Create schemas
22
create schema if not exists pgflow;
3-
4-
--------------------------------------------------------------------------
5-
------------------ TODO: fix me, UNSECURE --------------------------------
6-
--------------------------------------------------------------------------
7-
-- Commenting out permissions for Atlas diff
8-
-- grant usage on schema pgflow to anon, authenticated, service_role;
9-
-- grant all on all tables in schema pgflow to anon, authenticated, service_role;
10-
-- grant all on all routines in schema pgflow to anon, authenticated, service_role;
11-
-- grant all on all sequences in schema pgflow to anon, authenticated, service_role;
12-
-- alter default privileges for role postgres in schema pgflow
13-
-- grant all on tables to anon, authenticated, service_role;
14-
-- alter default privileges for role postgres in schema pgflow
15-
-- grant all on routines to anon, authenticated, service_role;
16-
-- alter default privileges for role postgres in schema pgflow
17-
-- grant all on sequences to anon, authenticated, service_role;

0 commit comments

Comments
 (0)