Skip to content

Commit 5cf6583

Browse files
Update proxy user permissions and search path
1 parent 5f50188 commit 5cf6583

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
GRANT SELECT ON ALL SEQUENCES IN SCHEMA wfprev TO proxy_wf1_prev_rest;
2+
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA wfprev TO proxy_wf1_prev_rest;
3+
ALTER DEFAULT PRIVILEGES IN SCHEMA wfprev GRANT SELECT, INSERT, UPDATE, DELETE ON tables TO proxy_wf1_prev_rest;
4+
ALTER DEFAULT PRIVILEGES IN SCHEMA wfprev GRANT SELECT ON SEQUENCES TO proxy_wf1_prev_rest;
5+
ALTER ROLE proxy_wf1_prev_rest SET search_path TO wfprev;

db/wfprev-changelog.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,22 @@
9191
}
9292
]
9393
}
94+
},
95+
{
96+
"changeSet": {
97+
"id": "01_00_13_02",
98+
"author": "hsaldyga",
99+
"tagDatabase": { "tag" : "version_01_00_13_02" },
100+
"changes": [
101+
{
102+
"sqlFile": {
103+
"dbms": "postgresql",
104+
"endDelimiter": ";",
105+
"path": "scripts/01_00_13/02/grants/proxy.grants.search_path.sql"
106+
}
107+
}
108+
]
109+
}
94110
}
95111
]
96112
}

0 commit comments

Comments
 (0)