Add Renovate config for Duo Workflows pinned dependencies

What does this MR do and why?

Adds renovate/gitlab/duo-workflows.config.js so Renovate opens weekly version-bump MRs in gitlab-org/gitlab for the pins Duo Agent Platform workloads use. Today these are bumped by hand, and several bumps were reverted after testing missed the new binary.

MR Pins Reviewer
duo-cli and workflow-generic-image DUO_CLI_VERSION, IMAGE_PATH tag in start_workflow_service.rb Roulette, agent foundations stage
glab GlabSetup::VERSION in glab_setup.rb Roulette, Agent Developer

How it behaves

  • One MR per row, always on the latest version. A newer release updates the open MR instead of opening another. Major versions don't get a separate MR.
  • Weekly. Before 05:00 UTC on Mondays. An open MR only changes inside that window, so a test run isn't invalidated mid-week.
  • minimumReleaseAge: 1 day, which gives the duo-cli package upload time to land.
  • A post-upgrade script (duo-workflows-post-upgrade.sh) updates what Renovate can't:
    • glab: rewrites GlabSetup::CHECKSUMS from the release's checksums.txt. Without this, every glab MR would break the install.
    • duo-cli: the curl download version in images.md and offline_deployment.md.
    • image: the FROM tags in both docs, and the duo-cli and glab rows of the images.md inventory tables, taken from the image's Dockerfile at the new tag.
  • Testing instructions in each MR body. They cover the pitfalls of past bumps:
    • The default image preinstalls duo and glab, so the install step skips the pinned version.
    • Plain custom images such as python:3.12 have no srt, so flows run without the sandbox. That is how the 9.29.0 sandbox regression (INC-15070) got through.

Why the image's own Renovate config doesn't cover this

gitlab-org/duo-workflow/default-docker-image bumps duo-cli and glab inside the image. Nothing bumps the pins in gitlab-org/gitlab.

How to set up and validate locally

  • yarn test: new duo-workflows.test.js checks each regex finds exactly one value, and that the allowedCommands entry rejects injected commands.
  • The script, run against copies of the Rails files on macOS and Debian: digests match shasum of the real release archive.
  • Generated changes applied to a GDK checkout: glab_setup_spec.rb + start_workflow_service_spec.rb 219 examples, 0 failures. markdownlint-cli2 and vale clean on both docs.
  • Renovate dry-run in this MR (with the schedule removed): 3 of 3 pins found, and the script ran inside Renovate for all three dependencies without errors.

Not verifiable before merge: the MR bodies. The dry-run stops before creating MRs.

Edited by Thomas Schmidt

Merge request reports

Loading
Loading