Repository navigation
fix(k8s): load only the needed Secret keys in runner Jobs - #6520
Conversation
Key-to-reader mapThe key names of Secret
Other paths:
Proof on head 301c7cf
Sync order and live Jobs
Not proved before the mergeThe proof that the issue asks for: an implement Job and a fix-checks Job run green after the Argo CD sync. That needs the merge. |
Overlap and review notes
|
Check resultsHead commit:
Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/44752884972/job/136344999137 Skipped check: Plan Check |
016aea7 to
a813385
Compare
|
Pull request #6520 has merge conflicts with |
The runner template takes the App key and the gateway key of Secret devops-cli through secretKeyRef in place of the whole Secret. The admission policy admits the 2 keys for a runner Job. Refs #6518
…r key guard The policy admitted a runner Job with envFrom of Secret devops-cli on a CREATE. It now reads request.operation and admits that envFrom only in the UPDATE of a runner Job, which the Service sends to a Job made before #6518. A gate check covers the planner guard of the valueFrom rule. The docs name the pods that hold the MCP token, what turns an MCP client on, and why the namespace of a Job is a plain value (fieldRef).
YAML ended the plain message of the envFrom rule at ' #6518'. The message names the issue with no '#' now, and a check compares its whole text. New cases refuse envFrom in the UPDATE of a stage Job and of a planner run Job, and envFrom of a ConfigMap or another Secret in the UPDATE of a runner Job. The runner pod holds no Qdrant key and no MCP token now, so the Qdrant spec, SECURITY.md, k8s/README.md, ENV_VARS.md and the comments name the pods that hold them.
… key (#6518) A pod that loads Secret devops-cli with envFrom holds the read-only key only when it sets no Qdrant key of its own; rag-ingest sets the admin key. The cluster_secrets comment no longer names the runner and the Service.
a813385 to
d8d043e
Compare
🤖 I have created a release *beep* *boop* --- ## [0.183.1](v0.183.0...v0.183.1) (2026-11-20) ### Bug Fixes * **k8s:** load only the needed Secret keys in runner Jobs ([#6520](#6520)) ([a656f4b](a656f4b)), closes [#6518](#6518) * **roadmap:** Name the failed refine form check to the model ([#6507](#6507)) ([582ad22](582ad22)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
The runner Job template took the whole Secret
devops-cliwithenvFrom, so each implement and fix-checks pod held all 10 keys, but its jobs read only 2. It now takes onlyDEVOPS_CLI_SERVICE_GITHUB_APP_PRIVATE_KEYandDEVOPS_CLI_AI_API_KEYthroughsecretKeyRef, as a stage Job does. No Secret or key name is new.The admission policy
roadmap-service-jobsadmits those 2 keys in a runner Job and still refuses them in a planner run Job. It refusesenvFromin theCREATEof a Job, and admitsenvFromofdevops-clionly in theUPDATEof a runner Job made before the sync, which the Service patches.The docs and the
qdrant-read-only-keyspec name the pods that hold the MCP token and the Qdrant read-only key (the runner holds neither). Refs #5498: a key table for each job.Closes #6518
Change:
openspec/changes/archive/2026-11-20-6518-runner-secret-keys/