Repository navigation
Description
Problem
Agents run devops from the devcontainer, so every command that needs a credential reads it from the person's keyring (KEYRING_KEYS, src/devops_cli/config/options.py:242). For example, ai.api_key comes from keyring ai_api_key or from DEVOPS_CLI_AI_API_KEY (src/devops_cli/security/secrets.py:423).
Every model call from the workstation reaches the gateway through the Cloudflare route ai.<domain> (k8s/ingress/ingress-routes.yaml:59). That route sits behind the tunnel and Access (k8s/README.md:218, :249-254), and it cuts long calls at the edge at about 125 s. This is the owner's finding of 2026-10-03, on the path #1069 measures.
The owner decided on 2026-10-03 that:
- devops-cli runs in the homelab cluster;
- its credentials live in Kubernetes Secrets, which are encrypted at rest (homelab commit 550636f);
- agents drive it with kubectl and never handle keys;
- one devops-cli command, run from a shell with the keyring unlocked, creates and updates the cluster's Secrets, and
devops k8s deploy-stackruns it automatically.
The roadmap service becomes one workload on this runtime (#1083).
At release/v0.2.25 (dcafadf; the current tip, 132ecc5, changes none of the lines cited here):
-
No image yet. feat(release): production service image for scheduled jobs and webhook handlers #753 adds
ghcr.io/dan-petty/devops-cli/service:ENTRYPOINT ["devops"], UID 1000;HOME=/home/devops,DEVOPS_CLI_DATA_DIR=/home/devops/.data;- a read-only root filesystem, with
ghandgitinstalled.
Its smoke test expects
/tmpand/home/devopsto be writable. GHCR may create the package as private on the first push (feat(release): production service image for scheduled jobs and webhook handlers #753). -
Every Secret the stacks read is made by hand, or leaks on the way in. The manifests and values under k8s/ reference four Secrets, and no command writes three of them:
llm/llm-gateway-secrets(master-key): read by the gateway (k8s/llm/gateway/deployment.yaml:52-56) and by Open WebUI (openaiApiKeyExistingSecret, k8s/llm/values-open-webui.yaml:29-30). It is created withkubectl create secret generic … --from-literal(deployment.yaml:48-51, k8s/README.md:79-80).llm/valkey-runs-auth(password): read by the run index (k8s/llm/valkey-runs.yaml:83-87), created with--from-literal(valkey-runs.yaml:9-11, k8s/README.md:69).devops ai runs connectthen copies it cluster → keyring (runs_index_password, src/devops_cli/commands/ai_runs.py:155). It is not live on the homelab (feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755's read of 2026-10-03).cloudflared/cloudflared-token(token): read by cloudflared (k8s/cloudflared/deployment.yaml:40-44), created with--from-literal(k8s/cloudflared/secret.example.yaml:3-6, k8s/README.md:258-263).llm/qdrant-api-key(api-key): read by Qdrant (k8s/llm/values-qdrant.yaml:20-25). deploy-stack's_ensure_qdrant_api_key_secret(src/devops_cli/commands/k8s/stack_lifecycle.py:450) pipes a manifest to a client-sidekubectl apply -f -. That copiesstringDatainto thekubectl.kubernetes.io/last-applied-configurationannotation. When the Secret already exists, it copies the live key into the keyring instead (:464-469), so the keyring holds whichever cluster was deployed last.
--from-literalputs the value in the process list and the shell history. -
Chart-generated Secrets flow the other way.
devops k8s sync-secrets(stack_lifecycle.py:801) copies cluster → keyring: Argo CD'sargocd-initial-admin-secret, Grafana's chart Secret (grafana, since k8s/monitoring/grafana-values.yaml:27 setsadminPassword: "") andqdrant-api-key(src/devops_cli/k8s/credentials.py:561-586). deploy-stack runs the same sync after installing (_post_deploy_credentials, stack_lifecycle.py:647). -
deploy-stack's order (stack_lifecycle.py:695-798): cluster check;
kubectl apply -k k8s/(namespaces, cloudflared, registry, :770-772); Helm repos; the stack's raw manifests (:778), which include the gateway Deployment; then each Helm release, with Qdrant's Secret ensured just before its release (:604-612). It also runs fromdevops k8s bootstrap(src/devops_cli/commands/k8s/bootstrap.py:62), from the devcontainer's auto-deploy (src/devops_cli/commands/devcontainer.py:960-972) and from the MCP toolk8s_deploy_stack(src/devops_cli/ai/mcp/server.py:313).- The auto-deploy passes the stack as a positional argument (
devops k8s deploy-stack infra, devcontainer.py:964), but deploy-stack only takes--stack, so that call fails today. - The auto-deploy runs at post-start, when
DEVOPS_K8S_AUTO_DEPLOYis set (devcontainer.py:1146; the template sets it, templates/devcontainer.json.j2:44). The keyring is unlocked later, by a hook in the first interactive shell (devcontainer.py:750-761), so the auto-deploy can run while the keyring is still locked. _ensure_qdrant_api_key_secretis re-exported fromsrc/devops_cli/commands/k8s/__init__.py(:80, :140). Its helperfetch_qdrant_api_key(src/devops_cli/k8s/credentials.py:187) has one other caller,sync_k8s_credentials(:584).
- The auto-deploy passes the stack as a positional argument (
-
Consumers read their Secret only at start. Every reference above is an env
secretKeyRef. Open WebUI uses the gateway key only on its first start and keeps the connection in its database afterwards (k8s/llm/values-open-webui.yaml:24-26, k8s/README.md:129). -
The keyring hides a locked state.
_keyring_getreturnsNonewhen the keyring is locked or has no backend, the same as for a missing entry (src/devops_cli/config/settings.py:666-685). Without a usable backend, or withDEVOPS_CLI_HEADLESS_AUTH,_keyring_setwrites to an in-memory store (:710-727), so a value generated then would be lost when the process exits. -
No way to store a credential without argv.
devops config set KEY VALUEtakes the value as an argument (src/devops_cli/commands/config.py:184-188). Onlyconfig initprompts with hidden input (:247). -
The machine account's token.
- ADR 0002 has the jobs act as a machine account with a classic token.
- refactor(github): one github session per identity owning token, quota and transport #767 removes the
github_tokenkeyring entry and takes the identity only fromgh auth token. - gh 2.102.0 keeps each logged-in account's token in the OS keyring (
gh auth statusshows(keyring)), andgh auth token --user <login>prints a given account's token.
-
kubectl alone cannot run an arbitrary devops command safely.
kubectl create job --from=cronjob/<name>copies a CronJob's template but cannot change its args.kubectl runandkubectl create job --imageset no security context, so arestrictednamespace rejects them.
-
In-cluster gateway.
- It is
http://llm-gateway.llm.svc.cluster.local:4000/v1(k8s/llm/gateway/service.yaml). Its policy admits any source on 4000 (k8s/llm/gateway/networkpolicy.yaml:18-24). - With provider
gateway, the client refuses a URL that resolves to a private address unlessai.allow_private_networkis true. That setting defaults to false (src/devops_cli/config/settings.py:464). - The default provider is
ollama(src/devops_cli/config/defaults.py:63).
- It is
-
kube-router. On this cluster, kube-router refused an egress rule that pairs a namespace+pod selector peer with
ports:(k8s/cloudflared/networkpolicy.yaml:44-48). A namespace-selector-only peer withports:works: Prometheus reachesllmthat way (k8s/monitoring/networkpolicy.yaml:102-116). Blocked connections fail as "connection refused" (fix(k8s): cloudflared egress NetworkPolicy silently blocks Traefik traffic #725). -
Deploy paths.
- The root kustomization (k8s/kustomization.yaml:4-11) is also applied to the devcontainer's minikube (k8s/README.md:3).
devops k8s apply <dir> --templaterunskubectl kustomizeand substitutes the domain (src/devops_cli/k8s/template.py:87-105, :126-147), soimages:is honoured.- Argo CD has no Applications (feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755, v0.2.27).
-
Release tooling.
devops release preparebumpspyproject.tomland__init__.py(src/devops_cli/commands/release.py:747-757), and_verify_release_versions(:1215) compares them.- The cut stages only
_release_paths(:522-537):pyproject.toml,__init__.py,CHANGELOG.md,README.md,docs/andchangelog.d/. A file the bump edits outside that list is not committed.
-
Policy tests. tests/test_k8s_network_policies.py checks each namespace in
TARGET_NAMESPACES(:16).
Proposed solution
A devops namespace under k8s/devops/ holds the in-cluster devops-cli:
- a config;
- a suspended CronJob
devops-cli, the template for every cluster job; - a service account with no API token;
- a default-deny perimeter.
One Secret, devops-cli, holds its credentials under environment-variable names and reaches every pod through envFrom.
Two commands:
devops k8s push-secrets(workstation → cluster) writes every Secret the stacks need from the OS keyring. One table, held as data, says for each Secret key where its value comes from, whether it is required, and whether a value may be generated. It server-side applies from stdin and restarts the workloads whose Secret changed.devops k8s deploy-stackruns the same code for the stacks it deploys, before their manifests and Helm releases.devops k8s run-job -- <devops args>creates a Job from the CronJob's template with only the args changed, follows its log, and exits with the container's exit code.
devops config set KEY prompts with hidden input for a credential.
Scope
k8s/devops/. It is applied with devops k8s apply k8s/devops/ --template until #755's devops Application syncs it. It is not in the root kustomization.
-
namespace.yaml:devops, with Pod Securityrestrictedfor enforce, warn and audit (as k8s/namespaces.yaml:30-32). It carriesargocd.argoproj.io/sync-options: Prune=false,Delete=false(feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755). -
serviceaccount.yaml:devops-cli,automountServiceAccountToken: false, no Role. -
configmap.yaml:devops-cli-config, keydevops-cli.yaml. It sets:ai.provider: gateway;ai.gateway_url: http://llm-gateway.llm.svc.cluster.local:4000/v1;ai.allow_private_network: true;- the task models.
It holds no credential.
-
cronjob.yaml: CronJobdevops-cli,suspend: true.- jobTemplate:
backoffLimit: 0,ttlSecondsAfterFinished: 86400,activeDeadlineSeconds: 7200,restartPolicy: Never,serviceAccountName: devops-cli. - Pod and container security context as in k8s/llm/gateway/deployment.yaml:22-39.
- One container,
devops-cli: imageghcr.io/dan-petty/devops-cli/service, args["--version"],envFrom: [{secretRef: {name: devops-cli}}]. - Env:
DEVOPS_CLI_CONFIG=/config/devops-cli.yamlandDEVOPS_CLI_DATA_DIR=/home/devops/.data. - Volumes: an
emptyDiron/tmpand on/home/devops; the ConfigMap read-only on/config. - Requests 100m CPU / 256Mi; limits 1 CPU / 1Gi.
- jobTemplate:
-
networkpolicy.yaml:devops-default-perimeter,podSelector: {}, both policyTypes, no ingress rule. Egress goes to:- DNS;
- namespace
llm(namespaceSelector only, no podSelector) on TCP 4000, the shape the monitoring policy already uses (k8s/monitoring/networkpolicy.yaml:102-116); - TCP 443 to
0.0.0.0/0except10.0.0.0/8,172.16.0.0/12,192.168.0.0/16and169.254.169.254/32.
-
kustomization.yaml: the resources above, andimages:forghcr.io/dan-petty/devops-cli/servicewithnewTag: v0.2.26, the first release that publishes the image.
The Secret table (src/devops_cli/k8s/cluster_secrets.py), held as data: frozen dataclasses, one per Secret, each with namespace, name, stack, labels, its entries and the workloads that read it. An entry has a key, a source (a keyring key, the gh account, a non-secret setting, or a literal for non-secret keys such as a URL), required or optional, an optional generator (secrets.token_hex or token_urlsafe, with a prefix), and the Secret key a missing keyring value may be adopted from (its own key by default). This item's rows:
| Secret | Key | Source | Required | When the keyring has no value | Stack | Restarted when it changes |
|---|---|---|---|---|---|---|
llm/llm-gateway-secrets |
master-key |
keyring llm_gateway_master_key (new) |
yes | adopt the live value; else generate sk- + 48 hex |
llm | deployment/llm-gateway |
llm/qdrant-api-key |
api-key |
keyring qdrant_api_key (qdrant.api_key) |
yes | adopt; else generate (token_urlsafe(32), as stack_lifecycle.py:471 does today) |
llm | statefulset/qdrant |
llm/valkey-runs-auth |
password |
keyring runs_index_password (runs.index_password) |
yes | adopt; else generate 64 hex | llm | deployment/valkey-runs |
cloudflared/cloudflared-token |
token |
keyring cloudflare_tunnel_token (new credential cloudflare.tunnel_token) |
no | adopt; else skip the key with a warning | base | deployment/cloudflared |
devops/devops-cli |
GH_TOKEN |
gh's keyring, account --github-account, else setting k8s.github_account |
yes | fail | devops | none (each Job reads it at start) |
devops/devops-cli |
DEVOPS_CLI_AI_API_KEY |
keyring llm_gateway_master_key |
yes | adopt from llm/llm-gateway-secrets master-key; never generated here |
devops | none |
baserows belong to the root kustomization, which every deploy-stack run applies. deploy-stack does not deployk8s/devops/, but it still pushes thedevopsrows wherever namespacedevopsexists (see deploy-stack below).- Other items add rows: feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755
monitoring/grafana-admin, feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083 the webhook key and feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744 the Tavily key ondevops/devops-cli, feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081 the Gitea Secrets, and feat(k8s): Point Argo CD to Gitea for git and PR dev images #1082 Argo CD's Gitea repository credential. - New keyring keys:
llm_gateway_master_key: generated, so it is a keyring-only key that the table declares, not a Settings option. The workstation's ownai.api_keystays separate, because it may hold another provider's key.cloudflare_tunnel_token: typed by a person, so it is a managed credentialcloudflare.tunnel_token(envDEVOPS_CLI_CLOUDFLARE_TUNNEL_TOKEN), added toSECRET_CONFIG_OPTIONS,KEYRING_KEYS, the env spec andbuild_secret_registrylikeqdrant.api_key. It is stored withdevops config set cloudflare.tunnel_token(hidden prompt).
- New setting
k8s.github_account(not a secret): the login of the machine account whose gh token becomesGH_TOKEN.--github-accountoverrides it. It lets a barepush-secrets, and deploy-stack, writedevops/devops-cliwith no flag. - Every pushed Secret carries the label
app.kubernetes.io/managed-by: devops-cli.
devops k8s push-secrets [--stack STACK] [--only NS/NAME]... [--github-account LOGIN] [--rotate] [--restart/--no-restart] [--context CTX] [--dry-run]
-
Selection.
--stackis a stack the table names (base,infra,llm,logging,devops, and those later items add, such asgitea) orall(the default).--only NS/NAMEis repeatable and replaces--stack; an unknown name exits 2 and lists the table's names. Only the selected Secrets' sources are read. -
Keyring first. Before any read, the command checks that the keyring has an encrypted backend, is unlocked, and is not the in-memory store. Otherwise it exits 1 with nothing read or written: a locked keyring names
devops devcontainer unlock-keyring, and no backend names the missing backend. Keyring reads in this command raise on a locked keyring instead of returningNone. -
Plan, then write. For each selected entry it resolves the value in memory:
- The keyring has it, and the live key is absent or equal: create, or leave unchanged.
- The keyring has it, and the live key differs: without
--rotatethe command exits 1 before writing anything, naming each suchNS/NAME keyand both ways on (--rotate, or delete the keyring entry to adopt the live value). With--rotatethe keyring value replaces it. - The keyring lacks it, and the live Secret (the entry's adopt-from key) has it: adopt it into the keyring.
- Neither has it: generate it if the entry has a generator. Otherwise a required entry fails and an optional one is skipped with a warning naming the key and the command that stores it.
The live values are read once per selected Secret with the existing
fetch_secret_data(credentials.py:60). A missing namespace skips that Secret with a warning under--stack, and fails under--only. The namespaces are checked before any source is resolved, so a skipped Secret's sources are neither read nor required: on a cluster withoutdevops, a barepush-secretsneeds no GitHub account. -
Failures. Every missing required source is listed in one message naming its keyring key, option, or
--github-accountandk8s.github_account, and nothing is written. Otherwise adopted and generated values are stored in the keyring first, and then the cluster is written. -
gh account.
GH_TOKENis read withgh auth token --hostname github.com --user LOGINin an environment withoutGH_TOKEN,GITHUB_TOKENandDEVOPS_CLI_GITHUB_TOKEN.run_subprocessputs those back into everyghcall (_inject_gh_credentials, src/devops_cli/core/process.py:206-215, called at :248), so this call opts out of that injection. OneGET /userthen confirms that the login equals LOGIN. A missing account, or gh keeping LOGIN's token in its config file instead of the keyring, fails like any required source. -
Validation.
master-keyandDEVOPS_CLI_AI_API_KEYmust start withsk-(LiteLLM's rule, deployment.yaml:48-49); a keyring value without it fails naming the key. -
Apply. All selected Secrets go as one
v1List, built as a dict and serialised withjson.dumps, on stdin tokubectl apply --server-side --field-manager=devops-cli --force-conflicts -f -, with-o jsonpathprinting only namespace, name and resourceVersion.- Values go in
data, base64-encoded with the standard library, not instringData. Withdata, the field manager owns exactly the stored keys.stringDatais write-only and folded intodataby the API server, so whether server-side apply would remove a dropped key is unclear (untested);dataavoids the question, and the person check confirms the ownership. - A value is never in argv, a file, an annotation, a log record or the command's output.
- Keys the table drops are removed on the next push, unless another field manager also owns them (for example a key first written by
kubectl create, whose value equals the pushed one).
- Values go in
-
Leaked copies. A selected Secret that carries
kubectl.kubernetes.io/last-applied-configurationhas it removed withkubectl annotate secret NAME -n NS kubectl.kubernetes.io/last-applied-configuration-. This is the copy the old Qdrant path left. It was readable only by those who can read the Secret, so the key needs no rotation. -
Restarts. For each Secret that already existed and whose data changed (a key added, changed or removed), the command runs
kubectl rollout restarton its listed workloads that exist. A newly created Secret restarts nothing: a pod waiting on it starts once it exists. An added key does count, becauseenvFromstarts a pod without a missing key.--no-restartprints those commands instead. A changed gateway key prints that Open WebUI keeps its stored connection (k8s/README.md:129). -
Empty Secrets. A Secret whose every key is skipped is not applied, so no empty Secret is created.
-
Output. One line per Secret: namespace/name, then each key with its source and state (
created,unchanged,adopted,generated,rotated,skipped), and the restarted workloads. Never a value. -
--dry-runreads the keyring and, withkubectl getonly, the live Secrets. It prints the same lines aswould …, writes nothing to the keyring or the cluster, and restarts nothing. -
The help string says the direction: workstation keyring → cluster, the reverse of
sync-secrets.
deploy-stack
-
After
kubectl apply -k k8s/(namespaces) and before the Helm repos, raw manifests and Helm releases, deploy-stack pushes:- the
baserows and those of its selected stacks; - the rows of stacks deploy-stack never deploys (
devops, and latergitea) when the namespace of the same name exists. So oncek8s/devops/is applied, every deploy-stack run also creates or updatesdevops/devops-cli.
It calls the same function as
push-secrets, with--stacksemantics, no--rotateand restarts on.- A failure (locked keyring, a missing required source, a differing live value) exits 1 before any manifest or Helm release is applied.
- The cloudflared Deployment from the root kustomization waits in
CreateContainerConfigErrorfor the few seconds until its Secret exists.
- the
-
--push-secrets/--no-push-secrets(default on) skips the push, for a minikube with no keyring. -
--dry-runadds the Secrets and their key names, from the table alone, to its details; thedevopsand later rows are listed as pushed only if their namespace exists. -
_ensure_qdrant_api_key_secret, its re-exports and the Qdrant special case in_install_single_release(stack_lifecycle.py:604-612) are removed._post_deploy_credentialsandsync_k8s_credentialsstop copyingqdrant-api-keyback to the keyring,fetch_qdrant_api_keygoes with its last caller, andsync-secretslists only Argo CD and Grafana. No Secret in the table is copied cluster → keyring. -
Callers.
- The devcontainer auto-deploy passes
--stack STACKinstead of the positional argument (devcontainer.py:964). If the push fails because the keyring is still locked at post-start, its warning namesdevops devcontainer unlock-keyringand thendevops k8s deploy-stack --stack STACK. devops k8s bootstrapand the MCP toolk8s_deploy_stackkeep the push on. A locked keyring makes them exit 1 with the unlock hint, and nothing is applied.
- The devcontainer auto-deploy passes
-
feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755 adds the Argo CD case: when Application
clusterexists, deploy-stack pushes the same rows and then applies nothing else, saying so.
devops k8s run-job [--context CTX] [--wait/--no-wait] [--start-timeout SECONDS] [--dry-run] -- ARGS...
- It reads
kubectl -n devops get cronjob devops-cli -o json. - It builds a Job from
.spec.jobTemplatethat changes only:- container
devops-cli'sargs, set to ARGS; - the name,
devops-cli-<UTC yyyymmdd-hhmmss>-<4 hex>; - the label
app.kubernetes.io/name: devops-cli-job.
- container
- It creates the Job with
kubectl create -f -. --wait(the default) waits up to 120 s for the pod to leave Pending, streamskubectl logs -f job/<name>, and exits withstate.terminated.exitCode. A pod that never starts exits 1 namingkubectl -n devops describe job/<name>.--no-waitprints the Job name and thekubectl -n devops logs -f job/<name>command.- A missing CronJob exits 1 naming
devops k8s apply k8s/devops/ --template. --dry-runprints the Job and creates nothing.
Other changes
devops config set KEYwithout VALUE prompts with hidden input when KEY is inSECRET_CONFIG_OPTIONS. A non-credential key still requires VALUE.- The
--from-literalinstructions go: k8s/README.md:67-69, :79-80 and :258-263, the comments at k8s/llm/gateway/deployment.yaml:48-51 and k8s/llm/valkey-runs.yaml:9-11, andk8s/cloudflared/secret.example.yaml(deleted, with its README tree line :292). Each place namesdevops k8s push-secretsinstead. devops release preparesets the kustomization'snewTagtov<version>, in a step after__init__.py(release.py:753-757; fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 then moves the step with the bump block)._release_paths(release.py:522) gainsk8s/devops/kustomization.yaml.devops release checkfails when the tag and the version differ.- Help strings go in
lang/en/help.py, and the docs are regenerated. There is no new MCP tool; the existingk8s_deploy_stacktool pushes through deploy-stack and prints only key names. - A k8s/README.md section, "devops-cli in the cluster", gives the steps of the person checks. A "Cluster Secrets" section lists the table (generated from it by
devops docs, or checked against it by a test) and the rotation steps. changelog.d/741.md; task filedocs/agent/tasks/task-741-devops-cli-in-cluster.md. CHANGELOG.md and docs/ROADMAP.md are not edited.
Acceptance criteria
In the gate. No network and no cluster: a patched subprocess runner, a stub keyring and structural tuple assertions. Together under 1 s, measured with uv run pytest tests/test_k8s_devops_runtime.py tests/test_k8s_push_secrets.py tests/test_k8s_run_job.py tests/test_k8s_qdrant_security.py --durations=0.
- Manifests (tests/test_k8s_devops_runtime.py):
- The namespace is
restrictedand carries the sync-options annotation. The SA has automount off. - The CronJob is suspended, with
backoffLimit0, TTL 86400, deadline 7200 and containerdevops-cli. - The security context is
runAsNonRoot,readOnlyRootFilesystem, no privilege escalation,drop: [ALL]andRuntimeDefault. - There is exactly one
envFromsecretRef,devops-cli. Noenventry has a literalvalueforGH_TOKEN,GITHUB_TOKENor any env name ofSECRET_CONFIG_OPTIONS. - The
emptyDirmounts are/tmpand/home/devops, andDEVOPS_CLI_DATA_DIRstarts with/home/devops. - The ConfigMap validates as
Settingswith providergateway, the in-cluster URL,allow_private_network is Trueand no credential field. - The NetworkPolicy has no ingress rule. Its egress is exactly: DNS; a peer that is only a namespaceSelector for
llm, on TCP 4000; and 443 with the four excepts. - The kustomization lists every manifest and carries
images:. The rootk8s/kustomization.yamlleavesdevopsout.
- The namespace is
- Policy suite.
devopsjoinsTARGET_NAMESPACES(tests/test_k8s_network_policies.py:16).uv run pytest tests/test_k8s_network_policies.py -k devopspasses. - Secret table (tests/test_k8s_push_secrets.py):
- It holds exactly this item's six entries in five Secrets, with the stacks, required flags, generators and restart targets above.
- Every Secret named by a
secretKeyRef, asecretRefor an*existingSecret*value (matched case-insensitively, so Open WebUI'sopenaiApiKeyExistingSecretcounts) under k8s/ (manifests and values files) has a table row. A test fails on a reference without one, so a new consumer cannot ship without its row. - Every keyring source is either a
KEYRING_KEYSvalue or one of the table's keyring-only keys, and the two sets are disjoint. - Every env-name key of
devops/devops-cliequalsOPTION_TO_ENV_VARof the option it feeds (ai.api_keyforDEVOPS_CLI_AI_API_KEY, although its source isllm_gateway_master_key). - Every restart target is a workload in a k8s/ manifest or a release in
_HELM_RELEASES_BY_STACK. cloudflare.tunnel_tokenis inSECRET_CONFIG_OPTIONS,KEYRING_KEYS, the env spec andbuild_secret_registry.- No Secret name in the table is one that
sync_k8s_credentialsreads.
- push-secrets (same file):
- Apply. One
kubectl applycall, whose argv carries--server-side,--field-manager=devops-cli,--force-conflictsand-f -. Its stdin is aListwhose Secrets havedatakeys equal to the table's, nostringData, no annotations, and the managed-by label. - Resolution.
- A keyring value with no live Secret is created.
- An equal live value is reported unchanged and restarts nothing.
- A key added to an existing Secret restarts its workloads once; a newly created Secret restarts nothing.
- A missing keyring value with a live one is adopted: it is stored in the keyring, and the live value is unchanged.
- With neither, a generator stores the value in the keyring before the apply call, and the gateway key starts with
sk-.
- Rotation. A differing live value without
--rotateexits 1, namingNS/NAME keyand--rotate, with no keyring write and no apply. With--rotate, it is applied and each listed workload gets onekubectl rollout restart.--no-restartprints the commands and runs none. - Missing sources. A missing required source exits 1 naming every missing key, with no keyring write and no apply. A missing optional one prints a warning naming
cloudflare.tunnel_token; since it is that Secret's only key,cloudflared-tokenis left out of theList. - Keyring. A locked keyring (the stub raises
KeyringLocked) exits 1 with the unlock hint. So do no backend andDEVOPS_CLI_HEADLESS_AUTH. In each case no kubectl command runs and nothing is written. - Selection.
--only llm/qdrant-api-keyapplies one Secret and reads onlyqdrant_api_key. An unknown--onlyexits 2.--stack devopsreads gh andllm_gateway_master_keyonly. A missing namespace skips its Secret under--stack, and fails under--only. With nodevopsnamespace, a barepush-secretswith neither--github-accountnork8s.github_accountexits 0 and never callsgh. - gh. The env handed to
subprocess.runforgh auth token(afterrun_subprocessbuilds it) has noGH_TOKEN,GITHUB_TOKENorDEVOPS_CLI_GITHUB_TOKEN, even when the test sets all three inos.environ. The account comes from--github-account, else fromk8s.github_account; withdevopspresent and neither set, the command exits 1 naming both. A/userlogin mismatch exits 1 and applies nothing. - Leaked annotation. A live Secret with
kubectl.kubernetes.io/last-applied-configurationgets onekubectl annotate … last-applied-configuration-call; one without it gets none. - No value anywhere. No recorded argv, log record (caplog), stdout or stderr contains any test value.
--dry-runruns onlykubectl get, writes nothing to the keyring, and prints key names and states, no value.
- Apply. One
- deploy-stack (tests/test_k8s_qdrant_security.py, rewritten, and tests/test_k8s.py):
- With
--stack llm, the recorded calls are in this order:kubectl apply -k, the server-side apply of thebaseandllmSecrets, the raw manifests, then Helm. - With
--stack infra, only thebaserows are pushed when the stubbedkubectl get namespace devopsfails. When it succeeds,devops/devops-cliis pushed too, with the account fromk8s.github_account. - A push failure exits 1, and no manifest or Helm command runs.
--no-push-secretspushes nothing.--dry-rundetails list the Secret names and keys and run nothing._ensure_qdrant_api_key_secretandfetch_qdrant_api_keyno longer exist, andsync_k8s_credentials(stack="llm")reads no Secret.- The devcontainer auto-deploy runs
devops k8s deploy-stack --stack infra(tests/test_devcontainer.py), and a failed run's warning namesdevops devcontainer unlock-keyring.
- With
- No
--from-literal.git grep -n -- --from-literal k8s/finds nothing, andk8s/cloudflared/secret.example.yamlis gone. - run-job:
- From a fixture CronJob, the created Job equals the jobTemplate except
args, name and label. - Terminated exitCode 3 makes the command exit 3.
--no-waitcreates the Job and prints its name.--dry-runcreates nothing.- A missing CronJob exits 1 with the apply hint.
- From a fixture CronJob, the created Job equals the jobTemplate except
- config set.
config set ai.api_keywith inputx\nstores the value through_keyring_setand never echoesx.config set ai.modelwithout a value exits 2. Test: tests/test_config_commands.py. - Release tag. In tests/test_release.py, next to
test_release_check_version_mismatch(:220):- A
tmp_pathtest runsrelease prepare's bump and assertsnewTag == "v<version>". _release_paths(tmp_path)containsk8s/devops/kustomization.yaml.- With the tag out of step,
release checkexits 1.
- A
-
uv run devops k8s --helplistspush-secretsandrun-job, anduv run devops docs checkpasses. - The PR adds
changelog.d/741.mdand edits neither CHANGELOG.md nor docs/ROADMAP.md, sodevops pr check-readinesspasses. -
uv run devops cipasses within its 5-minute budget.
Pending a person (context homelab-k3s, keyring unlocked):
- Machine account in gh's keyring:
- Run
gh auth login --hostname github.comas the machine account: a classic token with scopesrepoandproject, expiring within a year. - Run
gh auth switch --hostname github.com --user <owner-login>. gh auth status --hostname github.comlists both accounts with(keyring).
- Run
- First push, which adopts the live values:
uv run devops k8s apply k8s/devops/ --template --context homelab-k3s.uv run devops config set k8s.github_account <machine-login>.uv run devops k8s push-secrets --context homelab-k3s --dry-runshows:llm-gateway-secrets,qdrant-api-keyandcloudflared-tokenaswould adoptorunchanged;valkey-runs-authaswould generate(it is not live);devops-cliaswould create;- no value, and no
differs. The old deploy-stack copied each cluster's Qdrant key into the keyring, so ifqdrant-api-keyshowsdiffers, the keyring holds the minikube key: delete that keyring entry withuv run keyring del devops-cli qdrant_api_keyand run the dry run again, which then showswould adopt.
- The same without
--dry-runexits 0 and restarts nothing. kubectl --context homelab-k3s get secret -A -l app.kubernetes.io/managed-by=devops-cli -o custom-columns=NS:.metadata.namespace,NAME:.metadata.namelists the five Secrets.kubectl --context homelab-k3s -n devops get secret devops-cli -o go-template='{{range $k, $v := .data}}{{$k}}{{"\n"}}{{end}}'prints exactlyDEVOPS_CLI_AI_API_KEYandGH_TOKEN.kubectl --context homelab-k3s -n llm get secret qdrant-api-key -o jsonpath='{.metadata.annotations}'shows nokubectl.kubernetes.io/last-applied-configuration, and its.metadata.managedFields[*].managerincludesdevops-cli.- A second run reports every key
unchanged. curlwith the gateway key still answers/v1/models(k8s/README.md:84-85), andkubectl --context homelab-k3s -n cloudflared get deploy cloudflaredstays Available.
- Keyring locked: with the keyring locked,
uv run devops k8s push-secrets --context homelab-k3sexits 1 namingdevops devcontainer unlock-keyring.kubectl --context homelab-k3s -n llm get secret qdrant-api-key -o jsonpath='{.metadata.resourceVersion}'is unchanged. - deploy-stack on the homelab:
uv run devops k8s deploy-stack --stack infra --context homelab-k3s --dry-runlistscloudflared/cloudflared-tokenand, since namespacedevopsexists,devops/devops-cli, with key names only. - deploy-stack on minikube: on a fresh minikube,
uv run devops k8s deploy-stack --stack llm --context minikubecreatesllm-gateway-secretsandqdrant-api-keybefore the gateway Deployment and Qdrant, andkubectl --context minikube -n llm rollout status deploy/llm-gateway --timeout=180ssucceeds. - Image before v0.2.26 ships:
docker build -t ghcr.io/dan-petty/devops-cli/service:pr-741 . && docker push ghcr.io/dan-petty/devops-cli/service:pr-741, with a token that haswrite:packages.- In the package settings, make the GHCR
servicepackage public (needed once). DOCKER_CONFIG=$(mktemp -d) docker pull ghcr.io/dan-petty/devops-cli/service:pr-741succeeds without a login.kubectl --context homelab-k3s -n devops set image cronjob/devops-cli devops-cli=ghcr.io/dan-petty/devops-cli/service:pr-741.
- Cluster jobs:
uv run devops k8s run-job --context homelab-k3s -- --versionprintsdevops-cli 0.2.and exits 0.uv run devops k8s run-job --context homelab-k3s -- ai gateway status --format jsonprints"gateway_url": "http://llm-gateway.llm.svc.cluster.local:4000/v1"and"healthy": true.uv run devops k8s run-job --context homelab-k3s -- gh rate-limitexits 0.uv run devops k8s run-job --context homelab-k3s -- no-such-command; echo $?prints2.kubectl --context homelab-k3s -n devops get pods -l app.kubernetes.io/name=devops-cli-job -o jsonpath='{.items[0].spec.volumes[*].name}'names nokube-api-access-*volume.
Constraints
- Credential values never appear in argv, files, annotations, logs or command output.
- A locked or unavailable keyring, a missing required source or a differing live value stops the run before anything is written to the keyring or the cluster.
- A live credential is never replaced without
--rotate. - Cluster jobs hold no Kubernetes API token and accept no ingress.
- New in-gate tests cost under 1 s together.
Key questions
-
One PR or two, and which keeps feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741? Two, proposed under the owner's decision of 2026-10-03, which broadens feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741 and asks for a split if it takes two PRs.
- feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741 keeps the runtime and
push-secrets, as the owner's "broaden feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741" and the direction on Secrets say. It keeps its placement of 2026-09-30 and its labels. - feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083 takes the roadmap service's Deployment, PVC, Ingress, webhook and scrape path.
- The references to feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741's Secret and its image-tag step (refactor(github): one github session per identity owning token, quota and transport #767, chore(github): required CI checks bind merges into release and main, and ADR 0004 records the verification policy #842, feat(ci):
devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984, fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982, feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744) stay true. - The references to its Deployment (feat(cli): service mode for
devops servewith github webhooks, a polling tick and per-repo job queues #752, feat(release): production service image for scheduled jobs and webhook handlers #753, feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981, fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548, fix(k8s): deploy-stack applies the monitoring namespace perimeter #913) move to feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083. They needed edits anyway for theroadmap→devopsrename. push-secretsand the deploy-stack change do not need feat(release): production service image for scheduled jobs and webhook handlers #753's image. If they should land before feat(release): production service image for scheduled jobs and webhook handlers #753, they split into their own item; that is open for the owner.
- feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741 keeps the runtime and
-
Names? Namespace
devops, Secretdevops-cli, ConfigMapdevops-cli-config, CronJob and ServiceAccountdevops-cli, policydevops-default-perimeter, directoryk8s/devops/. This supersedesroadmap-default-perimeter, proposed in feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741's comment of 2026-10-02. -
Which Secrets do the stacks need, and where does each come from?
These stay chart-generated, outside the table:
argocd/argocd-initial-admin-secret,argocd/argocd-secret,argocd/argocd-redis, Grafana'sgrafanauntil feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755, and Helm'ssh.helm.release.v1.*. Of them,sync-secretscopies only two passwords into the keyring: Argo CD's initial admin password (argocd_password, credentials.py:126-133) and Grafana's (grafana_password, :163), the latter until feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755. The Argo CD and Grafana API tokens are minted through their APIs into the keyring. Open WebUI's admin password lives in its database (bootstrap-openwebui), and its session key in a file on its volume. No image needs a pull Secret, since the GHCR package is public. -
Why one table with rows from several items? Each row lands with the item that adds its consumer, and a gate test fails on any Secret reference under k8s/ without a row. So the table is the one list of what a cluster needs, and the person runs one command.
-
Where does a value come from, and when may it be generated?
- The keyring is the source.
- A value the keyring lacks but the cluster has is adopted into the keyring. This is how the hand-made Secrets migrate with no person step, and why a first push changes nothing live.
- Only values nobody types are generated: the gateway key, the Qdrant key and the run index password. A generated value is stored in the keyring before it is pushed, so a failed apply loses nothing.
- Typed values (the tunnel token, and later the webhook and Tavily keys and Gitea's admin and backup credentials) are managed credentials, stored with
devops config set(hidden prompt). DEVOPS_CLI_AI_API_KEYreuses the gateway key and is generated only on the gateway's row, so the two never diverge.
-
Why
--rotate? One keyring serves every context, including the devcontainer's minikube. Replacing a live credential silently could rotate the homelab's gateway key from a value generated for minikube, which breaks Open WebUI's stored connection and every workstation client. A differing value therefore stops the push, and rotation is one explicit flag. deploy-stack never rotates. -
Why not
ai_api_keyfor the gateway key?ai.api_keyis the workstation client's key for whatever provider it uses, which may be a hosted provider's key. The cluster's gateway key gets its own keyring entry. The first push adopts it from the live Secret, so the old person step that copied it intoai_api_keygoes. -
How is a Secret written without plaintext? Built in memory and server-side applied from stdin, with values in
data:--from-literalwould expose the value in the process list;- a client-side apply would copy it into the last-applied annotation;
- a file would leave it on disk;
stringDatais write-only and folded intodata, so it is unclear (untested) whether server-side apply would remove a key the table drops;datakeeps ownership on the stored keys.
The
kubernetesPython client is already a dependency, but kubectl is how every other k8s command here writes, and stdin keeps values out of argv just as well. Encryption at rest is on (homelab 550636f). -
What does a locked keyring do? It stops the run before any read from the cluster or write anywhere, with the unlock hint. The command never treats "locked" as "missing", which would wrongly generate or skip a value, and it refuses the in-memory store, which would lose a generated value.
-
How do consumers pick up a changed Secret? Each reads it only at start, through env. The options:
- a checksum annotation on each pod template would mean the pusher editing workloads that Helm, git and later Argo CD own;
- a reloader controller is one more workload to run;
kubectl rollout restartmakes the same pod-template bump that Argo CD's own restart action makes.
The command restarts only the workloads of existing Secrets whose data changed, an added key included. Creating a Secret needs no restart: a pod waiting on a missing Secret starts once it exists. Open WebUI keeps the gateway connection in its database, so a rotated gateway key is also updated in its admin panel, and the command says so.
-
When does deploy-stack push, and what if Argo CD manages the cluster?
- It pushes after the namespaces exist and before anything that reads a Secret: raw manifests, then Helm.
- It pushes the
baserows and its stacks' rows, plus the rows ofdevops(and latergitea) wherever that namespace exists. Those namespaces are not deploy-stack stacks, so their existence is the sign that the cluster runs them;infra,llmandloggingcannot be told apart that way, since k8s/namespaces.yaml creates all of them. - The owner asked that deploy-stack create and update the devops-cli Secrets automatically. So the machine account's login is a setting,
k8s.github_account, not only a flag. - Under feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755, when Application
clusterexists, it still pushes, then applies nothing else and says that Argo CD manages the rest.
-
Why does the devcontainer auto-deploy not skip the push? Skipping it would leave minikube's Qdrant without the Secret the old deploy-stack created, and the gateway without its key. At post-start the keyring may still be locked, so that run fails before applying anything and says to unlock and rerun.
-
Who can run it? A person in a shell with the keyring unlocked; deploy-stack, including
bootstrap, the devcontainer auto-deploy and the MCPk8s_deploy_stacktool; and an agent. In every case the output names keys, never values. Agents never see a value, though a run they start can write the person's keyring (adopt or generate). -
Why not External Secrets, Sealed Secrets or Vault? The source of truth is the person's keyring, which the cluster cannot reach. Sealed Secrets would put ciphertext in git, which feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755 keeps free of Secrets. Each would also be one more controller to run.
-
Where does the machine account's token come from once refactor(github): one github session per identity owning token, quota and transport #767 removes
github_token? From gh's own keyring entry. devops-cli stores no copy.gh auth tokenis agh authcall, which refactor(github): one github session per identity owning token, quota and transport #767 exempts from its pin. -
Why a devops command for jobs, not bare kubectl?
kubectl create job --from=cronjobcannot change args, and hand-built pods failrestrictedor drift from git. Agents use kubectl for logs, status and cleanup. -
Why a suspended CronJob as the template? It is the one object kubectl already turns into a Job, and it keeps the pod spec in git.
-
Which GitHub identity do cluster jobs use? The machine account (ADR 0002).
-
What can a job reach, and where does it write?
- It reaches DNS, namespace
llmon 4000 (the gateway), and public HTTPS. - It writes to
emptyDirs; its output is the log, kept for a day. - The gateway rule uses the peer shape the monitoring policy already relies on, so the gate test pins it exactly.
- Commands that need Qdrant, Prometheus, Grafana, Argo CD or a repository checkout are not supported in a cluster job yet. Widening egress or adding a checkout is a separate candidate.
- It reaches DNS, namespace
-
Retries and concurrency?
backoffLimit: 0, so a command that changed GitHub never runs twice.activeDeadlineSeconds: 7200bounds long gateway work (a pinned review measured about 36 minutes in fix(ai): review calls through the gateway no longer stall for about 190 s on ollama, with the cause measured first #1069).- Jobs may run concurrently. While the roadmap service runs, roadmap commands in a job use
--dry-run(feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981).
-
Do agents ever see keys? Not in their session, argv or output. Anyone allowed to create Jobs or exec in
devops, or to read Secrets, can read them; today that is the owner's kubeconfig. -
MCP mirror? No new tool.
-
Name clash with
sync-secrets? None.push-secretsgoes keyring → cluster for the table's Secrets, andsync-secretsgoes cluster → keyring for the chart-generated ones. The help strings say so. -
Argo CD? feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755 (v0.2.27) adds a
devopsApplication and lists the table's Secrets as ignored orphans. No Secret is in git, so prune never touches them. -
Image before v0.2.26 ships? A
pr-741image, with the package made public once, andkubectl set image, which commits nothing.
Out of scope
- The roadmap service's Deployment, PVC, Service, Ingress, webhooks, scrape rule and setup guide, and the webhook row (feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083).
- Argo CD Applications, the
grafana-adminrow and Grafana'sadmin.existingSecret(feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755). - The Tavily row (feat(ai): item refinement to ready with proposed decisions (
devops roadmap refine) #744), the Gitea rows (feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081) and Argo CD's Gitea credential (feat(k8s): Point Argo CD to Gitea for git and PR dev images #1082). - Open WebUI's Qdrant key. k8s/llm/values-open-webui.yaml sets
QDRANT_URIbut noQDRANT_API_KEY, while Qdrant requires a key. - Per-context keyring entries, and rotating chart-generated credentials.
- RBAC for agent kubeconfigs, MCP mirrors, and renaming
sync-secrets. - Egress or a checkout for commands that need Qdrant, Prometheus, Grafana, Argo CD or a repository.
- The GH_TOKEN pin on git (refactor(github): one github session per identity owning token, quota and transport #767).
- Edits to CHANGELOG.md and docs/ROADMAP.md.
Strategic alignment
- Milestone: v0.2.26, placed by the owner on 2026-09-30 and broadened by the owner on 2026-10-03, twice: the runtime, and every cluster Secret from the keyring, also from deploy-stack.
- Order: the first item after feat(release): production service image for scheduled jobs and webhook handlers #753 in the owner's order of 2026-10-03. feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742 starts in parallel. - Priority: P1. Value: High. Effort: High, larger than before. The table, resolution, restarts, the
k8s.github_accountsetting and deploy-stack wiring (with its callers) add about 400 lines of product code and their tests, and_ensure_qdrant_api_key_secretandfetch_qdrant_api_keywith their tests go. - Depends on: feat(release): production service image for scheduled jobs and webhook handlers #753 (the runtime only;
push-secretsneeds no image). - Dependents: feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083, feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755 (v0.2.27), feat(ai): item refinement to ready with proposed decisions (
devops roadmap refine) #744, feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081 and feat(k8s): Point Argo CD to Gitea for git and PR dev images #1082, which add rows. - Sequenced after this item: feat(cli): extend the ruff rule set to the correctness families #420, fix(release): one fail-closed release path: cut branch from the remote release tip,
uv.lockbump, draft flag, required label and milestone #982 (moves the bump block and_release_paths) and feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744 (the Tavily row). - Related:
- refactor(github): one github session per identity owning token, quota and transport #767: before it lands,
_inject_gh_credentialsalready passesGH_TOKENfrom the environment to gh (src/devops_cli/core/process.py:206-215). - feat(cli): service mode for
devops servewith github webhooks, a polling tick and per-repo job queues #752, fix(ai): review calls through the gateway no longer stall for about 190 s on ollama, with the cause measured first #1069, fix(k8s): deploy-stack applies the monitoring namespace perimeter #913, feat(cli): oci container image packaging, standardized metadata & ghcr package integration #438 and ADR 0002.
- refactor(github): one github session per identity owning token, quota and transport #767: before it lands,
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]feat(k8s): scheduled roadmap runner (`devops roadmap run`) as a homelab cronjob[/-][+]feat(k8s): deploy the roadmap service to the homelab (`devops roadmap run`)[/+]chore(docs): record roadmap service decisions and the machine-account…
feat(release): v0.2.24 (#905)
dan-petty commentedon Oct 2, 2026
Note from refining #913 (2026-10-02, now in v0.2.29). #913 adds a guard test that every namespace the stack deploys has a default-deny perimeter, with exemptions keyed by (namespace, policy name). This item adds
k8s/roadmap/networkpolicy.yamloutside the root kustomization, but its body does not name the NetworkPolicy. Proposed: name itroadmap-default-perimeter, so #913's guard can list it whichever item lands first.[-]feat(k8s): deploy the roadmap service to the homelab (`devops roadmap run`)[/-][+]feat(k8s): devops-cli runs in the homelab cluster, with its credentials pushed from the keyring into one Secret and any command run as a Job (devops k8s push-secrets, devops k8s run-job)[/+][-]feat(k8s): devops-cli runs in the homelab cluster, with its credentials pushed from the keyring into one Secret and any command run as a Job (devops k8s push-secrets, devops k8s run-job)[/-][+]feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job)[/+]dan-petty commentedon Oct 3, 2026
Broadened by the owner's decisions of 2026-10-03: this item is now the in-cluster runtime (
devopsnamespace, any command as a Job withdevops k8s run-job), right after #753 in v0.2.26.devops k8s push-secretsnow writes every cluster Secret from the unlocked keyring (gateway, Qdrant, run index, tunnel,devops-cli, and later Grafana and Gitea), anddevops k8s deploy-stackruns it before applying anything, also once Argo CD manages the cluster. It replaces the hand--from-literalsteps and deploy-stack's Qdrant step, which leaked the key into the last-applied annotation. The roadmap service's Deployment, PVC, Ingress and scrape path moved to #1083 (one issue per PR);devops-default-perimetersupersedes the policy name proposed on 2026-10-02.feat(k8s): devops-cli runs in the cluster as jobs, and every cluster …
dan-petty commentedon Oct 4, 2026
Closed by #1161, merged into
release/v0.2.26.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.feat(release): v0.2.26 (#1178)
refactor(release): the release no longer pins, bumps or pre-publishes…
feat(release): v0.2.32 (#1516)