Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚪ Severity: LOW
This pin secures only the GHCR container: native mode ignores
image, whileartifactForbuilds download URLs from the mutablestorage-v1.79.14release.SlimServicesSourcetrustsSHA256SUMSfetched from that same release before executingbin/storage; a compromised release asset can therefore achieve code execution on a developer host.Helpful? Add 👍 / 👎
💡 Fix Suggestion
Suggestion: To address the trust-on-first-use risk for native binaries, add hardcoded per-target SHA256 checksums to each service's artifact definition and use them as the authoritative source rather than the dynamically fetched
SHA256SUMSfile from the same mutable GitHub release. Specifically: (1) Extend theArtifactDefinitioninterface (around line 48) to include achecksums: Readonly<Record<NativeTarget, string>>field mapping each target platform to its expected SHA256 hash. (2) Update thedefinition()helper function (around line 56) to accept and store these per-target checksums. (3) Update thestoragedefinition (lines 92–98) to include the actual SHA256 hex digests for each target (darwin-arm64,linux-amd64,linux-arm64) — these values must be obtained out-of-band from a trusted source and committed alongside the version pin. (4) ModifyartifactFor(lines 160–183) to pass the pinned checksum for the selected target intoSlimServicesArtifact. (5) UpdateSlimServicesSource.ts'sslimServicesChecksumfunction (around line 209) to compare the network-fetched checksum against the pinned value rather than trusting the downloadedSHA256SUMSfile unconditionally. This ensures that even if the GitHub release assets are replaced, the in-code checksum acts as a pinned root of trust that cannot be silently bypassed.