Add weekly Docker image refresh workflow for security updates#4330
Add weekly Docker image refresh workflow for security updates#4330tillrohrmann merged 1 commit intorestatedev:mainfrom
Conversation
|
Thanks so much for jumping on this, @tillrohrmann! I like the date-based suffixed tags; this will work well for Cloud. To go with this, it might be useful to also have a weekly security-focused Long term, it might be super useful to publish an SBOM for Restate images to aid deployment-time scanning. Apparently https://github.com/rust-secure-code/cargo-auditable can bake dependency metadata directly into ELF binaries. |
|
#4331 added a new file and dir in the images (a symlnk) which we need to also carry over |
These sound like really great ideas for follow-up issues. I will open corresponding issues for tracking them.
Thanks for the pointer @jackkleeman. Updating |
464a3e1 to
2a1a281
Compare
|
@jackkleeman I've addressed all open comments. It's ready for another review. |
|
One related question: Should we change the default image pull policy of the helm charts to always so that people get the security updates on rollouts, crashes, etc.? If yes, then we should probably also update the defaults of the operator. |
probably not ideal as if the registry is down then your pod wont start |
jackkleeman
left a comment
There was a problem hiding this comment.
i worry slightly that the latest tag logic may not work for other repos that use docker.yml. but we shall soon see!
Fair point. Let's see. |
Implement automatic refresh of Docker images to include latest base image security updates without rebuilding binaries: - Add docker/Dockerfile.refresh for lightweight image rebuilds - Add .github/workflows/docker-refresh.yml scheduled weekly workflow - Add OCI labels (base.name, base.digest) for change detection - Add date-suffixed tags (e.g., 1.6.0-20260204) for all builds - Add automatic 'latest' tag detection (only for newest semver release) - Skip refresh if base image unchanged or source image doesn't exist The refresh workflow: - Runs weekly on main and release-* branches - Extracts version from Cargo.toml to find latest patch release - Compares base image digests to detect changes - Pushes to both GHCR and DockerHub Closes restatedev#4329
2a1a281 to
797da3f
Compare
Implement automatic refresh of Docker images to include latest base image security updates without rebuilding binaries:
The refresh workflow:
Closes #4329