-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: expose bullboard with auth (#561)
## Problem There's no easy to inspect jobs in the queue right now for deployed environments (e.g. prod, staging, uat) ## Solution Expose bull board that only allows admin user access. New env var: you can override admin user with ADMIN_USER_EMAIL env var locally 2 new env var statically set: ADMIN_USER_EMAIL: [email protected] ENABLE_BULLMQ_DASHBOARD: true
- Loading branch information
1 parent
15cd30e
commit 90a1db2
Showing
12 changed files
with
65 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,14 @@ | |
{ | ||
"name": "POSTMAN_FROM_ADDRESS", | ||
"value": "[email protected]" | ||
}, | ||
{ | ||
"name": "ADMIN_USER_EMAIL", | ||
"value": "[email protected]" | ||
}, | ||
{ | ||
"name": "ENABLE_BULLMQ_DASHBOARD", | ||
"value": "true" | ||
} | ||
], | ||
"secrets": [ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,7 @@ REDIS_USERNAME= | |
REDIS_PASSWORD= | ||
REDIS_CLUSTER_MODE=false | ||
ENABLE_BULLMQ_DASHBOARD=false | ||
BULLMQ_DASHBOARD_USERNAME= | ||
BULLMQ_DASHBOARD_PASSWORD= | ||
[email protected] | ||
POSTMAN_API_KEY=api_key | ||
FORMSG_API_KEY=sample-formsg-api-key | ||
M365_GOVTECH_STAGING_TENANT_ID=... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import { chunk } from 'lodash' | ||
|
||
import appConfig from '@/config/app' | ||
import { DEFAULT_JOB_OPTIONS } from '@/helpers/default-job-configuration' | ||
import logger from '@/helpers/logger' | ||
import Execution from '@/models/execution' | ||
|
@@ -52,7 +53,7 @@ const bulkRetryExecutions: MutationResolvers['bulkRetryExecutions'] = async ( | |
context, | ||
) => { | ||
let latestFailedExecutionSteps = await getAllFailedExecutionSteps( | ||
context.currentUser.email === '[email protected]' | ||
context.currentUser.email === appConfig.adminUserEmail | ||
? Execution.query() | ||
: context.currentUser.$relatedQuery('executions'), | ||
params.input.flowId, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters