fix: prevent CDA GUI auth bootstrap crash - #1865
Merged
Merged
Conversation
krowvin
marked this pull request as ready for review
August 6, 2026 16:17
krowvin
commented
Aug 6, 2026
MikeNeilson
previously approved these changes
Aug 6, 2026
Collaborator
Author
|
I attempted to close and re-open this to retrigger the github actions that were stuck. Ended up sorting an import in a file to retrigger the actions (committed) |
Contributor
In the future don't do that, we can manually trigger rerunning of failed actions. |
Collaborator
Author
I typically wouldn't but was hoping to get around the GitHub actions issues and thought i'd try it. The manual retrigger was not working (due to the outage) |
Signed-off-by: Charles Graham, SWT <charles.r.graham@usace.army.mil>
MikeNeilson
force-pushed
the
fix/cda-gui-auth-bootstrap
branch
from
August 7, 2026 13:55
7c485b5 to
0221dc1
Compare
MikeNeilson
approved these changes
Aug 7, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
useRouteError().Related Issue
Follow-up to #1734.
The user-list UI introduced an app-wide
createKeycloakAuthMethod()call duringmain.jsxmodule evaluation. The deployable production-mode bundle does not defineVITE_AUTH_HOST, so Groundwork receivedhost: undefinedand failed onhost.trim()before React or the router error boundary could render. This left the CWBI dev UI on a white error page.User Impact
CDA now derives authentication configuration from the deployment's own OpenAPI document. If the deployment does not advertise usable OpenID configuration, public CDA pages remain available and authenticated features explain that sign-in is unavailable instead of crashing the entire application.
Validation
npm run test— 4 tests passednpm run lintnpm run buildusing Vite production modenpm ci --ignore-scriptsinstallation using the locked Groundwork 3.9.0 dependencyChecklist