The proxy in front of the console and the webmail, which holds their TLS keys (and runs on the host network beside a host server), was docker.io/library/caddy:2-alpine: a floating tag on Docker Hub, so every install and converge ran whatever that tag named that day, and whoever could push it chose what ran as the proxy. Everything else the installer downloads is checked against a checksum in its source. Caddy is now pinned in internal/release by the digest of its image index (2.11.9-alpine), and compose.yaml names it by digest. pin-check reads Docker Hub's caddy tags and reports a newer X.Y.Z-alpine in the series, or the pinned version's tag now naming another image (Docker Hub rebuilds them for a new Alpine), so the pin is moved by the same reviewed change as the others. The comment that called the suite's own tags immutable is corrected: they can be pushed again. Test: TestCaddyIsPinnedByDigest failed before (DefaultCaddyImage was "docker.io/library/caddy:2-alpine") and now passes; TestCheckCaddy and TestSuiteImagesNameAnExactRelease are new.
34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
# SPDX-FileCopyrightText: 2026 Coffey Labs LLC
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
#
|
|
# Weekly check that the releases this installer pins (internal/release) have
|
|
# not fallen behind the newest release of inbuxa-server, inbuxa-admin and
|
|
# inbuxa-webmail, nor Caddy behind Docker Hub's newest patch of its series or
|
|
# a rebuild of its own version. A fresh install ships whatever release.go
|
|
# names, so a pin left behind is a fresh install shipped stale -- and, if the
|
|
# skipped release fixed a vulnerability, shipped vulnerable.
|
|
#
|
|
# A stale pin fails this run (exit 10) and opens or updates a tracking issue;
|
|
# the fix is a reviewed change to release.go with the new checksums (and
|
|
# Caddy's new digest), never an automatic edit. The release reads are public,
|
|
# so they need no token; --issue uses the run token to write the issue in
|
|
# this repository.
|
|
name: pin-check
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 6 * * 1"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
pins:
|
|
runs-on: light
|
|
container:
|
|
image: golang:1.26-bookworm@sha256:dc40a13b61304647ed7e5d581d246b86413dfc29d63c6d018310feb93cd98fc0 # 1.26-bookworm (1.26.11)
|
|
steps:
|
|
- uses: coffey-labs/actions/checkout@fab0c4d45e0162963965f1555df27b7bed5e20ec
|
|
- name: Check the release pins
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: go run ./cmd/pin-check --issue
|