Skip to content

Releases

v0.20.0

Choose a tag to compare

@ashigaru-crunchtools-com ashigaru-crunchtools-com released this 28 Nov 07:42
c62d881

Added

  • [tool.sdlc.image.disk]: a bootc repo's raw disk, built by the image job
    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>). promote signs it
    with the fleet key and attests the image's SBOM and a SLSA v1 provenance,
    then tags it disk-X.Y.Z and disk-latest along 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 declares type, rootfs and a root-keys file. The
    build runs only on GitHub-hosted runners, where it uses /mnt. Anywhere else
    it exits 2, and it also exits 2 when /mnt has too little room or the
    uid_map is not the full range. No ci.yml change.

Security

  • The fleet ci.yml's ai job no longer hands OPENROUTER_API_KEY to any
    issue (#294): only review() reads it. It reaches every
    pull_request_target run, 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.py now 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.yml and its doc
    block, which still handed out both keys unconditionally, get the same env,
    and a test holds them to it. Re-copy examples/ci.yml.

Fixed

  • The image job verifies an image a COPY|ADD --from= or a
    RUN --mount=...,from= names as it does a builder FROM (#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. An ONBUILD's
    source is held to the same rule.
  • The fleet ci.yml's pages job names its environment through an
    expression (pages-signing when the plan has pages, else none). With the
    bare name, GitHub refused the whole workflow file in every repo without a
    pages-signing environment, so 0.19.0's re-copy started no pull_request
    run and its required sdlc / check never reported. Without the environment
    the job has no key. Re-copy examples/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.yml byte for byte; neither was, and nothing tested
    that they were. The doc now points at .github/workflows/ci.yml as the one
    copy, and tests/test_workflows.py checks the fleet block is the doc's only
    workflow.

v0.19.0

Choose a tag to compare

@ashigaru-crunchtools-com ashigaru-crunchtools-com released this 28 Nov 01:59
a1e8899

Added

  • EXTRA_IMAGES gives crunchtools/trentina trentina-l2-model, the L2 model
    image a training round publishes through ci.yml (crunchtools/trentina#954,
    a1793).
  • Two fleet jobs, assets and pages, for release packages and the signed
    dnf/apt site (a1796, #263). assets rebuilds 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: write token and no stored secret. pages runs where the tree has
    [tool.sdlc.pages]: it signs the products' release assets and pushes the
    site to gh-pages with the GPG key from the pages-signing environment
    alone, then requests the Pages build. examples/ci.yml gains both jobs;
    re-copy it. The image gains gnupg2, rpm-sign and createrepo_c, and
    sdlc_jobs/_debrepo.py writes the apt index. The design is
    "Release assets and the package site" in docs/marketplace-free-ci.md.

Fixed

  • A scripts/local-release.sh build's provenance no longer claims the GitHub
    Actions workflow buildType and .github/workflows/ci.yml (#285, a1904). It
    carries https://crunchtools.com/sdlc/buildtypes/local-release/v1, with
    externalParameters naming the built repository's ref and
    scripts/local-release.sh in crunchtools/sdlc at the commit it ran from.
    #286 first gave it a mutable blob/main URI and placed the script in the
    built repository; promote's predicate() 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.http and the GitHub client, 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.sh carries SLSA v1 provenance again (#275,
    a1888). hotfix.sh stamps the build record scripts/local-release.sh gives 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.py trusts 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 --memory held, 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
    from container.yml to ci.yml's sign step, 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 promote attests 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, as write already does, so a repo like
    ashigaru is no longer refused at test 7.

Removed

  • .github/workflows/container.yml (a1790). ci.yml's test, image and
    sign already build, test, sign and publish every release; scripts/self.sh
    now also runs tests/test_mirror_parent.sh and shellchecks mirror-parent.sh,
    the one test only container.yml ran. :main and the python-sdlc mirror,
    which only container.yml moved, stay at 0.15.8 and are no longer published.

Changed

  • bin/sdlc-bootstrap refuses SDLC_IMAGE=main with exit 2 and says why:
    :main stopped at 0.15.8, and running it would gate on a frozen image that
    still verifies under the fleet key. Use latest, a release, a digest, or a
    local build through a clone's bin/sdlc. examples/pre-commit-floating.yaml
    no longer suggests it; re-copy it. scripts/provenance.py now trusts a build
    record from ci.yml, and the README says sdlc's own releases are signed but
    not attested since 0.15.9 (#266).

Documentation

  • docs/marketplace-free-ci.md records spike #103's open items re-run on
    crunchtools/ci-spike (a1792): review-comment re-triage, the pypi
    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 the ai job CLAUDE_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's pull_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-copy examples/ci.yml.

v0.18.0

Choose a tag to compare

@ashigaru-crunchtools-com ashigaru-crunchtools-com released this 26 Nov 20:51
8622145

Added

  • scripts/mirror-parent.sh mirrors one upstream parent, pinned by digest,
    into quay.io/crunchtools/<name>:<tag> with skopeo copy --all --preserve-digests and signs it with the fleet key and
    repo=crunchtools/<name>, the signature the image job's verify_parent
    trusts (a1730). A repo built FROM quay.io/podman/stable, which nobody
    signs, was refused; it now builds FROM
    quay.io/crunchtools/podman-stable at the same digest. It runs on Exedore
    with the secrets local-release-secrets.sh already pipes.

Changed

  • cosign and grype come from Hummingbird (registry.access.redhat.com/hi/cosign
    and hi/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_IMAGE in ci.yml, the
    examples and hotfix.sh.
  • Every cosign sign and cosign 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=false outright. With the flags, v3 writes the same .sig and
    .att tags v2 did. v2 and v3 verify each other's signatures and
    attestations, and podman's sigstoreSigned policy 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, not docker.io/koalaman/shellcheck: the
    pre-commit hook, scripts/self.sh and container.yml (a1751).

v0.17.1

Choose a tag to compare

@ashigaru-crunchtools-com ashigaru-crunchtools-com released this 26 Nov 18:41
6fb591f

Fixed

  • The pypi job no longer refuses every build: uv build writes a
    .gitignore into dist/, 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

Choose a tag to compare

@ashigaru-crunchtools-com ashigaru-crunchtools-com released this 26 Nov 18:28
4c33b2d

Added

  • scripts/local-release.sh runs ci.yml's pypi job after promote when the
    release publishes to PyPI, so fleet releases reach PyPI again while org
    Actions are off. local-release-secrets.sh emits PYPI_API_TOKEN from
    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 pypi job publishes with an API token in UV_PUBLISH_TOKEN when 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.py ran its safe.directory test only under pytest: it
    was defined after the script's main() call.
  • tests/test_local_release.py runs the script end to end against faked host
    tools (tests/local_release_stub.py, under SDLC_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 libzstd with zstd. Hummingbird's zstd 1.6.0 does not
    require the libzstd it links against, the base keeps libzstd 1.5.7, and
    unzstd failed on an undefined ZSTD_isDeterministicBuild while unpacking
    the CodeQL bundle, failing the build (a1745).

Security

  • pypi uploads with uv --no-config publish --publish-url https://upload.pypi.org/legacy/, on the OIDC path too. uv ran in the
    checkout, so a committed uv.toml or [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 leaves os.environ before the first
    step, so the shared helpers' podman calls do not inherit it (a1738).

v0.16.9

Choose a tag to compare

@ashigaru-crunchtools-com ashigaru-crunchtools-com released this 26 Nov 02:25
685f1f3

Fixed

  • promote reads 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

Choose a tag to compare

@ashigaru-crunchtools-com ashigaru-crunchtools-com released this 26 Nov 01:25
f666e3a

Fixed

  • boot pulls 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 of gated-<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,
    copies ref@digest under a policy that rejects everything but that one
    digest, keeping the manifest so the digest is unchanged, and the engine loads
    the archive as ref: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

Choose a tag to compare

@ashigaru-crunchtools-com ashigaru-crunchtools-com released this 26 Nov 00:13
9a593d9

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_KEY read 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.
  • check on 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

Choose a tag to compare

@ashigaru-crunchtools-com ashigaru-crunchtools-com released this 25 Nov 23:31
0cbeec7

Changed

  • A release is tagged only after its gates pass (a1667). The fleet's
    write needs image and boot, and on a release its if: wants each to
    have succeeded or been skipped with none planned; write also refuses in
    code when the SDLC_IMAGE or SDLC_BOOT it is handed says otherwise (a
    fleet file older than this maps neither, and stays unenforced, as promote
    treats SDLC_BOOT). A release whose image or boot fails leaves no vX.Y.Z
    and no GitHub Release behind, as rhel10-bootc-server v1.8.0 did. Fleet repos
    take it by re-copying examples/ci.yml.
  • scripts/local-release.sh runs check, image, boot, write, promote: write
    after the gates, handed their results.
  • sdlc's own release: image builds the version check planned without
    waiting on write, write waits on image, and sign signs only what
    write then released (SDLC_WRITE success, SDLC_RELEASE at the image's
    version). scripts/hotfix.sh hands 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-lint gets DAC_OVERRIDE back after --cap-drop=all, on a
    --read-only root, and nothing else. bootc container lint walks the whole
    image as root, and a RHEL bootc image with setroubleshoot ships
    /var/lib/setroubleshoot 0700 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).
    Not DAC_READ_SEARCH: it is what open_by_handle_at needs, the "shocker"
    escape, which is why it is outside the default set. The image job takes
    --cap-add only for bootc-lint, only DAC_OVERRIDE, and only beside
    --read-only.
  • sdlc's own release plan carries image: true, so write's own refusal
    holds back a release whose image was skipped, not only ci.yml's if: (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
    ignorePresets is no longer an override. The locked keys and presets come
    from the constitution's fleet.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.md and fleet.toml; audit_alert is vendored as
    sdlc_jobs/_audit_alert.py, since the constitution deleted it (a1411)
  • S1 counts a --require-hashes install 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, cp and curl -o over 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-form COPY ["src", "dest"] is read as JSON
    (sdlc#203, a1411)

v0.16.5

Choose a tag to compare

@ashigaru-crunchtools-com ashigaru-crunchtools-com released this 25 Nov 21:44
fc64fda

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.sh at 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.sh holds a per-project lock for the whole run, so two
    runs of one repo no longer remove each other's images in cleanup (a1649)