-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Github auth for queues ui #3782
Conversation
must fix tests.... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Tests aren't running because we aren't pulling in redis creds for bull-board. |
if (process.env.NODE_ENV === 'production') { | ||
const cfenv = require('cfenv'); // eslint-disable-line global-require | ||
const appEnv = cfenv.getAppEnv(); | ||
const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot hydrate these when running the tests locally. We use the config/test.js
convention for other parts of the app but bull-board is a bit different since it may also be broken out into its own entity through something like the monorepo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, i started going down a bit of a yak-shave in my head for how we should handle env vars and config...
Add Github auth for queues ui
Changes proposed in this pull request:
FederalistLocal
GH org and OAuth apps for local developmentsecurity considerations
Allowing Github authentication for queues UI based on membership in
federalist-admins
GH org, same as admin interface.Other thoughts
For the config that has been updated, the architecture reflects where I think we should be going with configuration.
process.env
) should be source of truth so we can easily configure on CG, Docker, and local.VCAP_APPLICATION
and VCAP_SERVICES) to environment variables. Typically this would be with a
.profilefile, but since the Queues UI isn't deployed all by it's lonesome quite yet, we use
env.js` to do this.config.js
) for easy consumption.