Repository navigation
feat(runtime): accept a user-supplied API key for authenticated vLLM servers - #13294
Merged
Merged
Conversation
…servers Off Docker there is no credential volume for the runtime to generate its key in. With authentication set, the runtime now uses a key from NEMOCLAW_INFERENCE_KEY when its launch sets one, without touching the credential volume, and rejects a supplied key without authentication. The runtime contracts' launch names the variable as key_env so platforms can wire their own secret to it.
Contributor
This was referenced Oct 15, 2026
Closed
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 #13225. Part of #13131.
Failure
With
authentication: bearer, the vLLM runtime image could only generate its API key, in a Docker credential volume that NemoClaw reads back through the Docker engine. A server run on Kubernetes, Podman or anywhere else has no such volume, so it couldn't serve authenticated.Decision
As narrowed on #13225: the platform's secret mechanism owns the key off Docker; NemoClaw owns the runtime image's interface.
authenticationset, the supervisor uses a key fromNEMOCLAW_INFERENCE_KEYwhen its launch sets one.VLLM_API_KEY, removing the variable from vLLM's environment.authenticationin the contract stops startup, so a server never runs unauthenticated while someone believes it's protected.vllm_runtimeandollama_runtime:launch.key_envnames that variable when authentication is on, and is empty otherwise, so users can wire their platform's secret to it.openshell_inferencealready takes a literal server object withcredential_env. Readiness off Docker is the platform's, so endpoint readiness stays unauthenticated.docs/inference.mdgains "Supply the Key on Other Platforms" with a Kubernetes Secret example, anddocs/provider.mddescribeskey_env.Validation
a_supplied_key_is_used_only_when_it_is_a_usable_token(runtime) andthe_launch_names_the_key_variable_only_for_authenticated_servers(provider). Both failed before the change.cargo cipasses locally: 1531 unit tests, 145 lifecycle tests.fern checkreports 0 errors.VLLM_API_KEYremoval is untested the same way.cargo ci, so serving with a supplied key hasn't been exercised in a real image.