Repository navigation
Description
Problem Statement
devops-cli runs in the homelab cluster (#741: any devops command as a Job), and the Service (#752, deployed by #1083) runs the roadmap jobs (#981) there, where the LLM gateway and Prometheus are reachable. Both need an image of their own. The only image devops-cli builds today is the devcontainer, which is a development workstation (git ls-files finds no other Dockerfile, no .dockerignore and no .trivyignore at 9c879ae):
.devcontainer/Dockerfile:1starts fromdebian:sid, unpinned.- It installs
shellcheck,gnome-keyring,dbus-x11andbubblewrap(:16-23) andpre-commit(:36). .devcontainer/devcontainer.json:7-29adds docker-in-docker, kubectl, helm, minikube, Node, Copilot CLI and Claude Code.
No workflow produces an SBOM, a provenance attestation or a vulnerability scan for any image. release.yml:129-150 pushes the devcontainer image with devcontainers/ci, and ci.yml:101-189 builds the PR image the same way (and pushes it as pr-<n>, :189). rg -n -i 'sbom|attest|provenance|trivy' .github/workflows finds nothing. The release job grants no id-token or attestations permission (release.yml:24-28) and exposes no job outputs:.
What the service needs at runtime (checked at 9c879ae):
- Python packages.
pyproject.toml:11-57declares 46 runtime dependencies and no extras. The locked runtime closure is 123 packages; all install from wheels exceptratelimit2.2.1, a pure-Python sdist (uv.lock:2809-2812), so no compiler is needed.pyproject.tomldeclares noreadme, so the wheel build does not readREADME.md.[project.scripts]installs thedevopsentry point (pyproject.toml:60-61). ghandgit.run_ghruns theghbinary (github/rate_limiter.py:1874,CONST_GH_CLIatconfig/constants.py:676). Git runs as a subprocess (git/operations.py:276,commands/release.py:803-823) and through GitPython for clones (git/operations.py:195-199).- A server.
devops serve(commands/serve.py:33-133) runs the FastAPI app on127.0.0.1:8000by default (config/defaults.py:314-315) and has a--docs/--no-docsswitch (serve.py:67). It already answers/healthzwithstatusandversion(server/routes/health.py:22-34). - Writable paths. The CLI writes to
.datarelative to the working directory (config/defaults.py:30), whichDEVOPS_CLI_DATA_DIRoverrides (config/settings.py:724). It reads~/.config/devops-cli(config/constants.py:15).
Where the CLI lets the service work (checked at 9c879ae):
- No home under
/var.CONST_FORBIDDEN_SYSTEM_DIRSlists/etc,/usr,/bin,/sbin,/var,/sysand/proc(config/constants.py:185-193);core/paths.py:99-103adds/devand/boot.run_subprocessrefuses a working directory under them (core/process.py:200-203). Clone refuses a destination under them (git/operations.py:170-184).write_filerefuses a target under them (output/file_writer.py:25-31). So a home, data directory or checkout under/varbreaks git, clones and data writes./homeand/appare allowed. - Child processes get a filtered environment.
run_subprocesspasses only allowlisted variables (core/process.py:27-77) and drops names matching*TOKEN*,*SECRET*,*KEY*,*PASSWORD*,*CREDENTIAL*,*AUTH*or*PRIVATE*(:86-94). It addsGH_TOKENback only when the binary isgh(:206-215,:247-248).GIT_CONFIG_GLOBALandGIT_CONFIG_SYSTEMpass through (:71-72) butGIT_CONFIG_COUNT/GIT_CONFIG_KEY_*/GIT_CONFIG_VALUE_*do not, so the devcontainer's credential-helper variables never reach git through it, and neither does the token, for example ongit push(commands/release.py:822-823). GitPython's clone inherits the full environment. - A passwd entry.
getpass.getuser()(core/audit.py:47) fails for a UID that has no passwd entry and noUSER/LOGNAMEvariable.
The cluster's conventions are in k8s/llm/gateway/deployment.yaml:
- UID and GID 1000,
runAsNonRootand seccompRuntimeDefault(:22-28); - no privilege escalation, a read-only root filesystem and all capabilities dropped (
:34-39); /tmpon anemptyDir(:74-75,:100-101).
All four homelab nodes are amd64 (kubectl get nodes -o wide, 2026-10-01).
Proposed Solution
A service image that CI builds and the release workflow publishes.
Dockerfile at the repo root, with a .dockerignore
.dockerignore admits only pyproject.toml, uv.lock, README.md and src/. README.md stays in the allowlist for the devcontainer build, whose COPY pyproject.toml README.md (.devcontainer/Dockerfile:40) shares the repo-root context (.devcontainer/devcontainer.json:3-6); the service Dockerfile need not copy it. The smoke test adds no file to the tree (it is a run: block in each workflow, see below), so nothing else enters the allowlist.
- A
uvstage:FROM ghcr.io/astral-sh/uv:<version>@sha256:… AS uv. - Builder stage on
python:3.14-slim-trixie, pinned by digest:uvcopied from theuvstage;uv sync --locked --no-dev --no-editableinto/app/.venv, withUV_COMPILE_BYTECODE=1andUV_PYTHON_DOWNLOADS=never;- the pinned
ghrelease tarball, fetched withADD --checksum=sha256:…and unpacked.
- Final stage on the same base digest. It holds
gitfrom Debian (--no-install-recommends), theghbinary and/app/.venv. It holds nouv, no dev-group package, no compiler, no apt lists or caches, and no credentials. - A user
devopswith UID and GID 1000 and home/home/devops, created withuseradd.USER 1000:1000./home/devopsis bothHOMEandWORKDIR.DEVOPS_CLI_DATA_DIR=/home/devops/.data. /etc/gitconfig, written withgit config --system, makes!gh auth git-credentialthe credential helper forhttps://github.comandhttps://gist.github.com. These are the same two helpers that.devcontainer/devcontainer.json:47-54sets throughGIT_CONFIG_*. Git reads a system config whatever environmentrun_subprocesspasses it.- Environment:
PATHstarts with/app/.venv/bin;PYTHONUNBUFFERED=1,GH_PROMPT_DISABLED=1andGH_NO_UPDATE_NOTIFIER=1. The twoGH_variables only matter when a person runsghin the container.run_subprocessdoes not pass them on, and gh does not prompt or check for updates without a terminal.
ENTRYPOINT ["devops"],CMD ["serve", "--host", "0.0.0.0", "--no-docs"],EXPOSE 8000.
Smoke test: one run: block, inlined in both workflows
The smoke test is a single run: block whose text is identical in ci.yml and release.yml. The image reference reaches it through env: IMAGE: … (the locally loaded tag in CI, the built tag before the push in the release job), never through ${{ }} inside the script. No script file, composite action or devops subcommand is added; actionlint, which the gate already runs over every workflow (commands/ci.py:436-439) and which runs shellcheck over each run: block when shellcheck is on the path (the devcontainer installs it, .devcontainer/Dockerfile:16-23), lints it. By hand, a person runs the same commands with devops-cli-service:local in place of $IMAGE (they are listed verbatim in the Acceptance Criteria). The block starts the image with --read-only --tmpfs /tmp --tmpfs /home/devops:uid=1000,gid=1000 --cap-drop ALL --security-opt no-new-privileges and checks that:
/healthzreturns"status":"ok"and thepyproject.tomlversion;id -uprints1000;gh --versionandgit --versionsucceed;- a probe gets past the CLI's own guards. It writes a file into the data directory with
write_text_file(output/file_writer.py:174), runsgit statusthroughrun_subprocessin a repo under$HOME, and getsdevopsfromgetpass.getuser(); command -v uv,command -v gccandpython -c 'import pytest'fail.
ci.yml: a service-image job
- No
needs,permissions: contents: read. - Runs on pull requests into
mainwhen an input changes, and always onworkflow_dispatch(ci.yml:16already declares the trigger). The inputs areDockerfile,.dockerignore,.trivyignore,src,pyproject.toml,uv.lock,README.mdand.github/workflows/ci.yml, declared in anIMAGE_CONTENT_PATHSenv block the way the devcontainer job does (ci.yml:124-148). The smoke test is part ofci.ymlitself, so it needs no entry of its own. - Builds with
push: falseandload: true, then runs the smoke test, then the Trivy scan.
ci.yml: the devcontainer job's change filter also watches .dockerignore
The devcontainer build uses the repo root as its context too (.devcontainer/devcontainer.json:3-6). Nothing else in that job (ci.yml:101-189) changes.
release.yml
- The
releasejob exposesversionas a job output (fromsteps.ver,release.yml:59-73; the job has nooutputs:today). - A new
service-imagejob hasneeds: releaseand these permissions:contents: read,packages: write,id-token: writeandattestations: write. - It builds and loads the image, runs the smoke test and then the Trivy scan.
- Only then does it push
ghcr.io/dan-petty/devops-cli/service:v<version>and:latest, withsbom: trueand OCI labels fromdocker/metadata-action(source,revision,version,licenses=MIT;LICENSE:1is MIT). - Last,
actions/attest-build-provenanceattests the pushed digest withpush-to-registry: true.
Trivy settings in both workflows
scanners: vuln, severity: HIGH,CRITICAL, ignore-unfixed: true and exit-code: 1. aquasecurity/trivy-action is pinned by commit SHA, and that commit must itself reference aquasecurity/setup-trivy by commit SHA. The Trivy binary is pinned by version. A finding that cannot be fixed yet goes in .trivyignore with a reason and an exp: date.
.github/dependabot.yml
A docker entry for / that follows the existing two entries (:3-31, both targeting release/v0.2.14 today).
Tests (structural tuple assertions that only read files)
- The path-filter test
test_devcontainer_image_path_filter_covers_dockerfile_sources(tests/test_architectural_invariants.py:428-460) and its helpers_dockerfile_build_context_sources(:397) and_ci_image_content_paths(:416-425, hard-wired tojobs["devcontainer"]) are parametrized over both images:.devcontainer/Dockerfilewith thedevcontainerjob, andDockerfilewith theservice-imagejob. Each filter must also watch.dockerignore. - Every
FROMandCOPY --from=image inDockerfilecarries@sha256:. Stage names are exempt. tests/test_ci.pypins the CI job'sif,push: falseand permissions, beside the existingdevcontainerjob test (:616-628).- It also pins the release job's
needs, permissions, step order (build, smoke, scan, push, attest), Trivy inputs andsbom: true, and checks that norun:in either new job contains${{. No test readsrelease.ymltoday (rg -n release.yml tests/finds only a path label string attests/test_reference_extractor.py:246), so this adds the first such test. - One
tests/test_ci.pyassertion loads both workflows, finds the smoke step of eachservice-imagejob by name, and asserts that the tworun:strings are equal and that the string contains--read-only,--cap-drop ALLandno-new-privileges.
Docs
docs/ROUTINE_TASKS.md:270 (step 5 of the release procedure) names the service image and the verify command, gh attestation verify oci://ghcr.io/dan-petty/devops-cli/service:v<version> -R dan-petty/devops-cli --signer-workflow dan-petty/devops-cli/.github/workflows/release.yml.
Changelog
changelog.d/753.md; CHANGELOG.md and docs/ROADMAP.md are not edited.
Scope
One pull request delivering: Dockerfile, .dockerignore, the smoke-test run: block in both workflows, the service-image job in ci.yml and in release.yml (plus the version output and the .dockerignore filter entry), the Dependabot docker entry, the tests above, the docs/ROUTINE_TASKS.md line, the task file docs/agent/tasks/task-753-production-service-image.md and changelog.d/753.md.
Constraints:
- The final image holds only the Python runtime, the locked runtime dependencies, devops-cli,
gh,gitand their libraries. HOME, the data directory and any checkout stay outsideCONST_FORBIDDEN_SYSTEM_DIRS.- Image builds and scans run in GitHub Actions or by hand, never in
uv run devops ci. The in-gate tests only read files and add under 1 s. - Every new
uses:is pinned by commit SHA, and so istrivy-action's ownsetup-trivyreference. Expressions reachrun:scripts only throughenv:. - The devcontainer image is unchanged. Its job changes only by watching
.dockerignore. - The image is built for
linux/amd64only. - The smoke test lives only in the two workflow files: no
scripts/directory, shell file, composite action ordevopssubcommand is added for it.
Key Questions
- Where does the build definition live? Answered:
Dockerfileand.dockerignoreat the repo root, which is the build context. The devcontainer build also uses the repo root as its context (.devcontainer/devcontainer.json:3-6), so the.dockerignoreapplies to it too. That is safe: the devcontainer copies onlypyproject.toml,uv.lock,README.mdandsrc/(.devcontainer/Dockerfile:32,40-41), and the allowlist admits all four. The devcontainer change filter watches.dockerignore, so a later edit to it rebuilds that image as well. - Which base image? Answered:
python:3.14-slim-trixie, pinned by digest, for both stages. It is the official image on current Debian stable and matches.python-version(3.14.7) andrequires-python = ">=3.14"(pyproject.toml:10). The devcontainer'sdebian:sidis unstable and unpinned. A distroless base has no package manager, sogitand its libraries would have to be copied in by hand. - Does the service need all 46 runtime dependencies? Answered: the image installs them all.
pyproject.tomldeclares no extras, and splitting the dependencies would change everydevopsinstall, so that is not this item. The constraint rules out development tooling; it does not call for a trimmed dependency set. - How do
ghandgitget in? Answered:gitcomes from Debian's archive in the final stage.ghcomes from its release tarball; the builder stage fetches it withADD --checksum=sha256:<digest>, and only the binary is copied into the final stage, so the image has no third-party apt source. Trivy scans the Go modules in theghbinary, so a vulnerableghfails the gate. - Does this wait for feat(cli): service mode for
devops servewith github webhooks, a polling tick and per-repo job queues #752? Answered: no. The default command runs today'sdevops serveon0.0.0.0without the docs routes. It already answers/healthz, so the smoke test works now. feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083's Deployment passes the service-mode options from feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752 as arguments (serve --service --host 0.0.0.0 --port 8000 --workers 1). - Which user, and which paths are writable? Answered: a user
devopswith UID and GID 1000 and home/home/devops, with a numericUSER 1000:1000. The UID matches the cluster (deployment.yaml:23-25), and a numericUSERlets the kubelet checkrunAsNonRoot. The passwd entry letsgetpass.getuser()work (core/audit.py:47). The home is not under/var, because the CLI refuses subprocess working directories, clone destinations and file writes there (config/constants.py:185-193)./home/devopsisHOME,WORKDIRand the parent ofDEVOPS_CLI_DATA_DIR. The data directory,~/.config/devops-cliand gh's config all land there. feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083 mounts its PVC there and anemptyDiron/tmp, and 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 cluster jobs mountemptyDirs on both; feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981's clones land under/home/devops/.dataon feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083's PVC. - How do
ghandgitauthenticate? Answered: throughGH_TOKEN, which 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'sdevops-cliSecret sets at runtime throughenvFrom: the machine account's classic token (ADR 0002,docs/adr/0002-roadmap-jobs-act-as-a-machine-account.md:3).run_subprocesspasses it togh(core/process.py:247-248). Git usesgh auth git-credentialthrough/etc/gitconfig, not throughGIT_CONFIG_*variables, becauserun_subprocessdrops those. GitPython's clone inheritsGH_TOKEN, so the helper works there.run_subprocesswithholds the token from git, so itsgit push(commands/release.py:822-823) has no credential. Fixing that changes the token path (refactor(github): one github session per identity owning token, quota and transport #767, Part A, pinsGH_TOKENinto every gh and git subprocess; refactor(github): the github session owns transport, ledger, error classes and link pagination #983, Part B, does not touch it), not the image. The image holds no credential. - Image name, tags and platforms? Answered:
ghcr.io/dan-petty/devops-cli/service, lowercased the wayrelease.yml:139names the devcontainer image. It is taggedv<version>andlatest. It is built forlinux/amd64only, because every homelab node is amd64. Multi-arch builds stay with feat(cli): oci container image packaging, standardized metadata & ghcr package integration #438. - How are the SBOM and provenance produced? Answered: BuildKit attaches an SPDX SBOM to the pushed image (
sbom: true).actions/attest-build-provenancewrites a GitHub attestation for the pushed digest and pushes it to the registry.gh attestation verifywith--repoand--signer-workflowchecks it, so an attestation from any other workflow fails, and there is no signing key to manage. Only the new job getsid-token: writeandattestations: write. - Which scanner, with which settings? Answered: Trivy, which
devops scan trivyalready wraps (commands/scan.py:130-134). It scans vulnerabilities only, atHIGH,CRITICAL. It ignores findings that have no fix, and exits 1 on any other. In March 2026 attackers force-pushed 76 of the 77trivy-actiontags, replaced all 7setup-trivytags and published a malicious Trivy v0.69.4 (GHSA-69fq-xp46-6x23). Workflows that pinned a commit SHA were not affected. So the action is pinned by SHA, its ownsetup-trivyreference must be a SHA, and the binary is pinned by version. A finding that cannot be fixed yet goes in.trivyignorewith a reason and anexp:date. - What happens if the release-time scan fails? Answered: nothing is published, because the scan runs before the push. The same scan already ran on the release PR into
main, so this happens only if a new fixable finding appeared in between. The GitHub Release still exists. A person bumps the pin in a patch release, and 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 feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083 keep running the previous tag. - When does CI build the image? Answered: on pull requests into
mainwhen an input changes, and onworkflow_dispatch, never pushing. The devcontainer image job is kept tomaintargets (ci.yml:103,tests/test_ci.py:616-628), and this follows the same rule. A feature PR into a release branch is checked by dispatchingci.ymlon its branch. - How do the pins stay current? Answered: the new
dockerDependabot entry updates the base anduvdigests once Dependabot is retargeted (fix(github): supply-chain claims made true — live Dependabot, zizmor and workflow invocation contracts #861, which is not on the v0.2.26 or v0.2.27 item list). Dependabot readsFROMlines, souvcomes in through a namedFROM … AS uvstage. Today every entry targetsrelease/v0.2.14(.github/dependabot.yml:10,25).ghis bumped by hand. Trivy fails the build when any pin carries a fixable finding. - Can the homelab pull the image? Answered: this item publishes the image and checks that an anonymous pull works. The repo is public. If the first publish leaves the package private, a person makes it public once in the package settings. The post-ship pull check catches a private package. 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 feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083 need no pull secret; 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 setup makes the package public after its first
pr-741push. - Where do the smoke-test commands live? Answered (owner decision, 2026-10-02): option (a). The same
run:block is inlined inci.ymland inrelease.yml, with the image reference passed throughenv: IMAGE, and onetests/test_ci.pyassertion checks that the tworun:strings are equal and contain--read-only,--cap-drop ALLandno-new-privileges. The by-hand commands are the ones in the Acceptance Criteria, withdevops-cli-service:localin place of$IMAGE. The facts that settled it: the repository tracks no shell scripts and noscripts/directory (git ls-files | rg '^scripts/|\.sh$'is empty); no hook or gate lints shell files (.pre-commit-config.yamlhas no shellcheck hook;commands/ci.pynever calls it), whileactionlintis gate-enforced (commands/ci.py:436-439) and runs shellcheck over every workflowrun:block when shellcheck is on the path (the devcontainer installs it,.devcontainer/Dockerfile:16-23), so an inlined block is the only form the existing gate lints; it adds no new file type or action; the equality assertion is one line in a test the item writes anyway; and refactor(ci): github ci runs the gate throughdevops cifrom one check table #843's parity allowlist is keyed by (job, step name) and coversci.ymlonly, so its cost is one entry for the change-detection step and one for the smoke step however the step is written. The rejected forms were (b) a composite action beside.github/actions/setup-toolchain/action.yml, (c) a checked-inscripts/smoke-service-image.shthat nothing would lint without a new shellcheck hook, and (d) adevopssubcommand drivingdocker runthroughrun_subprocess, the waycommands/devcontainer.py:935-945drivesdocker info, which would add a product command with help text, docs and mocked-subprocess tests that this item does not need.
Acceptance Criteria
- The image builds from a clean clone:
docker build -t devops-cli-service:local .. The builder runs this and records the size fromdocker image ls devops-cli-service:localin the task file. - The smoke test passes by hand with the commands below, which are the same commands the two workflow
run:blocks run with$IMAGEin place ofdevops-cli-service:local. Each command does what its comment says:docker run -d --name svc --read-only --tmpfs /tmp --tmpfs /home/devops:uid=1000,gid=1000 --cap-drop ALL --security-opt no-new-privileges -p 8000:8000 devops-cli-service:local curl -fsS --retry 10 --retry-connrefused --retry-delay 1 http://127.0.0.1:8000/healthz # "status":"ok" and the pyproject.toml version docker run --rm --entrypoint id devops-cli-service:local -u # 1000 docker run --rm --entrypoint gh devops-cli-service:local --version # exits 0 docker run --rm --entrypoint git devops-cli-service:local --version # exits 0 docker run --rm --read-only --tmpfs /tmp --tmpfs /home/devops:uid=1000,gid=1000 --cap-drop ALL --security-opt no-new-privileges --entrypoint python devops-cli-service:local -c "import getpass, pathlib, subprocess; from devops_cli.config.settings import load_settings; from devops_cli.core.process import run_subprocess; from devops_cli.output.file_writer import write_text_file; write_text_file(load_settings().data.dir / 'probe.txt', 'ok'); repo = pathlib.Path.home() / 'probe'; subprocess.run(['git', 'init', '-q', str(repo)], check=True); assert run_subprocess(['git', 'status', '--porcelain'], cwd=repo).returncode == 0; assert getpass.getuser() == 'devops'" # exits 0 docker run --rm --entrypoint sh devops-cli-service:local -c 'command -v uv' # exits non-zero docker run --rm --entrypoint sh devops-cli-service:local -c 'command -v gcc' # exits non-zero docker run --rm --entrypoint python devops-cli-service:local -c 'import pytest' # exits non-zero -
gh workflow run ci.yml --ref <delivering branch>produces a run whoseservice-imagejob passes its build, smoke and Trivy steps and pushes nothing. The run's link goes in the task file. - The devcontainer still builds with the new
.dockerignore: the builder runsdocker build -f .devcontainer/Dockerfile .and it succeeds. -
git ls-files | rg '^scripts/|\.sh$|^\.github/actions/smoke'is still empty on the delivering branch: the smoke test added no script or composite action. - The new tests pass (
uv run pytest tests/test_ci.py tests/test_architectural_invariants.py). The builder breaks each guarded property once, confirms that its check fails, and notes each result in the task file. The properties are:- a
FROMwithout@sha256:; - a
COPYsource that the service filter does not watch; .dockerignoremissing from either filter;- the scan moved after the push;
push: truein the CI job;${{inside a newrun:;- the two workflows' smoke-test
run:strings differing by one character, and one of them losing--read-only,--cap-drop ALLorno-new-privileges; HOME,WORKDIRandDEVOPS_CLI_DATA_DIRunder/var/lib/devops-cli, which must make the smoke probe exit non-zero.
- a
- The task file records the pinned
trivy-actioncommit and thesetup-trivycommit SHA that itsaction.ymluses. -
uv run actionlintpasses (commands/ci.py:436-439runs it in the gate), which lints both copies of the smoke-test block.uv run devops cipasses within budget, and the new tests add under 1 s in total, measured withuv run pytest tests/test_ci.py tests/test_architectural_invariants.py --durations=0. -
rg -n 'package-ecosystem: "docker"' .github/dependabot.ymlfinds the new entry. -
changelog.d/753.mdexists;git diff --name-only main...HEADlists neitherCHANGELOG.mdnordocs/ROADMAP.md. - Pending a person, after v0.2.26 ships:
gh attestation verify oci://ghcr.io/dan-petty/devops-cli/service:v0.2.26 -R dan-petty/devops-cli --signer-workflow dan-petty/devops-cli/.github/workflows/release.ymlexits 0.docker buildx imagetools inspect ghcr.io/dan-petty/devops-cli/service:v0.2.26 --format '{{ json .SBOM }}'prints an SPDX document.DOCKER_CONFIG=$(mktemp -d) docker pull ghcr.io/dan-petty/devops-cli/service:v0.2.26succeeds without a login.docker run --rm ghcr.io/dan-petty/devops-cli/service:v0.2.26 --versionprintsdevops-cli 0.2.26(main.py:190prefixes the version withdevops-cli).
Out of Scope
- Service mode for
devops serve(--service, webhooks, polling, queues): feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752. - The namespace, Secret, job template, NetworkPolicy and kustomization that run the image (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 roadmap service's Deployment and PVC (feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083).
devops roadmap run, its due table, state and clones inside the image: feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981.- Giving git subprocesses the session token so
git pushfrom the service authenticates: refactor(github): one github session per identity owning token, quota and transport #767 (Part A). The transport rewrite, refactor(github): the github session owns transport, ledger, error classes and link pagination #983, does not touch the image either. - Trimming the runtime dependency set or adding extras to
pyproject.toml. - Multi-arch (
arm64) builds and a standalone CLI image: feat(cli): oci container image packaging, standardized metadata & ghcr package integration #438 (not on the current item list). - Attesting the devcontainer image (
docs/ROADMAP.md:1412, planned for v0.3.5 at:1431, no issue). - Publishing Trivy SARIF to code scanning: feat(review): publish scanner findings to code scanning #419 (not on the current item list).
- Retargeting Dependabot and adding zizmor: fix(github): supply-chain claims made true — live Dependabot, zizmor and workflow invocation contracts #861 (not on the current item list).
- A smoke-test script, composite action or
devopssubcommand (options b-d of the settled Key Question), and adding a shellcheck hook or any other new linter. - Any change to the devcontainer image beyond its change filter watching
.dockerignore. - Running image builds or scans inside
uv run devops ci.
Dependencies
- Depends on: none. This item does not depend on refactor(github): one github session per identity owning token, quota and transport #767 or feat(cli): service mode for
devops servewith github webhooks, a polling tick and per-repo job queues #752; it is the first merge of v0.2.26 (owner, 2026-10-03), started on day one alongside feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742, with which it shares no file. - feat(cli): extend the ruff rule set to the correctness families #420 (v0.2.26): lands after this item and 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; its lint sweep then also covers this item's edits to
tests/test_architectural_invariants.pyandpyproject.toml. - 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 (v0.2.26): lands right after this item (hard ordering). Its job template runs the image with
emptyDirs on/tmpand/home/devopsandGH_TOKENfrom itsdevops-cliSecret. - feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083 (v0.2.26): its Deployment runs the image with
serve --service --host 0.0.0.0 --port 8000 --workers 1and the PVC at/home/devops. - feat(roadmap): run the roadmap jobs when they are due (
devops roadmap run) #981 (v0.2.26): lands last;devops roadmap runruns inside this image through feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083 and keeps its clones under/home/devops/.data. No file overlap. - feat(cli): service mode for
devops servewith github webhooks, a polling tick and per-repo job queues #752 (v0.2.26): adds the service-mode options that feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083 passes as arguments; no ordering constraint with this item, whose defaultCMDruns today'sdevops serve. - refactor(github): one github session per identity owning token, quota and transport #767 (v0.2.26, Part A): keeps
ghas the transport adapter, so the image keepsgh, and pinsGH_TOKENinto every gh and git subprocess, which is what lets the/etc/gitconfigcredential helper here authenticate the release-branch push that feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 makes through the path fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 fixes. The epic's chain places it before this item, but nothing here reads it. refactor(github): the github session owns transport, ledger, error classes and link pagination #983 (v0.2.28, Part B) is unrelated to the image. - refactor(ci): github ci runs the gate through
devops cifrom one check table #843 (v0.2.26): also editsci.ymlandtests/test_ci.py. Its parity test fails on anyrun:step that is notuv run devops ci …unless allowlisted with a reason, keyed by (job, step name). This item lands on either side of refactor(ci): github ci runs the gate throughdevops cifrom one check table #843; whichever lands second allowlists theservice-imagejob's change-detection step and its smoke step (both arerun:steps) with a reason. - refactor(ci): ci installs nothing on the runner, and live bubblewrap tests skip where bwrap is missing #832 (v0.2.26): lands before refactor(ci): github ci runs the gate through
devops cifrom one check table #843. It deletesci.yml:90-94in the Tests & Coverage job and adds an invariant totests/test_architectural_invariants.pybeside the path-filter test this item parametrizes (:397-460); different hunks, so a rebase resolves both. - feat(ci):
devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984 (v0.2.27): adds a workflow contract invariant totests/test_architectural_invariants.pyafter refactor(ci): github ci runs the gate throughdevops cifrom one check table #843; it lands after this item and rebases on the parametrized path-filter test. - fix(github): supply-chain claims made true — live Dependabot, zizmor and workflow invocation contracts #861, feat(cli): oci container image packaging, standardized metadata & ghcr package integration #438 and feat(review): publish scanner findings to code scanning #419 are related but not on the item list, so this item does not wait for them. Until fix(github): supply-chain claims made true — live Dependabot, zizmor and workflow invocation contracts #861 lands, the new Dependabot
dockerentry targets the same stalerelease/v0.2.14branch as the existing two.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
chore(docs): record roadmap service decisions and the machine-account…
feat(release): v0.2.24 (#905)
dan-petty commentedon Oct 3, 2026
Owner's order of 2026-10-03: this item is the first merge of v0.2.26, then #741 (the in-cluster runtime that runs this image as cluster jobs), then #420. #742 starts in parallel. The Deployment references moved to #1083.
feat(release): production service image for scheduled jobs and webhoo…
dan-petty commentedon Oct 4, 2026
Closed by #1152, 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)