Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple first step to re-enable the dev dashboard
PBENCH-1203 The shift to HTTPS and Keycloak has broken our dashboard local dev mode hack in two ways: 1. The `axios.get` call in the express mirror server needs to either load certificates or disable validation. (The latter seems easier since it's only for local dev mode.) 2. Login requires that the Keycloak be configured with the address of the dashboard code, which in this mode is `http://localhost:3000`. We need to figure out how to get Keycloak and React on the same page here I'm less sure how to accomplish the second, though. 1. We could hardcode the additional address (in three places) in setting up the Keycloak pbench client (valid redirect, valid post logout, web origins) unconditionally... ugly, and we don't want it for staging 2. We could add another option to the functional test deployment to add them only for a `runlocal` 3. We could just document how to do it manually ... NOTE: log in to `https://localhost:8090` with `admin`/`admin`, select the `pbench-server` realm, `Clients` in the sidebar, select the `pbench-client`, then `+ Add valid redirect URIs` and `+Add valid post logout redirect URIs` and on each add `http://localhost:3000/*`, then `+Add web origins` and add `http://localhost:3000`, then click `Save` at the bottom.) I don't really like any of these options much, so feedback is welcome.
- Loading branch information