Skip to content

build(renovate): Set pinDigests for kubernetes, helm-values, argocd #7439

Backlog

Description

@devops-cli-service

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.json runs 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=lookup runs on a manifest with image: nginx:1.25 and the config of dan-petty/infra
  • THEN the output shows one pinDigest update for the kubernetes manager and the tag 1.25 stays.

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 sets pinDigests to true for the kubernetes, helm-values and argocd managers and builds no code. (best practice) [sources: AGENTS.md]
    • Chosen: Set the Renovate pinDigests option. 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-pins refusal and the tests.
  • 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 a kubernetes manager block. The item puts the change in renovate/k8s.json of 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.json of dan-petty/infra. A change to .github/renovate.json of 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.json of dan-petty/infra. The item names this file and these three managers.
    • Rejected: Change .github/renovate.json of devops-cli. That file is the config of this repository, so the change would deliver a different item.

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

  1. added
    type/infra
    source/agent
    status/new
    value/medium
    effort/low
    on Nov 27, 2026
  2. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    ContributorAuthor
    • Scope: none. The title has the scope renovate, and .github/labels.yml declares no scope/renovate label. Add the label to the file to give the scope to this item.
    • Related: fix(deps): keep Renovate uv bumps green and groups on Monday #4974, which asks for a different change. 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.
  3. changed the title [-]build(renovate): set pinDigests for the kubernetes, helm-values and argocd managers[/-] [+]build(renovate): Set pinDigests for kubernetes, helm-values, argocd[/+] on Nov 27, 2026
  4. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    ContributorAuthor

    The job shortened the title of this item. The summary had 66 characters, and the limit is 60. The type and the scope stay.

    • Before: build(renovate): set pinDigests for the kubernetes, helm-values and argocd managers
    • Source of the summary: the background model
  5. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumsource/agentstatus/newtype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions