Repository navigation
Fix double slash normalization or useNavigate colon paths - #15410
Merged
Merged
Conversation
brophdawg11
force-pushed
the
brophdawg11/navigate-fix
branch
from
August 18, 2026 14:32
71ef048 to
dab249a
Compare
brophdawg11
force-pushed
the
brophdawg11/navigate-fix
branch
from
August 18, 2026 14:32
dab249a to
75f8a93
Compare
Merged
blarghmatey
added a commit
to mitodl/ol-keycloakify
that referenced
this pull request
Aug 20, 2026
…es, account UI 260700 (#194) ### What are the relevant tickets? N/A — Renovate backlog maintenance. ### Description (What does it do?) Clears the open Renovate backlog in four commits, ordered security-first. Supersedes or absorbs 15 open Renovate PRs. - **Security.** `@vitest/browser` → 4.1.11 for [GHSA-p63j-vcc4-9vmv](GHSA-p63j-vcc4-9vmv) (CVSS 9.4); `vitest` and `@vitest/coverage-v8` move with it to keep the trio in lockstep. Closes [GHSA-jjmj-jmhj-qwj2](GHSA-jjmj-jmhj-qwj2) (CVSS 6.9, react-router open redirect) on both affected copies — see below. - **Non-major deps.** keycloakify 11.15.14, react/react-dom 19.2.8, `@mitodl/smoot-design` 6.33.1, posthog-js 1.418.1, biome 2.5.9, storybook 10.5.9, vite 8.2.1, playwright 1.62.1, `@types/react` 19.2.18, `@types/react-dom` 19.2.4, keycloakify-emails 3.4.0, `@chromatic-com/storybook` 5.3.0. - **Account UI → 260700.** `@keycloakify/keycloak-account-ui` and `@keycloakify/keycloak-ui-shared` together, since account-ui pins ui-shared exactly. Adds the verifiable-credentials pages, passkey vendor icons, Vietnamese messages; drops `oid4vci/Oid4Vci.tsx`. - **Actions + Yarn.** `actions/setup-node` v7.0.0, `softprops/action-gh-release` v3.0.2 (both repinned by SHA), Yarn 4.18.0. - **Build target.** Drops the 22-to-25 Keycloak target; we run 26 exclusively. Details below. Version bumped to 0.1.6 so the advisory fixes and the new account UI actually ship rather than waiting for the next release. #### react-router: v7 is not required Renovate's #175 proposes `react-router-dom` v6 → v7. That upgrade is unnecessary and would be reverted on every install by the `sync-extensions` postinstall hook, which pins the dependency to `^6.30.4`. The advisory was backported to the v6 line in [6.30.5](remix-run/react-router#15410), and its vulnerable range ends at `<= 6.30.4`. Resolving `^6.30.4` to **6.30.6** clears the CVE and satisfies the peer pin. Renovate proposes the major because the advisory's v6 entry has `firstPatchedVersion: null` — that field is unpopulated, not an assertion that no fix exists. A **second vulnerable copy** arrives through `jsx-email`, which hard-pins `react-router-dom@7.12.0` (inside the v7 vulnerable range `>= 7.9.6, <= 7.12.0`) with no fixed release upstream. Handled with a scoped resolution: ```json "resolutions": { "jsx-email/react-router-dom": "7.18.2" } ``` Both copies now resolve to patched versions (6.30.6 and 7.18.2). #### Dropping the 22-to-25 build target `vite.config.ts` built two Keycloak version targets. We deploy 26 exclusively — `Dockerfile.hosted` in ol-keycloak pins the 26.6 base and `KEYCLOAK_VERSION` is 26.7.2 — so the 22-to-25 target was producing an artifact for a range we do not run. It is now `false`, leaving only `all-other-versions`. Unpacking both jars first: their `theme/` trees are **byte-for-byte identical**. The 22-to-25 jar differed only by bundling a `LoginFormsProviderFactory` shim (`dev.jcputney.keycloak-theme-additional-info-extension`, 6 files) that backfills template data Keycloak 26 supplies natively. **The theme Keycloak serves is unchanged by this PR** — verified by diffing the new jar's `theme/` tree against the one currently released. The only thing dropped is that shim. Safe for the login provider: `Dockerfile.hosted` selects `--spi-login--provider=ol-freemarker`, registered by ol-keycloak's own `OLFreeMarkerLoginFormsProviderFactory` in the separately published `ol-spi` jar. That class extends Keycloak's `FreeMarkerLoginFormsProviderFactory` and has no reference to the jcputney classes, so nothing depended on the shim. **The release glob had to move with this.** It matched `dist_keycloak/keycloak-theme-*.jar`, and the sole remaining target is named in `vite.config.ts` as `keycloakify-theme_v11-21_and_v26plus.jar`, which does not carry keycloakify's default prefix. Left alone the release would have attached **zero** assets, and the [Concourse pipeline](https://github.com/mitodl/ol-infrastructure/blob/main/src/ol_concourse/pipelines/infrastructure/keycloak/pipeline.py#L127-L132) — which sets no `globs` and copies every asset into `plugins/`, then `COPY plugins/*.jar` into `/opt/keycloak/providers/` — would have built an image with no theme. Now globs `*.jar`, which also does not need revisiting if the target is renamed again. Net effect for the consumer: still exactly one jar per release, same theme content, minus an SPI that Keycloak 26 does not use. #### Why several Renovate PRs cannot be merged `keycloakify sync-extensions` runs on postinstall and rewrites `package.json` to match the installed `@keycloakify/keycloak-account-ui`. Anything set by hand in that set is silently reverted. Verified directly by bumping i18next to v26 and watching it revert to `^25.7.3`. Blocked until a newer account-ui raises its peers: #107–111 (`@patternfly/*` v6, pinned `^5.4.x`), #133 (i18next v26, pinned `^25.7.3`), #134 (react-i18next v17, pinned `^16.5.1`), #193 (i18next-fetch-backend v8, pinned `^7.0.0`), #187 (react-hook-form 7.85, pinned `7.70.0` exact), #147 (admin-client 26.7.1, pinned `26.7.0` exact), #157 (pin dependencies, resets `@types/lodash-es`). Blocked for a different reason: **#132 (`@mui/material` v9)** — `@mitodl/smoot-design` peer-requires `@mui/material`, `@mui/lab`, and `@mui/system` all at `^7.0.0`. That is our own package, so this one is unblockable in-house once smoot-design supports MUI 9. Resolved without action: **#163** (oidc-spa — sync-extensions raised it to `~10.2.10` as part of 260700), **#183** (setup-node v6.5.0, superseded by v7), **#152** (lock file maintenance, absorbed by the Yarn 4.18 relock). Deliberately excluded: `@types/node` stays on 24.x because both workflows pin `node-version: ^24.0.0`; the v26 line in #184 would declare APIs the runtime does not have. TypeScript 7 is split into a follow-up PR. ### How can this be tested? Full CI sequence was run locally against this branch and passes: `yarn install --immutable`, `yarn biome check src/emails/ src/login/`, `yarn typecheck`, `yarn build-keycloak-theme` (including the Maven jar packaging step), plus `yarn build-storybook`. To validate the account UI bump specifically, note that `src/account/` and `src/shared/keycloak-ui-shared/` are gitignored and regenerated at install time. Stale local files from 260601 will mask a broken fresh build, so reviewers should regenerate rather than trust an existing tree: ```bash rm -rf src/account src/shared/keycloak-ui-shared src/shared/SessionExpirationWarningOverlay.tsx public/keycloak-theme/account yarn install yarn keycloakify sync-extensions yarn typecheck JAVA_HOME=/usr/lib/jvm/default-runtime/ yarn build-keycloak-theme ``` Confirm the 260700 content reached the packaged theme, not just the TypeScript layer: ```bash unzip -l dist_keycloak/keycloakify-theme_v11-21_and_v26plus.jar | grep -ic VerifiableCredentials # expect 8 unzip -l dist_keycloak/keycloakify-theme_v11-21_and_v26plus.jar | grep -ic oid4vci # expect 0 ``` Confirm both react-router copies are patched: ```bash yarn why react-router | grep 'react-router@npm' # expect only 6.30.6 and 7.18.2 ``` Not covered: there is no test suite in this repo and CI runs no test step, so the account console and login pages have not been exercised against a running Keycloak. Rendering behaviour of the new verifiable-credentials pages is unverified. ### Additional Context - **`yarn install --immutable` must stay green.** The Yarn 4.18 bump renormalizes `yarn.lock`; that rewrite is committed here deliberately, or CI fails on a lockfile it would have modified. - **Yarn enforces a 24h supply-chain quarantine** (`npmMinimalAgeGate: 1440`). Three otherwise-eligible bumps were held back by it, not by any incompatibility: storybook 10.5.10, vite 8.2.2, `@vitejs/plugin-react` 6.1.0. They will pass the gate on their own. - **Release still attaches exactly one jar**, as every release so far has, so the Concourse consumer is structurally unaffected. See the build-target section above for why the jar changed identity.
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.
Cherry pick of #14718