mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
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.
This commit is contained in:
1 file changed
+2
-2
@@ -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';
|
||||
Reference in new issue
Block a user