Repository navigation
·
19 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Security hardening, following an audit of how container settings, git, MQTT commands and the build pipeline could be misused. See Improving Security
🔒 Security
Container settings
- Breaking: settings that come from an image's own labels or environment, rather than being set on the container, are now ignored, apart from the picture, release notes and display name. An image could otherwise opt itself into Auto updates, switch off its cooldown, hide itself from update checks, or choose where git is run
- Set
updates2mqtt.*labels andUPD2MQTT_*env vars in the compose file,.envfile ordocker runcommand, as most installs already do - A setting ignored for this reason is logged once per container
- Set
- Docker Compose labels supplied by an image, not by Compose, are ignored, so an image can't choose the directory
docker composeruns in - Picture and release notes settings are only accepted as
http://orhttps://URLs - New
trust_image_settingsoption in thedockerconfig section names images, such as your own, whose settings are all accepted as before. Entries are exact image refs, and wildcards are refused
Local builds
- Git commands are no longer run through a shell, so a repo path can't inject commands
- Repos are no longer added to the global git
safe.directorylist. Each git command marks its repo as safe for that command only, and runs withext::remotes,core.fsmonitorand hooks switched off - New
git_repo_rootsoption in thedockerconfig section limits local build repos to the listed directories - Git is no longer run during scans when
allow_buildis off
Installing updates
docker compose upnow runs with--pull never, so a service withpull_policy: alwayscan't replace the checked image by pulling the tag again- An Auto update is skipped, until the next scan, if there's no digest from the registry to pull by. Updates asked for from Home Assistant still pull the tag in that case, with a warning
MQTT
- Retained messages on the command topic are ignored, as they'd repeat the install on every reconnect
- Commands can name the digest they expect, as
docker|<container>|install|sha256:..., and are ignored if the latest scan found a different one - A warning is logged at startup if the connection to a broker on another host isn't encrypted
Secrets
- Container environment variables are no longer logged when analyzing a container fails, and the
registry_tokensetting is masked in debug logs - A generated
config.yamlis created readable only by its owner, and a warning is logged for an existing one that holds secrets and is readable by all users - GitHub release lookups, which send the access token if one is configured, are only made for an exact
https://github.com/owner/reposource URL
Docker image
- Breaking:
mosquitto-clients(mosquitto_sub,mosquitto_pub) andjqare no longer in the image, as the healthcheck stopped using them in 1.18.0. Useu2m-cli mqtt=checkto test the broker connection from inside the container - Version tags, such as
1.19.0, are now immutable. Publishing fails if the tag is already in the registry- The weekly rebuild for base image and system package fixes is published as a revision,
1.19.0-r1,1.19.0-r2and so on, with the floating1.19andreleasetags moving to it
- The weekly rebuild for base image and system package fixes is published as a revision,
- The base image is pinned by digest, which Dependabot moves after its usual cooldown. The weekly rebuild only moves to a newer base image digest once it's been published for 7 days
📝 Other changes
- Pull request documentation builds run in their own read-only CI job, separate from the job that publishes docs from
main - The last GitHub Action referenced by tag is now pinned by commit SHA
- The published image is signed with cosign, using the release workflow's identity, and carries an SBOM attestation
- Linting no longer exempts
shell=Truesubprocess calls - Example compose file sets
no-new-privileges SECURITY.mdadded, with how to report a vulnerability
📚 Documentation
- Improving Security has a new section on the protections that have to be set up by hand, such as running as a non-root user, a read-only filesystem, and other containers that hold the Docker socket, and how to verify the published image
- README healthcheck description brought up to date, in all languages
What's Changed
- Bump astral-sh/setup-uv from 7.6.0 to 10.3.3 in the astral group by @dependabot[bot] in #206
- Bump the actions group with 2 updates by @dependabot[bot] in #208
- ci: shared admin workflows from rhizomatics/hq v1.0.0 by @jeyrb in #211
- docs: count page views with GoatCounter by @jeyrb in #212
- Scorecard: least-privilege workflow tokens by @jeyrb in #213
Full Changelog: v1.18.0...v1.19.0