sanimail v0.35.0 * chore: dependency update for v0.35.0 (d2f8b43) * devtools: move to 56aca7a, whose .sigstore lets verify reach production.cloudfront.docker.com, Docker Hub's other blob CDN, which a tag's image checks would otherwise be denied (9e35703) * build: install gpgv in the dev container, which versions-extra.sh needs to check a new GnuPG tarball's signature before bump pins it and which Debian 13's golang image lacks, since its apt verifies with sqv, so make release-minor's bump failed (0263074) * imapwatch: set and read the test proxy's reply rewrite under its mutex, as its other knobs are, since TestCheck set it after the proxy was accepting and test-race reported the relay's unlocked read (4019f90) * build: have test-notices say scripts/notices.sh failed when it did, rather than reading its cut-off output as a stale THIRD_PARTY_NOTICES, and stop notices.sh piping its go list, whose failure the pipe's status hid (aedd001) * notices: list every target build-all ships, not the host's architecture, since jpegli compiles a Go translation of its WebAssembly library on arm64 and the arm64 runner's list dropped lib/LICENSE.jpegli, so test-notices failed there (6326295) * devtools: move to 5733442, whose boundary mounts /tmp and /var/tmp 1777 so the sandbox probes' dropped uid can write its TMPDIR, and whose qemu-sandbox.sh --net gives the guest DNS (f646bc5) * build: take fetch and tidy from devtools' make/go.mk, whose fetch downloads what the offline tidy reads and whose tidy tells a module it could not load from a go.mod/go.sum it would change, and keep only the laptop's go-mutesting and pkgsite as fetch-local-tools (8887a56) * devtools: move to efd2f0c, which has Go's fetch and tidy in make/go.mk, fetch downloading what the offline tidy reads and tidy telling a load failure from a diff, and boundary.sh saying to make each BOUNDARY_OUT directory on every run (426c994) * ci: stage what attest, sign_binaries and verify sign with .sigstore's stage functions, the SBOM and SHA256SUMS copied from the artifacts and openvex.json from the tagged commit rather than the checkout, and drop sbom's attest/ copy and the YAML SIGSTORE_STAGE they replace (7826a44) * ci: run nightly_release on devtools' .credential_clone, which runs scripts/nightly-release.sh from a fresh clone with the verified devtools and copies in only the artifacts it names (the triage's draft and the scans' findings optional), and drop the nightly-release.env hand-over nothing reads since vex_commit learns from the branch (4a390b1) * ci: publish the release's image names with devtools' .promote_image, which takes the digest from push_image's push.env alone, the version from the tag, runs promote.sh --release and reads X.Y.Z back, so release_image runs nothing of the tree beside the Docker Hub login and receives files from push_image only (6fba41a) * build: warm the build cache in make fetch, the one run that may write .container/, by compiling the tree and its tests as make test does with -exec /bin/true, so the goals after it do not compile everything cold (a58060a) * build: drop what devtools 50730b8 now does itself: BOUNDARY_GIT (versions and bump always get a fresh .git), the export of PIN_DIFF_DATA_FILES (container.mk exports it) and the jobs' own apt-get lines (container.mk installs DEV_APT_PACKAGES in the job) (4fde41e) * ci: have image_tag hand over both architectures' archive digests and push_image refuse an archive that does not push to the one hashed into the content tag (PUSH_VERIFY_DIGESTS, push-oci.sh --expect-digest) (acaf1b2) * ci: bring back the test-32bit job and its place in push_image's and the heartbeat's needs, since devtools' boundary seccomp filter now has an i386 table of its own (2fcb0e6) * ci: run nothing of the checkout in the jobs that hold a credential and take artifacts, as ci-lint now requires: attest, sign_binaries and verify call only .sigstore's functions over directories staged by jobs that hold nothing (sbom's attest/, the new sums job), the downloads are checked and uploaded by a new credential-free release_downloads, the notes are written by release_notes for an unmodified .release_email, and vex_commit drops the before_script commit.sh already covers (6864f48) * devtools: move to 05f3197, which has the boundary's i386 seccomp table, .credential_clone with optional artifacts, .promote_image, .sigstore's stage functions, ci-lint's credential allowlist, its rule that .promote_image takes artifacts only from the push and signing jobs, and the fixes sanimail's migration sent (325b1cd) * ci: drop the test-32bit job, which devtools' boundary seccomp filter kills on its first i386 system call and which would hold up every release, keep it a release gate on the maintainer's machine, and pass KM_ARCH to the kernel matrix on the make line (a892daf) * nightly: write nightly/nightly.env after make bump rather than before it, since nightly/ comes back from the bump's boundary wholesale and the bump's code could otherwise rewrite the base the candidate is compared with (6c7847e) * build: give vuln-json the network it needs (vuln.go.dev and the module proxy) and versions and bump gnupg.org, the boundary a fresh .git so versions.sh still watches the marked image pins, refuse a VULN_JSON climbing out of nightly/, and point the kernel matrix's messages and KVM notes at what the boundary actually allows (b90315b) * ci: write only the immutable X.Y.Z in release_image and leave X.Y, X and latest to devtools' promote.sh with --skip-older, which since 53f65c0 has the major rung (275b454) * ci: run the kernel matrix with its kernels downloaded by make fetch into .container/kernels, cached on test/kernels.list, and keep the guests' serial logs from kernel-logs/ on every run, and say in the docs that the bumped tree's tests now run in devtools' boundary, not beside the job token (c618235) * ci: move the pipeline onto devtools 0d958c2, building each image to an OCI archive in a credential-free job that smoke-tests the archive, pushing by digest from .push_image under an immutable X.Y.Z_<hash> tag, handing values over as plain files read by handoff.sh, applying the nightly's patch with nightly-apply.sh, running no go outside make and no tree script beside a credential, and keeping only .container/ as a cache (0b93cad) * kernel-matrix: name each mainline row's build directory instead of its package file, found by its pinned sha256 in that directory's CHECKSUMS, and separate kernels.list's fields by one space, so devtools' pin-diff.py can read a row the nightly moves (5936c8d) * kernel-matrix: download the kernels in make fetch, the one run with the network and a writable .container/, check every cached file against its pin before booting with none, run qemu through devtools' qemu-sandbox.sh, and bring the serial logs back out of the boundary in kernel-logs/ (b7f55b0) * build: run under devtools' least-privilege make, with a fetch goal that downloads the modules and dev tools and runs nothing, BOUNDARY_OUT for bin, public, fuzz-crashers and nightly, the Go caches named under .container/, test-fuzz finding new crashers without git, playground-wasm and the playground's gzip as goals, and the bump's notices named a data file for pin-diff (24a6517) * image: give every Dockerfile step but the apk install no network, and the smoke test's status helper container --network none, so the GnuPG build and every container under test reach nothing, as devtools' harden-container-ci now requires (4cf1013) * image: leave a patch directory in place when the bump moves its GnuPG pin, and name it in make versions and the image build instead of refusing it, since devtools' pin judge accepts no deleted file and would refuse the whole night (222401f) * test: grade the probes that write to /etc only where /etc is writable before the sandbox, since devtools' CI boundary mounts it read-only and EROFS there is the mount refusing, not Landlock (373141f) * test: vendor the mime, multipart and mail directories of dvyukov/go-fuzz-corpus (Apache-2.0, unchanged since 2019) instead of cloning them from github.com at fuzz time, since CI's goals now run offline and github.com takes pushes, and run TestCorpusGoFuzz in make test, failing if the corpus is missing (547b0bc) * devtools: move to 53f65c0, which runs every CI make goal in a boundary with no job token or network, builds images with no credential and pushes them by digest from a job of their own, hands values over in plain files, judges every bump with pin-diff.py and gives promote.sh the major tag (7b596f8) * docs: say a first make test needs the network, describe devtools' namespace-scoped GONOPROXY/GONOSUMDB, and write distclean's chmod as the template now does (43c88cb) * image: pin libgcrypt's configure answer to whether mlock is broken, the one probe in GnuPG's builds that runs on the build host and reads the runner's locked-memory limit, so two runners cannot build different secure-memory code, and assert it from config.h (80ff570) * build: publish make docs and make playground on the host's loopback with devtools' DEV_PORTS, listening on every container address inside the dev container and on localhost elsewhere, and stop listing the *_VERSION pins in DEV_ENV now that container.mk forwards them (22268d3) * ci: put the vX.Y.Z tag rule and the refusal of every other tag first in the workflow rules, so no later rule such as a web-started pipeline can admit another tag, as devtools' ci-lint now requires (bce4e01) * devtools: move to 64da236, which takes DEV_PORTS, release pipelines for vX.Y.Z tags only, -buildvcs=false in the Go template and the fixes sanimail's migration sent (ac19dcd) * Mount devtools skills inside dev sandbox (940cd6d) * docs: import a PKCS#12 with --passphrase-fd 0 and the password on stdin, since gpgsm has no --passphrase and reads it as --passphrase-fd, so the documented --passphrase PASSWORD could never work, and say why an open stdin hung the import (b4bf189) * test: run the pipe and IMAP sandbox probes unprivileged as well as as root, as the milter's already are, so the kernel matrix proves the sandbox for the uid the image runs as (eef604f) * kernel-matrix: boot make build-all's bin/sanimail-linux-<arch> as the guests' /sanimail instead of a rebuild with its flags, with build-all as the target's prerequisite and each row checking the hash its guest reports against bin/'s, so the bytes proven are the deterministic release bytes and never a stale tree's (375846a) * docs: state that sanimail is licensed under the AGPL version 3 or any later version, which the image label and build manifest already declare as AGPL-3.0-or-later (02c5bda) * image: refuse ALLOW_NO_BIN=1 in CI, so the image-to-binary comparison cannot become a soft skip there (6227359) * image: refuse a STRICT_KEYS value other than 1 or unset in verify-release.sh, so a spelling like yes cannot quietly verify non-strictly (38de17e) * build: measure internal/sandboxprobe in the coverage gate, whose release build is an empty Run, so anything it grows outside the remotetest tag is counted (95bf369) * sandbox: skip the daemon /etc write probe when not root, where the directory's mode refuses the write whether or not the policy is applied, so it cannot pass without Landlock (7317803) * test: give a kernel-matrix guest 420 s, above the 280 s its test binaries' own timeouts add up to plus a boot, so a hang is reported by name rather than as a guest that never finished (9bd0b94) * docs: say in RELEASING that the nightly's bumped-tree tests run beside a job token with the schedule owner's rights, which the package protection rule does not stop, and what still catches a tampered Release (a250345) * ci: rebuild the nightly candidate from scratch whenever it differs from the release, and fail rather than release when the two builds differ, so an unreproducible byte cannot cut a patch release every night (3b43c57) * ci: have ci-gates.py require release_image to wait for kernel-matrix as well as test-mta, so dropping the one job that sees the sandbox enforced fails make test-ci (01f1422) * ci: make release_image's package uploads re-runnable, skipping a file already there with the same bytes and failing on one with different bytes, since the registry refuses duplicates (f17a8fa) * ci: take the cosign identity verify and the release notes check from lib-ci.sh's signing_identity, the derivation BuildKit's builder-id already uses, rather than two hand-written copies (c0b6181) * ci: run a pipeline for a vX.Y.Z tag only, so another tag name cannot build, push and sign an image under its own identity before verify refuses it (0f141f3) * docs: correct comments that still described a VCS stamp, test-mta as a release gate and the shellcheck scope, and list the armv7 and 7.3 kernels in CLAUDE.md (600fbae) * docs: list the armv7 and 7.3 kernel-matrix rows in the README and RELEASING (e073d17) * ci: boot the armv7 rows in the kernel-matrix job too, with the timing measured for all three architectures under TCG on two CPUs (fb4643e) * test: skip the hand-pinned Debian rows in versions-kernels.sh, and report a CHECKSUMS lookup that failed as unknown (failing under APPLY=all) rather than as a build that is not there (36a3e96) * test: boot armv7 (Debian armmp 5.10, 6.1, 6.12, 7.2) and 7.3 in the kernel matrix, run the released binary and the in-process sandbox probes in every guest, a gnupg case as an unprivileged uid, and fail a row on any skip the pinned ABI does not explain or a test binary that hit its own timeout (510d5c3) * sandbox: probe a daemon write into /etc, an existing directory only Landlock refuses a root daemon, beside the one into the temporary directory (b0ad36e) * cmd: probe the sandbox from inside the real binary right after pipe mode, the milter and the IMAP watcher confine themselves, in remotetest builds only, so the integration tests show cmd applies the policies: seccomp's refusals without --remote-inline, Landlock's ports and paths with it, and the daemons' write, connect and gnupg-namespace grants as root and as an unprivileged uid (5d3c8e9) * test: run the TestBinary cases that need no test bypass against the binary as released, building the remotetest one only for the loopback cases, and give a kernel-matrix guest a minute rather than three to reach seccomp mode (17af272) * docs: warn that a GnuPG home another gpg 2.4.1 or later created says use-keyboxd, which the image's GnuPG cannot serve, with the export-and-import remedy, and state that the helper's user namespace was measured confined under docker as under podman (d07bed1) * image: fail the smoke test's seccomp check when a container has exited instead of skipping it, assert a use-keyboxd GnuPG home fails naming the missing keybox daemon, match the IMAP watcher's exact connection error, and say the helper's user namespace was measured confined under docker too (974cda9) * ci: build the image with SOURCE_DATE_EPOCH=0 and rewrite-timestamp=true on every buildx exporter, so its layers reproduce as make image's do (b0d884f) * make: build the image with podman's --timestamp 0, so two builds of the same inputs give the same layer digests, and say in the Dockerfile that touching the files alone never did (80e1969) * image: assert the image's whole runtime config and every label's exact value against the Dockerfile, its binaries' dynamic TLS relocations on both architectures, and fail when the build-all binary to compare /sanimail with is missing (b1a432e) * image: have fetch-sources.sh refuse a SRC_DIR holding anything but GnuPG tarballs and signatures, and remove only unpinned ones, instead of deleting whatever else it found there (b15a944) * image: refuse a patch directory left for a GnuPG version no longer pinned, and have versions-extra.sh remove a library's directory when APPLY=all moves its pin, so a backported fix never outlives the release it was for unnoticed (2e5bfd2) * image: label the image with sanimail's own licence, AGPL-3.0-or-later, as the family's images do, leaving GnuPG's and the libraries' to the build manifest, which names sanimail's the same way (aaa0bde) * image: count AArch64's dynamic TLS relocations too when asserting the GnuPG binaries, since the x86-64 names alone passed every arm64 build vacuously (68d92d0) * image: refuse a GnuPG tarball any revoked release key signed, and count no expired key's signature as good, refusing one outright when versions-extra.sh adopts a new pin, since gpgv prints VALIDSIG for both and that alone was taken for good (75b4618) * docs: say the image's GnuPG source is the upstream tarballs plus the patch applied to them, not unmodified tarballs (e4f9ee1) * docs: open CLAUDE.md with what sanimail is and its invariant, who commits, the devtools skills it relies on and the deviations kept, and add the release and CI decisions and traps of the migration (61d9db1) * docs: list test-arm64, kernel-matrix, image and smoke in CONTRIBUTING's heavier suites, with what each needs on the host and that CI runs them before any release (6ba6d18) * docs: add running sanimail from the container image to the deployment guide: per-message pipe mode, the daemons, the GnuPG home's ownership and key import, GnuPG 2.5.24's vendored ECDH import fix and gpgsm's PKCS#12 import from a file, and what was left out of GnuPG (bf435d0) * docs: rewrite RELEASING for the signed tag the pipeline builds, signs and publishes from, the nightly patch release, the GnuPG pins, patches and corresponding source, the GitLab settings and the first release, and give SECURITY the image, release integrity and the moved trust boundary (a52801d) * docs: document the release downloads by their permalink URLs, the container image and how to run it hardened, its tags, verifying the signed tag, SHA256SUMS' keyless bundle and the image by digest, the scans, and where GnuPG's corresponding source is (bcab7d6) * release: point to the GnuPG sources from each release's notes instead of attaching them: every tarball's upstream URL and SHA-256 from the pushed image's build manifest, and the patches at the tag, which meet the GPL's directions next to the object code (84bd15a) * image: mark the smoke test's lib.sh counters as used, since make shellcheck runs without -x and cannot see lib.sh read them (14d3d70) * docs: describe the container image for operators: its contents, recommended run flags, pipe mode, milter and IMAP watcher, the GnuPG home, what was left out of GnuPG, its release keys, patches and corresponding source (ff1aeed) * make: add host goals image, which builds and asserts the image from build-all's binaries, and smoke, which smoke-tests one (12d26e3) * versions: report GnuPG against the series gnupg.org calls stable and each library against its newest release, and under APPLY=all move a pin only after the new tarball's signature verifies (e604b97) * image: smoke-test the image under the documented hardening: passthrough, --policy, PGP and S/MIME round trips with the image's own GnuPG, sanimail's seccomp filter read from the running process, the daemons' Landlock, and the milter and IMAP watcher re-executing themselves (6842310) * image: assert each platform of a built image holds exactly the expected files, modes, owners, static binaries of its architecture, runtime config, labels and build manifest, and the very binary build-all made (820fef9) * image: add a scratch release image of sanimail and GnuPG 2.5.24, which the build compiles statically against musl from tarballs pinned by SHA-256 and checked against GnuPG's vendored release keys, with every shipped binary asserted a static PIE and a CycloneDX build manifest derived from the link trace (d04ec87) * ci: push no image before every gate has passed, assemble on the digest-pinned Alpine, run the kernel matrix to its measured spec, log in for the smoke tests' pulls, verify the GnuPG sources' signatures before publishing them, cover the SBOMs in SHA256SUMS, check RELEASE_ARTIFACT in the notes and give nightly_bump the runners' 3 h (194a68a) * image: label the image with the version without its v, as its tags and make image have it, and name config changes in the nightly's differs line instead of printing the word config (3422762) * nightly: fail at the start of the night, saying to cut a release by hand, when the newest release has no SHA256SUMS or image to compare with, instead of after the whole bump, test and build (8fc37fd) * make: build with -buildvcs=false always, since Go's VCS stamp put the commit into every binary and no nightly candidate could ever equal its release; nightly-binaries.sh asserts no vcs setting reaches a built binary (af20f56) * ci: build the image from the GnuPG tarballs image/fetch-sources.sh fetches and publish those, held to the pushed image's build manifest; take the union of the two architectures' Go modules and manifest components into the one SBOM, since wazero and Alpine's per-architecture builds differ by design; run make test-mta as the host goal it now is; and drop GitLab's template scanners, whose findings were noise in a report nobody read (4a66ef4) * ci: rewrite the pipeline the family way: devtools' fragments at the submodule's commit, every gate a make target, binaries built once and images built natively per architecture, signed keylessly, attested, scanned and smoke-tested by digest before forward-only tags name them, the GitLab Release and mail, the nightly patch release, and the kernel matrix and test-mta kept (2c72419) * ci: hand on only the per-architecture image digests, which build_image reads (dba0e08) * ci: add the nightly patch release's scripts, adapted from pdns-api-cage's: make bump with nothing moved down or outside the pin files, the downloads compared with the newest release's SHA256SUMS, and one commit, one unsigned next-patch tag and one push when the images or the downloads changed (24c6c45) * ci: add the scripts the image release jobs run: each architecture built natively, smoke-tested and pushed by digest with provenance, the two assembled into one index, the binary proved byte-identical in the pushed image, one guarded SBOM from the Go modules and the image's build manifest, and the GnuPG source tarballs fetched by the hashes the build recorded (1c222d0) * release: add release-key.fpr, the fingerprint tag_is_signed and release.sh pin release tags to, and an empty openvex.json for the image's VEX attestation and the nightly triage (f7ed9a5) * versions: run the kernel pins' report from versions-extra.sh, counted as behind in a report and fatal under APPLY=all (ac179a2) * make: give test-ci the pipeline's CI_LINT_FLAGS, the jobs that must carry a timeout and scripts/ci-gates.py, so a laptop lints with what the ci_lint job passes (24d1409) * make: add vuln-json, forward the tool-version and mutate knobs into the dev container, install bzip2 for test-corpus, keep gofmt out of the downloaded corpora, let distclean remove Go's read-only module cache, list only uncovered blocks that hold statements, and ignore what the nightly and the pipeline write (22136fa) * test: report a newer patch for each kernel series the matrix pins, and move kernels.list onto it under APPLY=all, for versions-extra.sh to call from make versions (484c34d) * test: add make kernel-matrix, which boots pinned 5.10, 5.15, 6.7, 6.12 and 7.2 kernels for amd64 and arm64 under qemu and proves the sandbox enforced on each from the errno of every probe, with the exact Landlock ABI each kernel is pinned to required (93ccef3) * test: let the integration tests run a prebuilt SANIMAIL_TEST_BINARY, and fail rather than skip under SANIMAIL_SANDBOX_STRICT_ABI when the binary or the gnupg helper starts unconfined (ca8c012) * sandbox: grade every enforcement probe by the errno its refusal carries, add the TCP, UDP and resolve-unix probes, and fail instead of skip under SANIMAIL_SANDBOX_STRICT_ABI so a kernel matrix catches a supported mechanism that is not enforced (f7fff83) * make: move the Makefile onto devtools' Go template, so every goal runs in the golang image of go.mod's toolchain from a bare host, the coverage gate counts exact statements, the dev tools float behind the release cooldown instead of pinned tool modules, and release, versions and mutate use devtools' scripts; test-mta launches its runner from the host (5e3c3fa) * urldetrack: compile the embedded mail-gateway supplement through mustCompileGateways and test its panic, so the build-defect branch is a tested behaviour rather than an unreachable line (e685c65) * email/remote: assert the uncarried-colour-profile error's message, which names the profile and was never formatted by any test (8ef5db7) * email: test an ASCII comment beside an encoded display name, the one address-header shape whose comment is copied as written and which no case reached (0449e95) * cmd: make the --hp sign-only usage-error cases pass --hp baseline and assert their message, since with --hp at its default off they exited 2 on the earlier off check and never reached the encryption-required one, which the exact coverage count showed unrun (05520e9) * devtools: add the devtools submodule, the family's shared make fragments, CI fragments, tools and skills, pinned at 8435f7d (5bd7900) * sandbox: confine the milter and IMAP daemons with Landlock, worked out from the child flags so their children keep what they need before sandboxing themselves: no writes but GnuPG's directories, no outbound connections but the IMAP server, DNS and the --remote-inline ports (7e22f39) * docs: document sanimail imap: Stalwart setup with a spam-aware Sieve holding rule, flags, cron mode, and what happens to each message (b9006a6) * imap: test sanimail imap against Stalwart and Dovecot in make test-mta, including one SMTP transaction to two Stalwart accounts of which only the one whose Sieve files into a holding folder is sanitized (84fe983) * imap: add sanimail imap, which sanitizes chosen mailboxes over IMAP for servers that cannot filter at delivery: the account's Sieve files mail into holding folders, watched with IDLE (or --once from cron), and each message streams through a fresh sanimail child into its destination folder (3a5df08) * milter: stream each message through its child instead of holding it, so the daemon keeps only the header fields and needs no disk: the child starts at the message's first event, and a hidden --frame-output tells the daemon the output's size and whether the message or its body changed (7280b84) * child: move the per-message sanimail runner out of milter/ into internal/child, so the IMAP watcher can share it (no behaviour change) (707e253) * make: fail test-crossbuild once the pinned go-milter compiles for 32-bit while the milter is still excluded there, so the bump that brings in the fix (d--j/go-milter#49) also enables it (c00d214)