Skip to content

chore: pin example base images by digest and keep them current with Dependabot - #76

Merged
intech merged 3 commits into
mainfrom
chore/pin-base-images
Nov 10, 2026
Merged

intech merged 3 commits into
mainfrom
chore/pin-base-images

Conversation

@intech

@intech intech commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Every Dockerfile in this repository built on a mutable tag (node:26-slim, oven/bun:1-slim), so the same file could build a different image the next day, and a replaced upstream tag would change what the images run without a commit here. getting-started is also the project connectum init downloads, so its Dockerfiles are what users start from.

  • All 26 FROM lines in 11 Dockerfiles read image:tag@sha256:<digest>. The digest is that of the multi-platform index (node:26-slim: amd64, arm64/v8, ppc64le, s390x; oven/bun:1-slim: amd64, arm64), so builds on other architectures keep working. The tag stays for readers and for Dependabot.
  • New .github/dependabot.yml: the docker ecosystem over the ten directories that hold Dockerfiles, and github-actions (every action here is already pinned by commit). Weekly. Without it the pins would go stale and miss base-image security updates.

Verification

  • Each of the 11 images built the way container-e2e.yml builds it, one at a time; every build log shows load metadata for …@sha256:<pinned digest>.
  • getting-started, Node and Bun variants: the wire-level scenario scripts/container-e2e.sh passed 11/11 checks each.
  • dependabot.yml parses; the keys used are in the current options reference.
  • This pull request's own container-e2e and broker e2e jobs rebuild all of them.

Not in this pull request

  • Service images in compose files and workflows (brokers, databases, observability stacks) are still referenced by tag. They are listed for a follow-up.
  • getting-started/Dockerfile still installs without a lockfile (npm install). Committing a lockfile to the scaffold base needs a matching change in connectum init, which rewrites package.json; that is done together, not here.
  • How Dependabot treats tag@sha256: lines is taken from the dependabot-core Docker README and its file-updater tests, since the GitHub documentation has no sentence on it. The first Dependabot pull request will show it in practice.

🤖 Generated with Claude Code

https://claude.ai/code/session_011KG8YqjNGKyXzFNPZ7PFYj

Summary by CodeRabbit

  • Chores
    • Added weekly checks for Docker images and GitHub Actions, with a limit of 10 open update requests.
    • Pinned container images to specific versions across multiple services and examples.

intech and others added 3 commits November 11, 2026 03:11
A mutable tag builds a different image tomorrow, and a replaced upstream tag
changes what users run with no commit here. Each base image is now pinned to
the digest of its multi-platform index, so one line resolves to the same
image for every architecture the registry lists.

The tag stays in front of the digest: it is what a reader and Dependabot
read, and Dependabot updates the tag and the digest together.
The digest pins only hold while something moves them: without an update
check they freeze the images at today's patch level, including its
vulnerabilities. Dependabot reads tag@sha256 in a Dockerfile and updates the
tag and digest together, and it rewrites the SHA and the trailing version
comment of the actions these workflows pin.
The key is no longer in the Dependabot options reference, and the organisation
has no team of that name; review requests follow CODEOWNERS.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011KG8YqjNGKyXzFNPZ7PFYj
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Docker build stages now use digest-pinned base images. Dependabot is configured to check Docker images and GitHub Actions weekly.

Changes: Dependency maintenance

Layer / File(s) Summary
Pin Docker base images
car-sharing/Dockerfile, getting-started/Dockerfile, getting-started/Dockerfile.bun, hris/Dockerfile, o11y-coroot/service/Dockerfile, performance-test-server/Dockerfile, with-events-amqp/Dockerfile, with-events-dlq/Dockerfile, with-events-kafka/Dockerfile, with-events-redpanda/Dockerfile, with-events-valkey/Dockerfile
Docker build stages use SHA-256-pinned Node 26 slim images or a SHA-256-pinned Bun 1 slim image.
Configure Dependabot schedules
.github/dependabot.yml
Dependabot checks Docker images in ten directories and GitHub Actions in the repository root weekly on Monday. Each ecosystem has an open-pull-request limit of 10 and its own commit prefix.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested labels: type:chore

Merge Risk: Minimal · up to 672aa

The change pins base images and schedules dependency updates. No merge-blocking risk is identified, subject to normal checks.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly summarizes the main changes: pinning example base images by digest and adding Dependabot updates.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (12 skipped: 12 unsupported.)

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4fb266af-b521-42d5-86ad-46ddce5ed0c9
Commits

Reviewing files that changed from the base of the PR and between 87e0d40 and 672aa08.

Files selected for processing: 12

  • .github/dependabot.yml
  • car-sharing/Dockerfile
  • getting-started/Dockerfile
  • getting-started/Dockerfile.bun
  • hris/Dockerfile
  • o11y-coroot/service/Dockerfile
  • performance-test-server/Dockerfile
  • with-events-amqp/Dockerfile
  • with-events-dlq/Dockerfile
  • with-events-kafka/Dockerfile
  • with-events-redpanda/Dockerfile
  • with-events-valkey/Dockerfile

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@github-actions github-actions Bot added the type:chore Maintenance: refactoring, dependencies, CI/CD label Nov 10, 2026
@intech
intech merged commit 23fa8d7 into main Nov 10, 2026
33 checks passed
@intech
intech deleted the chore/pin-base-images branch November 10, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:chore Maintenance: refactoring, dependencies, CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant