Skip to content

Commit

Permalink
fix: Make sure that Postgres readonly roles can read new tables
Browse files Browse the repository at this point in the history
  • Loading branch information
blarghmatey committed Mar 7, 2023
1 parent b107448 commit c954517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ol_infrastructure/lib/vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
GRANT SELECT ON ALL SEQUENCES IN SCHEMA public TO "{{name}}";
SET ROLE "{{name}}";
ALTER DEFAULT PRIVILEGES FOR USER "{{name}}" IN SCHEMA public GRANT SELECT
ON TABLES TO "{{name}}";
ON ALL TABLES TO "{{name}}";
ALTER DEFAULT PRIVILEGES FOR USER "{{name}}" IN SCHEMA public GRANT SELECT
ON SEQUENCES TO "{{name}}";
ON ALL SEQUENCES TO "{{name}}";
RESET ROLE;"""
),
"revoke": Template(
Expand Down

0 comments on commit c954517

Please sign in to comment.