Repository navigation
Releases
Releases · crunchtools/sdlc
v0.20.0
Added
[tool.sdlc.image.disk]: a bootc repo's raw disk, built by theimagejob
from the gated digest with a digest-pinned bootc-image-builder and pushed to
the image's repo as an OCI artifact (disk-gated-<sha>).promotesigns it
with the fleet key and attests the image's SBOM and a SLSA v1 provenance,
then tags itdisk-X.Y.Zanddisk-latestalong with the image (#273,
a1887). The builder runs with no network, no environment and a private image
store seeded with that digest alone, because osbuild runs the image's own code as
its buildroot. The table only declarestype,rootfsand aroot-keysfile. The
build runs only on GitHub-hosted runners, where it uses/mnt. Anywhere else
it exits 2, and it also exits 2 when/mnthas too little room or the
uid_map is not the full range. Noci.ymlchange.
Security
- The fleet
ci.yml'saijob no longer handsOPENROUTER_API_KEYto any
issue (#294): onlyreview()reads it. It reaches every
pull_request_targetrun, a fork's included: Gatehouse is a fork PR's
required review, and the job runs only the digest-pinned bootstrap, which
passes the key to the gatehouse CLI and never to a model.
tests/test_workflows.pynow evaluates both model-key expressions, value
for value, across fork, same-repo and deleted-fork PRs, each
author_association, push and schedule.examples/sdlc-ci.ymland its doc
block, which still handed out both keys unconditionally, get the same env,
and a test holds them to it. Re-copyexamples/ci.yml.
Fixed
- The image job verifies an image a
COPY|ADD --from=or a
RUN --mount=...,from=names as it does a builderFROM(#277, a1890): it
is resolved to a digest, verified by the same trust rules, and the build
takes it at that@sha256:. A stage name or an earlier stage's index is not
an image; an index past the stages is a 2, as is one the build cannot pin
(named through a variable, or broken across lines), a quoted--mount, and a
source named through a variable its own stage declares. AnONBUILD's
source is held to the same rule. - The fleet
ci.yml'spagesjob names its environment through an
expression (pages-signingwhen the plan has pages, else none). With the
bare name, GitHub refused the whole workflow file in every repo without a
pages-signingenvironment, so 0.19.0's re-copy started nopull_request
run and its requiredsdlc / checknever reported. Without the environment
the job has no key. Re-copyexamples/ci.yml.
Removed
examples/sdlc-ci.yml, and the copy of sdlc's own workflow in
docs/marketplace-free-ci.md(#296). Both claimed to be
.github/workflows/ci.ymlbyte for byte; neither was, and nothing tested
that they were. The doc now points at.github/workflows/ci.ymlas the one
copy, andtests/test_workflows.pychecks the fleet block is the doc's only
workflow.
v0.19.0
Added
EXTRA_IMAGESgives crunchtools/trentinatrentina-l2-model, the L2 model
image a training round publishes throughci.yml(crunchtools/trentina#954,
a1793).- Two fleet jobs,
assetsandpages, for release packages and the signed
dnf/apt site (a1796, #263).assetsrebuilds each[[tool.sdlc.assets]]
stage of a merged release on digest-pinned build roots and attaches the
files with a SHA256SUMS to its Release, using the job's own
contents: writetoken and no stored secret.pagesruns where the tree has
[tool.sdlc.pages]: it signs the products' release assets and pushes the
site togh-pageswith the GPG key from thepages-signingenvironment
alone, then requests the Pages build.examples/ci.ymlgains both jobs;
re-copy it. The image gains gnupg2, rpm-sign and createrepo_c, and
sdlc_jobs/_debrepo.pywrites the apt index. The design is
"Release assets and the package site" in docs/marketplace-free-ci.md.
Fixed
- A
scripts/local-release.shbuild's provenance no longer claims the GitHub
Actions workflow buildType and.github/workflows/ci.yml(#285, a1904). It
carrieshttps://crunchtools.com/sdlc/buildtypes/local-release/v1, with
externalParameters naming the built repository's ref and
scripts/local-release.shin crunchtools/sdlc at the commit it ran from.
#286 first gave it a mutableblob/mainURI and placed the script in the
built repository; promote'spredicate()now takes the build type and
parameters from its caller, as scripts/provenance.py's does. - A redirect no longer carries the job's token to another host (#278). Both
HTTP clients,Tools.httpand theGitHubclient, open through
_github.SafeRedirect. It follows an https redirect, carries only Accept,
Accept-Language, User-Agent and X-GitHub-Api-Version when the host changes,
and refuses a hop to plain http, which comes back as the 3xx it answered. A release
download, which 302s to a githubusercontent host, still works. - A release cut by
scripts/hotfix.shcarries SLSA v1 provenance again (#275,
a1888). hotfix.sh stamps the build recordscripts/local-release.shgives a
fleet build: itself as the builder, pinned to the commit it releases, an
attempt unique to the run and no run id.scripts/provenance.pytrusts that
record only from the sign step of the same run, under a build type of its
own (https://crunchtools.com/sdlc/buildtypes/hotfix/v1, naming the script
at its commit) rather than the Actions workflow's, and hotfix.sh builds from a
clean worktree of the commit, so no ignored file (a stale__pycache__)
ships under it. With every release path now recording a build, self.sh's
sign reads the record before it signs anything and refuses a digest with
none, in or out of Actions; only a rollback to 0.18.0 or older, from before
sdlc attested its own releases, still goes without. - The lane memory budget now keeps a quarter of MemTotal (never under 512 MB)
for the kernel, podman and the page cache, as it already did for a cgroup
ceiling (a1809, crunchtools/gha-runner#71). A 16G runner VM gave four lanes
3.9G each: every--memoryheld, but together they filled the VM, and
trentina#955's check thrashed at its ceiling for 38 minutes. Those four lanes
now take turns; three still run side by side. A 32G laptop's four lanes get
5.8G each instead of 8G. - Constitution R4 reads a Deprecated bullet's wrapped continuation lines, so an
end release named on a later line no longer fails (#269). It also takes
"renamed in X" and "retired in X" as naming the end release, and no longer
reads a continuation line that opens with--or**bold**as a new bullet.
claude-supervisor's 2.0.0 CHANGELOG, which hit the first two, now passes. - sdlc's own releases carry an SPDX SBOM and SLSA v1 provenance attestation
again, under sdlc's key (#266). They stopped at 0.15.9, when releases moved
fromcontainer.ymltoci.yml'ssignstep, which signed and never
attested.scripts/self.sh's sign now scans each digest with syft (pinned,
without the key), writes provenance from its build labels with
scripts/provenance.py, and attests and verifies both before any tag
moves; sdlc-bootstrap gets the same build labels and attestations. Fleet
images were never affected:sdlc image promoteattests them. syft runs
read-only with no registry login. A rollback attests its digest's SBOM, if
it lacks one, before:<major>moves to it. verify_release(pypi,assets) reads a dynamic version from
[tool.hatch.version].path, aswritealready does, so a repo like
ashigaru is no longer refused at test 7.
Removed
.github/workflows/container.yml(a1790).ci.yml'stest,imageand
signalready build, test, sign and publish every release;scripts/self.sh
now also runstests/test_mirror_parent.shand shellchecksmirror-parent.sh,
the one test only container.yml ran.:mainand thepython-sdlcmirror,
which only container.yml moved, stay at 0.15.8 and are no longer published.
Changed
bin/sdlc-bootstraprefusesSDLC_IMAGE=mainwith exit 2 and says why:
:mainstopped at 0.15.8, and running it would gate on a frozen image that
still verifies under the fleet key. Uselatest, a release, a digest, or a
local build through a clone'sbin/sdlc.examples/pre-commit-floating.yaml
no longer suggests it; re-copy it.scripts/provenance.pynow trusts a build
record fromci.yml, and the README says sdlc's own releases are signed but
not attested since 0.15.9 (#266).
Documentation
docs/marketplace-free-ci.mdrecords spike #103's open items re-run on
crunchtools/ci-spike (a1792): review-comment re-triage, thepypi
environment's default-branch policy, a tag push starting no job, and an App
release end to end, each with its run.
Security
- The fleet
ci.yml(and sdlc's own) give theaijobCLAUDE_CODE_OAUTH_TOKEN
only for this repository's own pull requests and for issues opened by an
owner, member or collaborator (#215, a1650). A fork'spull_request_target
or an outsider's issue now runs triage with no Claude token, so text an
outsider wrote never reaches a model that holds one. Re-copyexamples/ci.yml.
v0.18.0
Added
scripts/mirror-parent.shmirrors one upstream parent, pinned by digest,
intoquay.io/crunchtools/<name>:<tag>withskopeo copy --all --preserve-digestsand signs it with the fleet key and
repo=crunchtools/<name>, the signature the image job'sverify_parent
trusts (a1730). A repo built FROMquay.io/podman/stable, which nobody
signs, was refused; it now builds FROM
quay.io/crunchtools/podman-stableat the same digest. It runs on Exedore
with the secretslocal-release-secrets.shalready pipes.
Changed
- cosign and grype come from Hummingbird (
registry.access.redhat.com/hi/cosign
andhi/grype, pinned by index digest), not ghcr.io and docker.io: seats and
builds pull only from quay.io, Red Hat's registries and Fedora's (a1751).
grype moves 0.121.0 to 0.122.1, with the same findings, table columns and
exit codes on the same rootfs. cosign moves 2.6.5 to 3.1.6 everywhere sdlc
runs it: the image, the bootstrap's verify,COSIGN_IMAGEinci.yml, the
examples andhotfix.sh. - Every
cosign signandcosign attest(promote,sign-digest.sh,
attest-digest.sh) passes--use-signing-config=false --new-bundle-format=false. v3 otherwise writes a protobuf bundle as an OCI
referrer, which podman and bootc cannot read, and it refuses
--tlog-upload=falseoutright. With the flags, v3 writes the same.sigand
.atttags v2 did. v2 and v3 verify each other's signatures and
attestations, and podman'ssigstoreSignedpolicy accepts them. cosign
2.6.5 accepts the flags, so container.yml's downloaded v2 binary keeps
working. - ShellCheck runs from
quay.io/crunchtools/shellcheck, v0.11.0 built from
upstream source and fleet-signed, notdocker.io/koalaman/shellcheck: the
pre-commit hook,scripts/self.shandcontainer.yml(a1751).
v0.17.1
Fixed
- The
pypijob no longer refuses every build:uv buildwrites a
.gitignoreintodist/, and the check that each file is named for the
release counted it. That one name is now skipped and never uploaded; any
other stray file still refuses (a1745).
v0.17.0
Added
scripts/local-release.shruns ci.yml'spypijob after promote when the
release publishes to PyPI, so fleet releases reach PyPI again while org
Actions are off.local-release-secrets.shemitsPYPI_API_TOKENfrom
kv/gloval/crunchtools; the script hands it to the pypi job alone, as
UV_PUBLISH_TOKEN, and stops before image when a PyPI release has no token.
--pypi <owner/repo> <sha>publishes a release already tagged that missed
PyPI, reading every page of the repo's tags for it. A PyPI failure after
promote says the release is out and prints that retry line (a1738).- The
pypijob publishes with an API token inUV_PUBLISH_TOKENwhen no
OIDC request variables are present. The token is kept out of every other
step's environment, the nested build included, and off argv; OIDC stays the
CI path, and a job holding both refuses (a1738).
Fixed
tests/test_job_pypi.pyran itssafe.directorytest only under pytest: it
was defined after the script'smain()call.tests/test_local_release.pyruns the script end to end against faked host
tools (tests/local_release_stub.py, underSDLC_LOCAL_RELEASE_ROOT) and
asserts what each job was handed. It was regexes over the source with no
test_function, so pytest collected nothing and moved or deleted lines
passed.- The image installs
libzstdwithzstd. Hummingbird's zstd 1.6.0 does not
require the libzstd it links against, the base keeps libzstd 1.5.7, and
unzstdfailed on an undefinedZSTD_isDeterministicBuildwhile unpacking
the CodeQL bundle, failing the build (a1745).
Security
pypiuploads withuv --no-config publish --publish-url https://upload.pypi.org/legacy/, on the OIDC path too. uv ran in the
checkout, so a committeduv.tomlor[tool.uv] publish-url, or one the
nested build wrote into the read-write workspace, chose where the files and
the credential went. The token also leavesos.environbefore the first
step, so the shared helpers' podman calls do not inherit it (a1738).
v0.16.9
Fixed
promotereads cosign attachments up to 512 MiB. cosign uploads an
attestation of any size but refuses to read one over 128 MiB by default, so
rhel10-bootc-workstation 0.3.0's 185 MB SBOM attestation failed promote's own
verify-attestation and nothing was tagged in the registry (a1654).
v0.16.8
Fixed
bootpulls the gated digest under a policy of its own (a1688). A host
whose policy.json requires a fleet signature for every quay.io/crunchtools
image refuses the engine's pull ofgated-<sha>, which promote signs only
after boot: "Source image rejected: A signature was required" on Exedore's
rhel10-bootc-* releases, and on every repo once rhel10-bootc-server 1.8.x
lands. podman-remote cannot hand the engine a policy, so skopeo, in the job,
copiesref@digestunder a policy that rejects everything but that one
digest, keeping the manifest so the digest is unchanged, and the engine loads
the archive asref:gated-<sha>. A tag, another digest or another repository
is refused by that policy; nothing is signed before promote, and the host's
policy is untouched. local-release.sh needs no change: its service only
loads the archive.
v0.16.7
Fixed
- local-release.sh starts its podman service with no secret in its
environment (a1679). The service inherited every secret the script exports,
and a build secret whose id names a variable in the service's environment
reaches the RUN empty: ubi10-httpd-perl-mariadb's
--mount=type=secret,id=RHSM_ACTIVATION_KEYread nothing, and
subscription-manager said "Must specify an activation key". The lowercase
ids (activation_key) never collided. CI was not affected: a runner's podman
holds no secret. checkon a push treats a 403 from listing the merged pull request's
Actions runs as no evidence the pull request passed, and runs every gate,
with one line saying why.local-release.sh's App token cannot list runs on
a private repository, where the Ashigaru App holds no Actions permission, so
rhel10-bootc-workstation's local release stopped there with a 2 (a1654). A
401, a 404 or any other failure is still a 2.
v0.16.6
Changed
- A release is tagged only after its gates pass (a1667). The fleet's
writeneedsimageandboot, and on a release itsif:wants each to
have succeeded or been skipped with none planned;writealso refuses in
code when theSDLC_IMAGEorSDLC_BOOTit is handed says otherwise (a
fleet file older than this maps neither, and stays unenforced, as promote
treatsSDLC_BOOT). A release whose image or boot fails leaves novX.Y.Z
and no GitHub Release behind, as rhel10-bootc-server v1.8.0 did. Fleet repos
take it by re-copyingexamples/ci.yml. scripts/local-release.shruns check, image, boot, write, promote:write
after the gates, handed their results.- sdlc's own release:
imagebuilds the versioncheckplanned without
waiting onwrite,writewaits onimage, andsignsigns only what
writethen released (SDLC_WRITEsuccess,SDLC_RELEASEat the image's
version).scripts/hotfix.shhands self.sh the same inputs. containerfile-lint: a Containerfile hadolint cannot parse is a finding
(exit 1) in the PR check, as it already failed the image job, instead of
ADVISORY and SKIPPED there. A PR no longer passes a lint its release fails.
Fixed
bootc-lintgetsDAC_OVERRIDEback after--cap-drop=all, on a
--read-onlyroot, and nothing else.bootc container lintwalks the whole
image as root, and a RHEL bootc image with setroubleshoot ships
/var/lib/setroubleshoot0700 to another user, so the gate stopped at
"Permission denied (os error 13)" on an image whose in-build lint, with
podman's default capabilities, passed (rhel10-bootc-server 1.8.1, a1654).
NotDAC_READ_SEARCH: it is whatopen_by_handle_atneeds, the "shocker"
escape, which is why it is outside the default set. The image job takes
--cap-addonly for bootc-lint, onlyDAC_OVERRIDE, and only beside
--read-only.- sdlc's own release plan carries
image: true, sowrite's own refusal
holds back a release whose image was skipped, not only ci.yml'sif:(a1667) - S2 parses a Renovate config as JSON5 and judges the keys it sets and the
presets it extends, so a locked name in a description, a comment or
ignorePresetsis no longer an override. The locked keys and presets come
from the constitution'sfleet.toml, not a list in sdlc. A preset from
outside Renovate's built-ins and crunchtools/constitution (github>…,
local>…, a URL, an npm package) is reported as unjudgeable. The image adds
json5 0.17.3 (sdlc#203, a1411) - The image carries one constitution pin, at constitution main, with
constitution.mdandfleet.toml;audit_alertis vendored as
sdlc_jobs/_audit_alert.py, since the constitution deleted it (a1411) - S1 counts a
--require-hashesinstall as from the lock only when the flag is
the install's own and its requirements file is one the repo commits, copied
in and not named by any later shell command except as an install's-r
(so>>,sed -i,cpandcurl -oover it count as generated). A copy
into., the WORKDIR or a known directory keeps the file's name. Commands
now split on||and|too, with inline comments dropped (a#inside
quotes is text), and an exec-formCOPY ["src", "dest"]is read as JSON
(sdlc#203, a1411)
v0.16.5
Added
- A local release's image is attested with SLSA v1 provenance, the predicate
CI's promote writes, signed with the fleet key. Its builder is
scripts/local-release.shat the sdlc commit it ran from, never a workflow
run. Promote writes it only when the image's run label carries that run's
attempt and no run id (a1649).
Fixed
- boot finds the runner's socket when its container took it by
--volumes-from,
as the bootstrap starts it: podman lists those mounts only under the source
container, so every boot job on podman refused with "the runner's socket is
not mounted" (ashigaru 6.0.1, a1416) scripts/local-release.shholds a per-project lock for the whole run, so two
runs of one repo no longer remove each other's images in cleanup (a1649)