Roadmap 1.3: Self-hosted Renovate with digest pinning for both repos #19

Open
opened 2026-12-03 04:39:32 +01:00 by claude-bot · 0 comments

Why

Images like gitea/gitea:latest change without a commit, so nobody knows exactly what is running or when it changed. Pinning by digest makes every change visible in git, and Renovate keeps the pins up to date through PRs instead of silent pulls.

Enterprise practice: immutable references (tag@sha256:...) plus a dependency bot that proposes updates as reviewable PRs.

Depends on kasun/homelab-ansible#18.

Steps

  • Create a renovate-bot Gitea user with its own token; store the token in OpenBao
  • Scheduled workflow (nightly) on runner-vm that runs a pinned Renovate version with platform: gitea and autodiscover filtered to kasun/homelab-*
  • renovate.json in both repos, extending config:recommended, docker:pinDigests and helpers:pinGitHubActionDigests
  • Cover Docker Compose stacks and image variables in Ansible (custom regex manager where needed)
  • Cover Helm chart versions and images in the Pulumi index.ts files with a regex manager and // renovate: datasource=helm depName=... registryUrl=... comments
  • Group minor/patch updates and enable the Dependency Dashboard issue
  • First result: PRs that pin gitea/gitea and all other :latest images to digests

Tools

Renovate (self-hosted), Gitea Actions.

Done when

  • Every image in both repos is referenced as tag@sha256:...
  • Renovate opens PRs for new versions, and the Dependency Dashboard lists everything it tracks

Portfolio evidence

  • Before/after diff of a compose file (:latest → tag@sha256)
  • Screenshot of the Dependency Dashboard and an update PR

Part of the security roadmap. Keep the evidence below for the write-up (README / blog post).

## Why Images like `gitea/gitea:latest` change without a commit, so nobody knows exactly what is running or when it changed. Pinning by digest makes every change visible in git, and Renovate keeps the pins up to date through PRs instead of silent pulls. **Enterprise practice:** immutable references (`tag@sha256:...`) plus a dependency bot that proposes updates as reviewable PRs. Depends on kasun/homelab-ansible#18. ## Steps - [ ] Create a `renovate-bot` Gitea user with its own token; store the token in OpenBao - [ ] Scheduled workflow (nightly) on `runner-vm` that runs a pinned Renovate version with `platform: gitea` and `autodiscover` filtered to `kasun/homelab-*` - [ ] `renovate.json` in **both** repos, extending `config:recommended`, `docker:pinDigests` and `helpers:pinGitHubActionDigests` - [ ] Cover Docker Compose stacks and image variables in Ansible (custom regex manager where needed) - [ ] Cover Helm chart versions and images in the Pulumi `index.ts` files with a regex manager and `// renovate: datasource=helm depName=... registryUrl=...` comments - [ ] Group minor/patch updates and enable the Dependency Dashboard issue - [ ] First result: PRs that pin `gitea/gitea` and all other `:latest` images to digests ## Tools Renovate (self-hosted), Gitea Actions. ## Done when - Every image in both repos is referenced as `tag@sha256:...` - Renovate opens PRs for new versions, and the Dependency Dashboard lists everything it tracks ## Portfolio evidence - [ ] Before/after diff of a compose file (`:latest` → `tag@sha256`) - [ ] Screenshot of the Dependency Dashboard and an update PR --- _Part of the security roadmap. Keep the evidence below for the write-up (README / blog post)._
claude-bot Bot added this to the Security Roadmap 1: Secure container supply chain milestone 2026-12-03 04:39:32 +01:00
claude-bot Bot added the security-roadmap label 2026-12-03 04:39:32 +01:00
claude-bot Bot added this to the Security Roadmap project 2026-12-03 04:39:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kasun/homelab-ansible#19