Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Refresh governed Node and Go container build inputs together

pulse-triage[bot]8f1bd0b10d11
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 6898b1b59a..281f17d776 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -1,4 +1,4 @@
-FROM golang:1.26.10@sha256:3745f1aa11822297b79113f5e84ce2bffeb039734571c39855809cfe9e5d7be6
+FROM golang:1.26.10@sha256:670bb5aa5349ae03b8516764718486f4f16399134bdc9acd0c46a23f043ab05c
# Set bash as default shell for features
SHELL ["/bin/bash", "-c"]
diff --git a/Dockerfile b/Dockerfile
index f574b74254..0596a52e83 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,7 +4,7 @@ ARG APPRISE_VERSION=1.12.0
# Build stage for frontend (must be built first for embedding)
# Force amd64 platform to avoid slow QEMU emulation during multi-arch builds
-FROM --platform=linux/amd64 node:24-alpine@sha256:06d7adf3e0ef61a13f1d28682726366f97a15aa1888c934d3ecec86c33918b53 AS frontend-builder
+FROM --platform=linux/amd64 node:24-alpine@sha256:8a32c8cf649a49915a66e81e7a609223c708d0adabf288ee3f4077d765542f85 AS frontend-builder
WORKDIR /app/frontend-modern
@@ -26,7 +26,7 @@ RUN --mount=type=cache,id=pulse-npm-cache,target=/root/.npm \
# Build stage for Go backend
# Force amd64 platform - Go cross-compiles for all targets anyway,
# and this avoids slow QEMU emulation during multi-arch builds
-FROM --platform=linux/amd64 golang:1.26.10-alpine@sha256:9ce231b28998b32e116927c61aa5c406183061d4f3f2d61b292c88e7f6bdf7ca AS backend-builder
+FROM --platform=linux/amd64 golang:1.26.10-alpine@sha256:a2012b4a1d1f9f7e9f44e0d39b805a901e856b1dd80b4e6ee4338db547050308 AS backend-builder
ARG BUILD_AGENT
ARG VERSION
diff --git a/deploy/provider-msp/Dockerfile.control-plane b/deploy/provider-msp/Dockerfile.control-plane
index cdaa3fe7cc..2ae05c6525 100644
--- a/deploy/provider-msp/Dockerfile.control-plane
+++ b/deploy/provider-msp/Dockerfile.control-plane
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1.7
-FROM --platform=linux/amd64 node:24-alpine@sha256:06d7adf3e0ef61a13f1d28682726366f97a15aa1888c934d3ecec86c33918b53 AS frontend-builder
+FROM --platform=linux/amd64 node:24-alpine@sha256:8a32c8cf649a49915a66e81e7a609223c708d0adabf288ee3f4077d765542f85 AS frontend-builder
WORKDIR /app/frontend-modern
COPY frontend-modern/package*.json ./
RUN --mount=type=cache,id=pulse-control-plane-npm-cache,target=/root/.npm \
@@ -12,7 +12,7 @@ COPY SECURITY.md TERMS.md /app/
RUN --mount=type=cache,id=pulse-control-plane-npm-cache,target=/root/.npm \
npm run build
-FROM --platform=$BUILDPLATFORM golang:1.26.10-alpine@sha256:9ce231b28998b32e116927c61aa5c406183061d4f3f2d61b292c88e7f6bdf7ca AS builder
+FROM --platform=$BUILDPLATFORM golang:1.26.10-alpine@sha256:a2012b4a1d1f9f7e9f44e0d39b805a901e856b1dd80b4e6ee4338db547050308 AS builder
ARG VERSION=dev
ARG BUILD_TIME=unknown
ARG GIT_COMMIT=unknown
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 956a8af873..3edfea94c7 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -6182,7 +6182,7 @@ suppress the scanner or produce release artifacts with an older patched-over
runtime.
The hosted control-plane source builder and integration mock builder are both
on the reviewed `golang:1.26.10-alpine` digest
-`sha256:9ce231b28998b32e116927c61aa5c406183061d4f3f2d61b292c88e7f6bdf7ca`.
+`sha256:a2012b4a1d1f9f7e9f44e0d39b805a901e856b1dd80b4e6ee4338db547050308`.
`TestProviderMSPGoBuilderMatchesIntegrationMock` pins their exact agreement;
it does not pull the image, prove its registry contents, or qualify a deployed
control plane. The release publisher's prebuilt control-plane target is a
@@ -6250,7 +6250,7 @@ of `1.26.9` remains the minimum for the 2026-10-08 `net/http`, `crypto/tls`,
`golang.org/x/net` floor is `v0.60.0` for the same advisories. Source-built
container stages pin the Docker Official Images manifest list for
`golang:1.26.10-alpine`,
-`sha256:9ce231b28998b32e116927c61aa5c406183061d4f3f2d61b292c88e7f6bdf7ca`;
+`sha256:a2012b4a1d1f9f7e9f44e0d39b805a901e856b1dd80b4e6ee4338db547050308`;
the checked-in toolchain files and release-script guards must reject an older
compiler so local, exact-candidate, provider control-plane, and container builds
cannot silently reintroduce the vulnerable runtime.
@@ -8685,7 +8685,7 @@ a valid pinned SSH signature and the extracted request expression with absent
and synthetic email. It does not establish installed onboarding, server acceptance
or legal identity. See the qualification evidence below.
-### Governed Node 24 and Alpine 3.24 digest parity
+### Governed Node 24, Go 1.26.10 and Alpine 3.24 digest parity
The canonical Pulse release Dockerfile and provider-MSP control-plane Dockerfile
pin the same immutable amd64 Node 24 Alpine frontend-builder image. The
@@ -8695,7 +8695,17 @@ metadata proof `TestDockerBuildUsesCanonicalReleaseLdflags` and hosted
provider-MSP control proof `TestProviderMSPControlPlaneDockerfileBuildsReleaseLicenseBinary`
also require that exact digest while retaining their release metadata and
license-build assertions. The selected Node 24 digest is
-`06d7adf3e0ef61a13f1d28682726366f97a15aa1888c934d3ecec86c33918b53`.
+`8a32c8cf649a49915a66e81e7a609223c708d0adabf288ee3f4077d765542f85`.
+The server, provider-MSP and integration mock Go builders share the
+Go 1.26.10 Alpine digest
+`a2012b4a1d1f9f7e9f44e0d39b805a901e856b1dd80b4e6ee4338db547050308`.
+The development container retains the same compiler patch on its distinct
+Debian-based image, digest
+`670bb5aa5349ae03b8516764718486f4f16399134bdc9acd0c46a23f043ab05c`.
+`TestGoContainerBuildersUseGovernedToolchain` binds all four full image
+references and the `go.mod` toolchain, rejecting a partial refresh, changed
+compiler patch or duplicate stage. The release metadata and hosted runtime
+proofs also bind the server and control-plane Go stages to that exact digest.
All four Alpine source/prebuilt server, agent and Apprise foundation stages use
`be2656061b536c1883c4034790e21d0a09c5aaaf51968b89368a3c0371ea2c9a`;
the provider-MSP runtime and integration mock use that same Alpine 3.24 image.
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index ce288aabc1..a39a9f69b8 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -1751,7 +1751,7 @@ func TestDockerBuildUsesCanonicalReleaseLdflags(t *testing.T) {
dockerfile := string(dockerfileBytes)
dockerRequired := []string{
"FROM --platform=linux/amd64 node:24-alpine@sha256:" + node24Amd64FrontendDigest + " AS frontend-builder",
- `FROM --platform=linux/amd64 golang:1.26.10-alpine@sha256:`,
+ "FROM --platform=linux/amd64 golang:1.26.10-alpine@sha256:" + go12610AlpineBuilderDigest + " AS backend-builder",
`FROM backend-builder AS release-assets-builder`,
`AS agent_runtime`,
`AS pulse-runtime-foundation`,
diff --git a/scripts/installtests/dependency_update_test.go b/scripts/installtests/dependency_update_test.go
index 9fbe614a18..a3dacff6b2 100644
--- a/scripts/installtests/dependency_update_test.go
+++ b/scripts/installtests/dependency_update_test.go
@@ -34,7 +34,44 @@ func assertDigestPinnedDockerStage(t *testing.T, dockerfile, prefix, suffix stri
const alpine324RuntimeDigest = "be2656061b536c1883c4034790e21d0a09c5aaaf51968b89368a3c0371ea2c9a"
-const node24Amd64FrontendDigest = "06d7adf3e0ef61a13f1d28682726366f97a15aa1888c934d3ecec86c33918b53"
+const node24Amd64FrontendDigest = "8a32c8cf649a49915a66e81e7a609223c708d0adabf288ee3f4077d765542f85"
+
+const go12610AlpineBuilderDigest = "a2012b4a1d1f9f7e9f44e0d39b805a901e856b1dd80b4e6ee4338db547050308"
+
+const go12610DevcontainerDigest = "670bb5aa5349ae03b8516764718486f4f16399134bdc9acd0c46a23f043ab05c"
+
+func TestGoContainerBuildersUseGovernedToolchain(t *testing.T) {
+ // The devcontainer has a different OS base, but must retain the module's
+ // compiler patch. The server, control plane and mock share one Alpine image.
+ for _, fixture := range []struct {
+ path string
+ pattern string
+ image string
+ }{
+ {"Dockerfile", `(?m)^FROM --platform=linux/amd64 (\S+) AS backend-builder$`, "golang:1.26.10-alpine@sha256:" + go12610AlpineBuilderDigest},
+ {"deploy/provider-msp/Dockerfile.control-plane", `(?m)^FROM --platform=\$BUILDPLATFORM (\S+) AS builder$`, "golang:1.26.10-alpine@sha256:" + go12610AlpineBuilderDigest},
+ {"tests/integration/mock-github-server/Dockerfile", `(?m)^FROM (\S+) AS builder$`, "golang:1.26.10-alpine@sha256:" + go12610AlpineBuilderDigest},
+ {".devcontainer/Dockerfile", `(?m)^FROM (\S+)$`, "golang:1.26.10@sha256:" + go12610DevcontainerDigest},
+ } {
+ t.Run(fixture.path, func(t *testing.T) {
+ contents, err := os.ReadFile(repoFile(fixture.path))
+ if err != nil {
+ t.Fatal(err)
+ }
+ matches := regexp.MustCompile(fixture.pattern).FindAllStringSubmatch(string(contents), -1)
+ if len(matches) != 1 || matches[0][1] != fixture.image {
+ t.Fatalf("Go build stage = %q; expected exactly one stage using %s", matches, fixture.image)
+ }
+ })
+ }
+ module, err := os.ReadFile(repoFile("go.mod"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ if !regexp.MustCompile(`(?m)^toolchain go1\.26\.10$`).Match(module) {
+ t.Fatal("container compiler pins must match the governed go.mod toolchain")
+ }
+}
func TestNode24FrontendBuilderDigestIsAligned(t *testing.T) {
pattern := regexp.MustCompile(`(?m)^FROM --platform=linux/amd64 node:24-alpine@sha256:([0-9a-f]{64}) AS frontend-builder$`)
diff --git a/scripts/installtests/provider_msp_deploy_test.go b/scripts/installtests/provider_msp_deploy_test.go
index b3a69f300c..b04a369b30 100644
--- a/scripts/installtests/provider_msp_deploy_test.go
+++ b/scripts/installtests/provider_msp_deploy_test.go
@@ -15,7 +15,7 @@ func TestProviderMSPGoBuilderMatchesIntegrationMock(t *testing.T) {
// These builders use the same Go patch level and immutable image. The
// mock's build must not exercise a different compiler from the hosted
// control plane merely because Dependabot advanced one Dockerfile.
- const expected = "golang:1.26.10-alpine@sha256:9ce231b28998b32e116927c61aa5c406183061d4f3f2d61b292c88e7f6bdf7ca"
+ const expected = "golang:1.26.10-alpine@sha256:" + go12610AlpineBuilderDigest
pattern := regexp.MustCompile(`(?m)^FROM (?:--platform=\$BUILDPLATFORM )?(golang:[^[:space:]]+) AS builder$`)
for _, path := range [][]string{
{"deploy", "provider-msp", "Dockerfile.control-plane"},
@@ -346,7 +346,7 @@ func TestProviderMSPControlPlaneDockerfileBuildsReleaseLicenseBinary(t *testing.
"FROM --platform=linux/amd64 node:24-alpine@sha256:"+node24Amd64FrontendDigest+" AS frontend-builder",
"npm ci",
"npm run build",
- "FROM --platform=$BUILDPLATFORM golang:1.26.10-alpine@sha256:",
+ "FROM --platform=$BUILDPLATFORM golang:1.26.10-alpine@sha256:"+go12610AlpineBuilderDigest+" AS builder",
"FROM alpine:3.24@sha256:",
"ARG PULSE_LICENSE_PUBLIC_KEY_SHA256",
"ARG TARGETOS",
diff --git a/tests/integration/mock-github-server/Dockerfile b/tests/integration/mock-github-server/Dockerfile
index b505d675d7..4f3f6fae4f 100644
--- a/tests/integration/mock-github-server/Dockerfile
+++ b/tests/integration/mock-github-server/Dockerfile
@@ -1,4 +1,4 @@
-FROM golang:1.26.10-alpine@sha256:9ce231b28998b32e116927c61aa5c406183061d4f3f2d61b292c88e7f6bdf7ca AS builder
+FROM golang:1.26.10-alpine@sha256:a2012b4a1d1f9f7e9f44e0d39b805a901e856b1dd80b4e6ee4338db547050308 AS builder
WORKDIR /build
COPY go.mod ./