Repository navigation
Never give workers the RunPod key or the organization's API key (0.21.0) - #104
Merged
Merged
Conversation
…ase 0.21.0 Security audit 2026-11-22, finding H10. The cluster manager passed RUNPOD_API_KEY to official worker images older than v0.16.0. The image is chosen by the job's author, so any organization member, or code in a job, could name such an image and read the key. And on a database without create_worker_token() the manager passed the organization's admin API key to workers in place of a worker token. Now the environment of a worker does not depend on its image and never holds either key. Jobs that name an official image older than v0.16.0 are failed with the reason in outputs.error instead of started. When no worker token can be created, no pod is started: the worker row is closed, the jobs stay pending and the manager tries again after 60 seconds. Behaviour changes, release order and key rotation: docs/release-0.21.0.md. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
nielsrolf
marked this pull request as draft
November 23, 2026 12:01
Collaborator
Author
|
Parked as a draft on 2026-11-23: no breaking changes to openweights for now. When picked up again, first check whether any organization still uses clients or worker images older than 0.16.0. |
Production still has jobs on nielsrolf/ow-vllm:v0.11; the three-part pattern treated such images as custom ones and started them without the key. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
nielsrolf
marked this pull request as ready for review
November 24, 2026 09:42
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.
What
Closes finding H10 of the 2026-11-22 security audit of the internal tools.
create_worker_tokenfound no such function in the database, the worker was started with the organization's admin API key. Now no worker is started without a token of its own; jobs stay pending, the manager logs the reason and retries after 60 s.Who notices
20261122000000_worker_tokens.sql(including a self-managedow cluster): the manager starts no workers until it is applied.docs/release-0.21.0.md).Tested
pytest tests --ignore=tests/test_integration.py: 309 passed with the local test database (239 passed, 70 skipped without it). New tests cover which images are refused, a started pod's environment, and no pod on token failure. Reverting the fix makes 6 tests fail.Not tested: real RunPod and Supabase; whether any production organization still has jobs or clients on pre-0.16 images.
The version bump to 0.21.0 follows the repository's release-commit habit; change it if this ships under another number.
🤖 Generated with Claude Code