Skip to content

crossdock v0.2.0 Alpha

Choose a tag to compare

@github-actions github-actions released this 07 Nov 00:30
· 40 commits to main since this release
de4df13

Added

  • RPM repositories — format: rpm publishes rpm/<repo>/ with Packages/ and repodata/
    (primary, filelists, other, and a signed repomd.xml), following createrepo_c's rules,
    for dnf with repo_gpgcheck=1. Package headers aren't re-signed; sign packages with rpmsign
    for gpgcheck=1.

  • GooGet repositories — format: goo publishes goo/<repo>/index and index.gz for
    googet addrepo, keeping each package's pkgspec verbatim.

  • crossdock inspect reads .rpm and .goo files.

  • The packaged config, /var/lib/crossdock/incoming and crossdock-publish.path now cover all
    four formats.

  • serve and nginx-config cache content-addressed repodata/<sha256>-*.xml.gz files as
    immutable and serve .goo as application/gzip.

  • Incremental publishing — <output>/cache.json remembers each package's digest and parsed
    metadata (by path, size and mtime), so unchanged packages aren't reread, rehashed or copied.

  • apt Acquire-By-Hash, keeping the previous generation's indexes reachable through a swap,
    and valid_for for Valid-Until, with a new (disabled) crossdock-publish.timer that
    republishes daily.

  • no_symlinks — publish without symlinks (in-release links become hardlinks or copies;
    current.id records the current release). It's used automatically where symlinks can't be
    created, and always on Windows.

  • crossdock keygen creates an Ed25519 signing key, optionally passphrase-protected, and
    signing.passphrase_file reads a passphrase from a file such as a systemd credential.

  • signing.key_id can pick one key from a key_file that holds several.

  • CI runs the real client for every supported target against a signed repo, and checks that a
    tampered index is rejected: apt on Debian stable (sqv) and Ubuntu (gpgv), dnf on Fedora 44
    and 45 and AlmaLinux 10, and pacman on Arch.

  • Dependabot auto-merges its grouped minor and patch updates to Go modules and Actions once CI
    passes. Major and security updates (which skip the cooldown) wait for review.

  • crossdock systemd-config generates the drop-ins and tmpfiles entry for a config whose paths
    aren't under /var/lib/crossdock: ReadWritePaths, the watched directories and
    RequiresMountsFor.

  • allow_empty: true on a repo lets it be published empty after it has had packages.

Changed

  • Packages are hardlinked into the store when the source shares a file system with output,
    so they no longer take twice the space. Publish warns if it has to copy. Replace sources by
    rename, not by writing into them. A truncated store object is now replaced, not reused.
  • A publish that's interrupted resumes. Progress is saved every minute and on failure, and
    crossdock-publish.service no longer has a 30-minute start timeout. Releases left by a killed
    publish no longer count towards keep_releases.
  • A repo that has packages won't be published empty, as an unmounted disk would make it look,
    unless it sets allow_empty. Symlinked packages, once skipped silently, now fail the publish.
  • sign_packages is off in the packaged config and example: it's unsuitable for large packages,
    and a signed database covers package contents when clients require its signature. pacman clients
    need
    SigLevel = Required DatabaseRequired PackageOptional.
  • crossdock-publish.service can write all of /var/lib/crossdock, not just repo/, because
    hardlinks can't cross the separate mounts ReadWritePaths makes. Both services now require
    that path's mount.
  • No host tools needed. Signing, keygen, and xz and zstd decoding are native Go
    (ProtonMail/go-crypto, ulikunitz/xz, klauspost/compress). The packages no longer depend on
    gnupg, xz or zstd. gpg is only used, and only suggested, for signing.gnupg_home
    (agent and smartcard keys).
  • The config is YAML: crossdock.yaml, and /etc/crossdock/crossdock.yaml in the
    packages. Unknown and duplicate keys are errors with line and column. JSON configs still load.
  • Keys are v4 Ed25519 with SHA-512 signatures, which every supported client accepts. GnuPG
    (pacman, EL10's dnf) rejects RFC 9580 v6 keys.
  • Supported targets are current releases only: Debian 13+, Fedora 44/45, EL10.2+ and Arch.
    Building needs Go 1.27.3 (GOTOOLCHAIN=auto fetches it).
  • The store is garbage-collected from per-release manifests rather than hardlink counts.

Fixed

  • Windows always publishes without symlinks. With symlink rights, the current swap failed
    with "Access is denied".
  • Release paths are checked with filepath.IsLocal, which also rejects rooted paths and
    reserved names on Windows.