Repository navigation
fix(sdk): explain untrusted inference server certificates - #13288
Merged
Merged
Conversation
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
enabled auto-merge (squash)
October 15, 2026 22:11
Contributor
This was referenced Oct 15, 2026
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`.
Closed
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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:
SSL_CERT_FILE.source()skips the error each one wraps. Every caller of the catalog reader gets the new message.docs/inference.mdgains "Trust a Custom Certificate Authority", covering both places that need the CA. Two lines indocs/inference.mdanddocs/usage.mdstill 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
an_untrusted_certificate_names_how_to_trust_itserves a self-signed certificate. It failed before the change with the generic unreachable reason.cargo cipasses locally: 1529 unit tests, 145 lifecycle tests.fern check: 0 errors, and the same single warning as before.