Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/patch-base-image-os-packages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'hive': patch
---

Apply OS security updates to the base image at build time by adding `apt-get upgrade` to the service, migrations, and CLI Dockerfiles. Previously these only ran `apt-get update` followed by `apt-get install` of a few specific packages, so Debian security patches inherited from the pinned `node:*-slim` base were never applied — leaving published images with known-fixed CVEs. Bumping the base image tag alone does not fix this, since the latest `node` tag can still lag behind Debian's security updates.
2 changes: 1 addition & 1 deletion docker/cli.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:24.14.1-slim

RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates git && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends ca-certificates git && rm -rf /var/lib/apt/lists/*
Comment thread
rickbijkerk marked this conversation as resolved.
Outdated

ARG CLI_VERSION

Expand Down
2 changes: 1 addition & 1 deletion docker/migrations.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:24.14.1-slim

RUN apt-get update && apt-get install -y ca-certificates
RUN apt-get update && apt-get upgrade -y && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
Comment thread
rickbijkerk marked this conversation as resolved.
Outdated

WORKDIR /usr/src/app

Expand Down
2 changes: 1 addition & 1 deletion docker/services.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:24.14.1-slim

RUN apt-get update && apt-get install -y wget ca-certificates && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get upgrade -y && apt-get install -y wget ca-certificates && rm -rf /var/lib/apt/lists/*
Comment thread
rickbijkerk marked this conversation as resolved.
Outdated

ARG SERVICE_DIR_NAME
WORKDIR /usr/src/app/$SERVICE_DIR_NAME
Expand Down