From 2782fc30cf2f0dc823d1754aa9021f3a7a7334fc Mon Sep 17 00:00:00 2001 From: David T Rocca Date: Mon, 30 Nov 2026 11:53:32 -0500 Subject: [PATCH 1/2] fix: update and pin Node and Python container images --- README.md | 4 ++-- docker/Dockerfile | 4 ++-- docker/Dockerfile.dev | 2 +- docker/README.md | 2 +- test-http/docker/Dockerfile | 2 +- test/README.md | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 21179bcb5..8c339c08f 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Please consult our [SECURITY.md](SECURITY.md) for specific instructions on repor This project uses: -- [Node.js](https://nodejs.org/) 24.22.1 for local development and the production image build; CI and the development Docker image use Node.js 24. +- [Node.js](https://nodejs.org/) 24.22.3 for local development and the production image build; CI and the development Docker image use Node.js 24. - [Express](https://github.com/expressjs) - [MongoDB](https://www.mongodb.com/) replica sets for local development and testing - [Amazon DocumentDB](https://aws.amazon.com/documentdb/) in production @@ -85,7 +85,7 @@ See the [Docker README](docker/README.md) to run both the application and MongoD ##### Install dependencies -Install Node.js 24.22.1 with its bundled npm, then install the application and migration dependencies: +Install Node.js 24.22.3 with its bundled npm, then install the application and migration dependencies: ```sh npm ci diff --git a/docker/Dockerfile b/docker/Dockerfile index f05dad5fe..3fb9503cb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM node:24.22.1-trixie-slim@sha256:43b9ba1142b8dcf33fa8f922ca1be85714adc444e0586c7cf7726daaeabc1bea AS build +FROM node:24.22.3-trixie-slim@sha256:4d00acb4bcc42c454c4eb801526f7ad7f772ea3bd4fd168c5cc2e384abcbb9d4 AS build LABEL \ mitre.name=cveawg \ @@ -38,7 +38,7 @@ RUN node src/swagger.js \ && npm prune --omit=dev \ && npm cache clean --force -FROM gcr.io/distroless/nodejs24-debian13:nonroot@sha256:cb606325b7ec4af55462cb0b424a53b452a5b4a894ffe841fcf1048d216fb9f8 AS runtime +FROM gcr.io/distroless/nodejs24-debian13:nonroot-d80a5ba65a6abbacd7f441962bdba2ab57e81379@sha256:675c532423b908f9e56f9d60a4e62309b63cd2a3175acb90a46b96f7ee68e121 AS runtime LABEL \ mitre.name=cveawg \ diff --git a/docker/Dockerfile.dev b/docker/Dockerfile.dev index bdf1d34c6..49b3f0009 100644 --- a/docker/Dockerfile.dev +++ b/docker/Dockerfile.dev @@ -1,4 +1,4 @@ -FROM node:24-alpine3.22 +FROM node:24.22.3-alpine3.24@sha256:116b800c3754b440ee0aa3ed2f20f5bf3d99a554bfd9adeea09ea8017f6e85f5 # do not copy files we mount in compose # our local and production docker files could co-exist using "targets" in # the `FROM` statements diff --git a/docker/README.md b/docker/README.md index cc8a9eaf1..18c1f8f25 100644 --- a/docker/README.md +++ b/docker/README.md @@ -59,7 +59,7 @@ show `Serving on port 3000`; press Ctrl+C to leave the log view. Open Swagger UI [http://localhost:3000/api-docs/](http://localhost:3000/api-docs/). The Compose application uses [Dockerfile.dev](Dockerfile.dev), based on Node.js 24. The -separate [production Dockerfile](Dockerfile) builds with Node.js 24.22.1 and uses a +separate [production Dockerfile](Dockerfile) builds with Node.js 24.22.3 and uses a Distroless Node.js 24 runtime. Shell, population, and test commands in this guide apply to the development image. diff --git a/test-http/docker/Dockerfile b/test-http/docker/Dockerfile index 4470845e0..e5a82b545 100644 --- a/test-http/docker/Dockerfile +++ b/test-http/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9-slim-buster +FROM python:3.13.18-slim-trixie@sha256:168d3a5d10f2152f8e8d77b6843ac82c22a846cfefeef7afdf9aa630404e82a7 LABEL name="Dockerized Endpoint Testing" diff --git a/test/README.md b/test/README.md index 22d93ae71..4efd71622 100644 --- a/test/README.md +++ b/test/README.md @@ -1,7 +1,7 @@ # CVE Services Tests The JavaScript test suites use [Mocha](https://mochajs.org/) and [Chai](https://www.chaijs.com/). -Use Node.js 24.22.1 and run commands from the repository root. Install dependencies with +Use Node.js 24.22.3 and run commands from the repository root. Install dependencies with `npm ci` as described in the [local setup guide](../README.md#local-development). ## Unit tests From b713e8978aed9753e0b78fa71cbeaccc7b5e4571 Mon Sep 17 00:00:00 2001 From: David T Rocca Date: Tue, 1 Dec 2026 15:05:33 -0500 Subject: [PATCH 2/2] test: allow 10 seconds for legacy organization role transitions --- test/integration-tests/org/disabledOrgRoleContractTest.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration-tests/org/disabledOrgRoleContractTest.js b/test/integration-tests/org/disabledOrgRoleContractTest.js index 0ec5ac1ef..c73e76337 100644 --- a/test/integration-tests/org/disabledOrgRoleContractTest.js +++ b/test/integration-tests/org/disabledOrgRoleContractTest.js @@ -239,7 +239,9 @@ describe('Disabled organization legacy role contract', () => { expect((await BaseOrg.findOne({ UUID: org.UUID }).read('primary').lean()).disabled).to.equal(true) }) - it('enables a disabled org on a legacy role grant and disables it when the last active role is removed', async () => { + it('enables a disabled org on a legacy role grant and disables it when the last active role is removed', async function () { + this.timeout(10000) + const org = await createOrg(['CNA'], true) const edits = [ { action: 'add', role: 'ADP', activeRoles: ['ADP'], storedRoles: ['ADP'], disabled: false, type: 'ADPOrg' },