Skip to content

Commit

Permalink
fix: db install roles default env to false (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenos authored Jan 25, 2024
1 parent 5e8caec commit 46e7ff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
GLOBAL_S3_ENDPOINT: http://127.0.0.1:9000
GLOBAL_S3_PROTOCOL: http
GLOBAL_S3_FORCE_PATH_STYLE: true
DB_INSTALL_ROLES: true

- name: Upload coverage results to Coveralls
uses: coverallsapp/github-action@master
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export function getConfig(options?: { reload?: boolean }): StorageConfigType {
dbAnonRole: getOptionalConfigFromEnv('DB_ANON_ROLE') || 'anon',
dbServiceRole: getOptionalConfigFromEnv('DB_SERVICE_ROLE') || 'service_role',
dbAuthenticatedRole: getOptionalConfigFromEnv('DB_AUTHENTICATED_ROLE') || 'authenticated',
dbInstallRoles: !(getOptionalConfigFromEnv('DB_INSTALL_ROLES') === 'false'),
dbInstallRoles: getOptionalConfigFromEnv('DB_INSTALL_ROLES') === 'true',
dbRefreshMigrationHashesOnMismatch: !(
getOptionalConfigFromEnv('DB_ALLOW_MIGRATION_REFRESH') === 'false'
),
Expand Down

0 comments on commit 46e7ff6

Please sign in to comment.