Repository navigation
Description
Split from #6067.
Problem The Renovate config of dan-petty/infra does not set pinDigests for the kubernetes, helm-values and argocd managers. Renovate writes no digest into a Kubernetes manifest or a Helm value. A registry can move a tag, so two pulls of one tag can give two images. ## Why this part is deferred The file to change is renovate/k8s.json of dan-petty/infra. A pull request of devops-cli cannot change a file of that repository. Item 6067 delivers the devops k8s image-pins refusal and the tests. A person must move this issue to dan-petty/infra, or deliver it by a pull request of that repository. ## Acceptance criteria - renovate/k8s.json of dan-petty/infra sets pinDigests to true for the kubernetes, helm-values and argocd managers. - The Renovate config validator of dan-petty/infra exits 0 and shows the three managers under the digest-pin rule. - A Renovate run on a manifest with a tag and no digest opens one pull request that adds the digest and keeps the tag.
Proposed design
Problem statement
The Renovate config of dan-petty/infra sets no pinDigests for the kubernetes, helm-values and argocd managers. Renovate writes no digest into a Kubernetes manifest or a Helm value. A registry can move a tag, so two pulls of one tag can give two images.
Acceptance criteria
Requirement: Pin digests for three managers
The Renovate config renovate/k8s.json of dan-petty/infra SHALL set pinDigests to true for the kubernetes, helm-values and argocd managers.
Scenario: The validator accepts the config
- WHEN
npx --yes renovate-config-validator --strict renovate/k8s.jsonruns at the root of dan-petty/infra - THEN the command exits 0 with no error.
Requirement: One digest update keeps the tag
A Renovate run on a Kubernetes manifest with a tag and no digest MUST produce one digest update for the kubernetes manager that keeps the tag.
Scenario: A lookup dry run on a tagged manifest
- WHEN
LOG_LEVEL=debug npx --yes renovate --platform=local --dry-run=lookupruns on a manifest withimage: nginx:1.25and the config of dan-petty/infra - THEN the output shows one
pinDigestupdate for thekubernetesmanager and the tag1.25stays.
Existing Tool Considered
No alternatives check has run. Renovate is open and maintained, and its pinDigests option covers the need for the kubernetes, helm-values and argocd managers. Renovate lacks a default for these managers: pinDigests is false until a config sets it. The change sets pinDigests to true in renovate/k8s.json of dan-petty/infra, and it builds no code.
Key questions
- Which open tool covers the need to pin image digests in Kubernetes manifests and Helm values?: Renovate covers the need with
pinDigests. The change setspinDigeststotruefor thekubernetes,helm-valuesandargocdmanagers and builds no code. (best practice) [sources: AGENTS.md]- Chosen: Set the Renovate
pinDigestsoption. Renovate is open and maintained, and it writes the digest into the file next to the tag. - Rejected: Build a devops-cli command that writes digests. AGENTS.md rule 3 puts an open tool first. Item 6067 adds the
devops k8s image-pinsrefusal and the tests.
- Chosen: Set the Renovate
- Where does the Renovate config of this repository live, and where does the item put the change?: This repository keeps its Renovate config in
.github/renovate.json, which holds akubernetesmanager block. The item puts the change inrenovate/k8s.jsonof dan-petty/infra, a different repository. [sources: .github/renovate.json] - Should this item change the Renovate config of devops-cli instead?: No. The item names
renovate/k8s.jsonof dan-petty/infra. A change to.github/renovate.jsonof devops-cli would deliver a different item, so it is compensating code that AGENTS.md rule 2 forbids. (best practice) [sources: .github/renovate.json, AGENTS.md]- Chosen: Change
renovate/k8s.jsonof dan-petty/infra. The item names this file and these three managers. - Rejected: Change
.github/renovate.jsonof devops-cli. That file is the config of this repository, so the change would deliver a different item.
- Chosen: Change
Fit
Fits in one pull request.
Suspected block
A person must move this issue to dan-petty/infra. A pull request of devops-cli cannot change renovate/k8s.json of that repository.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 27, 2026
renovate, and .github/labels.yml declares no scope/renovate label. Add the label to the file to give the scope to this item.Both deal with pinDigests in the Renovate config, but #4974 fixes a test broken by the dockerfile manager setting while this item enables pinDigests for three k8s managers.[-]build(renovate): set pinDigests for the kubernetes, helm-values and argocd managers[/-][+]build(renovate): Set pinDigests for kubernetes, helm-values, argocd[/+]devops-cli-service commentedon Nov 27, 2026
The job shortened the title of this item. The summary had 66 characters, and the limit is 60. The type and the scope stay.
build(renovate): set pinDigests for the kubernetes, helm-values and argocd managersdevops-cli-service commentedon Nov 28, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence