[Ubuntu 24.04][Security] corporate CA accepted during onboard but missing from managed runtime
[!WARNING] Regression: the runtime corporate CA merge was reported working in v0.0.81; it is absent in v0.0.102. Related public issue: #6210.
Description
NemoClaw accepts a restricted corporate CA certificate during onboarding and reports the sandbox Ready, but the managed corporate CA material and merged runtime trust bundle are absent inside the sandbox. Applications therefore cannot use the configured corporate trust anchor through the managed runtime contract.
Platform scope: Reproduced on Ubuntu 24.04 only; other platforms not tested.
Environment
Device: Ubuntu 24.04 server
OS: Ubuntu 24.04.4 LTS (Linux 6.8.0-124-generic)
Architecture: x86_64
Node.js: v22.23.1
npm: 10.9.8
Docker: Docker Engine 29.5.3
OpenShell CLI: openshell 0.0.85
NemoClaw: nemoclaw v0.0.102
OpenClaw: 2026.7.1
Steps to Reproduce
-
Prepare a valid CA certificate at
/var/tmp/corporate-ca.crtand set its mode to0600. -
Run:
NEMOCLAW_CORPORATE_CA_BUNDLE=/var/tmp/corporate-ca.crt NEMOCLAW_PROVIDER=ollama NEMOCLAW_MODEL=qwen3.5:9b nemoclaw onboard --agent openclaw --name ca-merge-check --non-interactive --fresh --yes --yes-i-accept-third-party-software -
Confirm
nemoclaw ca-merge-check statusreports the sandbox Ready. -
Run:
nemoclaw ca-merge-check exec -- sh -c 'test -f /usr/local/share/nemoclaw/corporate-ca.pem; echo CORPORATE_CA_EXIT:$?; test -f /run/nemoclaw/managed-startup-ca-bundle.pem; echo MERGED_CA_EXIT:$?; printf "SSL_CERT_FILE=%s\n" "$SSL_CERT_FILE"'
Expected Result
Onboarding installs the validated corporate CA as root-owned, read-only managed material, creates a merged OpenShell and corporate CA bundle, and points SSL_CERT_FILE and the other managed CA environment variables at that merged bundle.
Actual Result
Onboarding exits successfully and the sandbox reaches Ready, but both managed CA files are absent. Both file checks exit 1, so the configured corporate CA is not available through the documented runtime trust contract.
Logs
$ nemoclaw ca-merge-check status
Sandbox: ca-merge-check
Phase: Ready
$ nemoclaw ca-merge-check exec -- sh -c 'test -f /usr/local/share/nemoclaw/corporate-ca.pem; echo CORPORATE_CA_EXIT:$?; test -f /run/nemoclaw/managed-startup-ca-bundle.pem; echo MERGED_CA_EXIT:$?'
CORPORATE_CA_EXIT:1
MERGED_CA_EXIT:1
Additional NemoClaw 0.0.102 evidence shows that the corporate-CA trust gap can also affect an OpenAI-compatible inference route:
Environment:
- Ubuntu 24.04, x86_64
- Node.js v22.23.2, npm 10.9.8
- Docker Engine 29.4.3
- OpenShell CLI 0.0.85
- NemoClaw v0.0.102
Observed sequence with a disposable HTTPS endpoint signed by a private test CA:
- The endpoint's models and chat-completions APIs were reachable when the test CA was trusted.
- NemoClaw reported that the Chat Completions API was available.
- The compatible-endpoint provider and
inference.localroute were created. - OpenClaw gateway launch inside the sandbox was reported successful.
- Final deployment verification returned:
inference.local returned HTTP 503 (route reachable but endpoint unhealthy) - NemoClaw consequently reported that OpenClaw was not ready.
The endpoint passed the initial trusted-TLS validation, but the route used during deployment verification could not use it successfully. This may indicate that the custom CA is not available to the OpenShell gateway's upstream TLS path, in addition to the missing managed runtime bundle already described here. Gateway-side TLS diagnostics are still needed to confirm that root cause.
I would like to take this one.
Reading the onboarding path, the trust anchor is accepted and recorded, but I want to establish where the chain stops before proposing a change: whether the CA is dropped from the image build, from the managed startup profile, or from the sandbox mount, and why onboard still exits 0 and reports Ready when the anchor is absent at runtime. The second failure mode in the comment above suggests the same gap reaches the inference route.
I will follow the issue's acceptance criteria and add the coverage that should have caught a silent accept, rather than only correcting the placement. Happy to post the root cause here first if you would rather agree the approach before a PR.
Root cause for MERGED_CA_EXIT:1, and the limit of what I can establish for CORPORATE_CA_EXIT:1.
The documented runtime trust contract — root-owned /usr/local/share/nemoclaw/corporate-ca.pem
plus a merged /run/nemoclaw/managed-startup-ca-bundle.pem — is implemented only by the
managed-image startup runtime, in mergeCorporateCa() at
src/lib/onboard/managed-startup/image-runtime.ts:1031-1059.
An onboard like the one in this report never selects a managed image:
src/lib/onboard/managed-workload/onboard-orchestration.ts:141-148setsmanagedImages: nullfor every onboard that is nottempManagedRuntimeand is not a rebuild.src/lib/onboard/workload/source.ts:131-133then makesmanagedImageRuntimeSupportError()return a reason.src/lib/onboard/workload/preparation.ts:234-253returns a legacy-dockerfile workload withfallbackDiagnostic: null, so nothing reports the change of path.- No managed startup profile is built, so no
mergeCorporateCa()call occurs. - The legacy path writes its merged bundle to
/tmp/nemoclaw-ca-bundle.pem(scripts/lib/corporate-ca-runtime.sh:23).
So /run/nemoclaw/managed-startup-ca-bundle.pem is unreachable on the path this onboard takes.
CORPORATE_CA_EXIT:1 does not follow from the checked-in source. I patched the shipped
Dockerfile with NEMOCLAW_CORPORATE_CA_BUNDLE set to a mode 0600 CA and agent openclaw.
The host-side patch baked the anchor, set ARG NEMOCLAW_MANAGED_IMAGE_RUNTIME_USER=root, and
printed:
[nemoclaw] baking corporate proxy CA from NEMOCLAW_CORPORATE_CA_BUNDLE (<path>) into the sandbox image trust (#6210)
Dockerfile:659-665 then writes /usr/local/share/nemoclaw/corporate-ca.pem as root:root 0444
in the single final stage, which test -f can see from the sandbox user. An absent file therefore
points at the image build, not at the host-side patch.
Could you attach the docker build output from the failing onboard? Two questions decide the
placement fix:
- Did the build run the corporate-CA
RUNblock, or did it reuse a cached image? - Was
NEMOCLAW_CORPORATE_CA_B64non-empty in that build?
Separately, I would like maintainer direction on the placement half. Making the legacy image
publish /run/nemoclaw/managed-startup-ca-bundle.pem adds a root-owned trust anchor to an image
that docs/security/configure-corporate-ca-trust.mdx describes as read-only by mode and not a
privilege boundary. Under the Product Scope Gate that needs an accepted decision on ownership,
lifecycle, compatibility, security, and validation, so I have not built it into a bug fix.
I opened a small PR for one adjacent defect I found while tracing this: onboarding could drop a validated corporate CA with no diagnostic at all. That branch is not the one your run takes, and the PR does not claim to close this issue.
V2C verification — PASS
Fix PR #9410 "fix(onboard): report a dropped corporate CA import" (merge commit c7e96ec56369fbd350520f2223db1fb8da2acbe9) is present in NemoClaw v0.0.114, which I confirmed installed on the test host.
Platform: Ubuntu 24.04, x86_64.
Repro (same steps as the issue, adapted only to use a local Ollama model for speed):
- Generated a self-signed test corporate CA at /var/tmp/corporate-ca.crt (mode 0600).
- Ran: NEMOCLAW_CORPORATE_CA_BUNDLE=/var/tmp/corporate-ca.crt NEMOCLAW_PROVIDER=ollama NEMOCLAW_MODEL=qwen2.5:0.5b nemoclaw onboard --agent openclaw --name ca-merge-check --non-interactive --fresh --yes --yes-i-accept-third-party-software Onboard completed successfully ("OpenClaw is ready"), sandbox reached Ready.
- Ran the issue's own check: nemoclaw ca-merge-check exec -- sh -c 'test -f /usr/local/share/nemoclaw/corporate-ca.pem; echo CORPORATE_CA_EXIT:$?; test -f /run/nemoclaw/managed-startup-ca-bundle.pem; echo MERGED_CA_EXIT:$?; printf "SSL_CERT_FILE=%s\n" "$SSL_CERT_FILE"'
Output: CORPORATE_CA_EXIT:0 MERGED_CA_EXIT:0 SSL_CERT_FILE=/tmp/nemoclaw-ca-bundle.pem
Both file checks now exit 0 (previously both exited 1 per the issue report). This is a real import, not just a reported warning:
- /usr/local/share/nemoclaw/corporate-ca.pem is root-owned, read-only (-r--r--r-- root root) and its SHA-256 fingerprint (6C:90:69:54:A0:65:0E:7F:84:52:FB:40:0B:EF:CC:37:94:8E:8B:52:93:1E:7C:06:BF:4F:27:CC:3D:ED:41:C3) matches the source certificate exactly.
- Functional trust test: I signed a leaf certificate ("CN=internal.corp.test") with the test corporate CA and copied it into the sandbox.
openssl verifyagainst /run/nemoclaw/managed-startup-ca-bundle.pem, against $SSL_CERT_FILE (/tmp/nemoclaw-ca-bundle.pem), and against /etc/ssl/certs/ca-certificates.crt all returned "OK" — the merged runtime trust bundle, the SSL_CERT_FILE-pointed bundle, and the system trust store all genuinely trust the corporate CA. - Negative control: a leaf certificate signed by an unrelated CA that was never provided to onboard correctly FAILED verification ("unable to get local issuer certificate") against all three of the above, confirming the trust test isn't trivially passing everything.
Sandbox destroyed after verification (nemoclaw ca-merge-check destroy --yes), no leftover state.
Verdict: PASS. The corporate CA is now correctly imported and merged into the managed runtime trust bundle, matching the issue's expected result.