fix(onboard): validate nvapi- key prefix in non-interactive mode#1407
fix(onboard): validate nvapi- key prefix in non-interactive mode#1407yimoj wants to merge 1 commit intoNVIDIA:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe onboarding script's non-interactive flow now validates the value of Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
…DIA#1380) Non-interactive onboard with an sk-* key from Inference Hub now fails early with a clear message instead of an opaque HTTP 401. Signed-off-by: Yimo Jiang <yimoj@nvidia.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
79b5fda to
097aba2
Compare
|
✨ |
Summary
NEMOCLAW_PROVIDER=cloudnow validates theNVIDIA_API_KEYprefix before hitting the endpoint, using the existingvalidateNvidiaApiKeyValue()helpersk-*key (or any non-nvapi-*key) now fails early with a clear message and the correct URL to obtain a key, instead of an opaqueHTTP 401: Authentication failedCloses #1380
Test plan
NVIDIA_API_KEY="sk-fake" NEMOCLAW_NON_INTERACTIVE=1 ... nemoclaw onboardnow printsInvalid key. Must start with nvapi-andGet a key from https://build.nvidia.com/settings/api-keysinstall-preflight.test.jsunrelated to this change)🤖 Generated with Claude Code
Summary by CodeRabbit