Skip to content

fix(sdk): explain untrusted inference server certificates - #13288

Merged
cv merged 1 commit into
v1from
feat/custom-ca-guidance
Oct 15, 2026
Merged

cv merged 1 commit into
v1from
feat/custom-ca-guidance

Conversation

@cv

@cv cv commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

Closes #13236. Part of #13131.

Failure

When an inference server's certificate came from a CA the control host doesn't trust, such as an organization's internal CA, catalog checks reported "inference endpoint could not be reached from the control host". That pointed operators at the network instead of the certificate, and nothing said how to fix it. This affects plan's catalog reads, onboarding suggestions, and openshell_external_inference_server.

Decision

Keep trust where it already lives, and say so clearly:

  • Inference traffic: the OpenShell gateway and sandboxes carry it, and at the pinned revision OpenShell has no per-provider CA setting; its images' trust stores decide. A NemoClaw-side CA setting would let NemoClaw's checks pass while OpenShell's traffic fails, so this adds none.
  • NemoClaw's own checks already use the control host's system trust store, which honors SSL_CERT_FILE.
  • A specific error: the catalog reader now recognizes a rejected certificate in the request's error chain. It reports "the inference server's certificate is not trusted by the control host; add its CA to the system trust store or set SSL_CERT_FILE to a bundle that includes it". The check walks nested I/O errors, whose source() skips the error each one wraps. Every caller of the catalog reader gets the new message.
  • Docs: docs/inference.md gains "Trust a Custom Certificate Authority", covering both places that need the CA. Two lines in docs/inference.md and docs/usage.md still stated NemoClaw's old address rule for uncredentialed HTTP endpoints, which fix(sdk): leave inference destination checks to OpenShell #13260 removed; they now say OpenShell decides which destinations a sandbox can reach.

Validation

  • New test an_untrusted_certificate_names_how_to_trust_it serves a self-signed certificate. It failed before the change with the generic unreachable reason.
  • cargo ci passes locally: 1529 unit tests, 145 lifecycle tests.
  • fern check: 0 errors, and the same single warning as before.

A catalog read rejected by an untrusted server certificate reported the
endpoint as unreachable. Recognize the certificate rejection in the
request's error chain and say how to trust the CA: the system trust
store or SSL_CERT_FILE. OpenShell carries inference traffic with its
images' trust stores, so NemoClaw adds no CA setting of its own; the
inference guide now covers both places that need the CA.
@cv
cv enabled auto-merge (squash) October 15, 2026 22:11
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit efbbb38 into v1 Oct 15, 2026
@cv
cv deleted the feat/custom-ca-guidance branch October 15, 2026 22:22
cv added a commit that referenced this pull request Oct 15, 2026
…ost (#13291)

Part of #13131. Follows the decision on #13256.

## Failure

Two things checked inference servers NemoClaw doesn't run, from the
machine running NemoClaw:

- **`data.openshell_external_inference_server`** read the server's model
list and blocked on failure.
- **Plans** read every external endpoint's catalog in-process and listed
problems as advisory `unverified` entries.

Both validate something neither NemoClaw nor OpenTofu manages, from the
wrong place. OpenShell owns the registration and carries the traffic
from its gateway and sandboxes. A control-host check gives false
failures, for example `host.openshell.internal` or networks only the
gateway reaches, and false passes, such as a CA the control host trusts
but the gateway doesn't (#13236). Agent readiness already observes the
real path through OpenShell.

## Decision

- **Removed:** `data.openshell_external_inference_server`, with its
contract test and schema entry. For a server NemoClaw doesn't run,
`openshell_inference` takes a literal `inference_server` object as
`server`, as generated graphs already do.
- **Removed from plans:** the catalog reads
(`inference_discovery::observe_endpoints`,
`DiscoveryReport::endpoints`). `unverified` now covers only apply-time
service readiness.
- **Unused, so removed:** `observe_server` and
`EndpointRequest::validate_shape`, which only the data source used.
- **Kept:** onboarding still reads catalogs with `observe_endpoint` to
suggest models, which helps users write a configuration rather than
validating a deployment.
- **Docs:** `provider.md`, `reference/cli.md`, `sdk.md` and
`inference.md` now say plans and providers don't read catalogs, and that
onboarding does.

## Validation

- `cargo ci` passes locally: 1528 unit tests, 143 lifecycle tests.
- `fern check`: 0 errors, the same single warning as before.
- **Tests:**
- **Deleted:** the e2e test of plan-time catalog observations, which
tested removed behavior; `nemoclaw-discovery` keeps the catalog reader's
own tests.
- **Updated:** the CLI output test now expects no `unverified` entries
from a plan.
- **Switched:** the untrusted-certificate test from #13288 now uses
`observe_endpoint`.
@wscurran wscurran added area: observability Logging, metrics, tracing, diagnostics, or debug output area: providers Inference provider integrations and provider behavior bug-fix PR fixes a bug or regression labels Oct 26, 2026
@wscurran wscurran added the v1 NemoClaw v1 branch label Oct 28, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: observability Logging, metrics, tracing, diagnostics, or debug output area: providers Inference provider integrations and provider behavior bug-fix PR fixes a bug or regression v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants