fix(security): update Go, x/net, handlebars and the frontend base packages

This commit is contained in:
shira committed 2026-10-10 18:40:06 +03:00
1 parent d6f960f8ae
commit 0beae4895d
19 files changed
+68 -54

No files matched your search

+3 -3
View File
@@ -19,7 +19,7 @@ Implemented in this build (backend API and frontend screens):
- The notification inbox in both cabinets. A delivered invitation creates a notification for the candidate; the mail about it is sent only with `EMAIL_PROVIDER=resend`.
- Invitations: the organization creates a draft from a search result, changes the terms with versions, and sends the invitation. The candidate sees it in the incoming list and accepts it with the consent C4, choosing the contacts, or declines it. After the acceptance the organization reads the disclosed contacts on the invitation page. The company's invitation list is still a placeholder.
Planned and not working: withdrawing an invitation and the candidate's cancellation of participation, salary raise (the API answers 501 `not_implemented`), the company's invitation list screen (a placeholder now), password reset, mail for other product notifications, resume upload and parsing, PDF, FSP integration, ML inference and semantic search, the adaptive test, sandbox practice, percentiles and calibrated grades, and the SMTP transport.
Planned and not working: withdrawing an invitation and the candidate's cancellation of participation, salary raise (the API answers 501 `not_implemented`), password reset, mail for other product notifications, resume upload and parsing, PDF, FSP integration, ML inference and semantic search, the adaptive test, sandbox practice, percentiles and calibrated grades, and the SMTP transport.
### Requirements
@@ -732,7 +732,7 @@ Upstream references: [PostgreSQL image](https://github.com/docker-library/postgr
These entries name the principal upstream project's license; they are not a complete inventory of every file in an image. Base OS packages and bundled dependencies may have separate terms. Before redistribution, inspect the exact image tag or digest, its notices, and an SBOM. This repository has no project-wide license.
The backend builds with Go 1.26.8; its runtime image is selected in backend/Dockerfile. Frontend and ML base images are selected in their Dockerfiles. Upstream sources include [Docker Official Images](https://github.com/docker-library), [Distroless](https://github.com/GoogleContainerTools/distroless), and [NGINX unprivileged images](https://github.com/nginxinc/docker-nginx-unprivileged); inspect exact tags and layers before distribution.
The backend builds with Go 1.26.9; its runtime image is selected in backend/Dockerfile. Frontend and ML base images are selected in their Dockerfiles. Upstream sources include [Docker Official Images](https://github.com/docker-library), [Distroless](https://github.com/GoogleContainerTools/distroless), and [NGINX unprivileged images](https://github.com/nginxinc/docker-nginx-unprivileged); inspect exact tags and layers before distribution.
## Release manifest
@@ -796,7 +796,7 @@ Generating the manifest again for the same ID, source, images, evidence, and dat
### Go pin
go.mod declares `go 1.26.8` without a separate `toolchain` line, the default `GO_IMAGE` of `backend/Dockerfile` and `backend/Dockerfile.demo-seed` is `golang:1.26.8-alpine`, and both build stages set `GOTOOLCHAIN=local`, so a go.mod that asks for a newer Go fails the build instead of downloading another toolchain. `make -C deploy check` fails when these pins disagree or when a Dockerfile uses a base image that is not a pinnable build argument. The manifest also records the version read from the build information of the backend and demo seed binaries; to read it, the generator creates a container from the image without starting it, copies the binary out, and removes the container.
go.mod declares `go 1.26.9` without a separate `toolchain` line, the default `GO_IMAGE` of `backend/Dockerfile` and `backend/Dockerfile.demo-seed` is `golang:1.26.9-alpine`, and both build stages set `GOTOOLCHAIN=local`, so a go.mod that asks for a newer Go fails the build instead of downloading another toolchain. `make -C deploy check` fails when these pins disagree or when a Dockerfile uses a base image that is not a pinnable build argument. The manifest also records the version read from the build information of the backend and demo seed binaries; to read it, the generator creates a container from the image without starting it, copies the binary out, and removes the container.
### Not covered
+2 -2
View File
@@ -6,7 +6,7 @@ This guide describes implemented components and repository commands. Current bus
| Component | Version source |
| --- | --- |
| Go | exact 1.26.8 in backend/go.mod, toolchain, and Go build image |
| Go | exact 1.26.9 in backend/go.mod, toolchain, and Go build image |
| Node.js | frontend/.node-version |
| Frontend dependencies | current stable releases in package manifests and pnpm-lock.yaml |
| Python and uv | ML toolchain declarations and uv.lock |
@@ -19,7 +19,7 @@ MVP implementation is ongoing. Values below are read from the named files; when
| Component | Pinned version | Source |
| --- | --- | --- |
| Go | 1.26.8 (`go` directive; no separate `toolchain` line) | backend/go.mod; build image `golang:1.26.8-alpine` in backend/Dockerfile |
| Go | 1.26.9 (`go` directive; no separate `toolchain` line) | backend/go.mod; build image `golang:1.26.9-alpine` in backend/Dockerfile |
| Node.js | 26.11.1 | frontend/.node-version |
| pnpm | 12.9.1 | `packageManager` in frontend/package.json, frontend/pnpm-lock.yaml |
| React, React DOM | 19.3.0 | frontend/package.json, frontend/pnpm-lock.yaml |
+1 -1
View File
@@ -112,7 +112,7 @@ An unsent answer is kept in `sessionStorage` of the same browser tab, under a ke
## Release manifest tests
`make -C deploy check-release` runs `deploy/scripts/test_release_manifest.py` with the Python standard library and without Docker. It fails when go.mod, the `GO_IMAGE` default, and `GOTOOLCHAIN=local` in backend/Dockerfile or backend/Dockerfile.demo-seed stop pinning Go 1.26.8, or when a service Dockerfile uses a base image that is not a pinnable `*_IMAGE` build argument, including an external image in `COPY --from` or `RUN --mount=from`. On fake image, Compose, and container data it checks that:
`make -C deploy check-release` runs `deploy/scripts/test_release_manifest.py` with the Python standard library and without Docker. It fails when go.mod, the `GO_IMAGE` default, and `GOTOOLCHAIN=local` in backend/Dockerfile or backend/Dockerfile.demo-seed stop pinning Go 1.26.9, or when a service Dockerfile uses a base image that is not a pinnable `*_IMAGE` build argument, including an external image in `COPY --from` or `RUN --mount=from`. On fake image, Compose, and container data it checks that:
- the manifest copies no environment values, labels, or local paths, and two generations differ only in `generated_at`;
- evidence counts only for the same tag, commit, and working tree fingerprint, and malformed evidence or build records are not used;