diff --git a/src/ol_infrastructure/lib/vault.py b/src/ol_infrastructure/lib/vault.py index d390b429c..1a5da157a 100644 --- a/src/ol_infrastructure/lib/vault.py +++ b/src/ol_infrastructure/lib/vault.py @@ -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 ALL TABLES TO "{{name}}"; + ON TABLES TO "{{name}}"; ALTER DEFAULT PRIVILEGES FOR USER "{{name}}" IN SCHEMA public GRANT SELECT - ON ALL SEQUENCES TO "{{name}}"; + ON SEQUENCES TO "{{name}}"; RESET ROLE;""" ), "revoke": Template(