Files
cozystack/.github/renovate.json
T
Aleksei Sviridkin b66905052b chore(renovate): hold the updates known to break
Renovate should not keep proposing updates that are known not to work.
A rule holds each such dependency and names the reason in its
description: the cel-go releases its repository no longer tags,
kube-openapi's move to structured-merge-diff v7 and that v7 itself, the
Flux API modules running ahead of the installed CRDs, the
controller-runtime admission API on jsonpatch v2, the jwk.Cache that
jwx v4 removed, the CDI API upstream csi-driver no longer compiles
against, the node 18 engine outline-server declares, the x86-64-v3
floor of AlmaLinux 10, the Flux CLI version the flux action has to
install, the one-minor skew kubectl allows against the management
cluster, and the uutils date of Ubuntu 26.04, which slows the e2e
sandbox install by about ten minutes.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-11-16 01:07:36 +03:00

217 lines
16 KiB
JSON

{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":semanticCommits"
],
"enabledManagers": ["gomod", "dockerfile", "github-actions", "custom.regex"],
"postUpdateOptions": ["gomodTidy", "gomodUpdateImportPaths"],
"labels": ["automated", "do-not-merge/hold"],
"semanticCommitType": "chore",
"semanticCommitScope": "deps",
"automerge": false,
"platformAutomerge": false,
"prConcurrentLimit": 5,
"osvVulnerabilityAlerts": true,
"vulnerabilityAlerts": {
"enabled": true,
"labels": ["automated", "security"]
},
"customManagers": [
{
"customType": "regex",
"description": "Track the etcd image pinned in the extra/etcd EtcdCluster podTemplate. etcd-operator v0.4.5 bakes etcd 3.5.12 into its binary, and the chart overrides it with a hardcoded image string that the gomod/dockerfile managers cannot see. Without this manager the security-relevant pin (etcd 3.5.x releases are overwhelmingly security fixes) would silently age.",
"managerFilePatterns": ["/^packages/extra/etcd/templates/etcd-cluster\\.yaml$/"],
"matchStrings": ["image:\\s+(?<depName>quay\\.io/coreos/etcd):(?<currentValue>v[0-9]+\\.[0-9]+\\.[0-9]+)"],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"description": "Track and keep fresh the clastix/kubectl image digest-pinned in the post-delete cleanup hooks. The ref is assembled at render time by the cozy-lib.image helper (routed through cozy-lib.images-registry so mirrored / air-gapped installs resolve it), so it is neither a Dockerfile nor a go.mod dependency and the built-in managers cannot see it. The helm-values manager is disabled repo-wide (see enabledManagers above), so without this regex manager the digest — a supply-chain pin — would silently age.",
"managerFilePatterns": ["/^packages/.+/templates/hooks/.+\\.yaml$/"],
"matchStrings": ["clastix/kubectl:(?<currentValue>v[0-9]+\\.[0-9]+(?:\\.[0-9]+)?)@(?<currentDigest>sha256:[a-f0-9]+)"],
"datasourceTemplate": "docker",
"depNameTemplate": "docker.io/clastix/kubectl"
},
{
"customType": "regex",
"description": "Track the BuildKit SBOM scanner pinned by tag and digest in hack/common-envs.mk. The dockerfile manager does not read Makefiles and the helm-values manager is disabled repo-wide (see enabledManagers above), so without this manager the pin would stay on the syft it was cut with: the floating stable-1 tag it replaced moved to a fixed syft on its own, a digest pin does not. Tag and digest move together here, as the comment above the pin asks.",
"managerFilePatterns": ["/^hack/common-envs\\.mk$/"],
"matchStrings": ["SBOM_SCANNER \\?= (?<depName>docker\\.io/docker/buildkit-syft-scanner):(?<currentValue>[0-9]+\\.[0-9]+\\.[0-9]+)@(?<currentDigest>sha256:[a-f0-9]+)"],
"datasourceTemplate": "docker"
}
],
"packageRules": [
{
"description": "Force chore(deps) for all Go module bumps. config:recommended pulls in :semanticPrefixFixDepsChoreOthers, whose packageRule re-sets semanticCommitType=fix for direct deps (depType require), overriding the top-level chore. packageRules override top-level config, so a user rule evaluated last is required to win it back; without this, direct-dep PRs land as fix(deps) and get auto-labeled kind/bug.",
"matchManagers": ["gomod"],
"semanticCommitType": "chore",
"semanticCommitScope": "deps"
},
{
"description": "Bump indirect Go modules too. Transitive deps such as golang.org/x/crypto, golang.org/x/net and golang.org/x/sys carry OSV advisories that drive the OpenSSF Scorecard Vulnerabilities check to 0, but Renovate skips indirect gomod deps by default so they never get a PR. Grouped into one rolling PR to keep volume sane; security fixes are still split out by vulnerabilityAlerts above. Placed before the kubernetes rule on purpose: an indirect k8s.io/** dep matches both, and Renovate applies last-match-wins, so the later kubernetes rule keeps it in the kubernetes lockstep group.",
"matchManagers": ["gomod"],
"matchDepTypes": ["indirect"],
"enabled": true,
"groupName": "indirect go modules"
},
{
"description": "Keep controller-runtime and the Kubernetes libraries in lockstep. A split bump breaks compilation because a given controller-runtime release expects a matching client-go / apimachinery line.",
"groupName": "kubernetes",
"matchManagers": ["gomod"],
"matchPackageNames": ["sigs.k8s.io/controller-runtime", "k8s.io/**"]
},
{
"description": "cel-go moved to cel.dev/cel-go, and the github.com/google/cel-go repository has no tags past v0.30.0. proxy.golang.org still serves v0.31.0 and v0.32.0 from its cache, but a build that resolves modules from the repository (GOPROXY=direct, or an Athens or Artifactory proxy that fetches from VCS) fails on them, and v0.32.0 declares the module path cel.dev/cel-go, which k8s.io/apiserver does not import. The rule can go once nothing in the module graph requires github.com/google/cel-go.",
"matchManagers": ["gomod"],
"matchPackageNames": ["github.com/google/cel-go"],
"allowedVersions": "<0.31.0"
},
{
"description": "The newest kube-openapi commits require structured-merge-diff v7, and k8s.io/apimachinery v0.37 does not compile against it (pkg/util/managedfields/internal/typeconverter.go hands v7 schema types to v6). Renovate does not raise kube-openapi; each module keeps the commit its dependencies require, and it moves with the Kubernetes libraries.",
"matchManagers": ["gomod"],
"matchPackageNames": ["k8s.io/kube-openapi"],
"enabled": false
},
{
"description": "Renovate offers a dependency's patch and minor update as one update to the newest minor unless they are split, so the Flux hold below would also drop the patch releases it means to let through.",
"matchManagers": ["gomod"],
"matchPackageNames": ["github.com/fluxcd/**"],
"separateMinorPatch": true
},
{
"description": "structured-merge-diff v7 is a new module path that k8s.io/apimachinery v0.37 does not compile against: its managedfields package hands v7 schema types to v6 (pkg/util/managedfields/internal/typeconverter.go). It moves when the Kubernetes libraries do.",
"matchManagers": ["gomod"],
"matchPackageNames": ["sigs.k8s.io/structured-merge-diff/**"],
"matchUpdateTypes": ["major"],
"enabled": false
},
{
"description": "The Flux API modules describe the CRDs of the Flux release the platform installs (internal/fluxinstall), so they stay on that release line; patches still arrive. A newer minor would let the operator and the apps API write fields the installed controllers do not know. They move together with the Flux release.",
"matchManagers": ["gomod"],
"matchPackageNames": ["github.com/fluxcd/**"],
"matchUpdateTypes": ["major", "minor"],
"enabled": false
},
{
"description": "controller-runtime's admission.Patched takes gomodules.xyz/jsonpatch/v2 operations, so the flux-shard-operator webhook cannot build its patch with v3 types. The major moves when controller-runtime does.",
"matchManagers": ["gomod"],
"matchPackageNames": ["gomodules.xyz/jsonpatch/**"],
"matchUpdateTypes": ["major"],
"enabled": false
},
{
"description": "jwx v4 removes jwk.Cache, on which the token proxy's JWKS refresh and readiness are built, so the major needs that code rewritten rather than an import path bump.",
"matchManagers": ["gomod"],
"matchFileNames": ["packages/system/dashboard/images/token-proxy/**"],
"matchPackageNames": ["github.com/lestrrat-go/jwx/**"],
"matchUpdateTypes": ["major"],
"enabled": false
},
{
"description": "Upstream kubevirt csi-driver builds against kubevirt.io/api v1.2 and CDI API v1.59; with a newer CDI API its controller no longer compiles (it passes ResourceRequirements where the newer DataVolume type wants VolumeResourceRequirements). Both follow upstream csi-driver.",
"matchManagers": ["gomod"],
"matchFileNames": ["packages/apps/kubernetes/images/kubevirt-csi-driver/**"],
"matchPackageNames": ["kubevirt.io/api", "kubevirt.io/containerized-data-importer-api"],
"matchUpdateTypes": ["major", "minor"],
"enabled": false
},
{
"description": "Never bump the Go toolchain directive. go.mod is generated and the toolchain is pinned deliberately; raising it needs a matching setup-go and a codegen run, which is out of scope for an automated dependency bump.",
"matchManagers": ["gomod"],
"matchDepTypes": ["golang"],
"enabled": false
},
{
"description": "Pin Dockerfile base images and GitHub Actions to immutable digests so OpenSSF Scorecard Pinned-Dependencies passes and supply-chain refs stay reproducible. The tag is kept in front of the digest so it stays human-readable and trackable.",
"matchManagers": ["dockerfile", "github-actions"],
"pinDigests": true
},
{
"description": "Batch the initial pin and all digest-only refreshes (same tag, rebuilt upstream) into a single weekly PR. Without this, frequently-rebuilt bases (alpine, debian, golang, distroless) would trickle in one rebuild-triggering PR each, loading the shared CI runner. Real tag bumps (major/minor/patch) are intentionally left out of this group so they get individual review.",
"matchManagers": ["dockerfile", "github-actions"],
"matchUpdateTypes": ["digest", "pinDigest"],
"groupName": "container image & action digests",
"schedule": ["before 6am on monday"]
},
{
"description": "The Harbor rebuilds reproduce one upstream release, and their Dockerfiles assert that the Go and node versions they build with equal GOBUILDIMAGE and NODEBUILDIMAGE in upstream's Makefile at that tag, so a tag that moves either version fails the build. Digest refreshes of the same tag still arrive through the digest group above; move the tags with HARBOR_VERSION.",
"matchManagers": ["dockerfile"],
"matchFileNames": ["packages/system/harbor/images/**"],
"matchUpdateTypes": ["major", "minor", "patch"],
"enabled": false
},
{
"description": "The cilium-operator rebuild compiles one upstream release with the Go toolchain upstream's builder image pins at that tag, and `make update` in packages/system/cilium re-pins the builder line from there. A Renovate bump, by tag or by digest, builds with a toolchain upstream never shipped the release with, and the next `make update` silently reverts it. The operator-generic base stage and its VERSION and UPSTREAM_DIGEST args are pinned by the same recipe, and VERSION also selects the source archive SOURCE_SHA256 checks. Updates are disabled here; all of them move with the Cilium version.",
"matchManagers": ["dockerfile"],
"matchFileNames": ["packages/system/cilium/images/cilium-operator/**"],
"enabled": false
},
{
"description": "Split golang patch from minor updates for the e2e sandbox builder, so the rule below can drop the minor bump without taking the patch bump with it. By default both land in one non-major bucket and only the newest release is proposed.",
"matchManagers": ["dockerfile"],
"matchFileNames": ["packages/core/testing/images/e2e-sandbox/**"],
"matchPackageNames": ["golang"],
"separateMinorPatch": true
},
{
"description": "The e2e sandbox builds a patched chainsaw release with the Go minor upstream shipped that release with. A golang minor or major bump builds it with a toolchain upstream never shipped it with. Patch and digest updates of the same minor still arrive; move the minor by hand together with CHAINSAW_VERSION.",
"matchManagers": ["dockerfile"],
"matchFileNames": ["packages/core/testing/images/e2e-sandbox/**"],
"matchPackageNames": ["golang"],
"matchUpdateTypes": ["major", "minor"],
"enabled": false
},
{
"description": "The seaweedfs rebuild compiles one upstream release with the Go toolchain upstream's docker/Dockerfile.go_build uses at that tag, lays it over the upstream image of that tag, and `make update` in packages/system/seaweedfs re-pins the builder, the base image digest and the source checksum from there. A Renovate bump of any of them builds a combination upstream never shipped, and the next `make update` silently reverts it. Updates are disabled here; all of them move with the SeaweedFS version.",
"matchManagers": ["dockerfile"],
"matchFileNames": ["packages/system/seaweedfs/images/seaweedfs/**"],
"enabled": false
},
{
"description": "kubevirt.io/csi-driver is pinned to an untagged pseudo-version commit and publishes no release tags, so Renovate's go datasource returns no-result and the lookup failure lingers on the Dependency Dashboard. Disable it; this module is advanced deliberately alongside the kubevirt-csi-driver image build.",
"matchManagers": ["gomod"],
"matchPackageNames": ["kubevirt.io/csi-driver"],
"enabled": false
},
{
"description": "The flux action's tag has to equal the Flux CLI version it installs, which follows the Flux release the platform runs: hack/verify-promoted-packages.sh restates that CLI's excludeOCI set, and hack/ci-tool-installs-contract.bats fails when the two differ. The action moves together with the Flux release.",
"matchManagers": ["github-actions"],
"matchPackageNames": ["fluxcd/flux2"],
"matchUpdateTypes": ["major", "minor", "patch"],
"enabled": false
},
{
"description": "AlmaLinux 10 builds its amd64 userland for x86-64-v3 (AVX2). The kubevirt CSI node service runs mkfs, blkid, fsck and mount from this image inside tenant VMs, and on a vCPU without x86-64-v3 each of them exits at startup while the pod looks healthy; the same CPU floor broke the driver's sidecars before. The image stays on AlmaLinux 9.",
"matchManagers": ["dockerfile"],
"matchFileNames": ["packages/apps/kubernetes/images/kubevirt-csi-driver/**"],
"matchPackageNames": ["almalinux", "docker.io/library/almalinux"],
"matchUpdateTypes": ["major"],
"enabled": false
},
{
"description": "Ubuntu 26.04 ships uutils coreutils, whose date costs about four times as much per call as GNU date. hack/cozytest.sh forks date for every traced line, so on 26.04 the install phase of the e2e sandbox takes about ten minutes longer and the full suite no longer fits its job budget. The sandbox stays on Ubuntu 24.04 until the harness stops forking per line.",
"matchManagers": ["dockerfile"],
"matchFileNames": ["packages/core/testing/images/e2e-sandbox/**"],
"matchPackageNames": ["ubuntu"],
"matchUpdateTypes": ["major"],
"enabled": false
},
{
"description": "outline-server declares engines node 18.x, and npm ci in the shadowbox build fails with EBADENGINE on any other node major. The node tag moves when outline-server raises its engine.",
"matchManagers": ["dockerfile"],
"matchFileNames": ["packages/apps/vpn/images/shadowbox/**"],
"matchPackageNames": ["node"],
"matchUpdateTypes": ["major"],
"enabled": false
},
{
"description": "The cleanup hooks (post-delete, and kafka's pre-delete) run clastix/kubectl against the management cluster, and kubectl supports one minor of skew with the API server. The tag stays on a minor the supported management cluster versions accept; digest refreshes of that tag still arrive.",
"matchManagers": ["custom.regex"],
"matchPackageNames": ["docker.io/clastix/kubectl"],
"matchUpdateTypes": ["major", "minor"],
"enabled": false
}
]
}