Patch image dependencies and replace outdated Node runtime
This commit is contained in:
1 parent
3ef8a279a9
commit
aad5f14386
6 files changed
+25
-10
No files matched your search
@@ -1,5 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 0.55.9 — 2026-10-27
|
||||
|
||||
- Update locked HTTP dependencies to undici 6.29.1 and follow-redirects 1.16.2 to address the reported npm security advisories while retaining the existing compatible dependency ranges.
|
||||
- Use the official Node 24 LTS binary instead of Debian's Node 18 packages, removing a second outdated undici copy. Remove unused pip and its bundled ensurepip bootstrap wheel from the runtime image, including their vendored libraries; Kaizoku's Python runtime uses only the standard library.
|
||||
- Explicitly install current Debian tzdata, addressing the DLA-4854-1 timezone-data update.
|
||||
- Preserve runtime configuration, watchlists, queue history, thumbnails, downloads, and Jellyfin content. Checked providers against upstream revision `5a1de84ad651d088cf427655573a96500151d862`; no new active-provider updates were available.
|
||||
|
||||
## 0.55.8 — 2026-10-27
|
||||
|
||||
- Show search matches as soon as the provider search completes, without waiting for every result's episode list, audio availability, or AniDB alternative titles. Load these details in the background with at most two checks at once across browser requests.
|
||||
|
||||
+6
-2
@@ -1,6 +1,6 @@
|
||||
FROM lexiforest/curl-impersonate:v2.2.2 AS curl_impersonate
|
||||
|
||||
FROM node:20-bookworm-slim AS node_dependencies
|
||||
FROM node:24-bookworm-slim AS node_dependencies
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --omit=dev && npm cache clean --force
|
||||
@@ -23,9 +23,11 @@ RUN apt-get update \
|
||||
ca-certificates \
|
||||
curl \
|
||||
ffmpeg \
|
||||
nodejs \
|
||||
openssl \
|
||||
tzdata \
|
||||
util-linux \
|
||||
&& python -m pip uninstall --yes pip \
|
||||
&& python -c 'import ensurepip, pathlib, shutil; shutil.rmtree(pathlib.Path(ensurepip.__file__).parent)' \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=curl_impersonate /usr/local/bin/ /usr/local/bin/
|
||||
@@ -34,6 +36,8 @@ COPY --from=curl_impersonate /usr/local/lib/ /usr/local/lib/
|
||||
RUN mkdir -p /app
|
||||
|
||||
COPY --from=node_dependencies /app/node_modules /app/node_modules
|
||||
COPY --from=node_dependencies /usr/local/bin/node /usr/local/bin/node
|
||||
COPY --from=node_dependencies /usr/local/LICENSE /usr/local/share/doc/node/LICENSE
|
||||
|
||||
COPY ai_subtitles.py ai_subtitles_page.py app.py app_support.py config_page.py http_handler.py provider_bridge.py provider_downloader.py provider_updates.py queue_jobs.py queue_page.py search_page.py template_helpers.py title_matching.py watchlist_backup.py watchlist_identity.py watchlist_page.py web_templates.py VERSION CHANGELOG.md favicon.png /app/
|
||||
COPY providers /app/providers
|
||||
|
||||
@@ -29,6 +29,10 @@ docker compose up -d --build
|
||||
|
||||
Prebuilt image: `gitea.coreplay.eu/dymas/kaizoku:latest` (also tagged by release version). The Docker image uses a separate build stage for npm dependencies to keep the runtime image smaller.
|
||||
|
||||
The 0.55.9 security update includes undici 6.29.1, follow-redirects 1.16.2, Node 24 LTS, and refreshed Debian timezone data. The runtime image omits unused pip and its ensurepip bootstrap wheel; Kaizoku's Python code uses only the standard library. Custom images that need additional Python packages should install them in a separate build stage. Pull the updated image and recreate the container to replace the affected packages; restarting the existing container does not update its image. For local image builds, use `docker compose build --pull --no-cache kaizoku` to refresh base images and system package installation. Reuse all existing volume mounts and their contents.
|
||||
|
||||
The full Trivy scan on 2026-10-27 found none of the 11 reported advisories, no npm/Python package vulnerabilities, and no findings with an available fixed version in its database. Unfixed Debian advisories, including critical-severity entries, remain and require separate base-image or component work.
|
||||
|
||||
Open **http://127.0.0.1:8421/**. The backend binds to host loopback by default. For access through NPM, use the private-network overlay in [SECURITY_DEPLOYMENT.md](SECURITY_DEPLOYMENT.md). For direct access from another device, explicitly set `KAIZOKU_BIND_ADDRESS` to a private interface address, restrict it with the host firewall, and set `KAIZOKU_ALLOW_REMOTE=1`, `KAIZOKU_AUTH_USERNAME`, and `KAIZOKU_AUTH_PASSWORD` before starting Compose.
|
||||
|
||||
For a local installation, install Python 3.12+, Node.js/npm, `ffmpeg`, and `openssl`, then run:
|
||||
|
||||
Generated
+6
-6
@@ -309,9 +309,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/follow-redirects": {
|
||||
"version": "1.16.0",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz",
|
||||
"integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==",
|
||||
"version": "1.16.2",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.2.tgz",
|
||||
"integrity": "sha512-/kVP2U8z596Ia0gwFrwyIeo74ta5aVmSeU1FfAUMAmcEP5EP7zydmag3SLiN64NaRKef3lxsq7i/g7ltJQDGow==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
@@ -598,9 +598,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/undici": {
|
||||
"version": "6.29.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-6.29.0.tgz",
|
||||
"integrity": "sha512-R+RODBqp6i2pPflGdq+xIOUkl+RNfGgHwoinecKu/JCuf2uO06cOKoDbI2P7Dn6KcswdKwrczbU6IYJ6K8X+wg==",
|
||||
"version": "6.29.1",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz",
|
||||
"integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18.17"
|
||||
|
||||
+1
-1
@@ -5721,7 +5721,7 @@ class TemplateHelperTests(unittest.TestCase):
|
||||
|
||||
self.assertEqual(package["dependencies"]["cheerio"], "1.0.0")
|
||||
self.assertEqual(lock["packages"]["node_modules/cheerio"]["version"], "1.0.0")
|
||||
self.assertIn("FROM node:20-bookworm-slim AS node_dependencies", dockerfile)
|
||||
self.assertIn("FROM node:24-bookworm-slim AS node_dependencies", dockerfile)
|
||||
self.assertIn("COPY package.json package-lock.json ./", dockerfile)
|
||||
self.assertIn("COPY --from=node_dependencies /app/node_modules /app/node_modules", dockerfile)
|
||||
self.assertIn("npm ci --omit=dev", dockerfile)
|
||||
|
||||
Reference in new issue
Block a user