Repository navigation
fix(images): keep security inventory usable in reduced contexts - #13578
Conversation
Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage/plugin
View coverage of the 10 most impacted files.
TypeScript / code-coverage/cli
View coverage of the 10 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com>
sandl99
left a comment
There was a problem hiding this comment.
Reviewed commit 5af1ad0ca7bfec3b21736723d24fea2359430e4f. Please address these two blockers before merging.
-
[P1] Update the Hermes portable context allowlist with the Dockerfile change. Removing the
security-package-specs.tsCOPY at agents/hermes/Dockerfile:48 leavesLOCAL_COPY_SOURCESinsrc/lib/onboard/experimental/hermes-portable-build-context.tsrequiring that source.parseDockerfileSources()compares the complete source lists and throwsDockerfile local COPY sources disagree with the reviewed allowlist, which blocks portable onboarding during context creation. Update the reviewed COPY allowlist and reconcile the affected portable context file inventory in the same change. -
[P2] Refresh Pi qualification receipts for the shared image input change. scripts/security/security-package-inventory.mts:4 changes a direct input to the Pi images. The repository gate rejects this commit because neither qualification receipt was refreshed. Publish matching Linux AMD64 and ARM64 Pi candidates from one commit and workflow run, update both
ci/pi-agent-qualification-v1-linux-*.jsonreceipts, and update their authority digests.
Validation performed:
- All 136 tests in
test/runtime/sandbox/sandbox-base-security-packages.test.tspassed locally. - The focused
captures the exact allowlist from an ordinary primary Git clone (#9203)test fails with this PR's Hermes Dockerfile and passes with the base Dockerfile. The experiment restored the PR file afterward. GITHUB_BASE_REF=main node scripts/checks/pi-qualification-receipt-refresh.mtsreproduces the missing-receipts failure.- CI corroborates both findings: installer-integration and static-checks.
Security rubric: PASS for secrets and credentials, input validation, authentication and authorization, dependencies, error handling and logging, cryptography and data protection, and configuration. The change preserves package pins, input constraints, inventory metadata checks, and failure propagation; it adds no credential or authorization surface. WARNING for security testing because Pi qualification remains incomplete, and system security because the portable context transition is blocked. No additional security vulnerability found.
Reviewed all four changed files: Dockerfile, agents/hermes/Dockerfile, scripts/security/security-package-inventory.mts, and test/runtime/sandbox/sandbox-base-security-packages.test.ts. Image-build qualification was still running at the time of review.
sandl99
left a comment
There was a problem hiding this comment.
Follow-up review of commit ff5b9fa7a0b15e47367005a657a5b7dc54c112ca: both findings from my previous review are resolved. No additional code findings.
- P1 resolved: the Hermes Dockerfile, portable COPY allowlist, and portable file inventory consistently use the standalone renderer. All 27 portable build-context tests and all 3 portable installer admission tests passed locally.
- P2 resolved: the shared renderer, canonical package specs, and Pi Dockerfiles are unchanged from the PR base. The new standalone renderer is outside Pi's direct inputs, and the Pi qualification receipt gate now exits successfully without receipt changes.
- The optimized OpenClaw context includes the new renderer. Its output matches the canonical probes for all three profiles and inventories for both supported architectures.
- The dashboard instruction digest matches the updated completed-image verification instruction. Dashboard lifecycle tests retain rejection coverage for configuration rewrites and custom Dockerfile exposure.
Local validation: 212 tests passed, 2 skipped across security inventories, sandbox build contexts, Hermes portable contexts, installer admission, dashboard request policy, and dashboard lifecycle. The two skipped checks require Docker/Buildx capabilities unavailable on this host. git diff --check also passed. The installer integration CI job passed on this commit.
Security assessment:
| Category | Verdict and reason |
|---|---|
| Secrets and credentials | PASS — no new credential flow or disclosure |
| Input validation and sanitization | PASS — package constraints preserved; standalone output matches canonical output |
| Authentication and authorization | PASS — portable source checks and dashboard exposure restrictions remain enforced |
| Dependencies | PASS — no new dependencies or changed package pins |
| Error handling and logging | PASS — inventory and context failures continue to stop the operation |
| Cryptography and data protection | PASS — reviewed dashboard instruction uses SHA-256; no data protection change |
| Configuration | PASS — inventory ownership/mode checks and restrictive runtime defaults preserved |
| Security testing | WARNING — focused checks pass; managed-image and live qualification evidence is still pending |
| System security | PASS — portable context composition is repaired and Pi inputs remain unchanged |
Reviewed all nine changed files: Dockerfile, agents/hermes/Dockerfile, scripts/security/standalone-security-package-inventory.mts, src/lib/onboard/dockerfile-remote-dashboard-bind-contract.ts, both src/lib/onboard/experimental/hermes-portable-build-context*.ts files, src/lib/sandbox/build-context.ts, and both changed sandbox integration test files.
CI has no reported failures at the time of this review, but static checks, image builds, live qualification, and other jobs are still running. Merge readiness remains subject to those results.
|
Advisor follow-up for commit The architecture, delivery, migration, and security reports repeat one claim: that Evidence:
Disposition: deduplicate the four reports as one false positive. No Pi receipt refresh or code change is required for this PR's current diff. The manual Advisor blocker gate failed on those reports. CI and the scheduled review after green CI must still finish before the conditionally requested approval. |
|
Maintainer disposition for Architecture ownership, delivery/workflow causality, migration completion, and security each recorded the same P1 claim: that this PR changes The claim does not match the final PR diff against base
These findings appear to treat the restoration of the shared renderer relative to the first PR commit as a remaining change relative to the PR base. No Pi receipt refresh or Pi image publication is required for this repair. This disposition covers only those four findings. CI, image qualification, and applicable E2E validation remain required. |
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
|
Disposition of the automatic Advisor review for All nine specialist jobs completed. Architecture, migration, and reduction each report the same concern: future drift between the standalone inventory renderer and the canonical source. The other six specialists report no P0/P1 findings. I classify the three reports as one advisory maintainability concern, rather than a current P1 behavior or security defect. The added tests execute the standalone file without Staging the canonical source would remove duplication, but it would require changing the external reduced-context producer that this repair is intended to accommodate. That can be considered in the producer follow-up already described in this PR. The automated blocker gate nevertheless failed. Approval remains withheld under the requested all-checks-pass condition; the final runtime-activation jobs are also still running. |
<!-- markdownlint-disable MD041 --> ## Outcome Documents the native local provider profile warning restored by merged PR #13564 in the v0.0.137 cumulative documentation change. ## Reason The release entry and provider validation guide need to explain that native local provider attachment can succeed while a follow-up profile check warns about drift or an incomplete export. ### Related issues Relates to #13557. ## Changes - Scope the post-attachment verification warning to native local provider onboarding in the provider validation guide. - Add the user-facing change to the dated v0.0.137 release entry and link merged PR #13564. ## Verification - `npm run docs` on `c52aed19ab37e57ede5497a9df5225b390d5933e`: passed with zero Fern errors and 125 published routes. - `git diff --check`, pre-commit, commit-msg, and pre-push hooks: passed. - Independent documentation writer review of the exact two-page diff at `c52aed19ab37e57ede5497a9df5225b390d5933e`: no blockers. The review confirmed the PR #13564 implementation and guide-variant scope. - [Advisor run 39550779577](https://github.com/NVIDIA/NemoClaw/actions/runs/39550779577) found that the prior head's profile-verification wording was too broad. This commit narrows the claim to the native local CLI adapter and removes a mistaken attribution to the separate experimental runtime identity workflow. All nine prior-head Advisor specialists recommended no additional E2E selector; the new head will be evaluated separately. - Repository-owned documentation catch-up [run 39549630158](https://github.com/NVIDIA/NemoClaw/actions/runs/39549630158) approved the preceding automated cumulative patch for main `41f72b5ec8c0d07e46ae9ebfac9bf9efdff5b28b`. - All four published PR commits are GitHub Verified. The diff contains no secrets, API keys, or credentials. ## Review notes PR #13578 repairs the reduced-context base-image security inventory without changing the documented user behavior. Experimental Portable E2E work from PR #13491 is excluded from public documentation by `docs/.docs-skip`. --- Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com> --------- Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com>
Outcome
Staging Brev Launchable image builds can consume NemoClaw's reduced build contexts again. The final OpenClaw and Hermes image checks still verify the same pinned security package inventories.
Reason
The
nemoclaw-imageproducer includesscripts/in its reduced build contexts but excludessrc/lib/sandbox-base-image/security-package-specs.ts. NemoClaw's final Dockerfiles began requiring that source file after #13513, so the image build stops before publication.Changes
scripts/for the final image checks. A regression test compares its output with the canonical package specs across profiles and architectures. Leave the shared renderer unchanged so Pi qualification receipts do not need refreshing.src/mount and copy from the final OpenClaw and Hermes Dockerfiles. Admit the standalone source in the optimized OpenClaw and Hermes portable build contexts and refresh the exact dashboard Dockerfile instruction digest.brevdev/nemoclaw-imageduring normal business hours to update its context assembly and validation. This PR changes onlyNVIDIA/NemoClaw.Verification
ff5b9fa7a0b15e47367005a657a5b7dc54c112cais signed and GitHub Verified. Exact-head CI and automated review are pending.Review notes
The review on the previous head identified a real Hermes portable context blocker (P1) and a Pi receipt gate (P2). The latest head updates the portable COPY allowlist and file inventory for P1. It avoids the Pi input change altogether for P2 by leaving the shared renderer unchanged. The latest head also updates the remote dashboard's exact Dockerfile instruction check.
Signed-off-by: Rebecca Sliter 571084+rsliter@users.noreply.github.com
Summary by CodeRabbit
Security
Builds
Tests