Repository navigation
Conversation
The curated Hermes Provider onboarding flow passes the product-defined managed inference endpoint (https://inference-api.nousresearch.com/v1) as an explicit endpointUrl. In v0.0.131 that URL failed closed in setupHermesProviderInference because it is a DNS-backed HTTPS URL, so onboarding rejected NemoClaw's own provider configuration before sandbox creation (#12898). Native hosted provider setup (#12886) already accepts this endpoint without DNS resolution; every other DNS-backed HTTPS endpoint is still rejected by the existing SSRF failure-path tests. Pin the #12898 boundary so the product-defined endpoint keeps flowing through the native Hermes path. Fixes #12898
|
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. |
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Comment |
Contributor
Author
Authoring session — opening
|
Contributor
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 |
Contributor
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
This branch has not been deployed
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.
Outcome
NemoClaw no longer rejects its own product-defined Hermes Provider inference endpoint (
https://inference-api.nousresearch.com/v1) during onboarding. Onv0.0.131, the curated Hermes Provider OAuth flow passed that endpoint as an explicitendpointUrl, andsetupHermesProviderInferencefailed closed on it because it is a DNS-backed HTTPS URL. Currentmainalready accepts this endpoint through the native hosted provider path; this PR pins that acceptance with a regression test so the behavior cannot silently regress.Reason
Issue #12898 reports that Hermes Provider onboarding on a DGX Spark (NemoClaw
v0.0.131) stopped before sandbox creation with:The rejected URL was the same public Hermes Provider endpoint that NemoClaw's provider configuration declares (
src/lib/onboard/providers.ts,HERMES_INFERENCE_ENDPOINT_URL). Root cause: inv0.0.131,setupHermesProviderInferencevalidated every non-nullendpointUrlwithrewriteConfigUrlsWithDnsPinning, which deliberately fails closed for DNS-backed HTTPS persisted config values (#6139, #4684). Native hosted provider setup (#12886) later exempted the product-defined endpoint viausesNativeHermesEndpoint, resolving the reported failure path. A dedicated regression test was still missing, so this exact scenario had no guard against future regressions.Related issues
Fixes #12898
Changes
src/lib/onboard/inference-providers/hermes.test.ts("accepts the product-defined Hermes Provider endpoint from the curated OAuth flow without DNS pinning ([DGX Spark][Onboard] Hermes Provider OAuth rejects its own public inference endpoint #12898)"):provider = "hermes-provider",endpointUrlset to the product-defined endpoint exactly as the curated provider menu supplies it, and OAuth as the Hermes auth method.nativeInferencewith the canonical endpoint andOPENAI_API_KEY, callsprepareNativeProviderexactly once with the canonical endpoint, and never invokes the DNS lookup (the DNS-rebinding validator is not consulted for this endpoint).usesNativeHermesEndpointexemption for the product-defined endpoint; the existing failure-path tests continue to enforce that every other DNS-backed HTTPS endpoint is still rejected.Verification
npx vitest run --project cli src/lib/onboard/inference-providers/hermes.test.ts— 35 passed (includes the new test).npx vitest run test/onboarding/onboard-inference-failure-paths.test.ts— 25 passed; the injected-lookup test that rejects a non-product DNS-backed HTTPS Hermes endpoint (https://api.public.example.test/v1) still passes, confirming the SSRF fail-closed boundary is intact.npx oxfmt --check src/lib/onboard/inference-providers/hermes.test.ts— formatting clean.commitlintpassed on commit; the published commit isVerifiedon GitHub.setupHermesProviderInferenceboundary, which is where the reported error is produced (Inference endpoint URL points to a private or internal address, or could not be resolved: …). Note that completing the full OAuth path currently stops later on the retiredmint_agent_keypathway tracked separately in Remove deprecated mint_agent_key Hermes Oauth pathway #12976; that issue is out of scope here.Review notes
No pre-publication review exists for this change. The changed path
src/lib/onboard/inference-providers/hermes.test.tsmatches the contributor sensitive pathsrc/lib/onboard/**; the PR is opened as a draft with that path awaiting independent review. The change is test-only: no production source, policy, credential, or workflow file is modified.Signed-off-by: Chengjie Wang chengjiew@nvidia.com