Pin base image digests + auto-update via Renovate#66
Conversation
Signed-off-by: Cyrill Berg <cyrill.berg@opendefense.cloud>
…s fresh Signed-off-by: Cyrill Berg <cyrill.berg@opendefense.cloud>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR pins Docker base images in the Dockerfile to specific content digests rather than floating tags, and configures Renovate to automatically manage those digests. The golang builder and all distroless runtime stages now reference immutable image digests for reproducibility and supply-chain security. ChangesContainer Image Digest Pinning
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Why
OSSF Scorecard flagged
Pinned-Dependencies(Medium, normalized to 6/10) because base images are tag-only. Tags are mutable — a republished tag silently changes binary contents and is a supply-chain vector. Digest pinning closes that; the Renovate preset keeps the digests fresh.What
@sha256:...on the 4 externalFROMlines (1, 28, 34, 41). Lines 18/23 are local stage refs, nothing to pin.docker:pinDigestsso Renovate auto-PRs digest updates when tags get republished.Digests verified via
crane digestagainst the live multi-arch indexes.Test plan
docker buildx build --check --target controller .passesjqconfirmsrenovate.jsonis validPinned-Dependencies≥ 9/10Summary by CodeRabbit