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.

Align the E2E bootstrap seed with the governed Alpine runtime

pulse-triage[bot]6199517ea855
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index cc083e56fe..f8c7323624 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -7991,7 +7991,18 @@ All four Alpine source/prebuilt server, agent and Apprise foundation stages use
the provider-MSP runtime and integration mock use that same Alpine 3.24 image.
`TestDockerBuildUsesCanonicalReleaseLdflags` binds every production foundation,
and `TestProviderMSPAlpineRuntimeMatchesIntegrationMock` rejects partial runtime
-refreshes across the hosted control plane and mock. Tag lines, compiler choices,
+refreshes across the hosted control plane and mock. The integration bootstrap
+seed's local compose default and same-run bundle now use that same Alpine
+digest too. `TestIntegrationContainersUseGovernedImmutableBases` binds the
+default to the shared runtime pin before native frontend preparation.
+`test_seed_digest_refresh_keeps_exact_producer_consumer_binding` exercises
+production and admission with real archive/hash operations and a Docker double:
+an old but well-formed seed pin in a rehashed manifest, or a changed consumer
+default, refuses before Docker load; the matching bundle loads without a pull
+or rebuild. The seed command, token permissions, image override and isolated
+same-run/run-attempt/source binding stay unchanged. These source controls do
+not establish a registry pull, hosted image transfer or journey result.
+Tag lines, compiler choices,
release metadata, keys and exact-candidate consumption remain unchanged.
These are source-contract checks, not an image build or registry verification.
The hosted release build must verify the landed exact source, and provider-MSP
diff --git a/scripts/installtests/integration_container_test.go b/scripts/installtests/integration_container_test.go
index 59f196d635..df0cb01e7e 100644
--- a/scripts/installtests/integration_container_test.go
+++ b/scripts/installtests/integration_container_test.go
@@ -24,6 +24,7 @@ func TestIntegrationContainersUseGovernedImmutableBases(t *testing.T) {
if !regexpDigestPinnedImage(`alpine:3.24`, compose) {
t.Fatal("integration seed image must use the governed Alpine line pinned by a full immutable digest")
}
+ assertContainsAll(t, compose, " image: ${PULSE_E2E_SEED_IMAGE:-alpine:3.24@sha256:"+alpine324RuntimeDigest+"}\n")
if strings.Contains(dockerfile, "golang:1.23-alpine") || strings.Contains(compose, "image: alpine:3.20\n") {
t.Fatal("integration containers must not restore retired toolchain or runtime lines")
}
diff --git a/scripts/tests/test_e2e_test_images.py b/scripts/tests/test_e2e_test_images.py
index 52db887caa..d90ab23363 100644
--- a/scripts/tests/test_e2e_test_images.py
+++ b/scripts/tests/test_e2e_test_images.py
@@ -253,6 +253,33 @@ class E2EImageBundleTest(unittest.TestCase):
with patch.dict(os.environ, {"PULSE_E2E_SEED_IMAGE": "untrusted.example/image:latest"}):
self.assertEqual(IMAGES.seed_image(), pin)
+ def test_seed_digest_refresh_keeps_exact_producer_consumer_binding(self):
+ pin = IMAGES.seed_image()
+ previous = "alpine:3.24@sha256:294b683cb724975bec92580e1e685676bd4b50bda910ddb8c51d4cabeaec77e6"
+ self.assertNotEqual(pin, previous, "the E2E seed must not retain the superseded Alpine digest")
+ manifest = self.produce()
+ self.assertEqual(manifest["seed_image"], pin)
+
+ # Even a valid old pin with a matching manifest hash cannot admit an
+ # older seed bundle to the refreshed checkout.
+ self.replace_manifest({**manifest, "seed_image": previous})
+ self.assert_refused_before_docker()
+ self.replace_manifest(manifest)
+
+ # Nor may a consumer silently switch its committed default after the
+ # producer sealed the bundle, even with unchanged run/source fields.
+ source = IMAGES.COMPOSE.read_text()
+ changed = Path(self.temp.name) / "changed-compose.yml"
+ changed.write_text(source.replace(pin, previous, 1))
+ with patch.object(IMAGES, "COMPOSE", changed):
+ self.assertEqual(IMAGES.seed_image(), previous)
+ self.assert_refused_before_docker()
+
+ IMAGES.load(self.directory, IDENTITY)
+ self.assertEqual(self.docker.calls[0], ("docker", "image", "load", "--input", str(self.directory / IMAGES.ARCHIVE)))
+ self.assertEqual(len(self.docker.calls), 4) # one load, three identity reads
+ self.assertFalse(any("build" in args or "pull" in args for args in self.docker.calls))
+
class E2EImageWorkflowTest(unittest.TestCase):
def test_browser_fixture_budgets_are_explicit_bounded_and_dev_only(self):
diff --git a/tests/integration/docker-compose.test.yml b/tests/integration/docker-compose.test.yml
index fa75e4ff52..24a618ad10 100644
--- a/tests/integration/docker-compose.test.yml
+++ b/tests/integration/docker-compose.test.yml
@@ -4,7 +4,7 @@ services:
seed-bootstrap-token:
# CI loads this exact seed from its source-bound same-run image bundle.
# Local runs keep the pinned registry image.
- image: ${PULSE_E2E_SEED_IMAGE:-alpine:3.24@sha256:294b683cb724975bec92580e1e685676bd4b50bda910ddb8c51d4cabeaec77e6}
+ image: ${PULSE_E2E_SEED_IMAGE:-alpine:3.24@sha256:be2656061b536c1883c4034790e21d0a09c5aaaf51968b89368a3c0371ea2c9a}
container_name: ${PULSE_E2E_SEED_CONTAINER:-pulse-test-seed-bootstrap-token}
environment:
- PULSE_E2E_BOOTSTRAP_TOKEN=${PULSE_E2E_BOOTSTRAP_TOKEN:-0123456789abcdef0123456789abcdef0123456789abcdef}