-
Notifications
You must be signed in to change notification settings - Fork 9
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
SIMSBIOHUB-600: Handle Keycloak Auto-Renew Error, Write Logs to File #1342
Conversation
Explicitly declare the automaticSilentRenew flag in the authConfig. Remove deprecated comment from useAxios.ts
Openshift URLs for the PR Deployment: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #1342 +/- ##
==========================================
+ Coverage 47.89% 47.92% +0.02%
==========================================
Files 737 737
Lines 20007 20027 +20
Branches 3137 3146 +9
==========================================
+ Hits 9582 9597 +15
- Misses 9823 9825 +2
- Partials 602 605 +3 ☔ View full report in Codecov by Sentry. |
Quality Gate passedIssues Measures |
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.
Tested locally and looks good 👍
Links to Jira Tickets
https://apps.nrs.gov.bc.ca/int/jira/browse/SIMSBIOHUB-600
Description of Changes
Keycloak login infinite loop
automaticSilentRenew
flag in the authConfig. This is on by default, but declaring to make it more visible.Console log size
Add new transport to winston logger to write logs to file(s)
Add new env vars for managing the log settings of the file transport
Add PVC config to api deploy yaml (for storing logs)
Other
Testing Notes
Tested this by logging into SIMS in 2 different tabs, and then logging out of one of the tabs.
When the other tab tries to refresh the token, it fails, because the token has already been revoked, and immediately redirects the user to the home page. Watched it happen live, and it all happens quickly and without any weird UI interactions or anything.