Skip to content

chore(HNT-3495): upgrade Node 18 to 24 and jwks-rsa to 4.1.0 - #391

Draft
mmiermans wants to merge 3 commits into
mmiermans/HNT-3494-upload-testfrom
mmiermans/HNT-3495-node-24
Draft

mmiermans wants to merge 3 commits into
mmiermans/HNT-3494-upload-testfrom
mmiermans/HNT-3495-node-24

Conversation

@mmiermans

@mmiermans mmiermans commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Goal

Move admin-api to Node 24 (Active LTS). Apollo Server 5 requires Node ≥20, and the service runs Node 18 (EOL) in production and Node 16 in CircleCI.

  • Dockerfile: node:18 → node:24 (digest-pinned)
  • .nvmrc and the super-linter workflow: 18 → 24
  • CircleCI build/test_specs: deprecated circleci/node:16.13.1 → cimg/node:24.21.0
  • jwks-rsa 1.12.3 → 4.1.0, which drops axios 0.21.4 and its advisories. getSigningKeyAsync becomes the promise-based getSigningKey.
  • npm audit fix for transitive advisories, including jws 3.2.3 (HMAC verification fix on the JWT path). Production advisories: 47 → 26 (critical 4 → 1, high 25 → 13).

Implementation Decisions

  • jwks-rsa goes straight to 4.x because 4.x requires Node ≥20.19 and 3.x no longer gets releases. The only other dependency changes are the audit fixes, so a deploy problem points to the runtime or JWT verification.
  • jwks-rsa 4 depends on jose, which ships only as an ES module. Node 24 loads it natively, but Jest can't, so Jest converts it to CommonJS with babel-jest.
  • @types/node stays at 18 because the transitive TypeScript 4.7 can't parse the Node 24 types; the AS5 PR handles TypeScript.
  • .aws/ (CDKTF) keeps its own Node version; it runs in CodeBuild, not in the service image.

Deployment steps

  • Deploy to dev and check the ECS task is healthy
  • Confirm admin-api accepts curation tools and lambda JWTs
  • Smoke-test an image upload and a query from the curation admin tools

References

JIRA tickets:

Stacked on #390. Supersedes #389.

@mmiermans mmiermans closed this Oct 1, 2026
@mmiermans mmiermans reopened this Oct 1, 2026
@mmiermans
mmiermans force-pushed the mmiermans/HNT-3495-node-24 branch from fb59505 to 6226e13 Compare October 1, 2026 19:16
@mmiermans
mmiermans added this pull request to stack #393 December 4, 2026 00:40
@mmiermans
mmiermans force-pushed the mmiermans/HNT-3495-node-24 branch from 6226e13 to fb29ffe Compare December 4, 2026 00:45
@mmiermans
mmiermans force-pushed the mmiermans/HNT-3495-node-24 branch from fb29ffe to c9f18d9 Compare December 4, 2026 00:55
@mmiermans mmiermans changed the title chore(HNT-3495): upgrade Node 18 to 24 chore(HNT-3495): upgrade Node 18 to 24 and jwks-rsa to 4.1.0 Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant