Skip to content

Commit

Permalink
fix: Add needed priviliges to postgres sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
AcquaDiGiorgio committed Sep 24, 2024
1 parent 86a56db commit f89126e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions diracx/templates/diracx/diracx-postgresql-init-dbs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ data:
ON TABLES
TO "{{ $.Values.postgresql.auth.username }}";

ALTER DEFAULT PRIVILEGES
FOR USER postgres
IN SCHEMA public
GRANT USAGE
ON SEQUENCES
TO "{{ $.Values.postgresql.auth.username }}";

GRANT CONNECT, TEMPORARY
ON DATABASE "{{ $dbName }}"
TO "{{ $.Values.postgresql.auth.username }}";
Expand Down

0 comments on commit f89126e

Please sign in to comment.