-
Notifications
You must be signed in to change notification settings - Fork 0
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
SW-183: move auth to backend and use jwt for protected routes #12
Conversation
660ca66
to
d7453e9
Compare
|
||
const dataLakeService = new DataLakeService(); | ||
export const healthcheck = Router(); | ||
const healthcheck = Router(); | ||
|
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.
We do need a complete /
healthcheck to pass to Docker and the Container service to tell us when things aren't working. Really this should include checking we have the following:
- Database connection
- Datalake connection
- BlobStorage connection
As these are required for the service to work and if they stop working for any reason its good to be able to look at the health check to see thats the case.
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 agree, we should have a healthcheck/ for any connected services that we can use for monitoring.
I had to disable the datalake one temporarily because it is failing in CI when attempting to connect to your-storage-account-name.x.y.z
endpoint to fetch creds.
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.
This looks good to me 🚀
This adds new routes and config to the backend that provide authentication via Google, OneLogin, and JWT tokens.
The Google and OneLogin providers are currently disabled for NODE_ENV=test. We can revisit this later if/when we have some kind of browser testing (playwright?).
I've done a bit of refactoring (sorry about that) to add a bit more (hopefully) logical structure.