Repository navigation
Description
Problem or Motivation
The roadmap Service Deployment (devops/roadmap-service) reads DEVOPS_CLI_AI_API_KEY from key api-key of Secret roadmap-service-llm-key (#3685, #5703).
Currently, an operator must perform multiple manual steps to bootstrap this key:
- Extract the gateway master key from Kubernetes Secret
llm/llm-gateway-secrets. - Make a
POST /key/generateHTTP request to the LiteLLM gateway admin API with model list, budget, and rate limit settings. - Store the minted virtual key into the local OS keyring (
roadmap_service.llm_key). - Push the Secret to Kubernetes via
devops k8s push-secrets --only devops/roadmap-service-llm-key.
If these steps are not performed, the roadmap-service pod enters CreateContainerConfigError with Error: secret "roadmap-service-llm-key" not found.
Proposed Solution & Architectural Design
Add a dedicated CLI command devops k8s bootstrap-roadmap-key:
- Signature:
devops k8s bootstrap-roadmap-key [OPTIONS]
Options:--context: Kubernetes context (default: active / homelab-k3s).--models: Model pattern or list for the virtual key (default:devops-*).--budget: Maximum budget in USD (default: 50.0).--rpm: Requests-per-minute limit (default: 60).--alias: Key alias on LiteLLM gateway (default:roadmap-service).--force: Mint a new key even if one is already stored in the keyring.--dry-run: Preview planned actions without writing to gateway, keyring, or cluster.
- Workflow:
- Retrieve the gateway master key from
Secret/llm/llm-gateway-secrets. - Resolve the LiteLLM gateway URL.
- Call
POST /key/generatewith the specified alias, budget, rpm limit, and models. - Store the minted key in the OS keyring under
roadmap_service.llm_key. - Write or push Secret
roadmap-service-llm-keywith keyapi-keyin namespacedevops. - Display clear success output with masked key.
- Retrieve the gateway master key from
Target Subsystem
Kubernetes & Minikube Automation (src/devops_cli/commands/k8s/)
Existing Tool Considered
LiteLLM gateway provides /key/generate, and kubectl manages secrets, but no existing command coordinates extracting the cluster admin key, calling the gateway API, updating the OS keyring, and pushing the Secret. Building this subcommand reuses existing k8s, HTTP, and keyring helpers.
Cost: 100k agent tokens, 0.25 day.
Standards Compliance
- Aligns with AGENTS.md engineering principles (cyclomatic complexity <= 10, nesting <= 4 blocks, zero bare exceptions, test-first).
- Includes automated unit tests and dry-run verification.
Activity
dan-petty commentedon Nov 14, 2026
Both concern the roadmap Service dedicated gateway key, but #3685 makes the Service read it while the candidate adds a CLI command to automate minting and pushing it.docs(openspec): plan #5741 Add devops k8s bootstrap-roadmap-key command
feat(k8s): add devops k8s bootstrap-roadmap-key (#5741)
feat(k8s): add devops k8s bootstrap-roadmap-key (#5741)
devops-cli-service commentedon Nov 14, 2026
Released in v0.144.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.144.0
devops-cli-service commentedon Nov 14, 2026
Live since 2026-11-14 22:29 UTC