Pin CMS build to accepted Node ancestor and verify image config before recreate
This commit is contained in:
@@ -6,7 +6,7 @@ The Device Core runner is scoped only to its own repository. CMS therefore regis
|
||||
|
||||
`dc-cms-autodeploy` bootstraps exactly three source files under /volume1/docker/nodedc-cms-autodeploy, one build-runner service and two systemd units. Root-private queue state is /var/lib/nodedc-cms-autodeploy. Its read-only Gitea client uses the existing private Device Core read identity without copying it; preflight checks actual access to repository 33. The installed canonical receipt gates polling. Bootstrap preserves all preexisting containers and CMS data; rollback removes only the new runner/units/source partition, retaining private enrollment and queue for diagnosis.
|
||||
|
||||
`dc-cms-release` allows only flat admin/server application files and two exact dependency files. The initial predecessor is original CMS commit 4c6f133 with SMB-verified hashes in baseline.json. Foundation pins adm-zip 0.6.1 in foundation.json to fix known ZIP vulnerabilities. No later dependency, Dockerfile, Compose or Caddy change is admitted by this domain. Build uses the existing Dockerfile in an isolated temporary context with an empty projects directory. The canonical installer restarts only cms-app with no dependencies, no image pull and no rebuild during rollback. Acceptance verifies authentication, app hashes inside the running container, image generation, fixed ZIP dependency version, preserved env/mounts/networks/ports, other Compose services and site/project data.
|
||||
`dc-cms-release` allows only flat admin/server application files and two exact dependency files. The initial predecessor is original CMS commit 4c6f133 with SMB-verified hashes in baseline.json. Foundation pins adm-zip 0.6.1 in foundation.json to fix known ZIP vulnerabilities. No later dependency, Dockerfile, Compose or Caddy change is admitted by this domain. Build uses the registered Dockerfile in an isolated temporary context with an empty projects directory. Only the temporary FROM line is replaced by the exact cached Node image ID proved against the accepted application's layer ancestry and inherited configuration; see [the build-base contract](R40_BUILD_BASE.md). The canonical installer restarts only cms-app with no dependencies, no image pull and no rebuild during rollback. Acceptance verifies authentication, app hashes inside the running container, image generation, fixed ZIP dependency version, preserved env/mounts/networks/ports, other Compose services and site/project data.
|
||||
|
||||
## Build and checks
|
||||
|
||||
@@ -59,3 +59,7 @@ saved predecessor fingerprint: only bind-string order and three empty DNS list
|
||||
representations differ. See [the incident proof and recovery contract](R39_RUNTIME_RECONCILIATION.md).
|
||||
The separate `dc-cms-runtime-reconciliation` marker transition re-proves that
|
||||
exact legacy hash on NAS before releasing the r39 barrier. It never retries r39.
|
||||
Reconciliation was accepted at 2026-11-04T20:28:35Z. The next qualified run r40
|
||||
failed only `config.Env`; its automatic rollback passed completely. r40 is also
|
||||
terminal and must not be replayed. The build-base correction requires a new
|
||||
runner promotion followed by a new CMS commit/run, without another bootstrap.
|
||||
|
||||
Reference in New Issue
Block a user