Fix signed release metadata and Linux Agent deployment #415

Merged
arnaud.dartois merged 9 commits from codex/413-414-linux-agent-deploy-fixes into main 2026-11-14 11:59:39 +01:00
Owner

Summary

  • Secure Linux Agent enrollment through protected input files and prevent Central URL/token exposure in command lines, service definitions, and logs.
  • Verify signed Forgejo release manifests and derive release hashes/image digests even when Forgejo omits asset.digest.
  • Pin Docker Compose and Docker Run Agent installs to the verified repository@sha256:digest for both CPU and GPU instead of mutable :latest.
  • Fix installer compatibility with the published 1.0.7 portable archive and use valid curl configuration files.
  • Use project-scoped Compose resources and restrictive CORS defaults in the server installer.

Issues

Refs #413
Refs #414

Evidence

  • AgentOptions tests: passed.
  • SiteDetail UI tests: 14 passed, including CPU/GPU immutable references and invalid digest rejection.
  • Agent release verifier/controller tests: 16 passed.
  • Supervisor rollback unit test: passed.
  • bash -n install/install-agent.sh install/install-server.sh: passed.
  • Disposable source-built Compose: Central health, signed release metadata, verified CPU image digest and exact installer/supervisor assets passed; project resources and exact image tag removed and absence verified.
  • Live Linux Central: source image healthy, /healthz HTTP 200; released install script served byte-for-byte from corrected source.
  • Live Linux native Agent: official .sh install, version 1.0.7, active, Central heartbeat and site association confirmed; Central and Agent restart recovered and volumes persisted.
  • Live Docker Compose Agent: published CPU image digest sha256:88d35e9a88d22c5276b99f1b934af0ecfcc86d2793ed0b049f231e52f3fa9df7; image digest matched, embedded Docker CLI 29.9.3; container health and /api/version HTTP 200; Central confirmed Online/site association; restart kept same Agent identity and state volume. API listener bound only to 127.0.0.1:8080. Temporary Compose resources and validation Agent row removed; upstream image retained.

Limits

Penpot visual sync remains blocked on authenticated workspace access and is documented in #413. No Windows, NVIDIA runtime, camera, multicast, external TURN, long-load, or external backup/restore acceptance is claimed. Linked issues remain open until all owned acceptance is complete.

Release assessment

Release required; proposed version 1.0.8 (backward-compatible installer, release verification, immutable image reference, and security fixes over stable 1.0.7).

Refs #416 — sanitized diagnostics for the reproduced E2E cleanup failure.

Refs #417 — remédiation des avis AutoMapper GHSA-6vhm-j9h7-f9gh et GHSA-gpwp-5797-mjff détectés par CI run #1036. Restore verrouillé et gate sécurité locaux réussis avec AutoMapper 16.3.0; tests Application 526/526. Nouvelle exécution CI requise après ce commit. Skill: skills/dependency-security-acceptance/SKILL.md.

Review and follow-up fixes

  • Corrected the independent review finding: CPU-only signed manifests need no GPU fields; partial or invalid GPU image/digest pairs still fail closed. Tests cover CPU-only, CPU+GPU, and incomplete GPU metadata.
  • Regenerated the GPU-specific Agent lockfile. Locked restore succeeds for both HeimdallOnnxRuntime=GPU and the standard CPU Agent.
  • Local follow-up validation: Web tests 478 passed; targeted manifest verifier 5 passed; dependency security gate passed; disposable source-built Compose served the actual signed 1.0.7 release (health/API 200, OpenSSL signature valid, CPU digest valid, GPU metadata valid). Exact local tag and all project resources were removed.
  • CI run for this updated head and a refreshed independent review are required before merge.
## Summary - Secure Linux Agent enrollment through protected input files and prevent Central URL/token exposure in command lines, service definitions, and logs. - Verify signed Forgejo release manifests and derive release hashes/image digests even when Forgejo omits `asset.digest`. - Pin Docker Compose and Docker Run Agent installs to the verified `repository@sha256:digest` for both CPU and GPU instead of mutable `:latest`. - Fix installer compatibility with the published 1.0.7 portable archive and use valid curl configuration files. - Use project-scoped Compose resources and restrictive CORS defaults in the server installer. ## Issues Refs #413 Refs #414 ## Evidence - AgentOptions tests: passed. - SiteDetail UI tests: 14 passed, including CPU/GPU immutable references and invalid digest rejection. - Agent release verifier/controller tests: 16 passed. - Supervisor rollback unit test: passed. - `bash -n install/install-agent.sh install/install-server.sh`: passed. - Disposable source-built Compose: Central health, signed release metadata, verified CPU image digest and exact installer/supervisor assets passed; project resources and exact image tag removed and absence verified. - Live Linux Central: source image healthy, `/healthz` HTTP 200; released install script served byte-for-byte from corrected source. - Live Linux native Agent: official `.sh` install, version 1.0.7, active, Central heartbeat and site association confirmed; Central and Agent restart recovered and volumes persisted. - Live Docker Compose Agent: published CPU image digest `sha256:88d35e9a88d22c5276b99f1b934af0ecfcc86d2793ed0b049f231e52f3fa9df7`; image digest matched, embedded Docker CLI 29.9.3; container health and `/api/version` HTTP 200; Central confirmed Online/site association; restart kept same Agent identity and state volume. API listener bound only to `127.0.0.1:8080`. Temporary Compose resources and validation Agent row removed; upstream image retained. ## Limits Penpot visual sync remains blocked on authenticated workspace access and is documented in #413. No Windows, NVIDIA runtime, camera, multicast, external TURN, long-load, or external backup/restore acceptance is claimed. Linked issues remain open until all owned acceptance is complete. ## Release assessment Release required; proposed version 1.0.8 (backward-compatible installer, release verification, immutable image reference, and security fixes over stable 1.0.7). Refs #416 — sanitized diagnostics for the reproduced E2E cleanup failure. Refs #417 — remédiation des avis AutoMapper GHSA-6vhm-j9h7-f9gh et GHSA-gpwp-5797-mjff détectés par CI run #1036. Restore verrouillé et gate sécurité locaux réussis avec AutoMapper 16.3.0; tests Application 526/526. Nouvelle exécution CI requise après ce commit. Skill: `skills/dependency-security-acceptance/SKILL.md`. ## Review and follow-up fixes - Corrected the independent review finding: CPU-only signed manifests need no GPU fields; partial or invalid GPU image/digest pairs still fail closed. Tests cover CPU-only, CPU+GPU, and incomplete GPU metadata. - Regenerated the GPU-specific Agent lockfile. Locked restore succeeds for both `HeimdallOnnxRuntime=GPU` and the standard CPU Agent. - Local follow-up validation: Web tests 478 passed; targeted manifest verifier 5 passed; dependency security gate passed; disposable source-built Compose served the actual signed 1.0.7 release (health/API 200, OpenSSL signature valid, CPU digest valid, GPU metadata valid). Exact local tag and all project resources were removed. - CI run for this updated head and a refreshed independent review are required before merge.
arnaud.dartois added 1 commit 2026-11-13 17:32:46 +01:00
fix: secure and verify native agent deployment
Heimdall Gitea / Detect CI scope (pull_request) Successful in 6s
Heimdall Gitea / Build and tests (pull_request) Failing after 14m15s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Skipped
Heimdall Gitea / Publish versioned installer release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Failing after 2s
923f9e7a55
arnaud.dartois added 1 commit 2026-11-13 17:56:25 +01:00
fix: pin Docker Agent installs to signed image digests
Heimdall Gitea / Detect CI scope (pull_request) Successful in 6s
Heimdall Gitea / Build and tests (pull_request) Failing after 23m23s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Skipped
Heimdall Gitea / Publish versioned installer release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Failing after 2s
e6cc3edb67
arnaud.dartois added 1 commit 2026-11-13 18:18:12 +01:00
test: report sanitized user deletion failures
Heimdall Gitea / Detect CI scope (pull_request) Successful in 7s
Heimdall Gitea / Build and tests (pull_request) Failing after 5m19s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Skipped
Heimdall Gitea / Publish versioned installer release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Failing after 3s
e81559a7c0
arnaud.dartois added 1 commit 2026-11-13 22:18:57 +01:00
fix: compile sanitized E2E cleanup diagnostics
Heimdall Gitea / Detect CI scope (pull_request) Successful in 6s
Heimdall Gitea / Build and tests (pull_request) Failing after 19m45s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Skipped
Heimdall Gitea / Publish versioned installer release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Failing after 11s
96ca492957
arnaud.dartois added 1 commit 2026-11-13 22:43:10 +01:00
fix: upgrade AutoMapper security advisories
Heimdall Gitea / Detect CI scope (pull_request) Successful in 7s
Heimdall Gitea / Build and tests (pull_request) Successful in 17m58s
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Failing after 1m20s
Heimdall Gitea / Build and scan server image (pull_request) Successful in 5m12s
Heimdall Gitea / Build and scan agent image (pull_request) Successful in 12m10s
Heimdall Gitea / Publish versioned installer release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Failing after 2s
bba04f13c2
arnaud.dartois added 1 commit 2026-11-14 08:06:59 +01:00
fix: allow CPU-only release manifests
Heimdall Gitea / Detect CI scope (pull_request) Successful in 37s
Heimdall Gitea / Build and tests (pull_request) Successful in 26m16s
Heimdall Gitea / Build and scan agent image (pull_request) Successful in 9m42s
Heimdall Gitea / Build and scan server image (pull_request) Successful in 10m39s
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Successful in 17m14s
Heimdall Gitea / Publish versioned installer release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Successful in 2s
fb0b9b887a
arnaud.dartois added 1 commit 2026-11-14 08:13:01 +01:00
docs: document immutable Agent image installs
Heimdall Gitea / Detect CI scope (pull_request) Canceled after 0s
Heimdall Gitea / CI policy (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan server image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan agent image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Canceled after 0s
Heimdall Gitea / Publish versioned installer release (pull_request) Canceled after 0s
78d228a94c
arnaud.dartois added 1 commit 2026-11-14 08:21:23 +01:00
docs: correct immutable Agent install guidance
Heimdall Gitea / Detect CI scope (pull_request) Canceled after 0s
Heimdall Gitea / CI policy (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan server image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan agent image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Canceled after 0s
Heimdall Gitea / Publish versioned installer release (pull_request) Canceled after 0s
904f397b7f
arnaud.dartois added 1 commit 2026-11-14 08:23:38 +01:00
docs: clarify pinned Docker Agent image
Heimdall Gitea / Detect CI scope (pull_request) Successful in 7s
Heimdall Gitea / Build and tests (pull_request) Successful in 22m27s
Heimdall Gitea / Build and scan agent image (pull_request) Successful in 7m8s
Heimdall Gitea / Build and scan server image (pull_request) Successful in 11m32s
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Successful in 20m44s
Heimdall Gitea / Publish versioned installer release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Successful in 2s
74623d6a32
Author
Owner

Author review on 74623d6a326d11ba26d33e392a5de94690b3c67f: full diff reviewed. Focused fixes cover signed Agent release metadata, CPU-only verifier compatibility, immutable digest install refs, and localized operator wording. CI run 1041 attempt 2 passed (Build and tests, CI policy, Central/Agent CPU/NVIDIA image build and scans). Independent review completed on this exact head with no unresolved blocking finding; the initial Sentry finding was withdrawn because the file is unchanged in the PR diff. First CI attempt's Viewer cleanup ConcurrencyFailure did not reproduce in attempt 2; #416 records both runs and remains open for root-cause follow-up. Release assessment: required, proposed 1.0.8.

Author review on `74623d6a326d11ba26d33e392a5de94690b3c67f`: full diff reviewed. Focused fixes cover signed Agent release metadata, CPU-only verifier compatibility, immutable digest install refs, and localized operator wording. CI run 1041 attempt 2 passed (Build and tests, CI policy, Central/Agent CPU/NVIDIA image build and scans). Independent review completed on this exact head with no unresolved blocking finding; the initial Sentry finding was withdrawn because the file is unchanged in the PR diff. First CI attempt's Viewer cleanup ConcurrencyFailure did not reproduce in attempt 2; #416 records both runs and remains open for root-cause follow-up. Release assessment: required, proposed 1.0.8.
arnaud.dartois left a comment
Author
Owner

Independent review and author review are clean for this PR head. Run 1041 attempt 2 passed all required jobs. See review record and #416 for intermittent first-attempt cleanup result.

Independent review and author review are clean for this PR head. Run 1041 attempt 2 passed all required jobs. See review record and #416 for intermittent first-attempt cleanup result.
arnaud.dartois merged commit 383205b9fc into main 2026-11-14 11:59:39 +01:00
arnaud.dartois deleted branch codex/413-414-linux-agent-deploy-fixes 2026-11-14 11:59:39 +01:00
Author
Owner

Merged and released: PR #415 merged as 383205b9fce1104ff184654e735762868d4de926; annotated tag 1.0.8 points to that commit. Tag workflow run 1043 passed Build and tests, CI policy, Central/Agent CPU/NVIDIA image builds and scans, and signed installer release publication. Release assets are available at https://sources.tordais.cc/arnaud.dartois/Heimdall/releases/tag/1.0.8. Linked issue #416 remains open for the intermittent first-attempt cleanup concurrency root-cause follow-up; attempt 2 passed all four browser role/order permutations.

Merged and released: PR #415 merged as `383205b9fce1104ff184654e735762868d4de926`; annotated tag `1.0.8` points to that commit. Tag workflow run 1043 passed Build and tests, CI policy, Central/Agent CPU/NVIDIA image builds and scans, and signed installer release publication. Release assets are available at https://sources.tordais.cc/arnaud.dartois/Heimdall/releases/tag/1.0.8. Linked issue #416 remains open for the intermittent first-attempt cleanup concurrency root-cause follow-up; attempt 2 passed all four browser role/order permutations.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: arnaud.dartois/Heimdall#415