Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: 🐛 update acls
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed Nov 27, 2023
1 parent 116442a commit 63a2e35
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions libs/db/sql/access_control.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,32 @@ SELECT

CREATE ROLE api_staging_user LOGIN;

GRANT USAGE ON SCHEMA public TO api_staging_user;

GRANT USAGE,
SELECT
ON ALL SEQUENCES IN SCHEMA dev TO api_staging_user;

GRANT INSERT ON dev."CalendarTerm" TO api_staging_user;

CREATE ROLE api_prod_user LOGIN;

GRANT USAGE ON SCHEMA public TO api_prod_user;

GRANT USAGE,
SELECT
ON ALL SEQUENCES IN SCHEMA public TO api_prod_user;

GRANT INSERT ON public."CalendarTerm" TO api_prod_user;

CREATE ROLE api_websoc_scraper LOGIN;

GRANT USAGE ON SCHEMA public TO api_websoc_scraper;

GRANT USAGE,
SELECT
ON ALL SEQUENCES IN SCHEMA public TO api_websoc_scraper;

GRANT
SELECT
,
Expand Down

0 comments on commit 63a2e35

Please sign in to comment.