mirror of
https://github.com/kerberos-io/agent.git
synced 2026-11-21 22:50:39 +00:00
ui: vendor @kerberos-io/ui 1.77.1 to clear the last Dependabot alerts
@kerberos-io/ui 1.77.1 moves its build tools (@svgr/webpack, svg-react-loader, sass-loader, Storybook, Rollup plugins) out of its runtime dependencies. Those pulled svgo 1 and decode-uri-component 0.2 into the agent's lockfile. 1.77.1 is tagged on GitHub but was never published to npm, so install it from a tarball built from kerberos-io/ui@ae1faa7 (tag v1.77.1) and committed under ui/vendor. Compared with the published 1.77.0 the exports are identical; the only code change is the bundled uuid (8 -> 11). The Dockerfile copies ui/vendor before `yarn --frozen-lockfile`. ui/vendor/README.md records the checksum and how to switch back to the registry once a fixed version is published. Clears the remaining 5 Dependabot alerts (svgo, decode-uri-component). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6c49611211
commit
6cd077daa3
@@ -80,6 +80,8 @@ RUN apk update && apk upgrade --available && sync
|
||||
RUN mkdir -p /go/src/github.com/kerberos-io/agent/machinery/www
|
||||
WORKDIR /go/src/github.com/kerberos-io/agent/ui
|
||||
COPY ui/package.json ui/yarn.lock ./
|
||||
# Vendored packages referenced by file: in package.json (see ui/vendor/README.md).
|
||||
COPY ui/vendor ./vendor
|
||||
RUN yarn config set network-timeout 300000 && yarn --frozen-lockfile
|
||||
COPY ui ./
|
||||
RUN yarn build
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@giantmachines/redux-websocket": "^1.5.1",
|
||||
"@kerberos-io/ui": "^1.76.0",
|
||||
"@kerberos-io/ui": "file:vendor/kerberos-io-ui-1.77.1.tgz",
|
||||
"@material-ui/core": "^4.12.4",
|
||||
"@material-ui/icons": "^4.11.3",
|
||||
"@testing-library/jest-dom": "^5.16.5",
|
||||
|
||||
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
# Vendored packages
|
||||
|
||||
## `kerberos-io-ui-1.77.1.tgz`
|
||||
|
||||
`@kerberos-io/ui` 1.77.1 moves the library's build tools (`@svgr/webpack`,
|
||||
`svg-react-loader`, `sass-loader`, Storybook, Rollup plugins) out of its
|
||||
runtime `dependencies`. Those tools pulled vulnerable `svgo` 1 and
|
||||
`decode-uri-component` 0.2 into the agent's lockfile.
|
||||
|
||||
1.77.1 is tagged on GitHub but was never published to npm (the publish
|
||||
workflow's npm token is no longer valid), so the agent installs it from this
|
||||
tarball instead of the registry.
|
||||
|
||||
- Source: [kerberos-io/ui](https://github.com/kerberos-io/ui) at commit
|
||||
`ae1faa7` (tag `v1.77.1`)
|
||||
- Built with: `npm ci --legacy-peer-deps && npm run build && npm pack` (Node 20)
|
||||
- SHA-256: `0b4bbbf3a939fa8b57e275252f1b97de3babbebf6abdaf25ae74e88db7b2c0b5`
|
||||
- Compared with the published 1.77.0: same exports; the only code change is
|
||||
the bundled `uuid` (8 → 11). Story type declarations are no longer shipped.
|
||||
|
||||
The Dockerfile copies `ui/vendor` before `yarn --frozen-lockfile`, because
|
||||
`package.json` references the tarball with a `file:` path.
|
||||
|
||||
### Switching back to the registry
|
||||
|
||||
Once a version of `@kerberos-io/ui` with this fix (1.77.1 or later) is on npm:
|
||||
|
||||
1. In `ui/package.json`, set `"@kerberos-io/ui": "^1.77.1"`.
|
||||
2. Run `yarn install` in `ui/` to update `yarn.lock`.
|
||||
3. Delete this folder and the `COPY ui/vendor ./vendor` line in the Dockerfile.
|
||||
|
||||
### Updating the tarball
|
||||
|
||||
Build and pack a newer version from a checkout of `kerberos-io/ui`, replace
|
||||
the file here, update the `file:` path in `ui/package.json` if the name
|
||||
changed, run `yarn install`, and update the commit and checksum above.
|
||||
Vendored
BIN
Binary file not shown.
+25
-1859
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user