From e0ea1867bc84a59c36710ae078682a0d77bf9574 Mon Sep 17 00:00:00 2001 From: Etienne Stalmans Date: Fri, 4 Oct 2024 15:49:29 +0200 Subject: [PATCH] chore: move config parameter from database to role The `app.settings.jwt_secret` and `app.settings.jwt_exp` were set at the database level. Realisticly these only need to be available to the postgres role. --- docker/volumes/db/jwt.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/volumes/db/jwt.sql b/docker/volumes/db/jwt.sql index cfd3b16028f..14983d578ba 100644 --- a/docker/volumes/db/jwt.sql +++ b/docker/volumes/db/jwt.sql @@ -1,5 +1,5 @@ \set jwt_secret `echo "$JWT_SECRET"` \set jwt_exp `echo "$JWT_EXP"` -ALTER DATABASE postgres SET "app.settings.jwt_secret" TO :'jwt_secret'; -ALTER DATABASE postgres SET "app.settings.jwt_exp" TO :'jwt_exp'; +ALTER ROLE postgres IN DATABASE postgres SET "app.settings.jwt_secret" TO :'jwt_secret'; +ALTER ROLE postgres IN DATABASE postgres SET "app.settings.jwt_exp" TO :'jwt_exp';